joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410320
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4103dd
lea eax, [esp + 0x10]
push eax
push esi
xor bl, bl
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x410389
lea esp, [esp]
cmp edi, dword [esp + 0x18]
je 0x410387
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x410370
jmp 0x410389
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4103dd
mov edx, dword [esp + 0x28]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
push str.OpenProcess_id_d_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00445276
add esp, 0x138
ret
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00445276
add esp, 0x138
ret

Function at 0x410400
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
mov eax, dword [eax + 8]
push ebx
push ebp
add eax, 0x118
cmp dword [eax + 0x18], 0x10
push esi
push edi
jb 0x410432
mov eax, dword [eax + 4]
jmp 0x410435
add eax, 4
push 0
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, eax
test edi, edi
jne 0x410482
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindWindowEx_Code_d_n
push 2
call fcn.00411a20
mov ecx, eax
call fcn.00411cc0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00445276
add esp, 0x138
ret 4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov ebp, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x410465
lea ecx, [esp + 0x18]
push ecx
push esi
xor bl, bl
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4104e0
cmp ebp, dword [esp + 0x20]
je 0x4104de
lea edx, [esp + 0x18]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4104c7
jmp 0x4104e0
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x410465
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x30]
jne 0x410465
mov eax, edi
jmp 0x410467
Function at 0x4115b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4115f4
mov eax, dword [esi + 8]
test eax, eax
je 0x4115f4
mov ecx, dword [esp + 8]
push edi
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.004466bc
mov edx, dword [esi + 8]
push edx
mov edi, eax
call fcn.00447461
add esp, 0x14
test eax, eax
je 0x4115ed
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x411600
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x411644
mov eax, dword [esi + 8]
test eax, eax
je 0x411644
mov ecx, dword [esp + 8]
push edi
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
push ecx
call fcn.00446856
mov edx, dword [esi + 8]
push edx
mov edi, eax
call fcn.00447461
add esp, 0x14
test eax, eax
je 0x41163d
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x411c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push edi
lea eax, [esp + 0xc]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
movzx eax, word [esp + 0x18]
push ecx
push edx
push eax
push str.__d__d__d__d:_d:_d_6_
lea ecx, [esp + 0x38]
push 0x20
push ecx
call fcn.00445b8d
add esp, 0x24
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x1c]
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411c67
mov edx, dword [esi + 0x24]
push edx
sub eax, ebp
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00446856
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x54]
push ecx
push edx
push 1
push ebx
call fcn.00446856
mov ebx, eax
mov eax, dword [esi + 0x24]
push eax
call fcn.0044848b
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00445276
add esp, 0x34
ret 4

Function at 0x411fc0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x47a1b8], 0xffffffff
jne 0x411ff1
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ecx, ecx
cmp dword [esp + 0x14], 1
sete cl
mov dword [0x47a1b8], ecx
push 0
push 0
push 0
push 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x10
mov dword [esi], eax
call fcn.0042a2c4
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
add esp, 4
cmp dword [0x47a1b8], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jne 0x412046
mov edx, dword [esi + 8]
push 0xfa0
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00445276
add esp, 0x28
ret
Function at 0x412090
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 8], 0xffffffff
je 0x4120cf
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4120cf
push 0x3f
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x4120d3
mov eax, dword [esi + 0xc]
test eax, eax
mov byte [esi + 4], 1
je 0x4120cf
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
xor al, al
pop ecx
ret
lea ecx, [esp]
push ecx
push 0
push esi
push 0x412290
push 0
push 0
mov byte [esi + 4], 0
call fcn.004487a7
add esp, 0x18
test eax, eax
mov dword [esi + 0x10], eax
je 0x4120b6
mov al, 1
pop ecx
ret

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

Disassembly:
sub esp, 0x18
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
push esi
mov dword [esp + 4], eax
push ecx
mov esi, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 8]
push 0x10
lea ecx, [esp + 8]
push ecx
push 0
push edx
push edi
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.00445276
add esp, 0x18
ret 8

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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
push esi
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x10]
push edx
push 0
push 0x5dc
push ecx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x4121e2
test edi, edi
je 0x4121ce
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4121c0
test ebx, ebx
je 0x4121e0
mov ecx, dword [esp + 0xe]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebx], ax
mov eax, esi
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00445276
add esp, 0x1c
ret 4

Function at 0x412370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
test esi, esi
mov eax, 0xff
jle 0x41239d
jmp 0x412380
movzx edx, byte [ecx + edi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4799a0]
add ecx, 1
cmp ecx, esi
jl 0x412380
ret

Function at 0x412420
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
mov ecx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00412460
mov eax, esi
ret 8
Function at 0x412fe0
Capabilities:
Connect socket

Disassembly:
mov al, byte [esi + 0x18]
cmp al, 1
je 0x413017
cmp al, 8
je 0x413017
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov byte [esi + 0x18], 5
je 0x413013
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41301a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41301a
mov byte [esi + 0x18], 7
xor al, al
ret
mov byte [esi + 0x18], 6
mov al, 1
ret

Function at 0x413030
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41307a
push ebx
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
je 0x413060
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x413071
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], ebx
mov byte [esi + 0x20], bl
mov byte [esi + 0x18], 8
pop ebx
ret
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
ret

Function at 0x413300
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
lea esi, [ebp + 0x7c]
mov ebx, 1
push edi
mov byte [esi + 0x18], bl
call fcn.00413030
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x413346
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], bl
je 0x413346
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
push 6
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x4133f2
mov byte [esi + 0x18], 2
mov eax, dword [ebp + 0x84]
cmp eax, 0xffffffff
mov ebx, 0x1388
mov dword [esp + 0x14], ebx
je 0x4133ed
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x1006
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
setne al
test al, al
je 0x4133ed
mov eax, dword [ebp + 0x84]
cmp eax, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x4133ed
push 4
lea edx, [esp + 0x18]
push edx
push 0x1005
push 0xffff
push eax
call edi
cmp eax, 0xffffffff
setne al
test al, al
je 0x4133ed
cmp dword [ebp + 0x24], 0x10
jb 0x4133d1
mov ebx, dword [ebp + 0x10]
jmp 0x4133d4
lea ebx, [ebp + 0x10]
movzx eax, word [ebp + 2]
push eax
mov ecx, esi
call fcn.00416a90
test al, al
je 0x4133ed
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
call fcn.00413030
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x413400
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x460968
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push 4
mov esi, ecx
xor ebx, ebx
push str.GET
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00401d40
mov dword [esp + 0x34], ebx
push esi
lea ebx, [esp + 0x10]
call fcn.004138b0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, ebx
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00413b00
push 2
push 0x46b8f4
mov eax, ebx
call fcn.00404450
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x413498
lea eax, [esp + 0x10]
mov esi, dword [esi + 0x84]
cmp esi, 0xffffffff
jne 0x4134a7
or esi, esi
jmp 0x4134b8
mov ecx, dword [esp + 0x20]
push 0
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp dword [esp + 0x24], 0x10
jb 0x4134cc
mov edx, dword [esp + 0x10]
push edx
call fcn.0042a2ef
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00445276
add esp, 0x2c
ret 0xc

Function at 0x414516
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, ecx
jne 0x414522
or eax, 0xffffffff
pop esi
ret 8
cmp byte [esp + 0xc], 0
mov dword [esi + 0x18], eax
je 0x41457e
push edi
mov dword [eax + 8], 1
mov eax, dword [esi + 0x128]
lea edi, [esi + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push 0
push esi
push 0x4145d0
push 0
push 0
call fcn.004487a7
add esp, 0x18
test eax, eax
mov dword [edi + 4], eax
pop edi
jne 0x414583
mov ecx, dword [esi + 0x18]
or eax, 0xffffffff
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x18]
mov dword [edx + 8], eax
mov dword [esi + 0x18], 0
pop esi
ret 8
call fcn.004145e0
xor eax, eax
pop esi
ret 8
Function at 0x416a90
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x25], 0
jne 0x416b55
push ebp
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x416aea
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x416b25
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov al, byte [edi + 0x18]
cmp al, 1
je 0x416b25
cmp al, 8
je 0x416b25
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
mov byte [edi + 0x18], 5
je 0x416b21
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x416b3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x416b3b
mov byte [edi + 0x18], 7
xor al, al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00445276
add esp, 0x14
ret 4
mov byte [edi + 0x18], 6
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00445276
add esp, 0x14
ret 4
cmp dword [edi + 0x44], 0x10
jb 0x416b60
mov eax, dword [edi + 0x30]
jmp 0x416b63
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx edx, word [edi + 0x28]
push edx
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov al, byte [edi + 0x18]
cmp al, 1
je 0x416b25
cmp al, 8
je 0x416b25
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
mov byte [edi + 0x18], 5
je 0x416b21
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x416bc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x416b21
mov al, byte [edi + 0x26]
cmp al, 5
mov byte [edi + 0x18], 6
jne 0x416bf9
mov esi, edi
call fcn.00417090
test al, al
je 0x416b25
push ebp
mov ecx, ebx
call fcn.00416c60
mov byte [edi + 0x24], al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00445276
add esp, 0x14
ret 4
cmp al, 3
jne 0x416c1d
push ebp
push edi
mov esi, ebx
call fcn.00416f60
mov byte [edi + 0x24], al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00445276
add esp, 0x14
ret 4
cmp al, 4
jne 0x416b25
push ebp
push ebx
mov ecx, edi
call fcn.00416e40
mov ecx, dword [esp + 0x1c]
mov byte [edi + 0x24], al
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00445276
add esp, 0x14
ret 4
Function at 0x416c60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, ecx
push esi
mov byte [esp + 4], 5
mov byte [esp + 5], 1
mov byte [esp + 6], 0
mov byte [esp + 7], 3
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x416c90
sub eax, esi
mov byte [esp + 8], al
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x416ca4
sub eax, esi
push eax
push ecx
lea eax, [esp + 0x11]
push eax
call fcn.0044e1a0
movzx esi, byte [esp + 0x14]
mov ecx, dword [esp + 0x218]
add esp, 0xc
push ecx
add esi, 5
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + esi + 4], ax
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x416d06
push 0
add esi, 2
push esi
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x416d06
add dword [edi + 0x80], 0x1a00
jmp 0x416e19
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x416d25
push 0
push 0x200
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x416d34
add dword [edi + 0x80], 0x1b00
jmp 0x416e19
cmp eax, 0xa
jge 0x416d48
mov dword [edi + 0x80], 0xf00
jmp 0x416e19
cmp byte [esp + 4], 5
jne 0x416e0f
cmp byte [esp + 6], 0
jne 0x416e0f
mov al, byte [esp + 5]
test al, al
jne 0x416d80
mov al, 1
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00445276
add esp, 0x204
ret 4
cmp al, 1
jne 0x416d93
mov dword [edi + 0x80], 0x1100
jmp 0x416e19
cmp al, 2
jne 0x416da3
mov dword [edi + 0x80], 0x1200
jmp 0x416e19
cmp al, 3
jne 0x416db3
mov dword [edi + 0x80], 0x1300
jmp 0x416e19
cmp al, 4
jne 0x416dc3
mov dword [edi + 0x80], 0x1400
jmp 0x416e19
cmp al, 5
jne 0x416dd3
mov dword [edi + 0x80], 0x1500
jmp 0x416e19
cmp al, 6
jne 0x416de3
mov dword [edi + 0x80], 0x1600
jmp 0x416e19
cmp al, 7
jne 0x416df3
mov dword [edi + 0x80], 0x1700
jmp 0x416e19
cmp al, 8
jne 0x416e03
mov dword [edi + 0x80], 0x1800
jmp 0x416e19
mov dword [edi + 0x80], 0x1900
jmp 0x416e19
mov dword [edi + 0x80], 0x1000
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
xor al, al
call fcn.00445276
add esp, 0x204
ret 4
Function at 0x416e40
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x416e91
mov dword [esi + 0x80], 2
xor al, al
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.00445276
add esp, 0x104
ret 8
cmp word [edi + 8], 2
je 0x416ea4
mov dword [esi + 0x80], 3
jmp 0x416e76
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x60], 0x10
movzx eax, ax
mov byte [esp + 8], 4
mov byte [esp + 9], 1
mov word [esp + 0xa], ax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edi, dword [esi + 0x5c]
mov dword [esp + 0xc], eax
jb 0x416edd
mov eax, dword [esi + 0x4c]
jmp 0x416ee0
lea eax, [esi + 0x4c]
push edi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0044e1a0
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, 0xffffffff
mov byte [esp + edi + 0x10], 0
je 0x416f16
push 0
add edi, 9
push edi
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x416e76
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x416e76
push 0
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 8
jne 0x416e76
cmp byte [esp + 8], 0
jne 0x416e76
mov al, byte [esp + 9]
cmp al, 0x5a
jne 0x416e76
mov al, 1
jmp 0x416e78
Function at 0x416f60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push edi
push eax
mov byte [esp + 0x10], 4
mov byte [esp + 0x11], 1
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 0x5c]
xor ebx, ebx
cmp dword [ebp + 0x60], 0x10
mov word [esp + 0xe], ax
mov byte [esp + 0x12], bl
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x13], 1
jb 0x416fbc
mov eax, dword [ebp + 0x4c]
jmp 0x416fbf
lea eax, [ebp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044e1a0
mov eax, esi
add esp, 0xc
mov byte [esp + edi + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416fd7
sub eax, edx
push eax
lea edx, [esp + edi + 0x19]
push esi
push edx
call fcn.0044e1a0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416ff6
sub eax, edx
add eax, edi
mov byte [esp + eax + 0x15], bl
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417010
mov ecx, dword [ebp + 8]
sub eax, edx
cmp ecx, 0xffffffff
je 0x417039
push ebx
lea edx, [eax + edi + 0xa]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x41706a
mov ebp, dword [ebp + 8]
cmp ebp, 0xffffffff
je 0x41706a
push ebx
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 8
jne 0x41706a
cmp byte [esp + 0xc], bl
jne 0x41706a
mov al, byte [esp + 0xd]
cmp al, 0x5a
jne 0x41706a
mov al, 1
jmp 0x41706c
xor al, al
mov ecx, dword [esp + 0x10c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00445276
add esp, 0x104
ret 8
Function at 0x417340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45fca3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
push edi
call fcn.00412cf0
mov dword [esp + 0x14], 0
lea esi, [edi + 0x30]
mov dword [edi], vtable.CUdpCommandAction.0
call fcn.00411fc0
push 0x417ad0
push 0x417ab0
push 0xa
push 0xc
lea eax, [edi + 0x40]
push eax
mov byte [esp + 0x28], 1
call fcn.00448b68
mov dword [edi + 0x3c], 0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4173c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45fca3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CUdpCommandAction.0
push 0x417ad0
push 0xa
push 0xc
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0x24], 1
call fcn.00448b05
mov ecx, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
cmp dword [esi + 0x34], 0
jne 0x417426
mov edx, dword [esi + 0x38]
push edx
call fcn.0042a2ef
add esp, 4
jmp 0x417436
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x34]
push ecx
call edi
mov eax, esi
call fcn.00412d70
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4