joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4424a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jge 0x4424cf
xor eax, eax
jmp 0x4425be
cmp dword [ebp + 8], 0
jle 0x4424fd
mov eax, dword [ebp - 8]
add eax, 0x67b3c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x67728], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x67728]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00442810
jmp 0x4425b1
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588eb0
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00588eb0
add esp, 0xc
lea eax, [ebp - 0x2008]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x180
call fcn.004311a0
movzx edx, al
test edx, edx
je 0x44258e
push 0
push 0x623ee4
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 8]
call fcn.00451da8
push 1
push 0
push 0
lea eax, [ebp - 0x2008]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x4425be
mov eax, dword [ebp - 8]
add eax, 0x67730
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x67728], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x67728]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00442810
mov ecx, dword [ebp - 8]
call fcn.004423d0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 4
Function at 0x44da80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aee0b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x6aae20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 1
mov ecx, dword [ebp + 8]
call fcn.00459a12
push 0x918272
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
call eax
lea ecx, [ebp - 0x18]
call fcn.0044b9d0
mov dword [ebp - 4], 0
push 0x6482e8
push 0x20
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x12
lea ecx, [ebp - 0x18]
call fcn.0044ba70
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
call eax
lea ecx, [ebp - 0x1c]
call fcn.0043dea0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0045ce91
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043b440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00429ed0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x7c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x78], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, byte [ebp + 0x1c]
push ecx
movzx edx, byte [ebp + 0x18]
push edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x80]
mov dword [eax], ecx
mov edx, dword [ebp - 0x7c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x74]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0044e0f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, 0xa
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0x8020
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x44dbf8
mov eax, dword [ebp - 0x30]
or eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043b4a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429ef0
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x68]
call edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00429ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044ba40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44f890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x44f8b7
push 0x649018
mov eax, dword [ebp - 4]
push eax
call fcn.0044fae0
add esp, 8
xor eax, eax
jmp 0x44f935
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44f8e7
push 0x649008
mov eax, dword [ebp - 4]
push eax
call fcn.0044fae0
add esp, 8
xor eax, eax
jmp 0x44f935
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x44f928
push 0x648ff4
mov eax, dword [ebp - 4]
push eax
call fcn.0044fae0
add esp, 8
xor eax, eax
jmp 0x44f935
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45052d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x450551
cmp dword [edi + 0x54], 0
jne 0x450551
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004591c1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004504ee
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x455df8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x455e3f
call fcn.004591c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x455e3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x455e5b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00455972
mov esi, eax
test edi, edi
je 0x455e59
test ebx, ebx
je 0x455e59
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x456d02
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5af27b
call fcn.0058d7ef
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x456d27
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x456d6d
lea ecx, [ebp - 0x10]
call fcn.0043dea0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004564f2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0041e9b0
mov eax, esi
call fcn.0058d8c7
ret 8

Function at 0x45be96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x45bede
call fcn.004591c1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45bede
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x45bf21
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x45bf0a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x45bf0a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45bf1e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46d280
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46d2d2
mov eax, dword [esp]
cmp al, 2
jne 0x46d2cc
shr eax, 8
cmp al, 2
jne 0x46d2cc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005884bd
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005884bd
add esp, 0x194
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x477032
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x477180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x290], 0
push edi
je case.default.0x4771e0
test eax, eax
je case.default.0x4771e0
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x4771e0
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4771e0
jmp dword [edx*4 + 0x4772fc]
mov ecx, str.Header
mov edx, str.from
jmp 0x4771fd
mov ecx, str.Header
mov edx, 0x64cce0
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.0047c8d0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477220
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x477275
mov ecx, dword [esi + 0xfc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4772e0
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4772a3
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4772e0
mov eax, dword [esi + 0xf8]
push eax
push 1
push 2
push 0x64ccbc
call fcn.0058fae0
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0058fae0
add esp, 0x20
jmp case.default.0x4771e0
test ebx, ebx
jl 0x4772de
cmp ebx, 2
jg 0x4772de
mov eax, dword [esi + 0xf8]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x64ccbc]
push 2
push ecx
call fcn.0058fae0
mov edx, dword [esi + 0xf8]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.0058fae0
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005884bd
add esp, 0xa4
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x47759f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47757f
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.004923d0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004773a0
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x477cc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x154], 0
mov ebx, dword [ebp]
jne 0x477dd1
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x477d2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004923d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x477dc6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x477d63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004923d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x477dc6
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.00477c70
test eax, eax
jne 0x477d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004923d0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x477dc6
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x94]
call fcn.00477c70
test eax, eax
jne 0x477dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004923d0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004773a0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.005884bd
add esp, 0x108
ret

Function at 0x477df0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x477e33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004923d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00477310
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00477310
add esp, 8
pop esi
pop ecx
ret

Function at 0x477e50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x477e99
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x477eb1
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x478320
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x518]
cmp eax, 0xffffffff
je 0x478391
mov ecx, dword [ecx + 0x50c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x478391
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x47834c
mov dword [ecx], eax
mov ecx, dword [eax + 0xc8]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp dword [eax + 0xe0], 0
je 0x478379
push eax
call fcn.0046dc10
add esp, 4
test eax, eax
jne 0x478375
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov eax, dword [eax + 0xc8]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x47836b
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret

Function at 0x4783a0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4783af
jmp dword [ecx*4 + 0x478404]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x47d530
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x47d684
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x47d679
push esi
push 0x20
call dword [0x69b868]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47d617
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x47d5df
cmp dword [edi + 0x18], ebx
je 0x47d5df
push eax
mov dword [esi + 0x10], eax
call dword [0x69b868]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x47d621
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.0058c7e0
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x47d5f7
push eax
call dword [0x69b874]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x47d62b
cmp dword [esp + 0x14], ebx
jne 0x47d601
mov dword [esp + 0x14], esi
cmp ebp, ebx
je 0x47d608
mov dword [ebp + 0x1c], esi
mov edi, dword [edi + 0x1c]
mov ebp, esi
cmp edi, ebx
jne 0x47d577
jmp 0x47d64e
mov dword [esp + 0x10], 8
jmp 0x47d64e
mov dword [esp + 0x10], 8
jmp 0x47d644
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], 8
cmp eax, ebx
je 0x47d644
push eax
call dword [0x69b86c]
add esp, 4
push esi
call dword [0x69b86c]
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x47d65e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebx
je 0x47d675
mov eax, dword [esp + 0x10]
push eax
call fcn.0047d4e0
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x47d870
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov esi, eax
mov ebx, ecx
call dword [0x69b878]
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [ebx + 0x350], edi
cmp edi, eax
je 0x47d92f
mov dword [ebx + 0x340], esi
mov dword [ebx + 0x348], eax
mov dword [ebx + 0x34c], eax
mov dword [ebx + 0x344], eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push esi
lea ebp, [edi + 0x10]
push eax
mov esi, ebp
mov dword [edi + 4], 0xffffffff
call fcn.0047d6e0
add esp, 8
test eax, eax
je 0x47d92f
mov ecx, dword [ebx + 0x33c]
push ecx
call fcn.0046e1a0
mov edx, dword [esp + 0x1c]
push edx
call dword [0x69b874]
add esp, 8
mov dword [ebx + 0x33c], eax
test eax, eax
je 0x47d92f
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x47d92f
push ebp
push 0x47d780
call fcn.004a64f0
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x47d951
call fcn.0058da75
mov eax, dword [eax]
mov dword [esp + 0x10], eax
add ebx, 0x33c
push ebx
call fcn.0047d810
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4821b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x64cc28
push ecx
call fcn.00477310
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00481380
test eax, eax
jne 0x4821e0
mov eax, esi
jmp fcn.004817b0
ret
Function at 0x482600
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x360]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x482689
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0058c7e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x4826c4
push str.Received_too_short_packet
push edi
call fcn.004773a0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005884bd
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx ax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4826ea
jmp dword [eax*4 + 0x482804]
cmp ecx, 4
jle case.0x4826ea.4
mov eax, dword [esi + 0x15c]
movzx dx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x4826ea.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.00477670
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x482756
mov ecx, 5
mov eax, esi
call fcn.00482580
mov eax, ebx
jmp 0x4826ab
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
mov eax, dword [edi + 0x38]
adc dword [edi + 0x3c], edx
mov edx, dword [edi + 0x3c]
push edx
push eax
push edi
call fcn.0047b8f0
jmp 0x4827d8
mov eax, dword [esi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x64cc28
push edi
mov dword [esi + 8], edx
call fcn.00477310
jmp 0x4827d8
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.00481560
add esp, 0xc
test eax, eax
je case.0x4826ea.4
jmp 0x4826ab
push str.Internal_error:_Unexpected_packet
push 0x648304
push edi
call fcn.004773a0
add esp, 0xc
push ebp
call fcn.0047b9b0
add esp, 4
test eax, eax
je 0x4826a9
mov ecx, 5
mov eax, esi
call fcn.00482580
mov eax, 0x2a
jmp 0x4826ab
Function at 0x4844c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0xc8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x484504
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004773a0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004843c0
add esp, 4
pop esi
pop ecx
ret