joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425130
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x425169
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00401d9e
add esp, 0x120
ret
push edi
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, [esp + 0x2c]
push eax
call sub.Storm.dll_Ordinal_501
mov dl, 0x5c
lea ecx, [esp + 0x24]
call sub.Storm.dll_Ordinal_570
cmp eax, ebx
je 0x4251a4
mov byte [eax], bl
cmp edi, ebx
je 0x425208
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x4251e8
pop edi
pop esi
xor edx, edx
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00401d9e
add esp, 0x120
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00401d9e
add esp, 0x120
ret
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x20]
mul dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push edx
push eax
call fcn.004519f0
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401d9e
add esp, 0x120
ret

Function at 0x4252d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push edi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x54
ret
Function at 0x425a00
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x18], eax
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
je 0x425a99
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
mov word [esp + 0x1e], ax
mov word [esp + 0x1c], 2
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x425aad
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00401d9e
add esp, 0x1c
ret
push 0xfa
push esi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jne 0x425a92
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401d9e
add esp, 0x1c
ret

Function at 0x425ad0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
xor eax, eax
test esi, esi
je 0x425b30
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x425b29
mov eax, 1
lea ecx, [eax + eax]
mov dword [edi], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret

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

Disassembly:
push 0x4700b8
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x425c74
mov ax, word [0x4700b8]
cmp al, 1
jb 0x425c74
jne 0x425be1
cmp ah, 1
jb 0x425c74
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 [0x4700b0], eax
je 0x425c1e
push str.AcceptEx
push eax
call esi
mov dword [0x4700a8], eax
mov eax, dword [0x4700b0]
push str.GetAcceptExSockaddrs
push eax
call esi
mov dword [0x4700a4], eax
cmp byte [0x4700b8], 2
jb 0x425c6a
push str.ws2_32.dll
call edi
test eax, eax
mov dword [0x4700ac], eax
je 0x425c6a
push str.WSASend
push eax
call esi
mov ecx, dword [0x4700ac]
push str.WSARecv
push ecx
mov dword [0x4700a0], eax
call esi
mov edx, dword [0x4700ac]
push str.WSAIoctl
push edx
mov dword [0x47009c], eax
call esi
mov dword [0x470098], eax
pop edi
mov eax, 1
pop esi
ret 4
xor eax, eax
ret 4
Function at 0x42629c
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x5e0
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x5dc], eax
cmp dword [esp + 0x5e8], 0
push esi
mov esi, ecx
jne 0x4262fb
lea eax, [esp + 0xc]
push eax
call fcn.00426010
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push 0x5b4
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WSOCK32.dll_recvfrom]
test eax, eax
jle 0x4262fb
cmp eax, 0xffffffff
je 0x4262fb
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00425ec0
mov ecx, dword [esp + 0x5e0]
pop esi
xor ecx, esp
call fcn.00401d9e
add esp, 0x5e0
ret 8

Function at 0x426590
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push edi
call edx
xor ecx, ecx
lea eax, [esi + 0x634]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov edi, dword [0x47009c]
cmp edi, ecx
mov edx, dword [esi + 0x74]
je 0x426612
push ebx
push ecx
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ebx, 0x5b4
sub ebx, edx
lea edx, [edx + esi + 0x78]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], edx
push 1
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], ebx
call edi
cmp eax, 0xffffffff
pop ebx
jne 0x42660c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42663c
pop edi
pop esi
add esp, 0x10
ret
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, 0x5b4
sub ecx, edx
push ecx
lea edx, [edx + esi + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42660c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42660c
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
pop edi
mov ecx, esi
pop esi
add esp, 0x10
jmp eax

Function at 0x4266a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x74]
mov eax, 0x5b4
sub eax, ecx
cmp eax, 0x5b4
jb 0x4266b9
mov eax, 0x5b4
push 0
push eax
lea eax, [ecx + esi + 0x78]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x4266ea
test eax, eax
mov edx, dword [esi]
mov ecx, esi
jne 0x4266de
mov eax, dword [edx + 0x24]
pop esi
jmp eax
push 1
push eax
mov eax, dword [edx + 0x20]
push 0
call eax
pop esi
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4266e8
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
pop esi
jmp eax
Function at 0x426b50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov ebp, edx
push edi
mov edi, dword [esp + 0x38]
mov dl, 0x3a
mov esi, ecx
call sub.Storm.dll_Ordinal_571
mov ebx, eax
test ebx, ebx
je 0x426ba2
sub eax, esi
add eax, 1
cmp eax, 0x20
jbe 0x426b86
mov eax, 0x20
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
call sub.Storm.dll_Ordinal_501
add ebx, 1
push ebx
lea esi, [esp + 0x14]
call sub.Storm.dll_Ordinal_575
movzx ebp, ax
push ebp
mov word [edi], 2
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [edi + 2], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, dword [esp + 0x30]
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401d9e
add esp, 0x24
ret 4

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

Disassembly:
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]
cmp dword [eax + 0x1c], 0
je 0x427af8
cmp dword [esi + 0x7c], 0xffffffff
jne 0x427b0e
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x7c], eax
je 0x427b0e
lea ecx, [esi + 8]
push ecx
lea edx, [esp + 0xc]
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 [0x4700a8]
test eax, eax
jne 0x427b0e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ecx
ret
mov eax, dword [esi + 0x7c]
cmp eax, 0xffffffff
je 0x427b0e
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
pop ecx
ret
Function at 0x427b20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
cmp dword [eax + 0x1c], 0
jne 0x427b5d
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
add esp, 0x10
ret 8
cmp dword [esp + 0x20], 0
push edi
mov edi, dword [esi + 0x7c]
je 0x427be1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x20
push 0x20
push 0
lea eax, [esi + 0x38]
push eax
call dword [0x4700a4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x78]
push 4
add edx, 4
push edx
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x427beb
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
or edi, 0xffffffff
mov ecx, esi
mov dword [esi + 0x7c], 0xffffffff
call fcn.00427a90
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x42af10
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x44]
push edi
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x42af38
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esi + 0x70]
xor edx, edx
mov edi, dword [esp + 0x14]
test eax, eax
setle dl
push ebx
mov ebx, dword [esp + 0x14]
push ebp
sub edx, 1
and eax, edx
xor edx, edx
test eax, eax
setne dl
mov ebp, edx
test ebp, ebp
jne 0x42af88
push edx
push edi
push ebx
push ecx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x42afab
cmp eax, edi
jl 0x42af84
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 8
add ebx, eax
sub edi, eax
push edi
push ebx
mov ecx, esi
call fcn.0042ad90
test ebp, ebp
jne 0x42afc1
test eax, eax
je 0x42afc1
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42af88
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 8
Function at 0x42bb50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x453047
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46304c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi], vtable.OsNet::TCPLISTEN.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [esp + 0x34]
movzx ecx, word [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], 1
lea eax, [esi + 0x24]
mov dword [eax + 4], ebx
mov dword [eax], eax
not eax
mov dword [esp + 0x20], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov byte [esp + 0x20], 1
jbe 0x42bc5f
mov dword [esp + 0x2c], eax
jmp 0x42bbe0
push ebx
push 0x5f1
push str..W32OsTcp.cpp
push 0x80
call sub.Storm.dll_Ordinal_401
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
cmp eax, ebx
mov byte [esp + 0x20], 2
je 0x42bc10
push esi
mov ecx, eax
call fcn.0042aab0
jmp 0x42bc12
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x20], 1
mov ecx, eax
jne 0x42bc20
lea ecx, [esi + 0x24]
mov ebp, dword [ecx]
cmp ebp, ebx
je 0x42bc47
mov edi, dword [ecx + 4]
cmp edi, ebx
jg 0x42bc31
not edi
jmp 0x42bc38
mov edx, ecx
sub edx, dword [ebp + 4]
add edi, edx
mov dword [edi], ebp
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
sub dword [esp + 0x2c], 1
mov edx, dword [esi + 0x24]
mov dword [ecx], edx
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov dword [edx + 4], eax
mov dword [esi + 0x24], ecx
jne 0x42bbe0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14

Function at 0x42c370
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x10]
mov esi, ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00428d20
mov dword [esi], vtable.OsNet::TCPCONN.0
xor ecx, ecx
mov dword [esi + 0x70], ecx
push 4
lea eax, [esi + 0x6c]
mov dword [eax], eax
lea edx, [esp + 0x1c]
push edx
not eax
push 8
mov dword [esi + 0x68], ecx
mov dword [esi + 0x70], eax
mov eax, dword [esi + 4]
push 0xffff
push eax
mov dword [esi + 0x74], ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov eax, esi
pop esi
ret 0x14
Function at 0x42c580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4530a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46304c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0042c370
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esi], vtable.OsNet::SLTCPCONN.0
je 0x42c5ef
mov eax, dword [esp + 0x34]
test eax, eax
je 0x42c5ef
push eax
push ecx
mov ecx, esi
call fcn.0042af10
mov ecx, esi
call fcn.00425e40
test eax, eax
push 1
jne 0x42c618
mov ecx, esi
call fcn.0042bf90
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c
mov ecx, dword [esi + 0x60]
push esi
call fcn.0042be80
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c
Function at 0x42d850
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
push edi
mov ebp, ecx
jne 0x42d929
lea eax, [ebp + 0x518]
mov dword [esp + 0x14], eax
add eax, 0x10
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x14]
call fcn.0042a3b0
mov edi, dword [esp + 0x18]
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x42d8e4
lea esp, [esp]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
test eax, eax
jne 0x42d8c5
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x20]
je 0x42d8de
lea ecx, [esp + 0x14]
call fcn.0042a3b0
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x20]
je 0x42d8e4
cmp edi, ebx
jne 0x42d8b0
jmp 0x42d8e4
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x24]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*8 + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x24], ebx
jne 0x42d929
mov ecx, esi
call fcn.0042a8f0
push ebx
push 0xffffffffffffffff
push 0x456b10
push esi
call sub.Storm.dll_Ordinal_403
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00401d9e
add esp, 0x1c
ret 4
push ebx
mov edi, 1
push edi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x42d9c4
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0x20]
push eax
mov word [esp + 0x18], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi + 0x1c]
push 0x10
lea edx, [esp + 0x18]
mov word [esp + 0x1a], ax
mov eax, dword [esi + 4]
push edx
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x42d9c4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42d9bf
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
jmp 0x42d9c4
mov edi, 2
lea edx, [edi + edi*2]
shl edx, 4
push esi
lea ecx, [edx + ebp + 0x558]
call fcn.00429b00
mov eax, dword [ebp + 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401d9e
add esp, 0x1c
ret 4
Function at 0x42df20
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x40
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
push 0x11
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x68]
push 2
push 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e053
mov eax, dword [0x470098]
xor ebp, ebp
cmp eax, ebp
je 0x42df97
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
push ebp
push ebp
push 4
lea ecx, [esp + 0x34]
push ecx
push 0x9800000c
push esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
call eax
cmp eax, 0xffffffff
jne 0x42df97
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea edx, [esp + 0x28]
push edx
push 0x8004667e
mov edi, 1
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push 4
lea eax, [esp + 0x24]
push eax
push 0x20
push 0xffff
push esi
mov dword [esp + 0x34], edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ax, word [esp + 0x58]
cmp ax, word [esp + 0x5c]
movzx edi, ax
ja 0x42e053
mov ebp, dword [sym.imp.WSOCK32.dll_htons]
xor eax, eax
mov dword [esp + 0x3c], eax
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x40], 2
call ebp
test ebx, ebx
mov word [esp + 0x3e], ax
je 0x42e02f
mov ecx, dword [ebx + 4]
mov dword [esp + 0x40], ecx
jmp 0x42e037
mov dword [esp + 0x40], 0
push 0x10
lea edx, [esp + 0x40]
push edx
push esi
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x42e095
add edi, 1
cmp di, word [esp + 0x5c]
jbe 0x42e001
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, eax
je 0x42e0f0
cmp ebx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov word [esp + 0x3c], 2
je 0x42e0d6
mov edx, dword [ebx + 4]
mov dword [esp + 0x40], edx
jmp 0x42e0da
cmp di, word [esp + 0x5c]
ja 0x42e053
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.0042d550
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00401d9e
add esp, 0x40
ret 0x14
mov dword [esp + 0x40], eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push eax
push edx
push 3
lea edx, [esp + 0x40]
push edx
push eax
call ecx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401d9e
add esp, 0x40
ret 0x14