joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, edx
test esi, esi
jl 0x41409a
cmp esi, 3
jge 0x41409a
or eax, 0xffffffff
jmp 0x41409c
xor eax, eax
test eax, eax
jne 0x4140ae
push 0x57
call sub.storm.dll_Ordinal_465
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x104
lea edx, [ebp - 0x20c]
call sym.War3.exe_Fe
test eax, eax
je 0x414149
push accept
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call sub.storm.dll_Ordinal_501
mov edx, dword [esi*4 + 0x44b6e8]
push accept
push edx
lea eax, [ebp - 0x108]
push eax
call sub.storm.dll_Ordinal_503
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push accept
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x414149
mov esi, dword [ebp + 8]
push esi
call sub.storm.dll_Ordinal_506
inc eax
push eax
mov eax, dword [ebp - 4]
push esi
push 1
push 0
push 0x45c150
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x414150
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x41416f
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x104
mov edi, eax
push esi
lea eax, [ebp - 0x11c]
push eax
call sub.storm.dll_Ordinal_501
mov dl, 0x5c
lea ecx, [ebp - 0x11c]
call sub.storm.dll_Ordinal_570
cmp eax, ebx
je 0x4141ad
mov byte [eax], bl
cmp edi, ebx
je 0x4141e9
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x4141dc
pop edi
pop esi
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push ebx
push ecx
push edx
push eax
call fcn.00449190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4142b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x11
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push esi
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414870
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
imul eax, eax, 0x3e8
shr edi, 6
xor edx, edx
inc edi
div edi
lea edx, [esi + 0x20c]
lea edi, [esi + 0x108]
lea ebx, [esi + 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [edx]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [edi]
neg edx
sbb edx, edx
and edx, edi
mov edi, dword [ebx]
neg edi
sbb edi, edi
and edi, ebx
neg ecx
sbb ecx, ecx
lea ebx, [ebp - 8]
and ecx, ebx
push ecx
push eax
push edx
push edi
push 0
call dword [sym.imp.wsock32.dll_select]
cmp eax, 0xffffffff
jne 0x4148e7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x41498a
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 2
lea edi, [esi + 4]
cmp dword [edi], 0
jbe 0x41496d
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
dec edx
mov eax, edx
add ecx, eax
mov dword [edi], edx
mov eax, dword [esi + 0x334]
cmp eax, 0xffffffff
mov edx, dword [esi + ecx*4]
je 0x414958
mov ecx, dword [esi + 0x32c]
and eax, edx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4 + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x414958
cmp dword [ecx], edx
je 0x41495a
mov eax, dword [esi + 0x334]
mov ebx, dword [esi + 0x32c]
and eax, edx
lea eax, [eax + eax*2]
lea eax, [ebx + eax*4]
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x414935
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [esi]
push eax
call dword [edx]
cmp dword [edi], 0
ja 0x414905
inc dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x41
add edi, 0x104
cmp eax, 0xc5
mov dword [ebp + 8], eax
jb 0x414900
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414a60
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
mov eax, dword [esi + 0x7c]
je 0x414acf
cmp eax, 0xffffffff
jne 0x414ae2
push 0
push 1
push 2
call dword [sym.imp.wsock32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x7c], eax
je 0x414ae2
lea ecx, [esi + 8]
push ecx
lea edx, [ebp - 4]
push edx
mov edx, dword [esi + 0x78]
push 0x20
push 0x20
push 0
lea ecx, [esi + 0x38]
push ecx
push eax
mov eax, dword [edx + 4]
push eax
call dword [0x45c434]
test eax, eax
jne 0x414ae2
call dword [sym.imp.wsock32.dll_WSAGetLastError]
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
je 0x414ae2
push eax
call dword [sym.imp.wsock32.dll_closesocket]
mov dword [esi + 0x7c], 0xffffffff
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414af0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x20]
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x414b34
mov ecx, dword [esi + 0x7c]
push ecx
call dword [sym.imp.wsock32.dll_closesocket]
push ebx
mov dword [esi + 0x7c], 0xffffffff
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
push edi
mov edi, dword [esi + 0x7c]
je 0x414bb8
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20
push 0x20
push 0
lea eax, [esi + 0x38]
push eax
call dword [0x45c438]
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx]
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
add eax, 0x10
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x78]
push 4
add eax, 4
push eax
push 0x700b
push 0xffff
push edi
call dword [sym.imp.wsock32.dll_setsockopt]
mov ebx, dword [ebp - 0xc]
jmp 0x414bc2
push edi
call dword [sym.imp.wsock32.dll_closesocket]
or edi, 0xffffffff
mov ecx, esi
mov dword [esi + 0x7c], 0xffffffff
call fcn.00414a60
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4150e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x10]
push edi
push ecx
mov ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp + 8], 0x10
call dword [sym.imp.wsock32.dll_getsockname]
push ebx
call dword [sym.imp.wsock32.dll_htons]
mov word [edi + 2], ax
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
xor ecx, ecx
add edi, 8
push esi
mov dword [edi], ecx
push eax
mov dword [edi + 4], ecx
mov dword [ebp - 4], 0x10
call dword [sym.imp.wsock32.dll_getpeername]
push ebx
call dword [sym.imp.wsock32.dll_htons]
mov word [esi + 2], ax
xor ecx, ecx
add esi, 8
mov dword [esi], ecx
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415150
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0
push 1
push 2
mov edi, ecx
call dword [sym.imp.wsock32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415175
pop edi
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x8004667e
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.wsock32.dll_ioctlsocket]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0xffff
push esi
mov dword [ebp - 8], 1
call dword [sym.imp.wsock32.dll_setsockopt]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], edx
call dword [sym.imp.wsock32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
mov word [ebp - 0x18], 2
call dword [sym.imp.wsock32.dll_bind]
test eax, eax
je 0x4151e7
push esi
call dword [sym.imp.wsock32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 0xfa
push esi
call dword [sym.imp.wsock32.dll_listen]
test eax, eax
je 0x415207
push esi
call dword [sym.imp.wsock32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4156c0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, 0xffffffff
mov esi, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
je 0x4156fb
cmp dword [0x45c9c4], edi
je 0x4156f2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
jmp 0x4156fb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
push ebx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x618]
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetQueuedCompletionStatus]
mov ecx, dword [0x45c9cc]
test ecx, ecx
jne 0x415814
cmp ebx, 0xffffffff
mov edx, dword [ebp - 8]
je 0x415737
test eax, eax
jne 0x415737
test edx, edx
je 0x415814
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41577d
test edx, edx
je 0x415773
mov esi, dword [edx + 0x14]
sub esi, 0
je 0x415765
dec esi
jne 0x415773
mov esi, dword [ecx]
push eax
mov eax, dword [ebp - 4]
push eax
push edx
call dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov esi, dword [ebp - 0xc]
jmp 0x415795
mov esi, dword [ecx]
push eax
mov eax, dword [ebp - 4]
push eax
push edx
call dword [esi + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov esi, dword [ebp - 0xc]
jmp 0x415795
test edx, edx
je 0x415795
mov ecx, dword [edx + 0x14]
sub ecx, 2
jne 0x415795
push eax
add edx, 0xfffffff8
push edx
mov ecx, esi
call fcn.00416d20
cmp ebx, 0xffffffff
je 0x4157e8
mov eax, dword [0x45c9c4]
test eax, eax
je 0x4157d9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
sub ecx, eax
sbb edx, edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
fild qword [ebp - 0x24]
fmul dword [0x45c9c0]
call sub.msvcrt.dll__ftol
mov edi, eax
test edi, edi
jl 0x415814
jmp 0x4157e4
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edi, eax
sub edi, dword [ebp - 0x14]
cmp edi, ebx
jae 0x415814
mov eax, ebx
sub eax, edi
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x618]
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetQueuedCompletionStatus]
mov ecx, dword [0x45c9cc]
test ecx, ecx
je 0x415723
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov esi, ecx
call edi
test eax, eax
mov dword [esi + 0x54c], eax
jne 0x415efa
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
call edi
test eax, eax
mov dword [esi + 0x554], eax
jne 0x415f16
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00416410
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x417540
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x415f4b
mov ecx, esi
call fcn.00416420
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x548], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x24], eax
jne 0x415f83
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00416410
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x417cc0
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x415fb7
mov ecx, esi
call fcn.00416420
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x20], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415fd0
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
push 0x45c810
push 0x202
call dword [sym.imp.wsock32.dll_WSAStartup]
test eax, eax
jne 0x416094
mov ax, word [0x45c810]
cmp al, 1
jb 0x416094
jne 0x416001
cmp ah, 1
jb 0x416094
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryA]
push str.mswsock.dll
call edi
test eax, eax
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45c808], eax
je 0x41603e
push str.AcceptEx
push eax
call esi
mov dword [0x45c434], eax
mov eax, dword [0x45c808]
push str.GetAcceptExSockaddrs
push eax
call esi
mov dword [0x45c438], eax
cmp byte [0x45c810], 2
jb 0x41608a
push str.ws2_32.dll
call edi
test eax, eax
mov dword [0x45c804], eax
je 0x41608a
push str.WSASend
push eax
call esi
mov ecx, dword [0x45c804]
push str.WSARecv
push ecx
mov dword [0x45c9d0], eax
call esi
mov edx, dword [0x45c804]
push str.WSAIoctl
push edx
mov dword [0x45c428], eax
call esi
mov dword [0x45c420], eax
pop edi
mov eax, 1
pop esi
ret 4
xor eax, eax
ret 4
Function at 0x416120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x618]
test eax, eax
push edi
jne 0x416143
call fcn.00416730
test eax, eax
jne 0x416143
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test byte [ebp + 8], 2
mov edi, dword [sym.imp.msvcrt.dll__beginthreadex]
je 0x41618f
mov ecx, esi
call fcn.00416410
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x415b50
push 0
push 0
call edi
add esp, 0x18
test eax, eax
jne 0x416180
mov ecx, esi
call fcn.00416420
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push eax
mov dword [esi + 0x514], eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push 0
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x4161ac
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00416410
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x4186e0
push 0
push 0
call edi
add esp, 0x18
test eax, eax
jne 0x4161dd
mov ecx, esi
call fcn.00416420
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x18], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4165d0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x45c804]
push esi
mov esi, dword [sym.imp.kernel32.dll_FreeLibrary]
push edi
xor edi, edi
cmp eax, edi
je 0x4165f8
push eax
mov dword [0x45c9d0], edi
mov dword [0x45c428], edi
call esi
mov dword [0x45c804], edi
mov eax, dword [0x45c808]
cmp eax, edi
je 0x416616
push eax
mov dword [0x45c434], edi
mov dword [0x45c438], edi
call esi
mov dword [0x45c808], edi
call dword [sym.imp.wsock32.dll_WSACleanup]
cmp dword [0x45c9c8], edi
jne 0x416708
mov eax, dword [0x45c800]
push ebx
add eax, 0x620
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [0x45c800]
mov esi, dword [eax + 0x630]
add eax, 0x628
cmp esi, edi
jle 0x4166f0
mov ecx, dword [esi + 0x14]
push edi
push ecx
call ebx
mov eax, dword [esi + 8]
cmp eax, edi
je 0x41667b
push edi
push 0x3df
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsTcp.cpp
push eax
call sub.storm.dll_Ordinal_403
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x416693
push edi
push 0x3e0
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsTcp.cpp
push eax
call sub.storm.dll_Ordinal_403
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esi + 0x38]
call fcn.0041c4a0
lea ecx, [esi + 0x28]
call fcn.0041c470
mov ecx, esi
call fcn.0041d4c0
cmp dword [esi], edi
je 0x4166d2
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041d490
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov dword [esi], edi
mov dword [esi + 4], edi
push edi
push 0xffffffffffffffff
push 0x452480
push esi
call sub.storm.dll_Ordinal_403
mov ecx, dword [0x45c800]
call fcn.00416420
jmp 0x416644
mov eax, dword [0x45c800]
mov ecx, dword [eax + 0x620]
add eax, 0x620
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
pop ebx
pop edi
pop esi
ret
Function at 0x416730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov dword [ebp - 4], 0
jbe 0x41687b
lea ecx, [ecx]
mov ecx, esi
call fcn.00416410
mov eax, dword [esi + 0x618]
test eax, eax
mov eax, 0x415850
jne 0x41676b
mov eax, 0x415880
lea ecx, [ebp - 0x10]
push ecx
push 0
push esi
push eax
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [ebp - 0xc], eax
je 0x416887
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jbe 0x416857
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x4167d1
cmp edi, 0x40
mov ecx, edi
jae 0x4167c5
lea eax, [edi - 1]
and eax, edi
je 0x4167b9
nop
mov ecx, eax
lea eax, [ecx - 1]
and eax, ecx
jne 0x4167b0
cmp ecx, 1
jae 0x4167d1
mov ecx, 1
jmp 0x4167d1
mov dword [esi + 0x14], 0x40
mov ecx, 0x40
xor edx, edx
mov eax, edi
div ecx
test edx, edx
je 0x4167e1
sub ecx, edx
add ecx, edi
mov edi, ecx
mov eax, dword [esi + 0x10]
push 0x10
push 0xfffffffffffffffe
push str..PAX
lea ebx, [edi*4]
push ebx
push eax
mov dword [ebp - 8], eax
mov dword [esi + 8], edi
call sub.storm.dll_Ordinal_405
test eax, eax
mov dword [esi + 0x10], eax
jne 0x416857
push eax
push 0xfffffffffffffffe
push str..PAX
push ebx
call sub.storm.dll_Ordinal_401
mov ebx, dword [ebp - 8]
test ebx, ebx
mov dword [esi + 0x10], eax
je 0x416857
mov eax, dword [esi + 0xc]
cmp edi, eax
jb 0x416829
mov edi, eax
xor edx, edx
test edi, edi
jbe 0x416848
nop
mov eax, dword [esi + 0x10]
lea ecx, [edx*4]
add eax, ecx
je 0x416843
mov ecx, dword [ecx + ebx]
mov dword [eax], ecx
inc edx
cmp edx, edi
jb 0x416830
push 0
push 0xfffffffffffffffe
push str..PAX
push ebx
call sub.storm.dll_Ordinal_403
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
lea ecx, [edx + eax*4]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jb 0x416750
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00416420
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418900
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x11
push 2
push 2
mov dword [ebp - 0x14], ecx
call dword [sym.imp.wsock32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4189e9
mov eax, dword [0x45c420]
xor ecx, ecx
cmp eax, ecx
je 0x418955
push ecx
push ecx
lea edx, [ebp - 4]
push edx
push ecx
push ecx
push 4
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
push ecx
push 0x9800000c
push esi
call eax
cmp eax, 0xffffffff
jne 0x418955
call dword [sym.imp.wsock32.dll_WSAGetLastError]
lea edx, [ebp - 0xc]
push edx
push 0x8004667e
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.wsock32.dll_ioctlsocket]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x20
push 0xffff
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.wsock32.dll_setsockopt]
xor eax, eax
mov ecx, 8
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp di, word [ebp + 0x10]
ja 0x4189e9
mov ebx, dword [sym.imp.wsock32.dll_htons]
nop
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
push edi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x24], 2
call ebx
mov word [ebp - 0x22], ax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4189ca
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
jmp 0x4189d1
mov dword [ebp - 0x20], 0
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.wsock32.dll_bind]
test eax, eax
je 0x418a11
inc edi
cmp di, word [ebp + 0x10]
jbe 0x4189a0
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x418a5e
xor eax, eax
mov ecx, 8
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
test eax, eax
mov word [ebp - 0x24], 2
je 0x418a41
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
jmp 0x418a48
cmp di, word [ebp + 0x10]
ja 0x4189e9
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x34]
push ecx
push edx
push eax
push esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00416b80
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x10]
push ecx
push 0
push 0
push eax
push 3
lea ecx, [ebp - 0x34]
push ecx
push 0
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14