joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574108
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5bafe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x240], ebx
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x21c], eax
mov word [esi], cx
mov dword [ebp - 4], ebx
mov eax, dword [0x5c4088]
mov dword [ebp - 0x240], 1
cmp eax, 6
ja 0x4d6cb3
jne 0x4d6e30
push str.Shell32.dll
call fcn.004d7270
mov edx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
push edx
push edi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x234], edi
call fcn.004d70b0
push edi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.00406d90
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, ebx
jne 0x4d6d31
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], str.Shell32.dll_utility.cpp343_
call fcn.0052b87d
push 0x5a8cd0
lea edx, [ebp - 0x22c]
push edx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.00532abb
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4d6d78
mov dword [ebp - 0x21c], str.Internal_error_KFP1_utility.cpp349_
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0052b87d
push 0x5a8cd0
lea ecx, [ebp - 0x22c]
push ecx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.00532abb
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
push edx
push ebx
push ebx
push ecx
mov dword [ebp - 0x220], ebx
call eax
test eax, eax
js 0x4d6df9
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4d6df9
mov edx, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edx
push eax
lea ecx, [ebp - 0x238]
mov edi, eax
mov dword [ebp - 0x23c], eax
call fcn.004d7140
push edi
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.00406d90
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 2
call fcn.004d6e80
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00403020
lea eax, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00403020
jmp 0x4d6e62
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], str.Internal_error_KFP2_utility.cpp354_
call fcn.0052b87d
push 0x5a8cd0
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.00532abb
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4d6e57
mov dword [ebp - 0x21c], str.Internal_error_GFP1_utility.cpp365_
jmp 0x4d6d4b
lea edx, [ebp - 0x218]
call fcn.004d6ed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b755
mov esp, ebp
pop ebp
ret
Function at 0x4d8cd7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5c2764], 0
push esi
push edi
jne 0x4d8c4d
call fcn.004d8bb9
test eax, eax
je 0x4d8c92
mov eax, dword [0x5c2764]
cmp eax, 1
jne 0x4d8c6e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4d8c92
jmp 0x4d8cd4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4d8cd4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4d8c96
xor eax, eax
jmp 0x4d8cd4
mov eax, dword [esi]
push dword [0x5c2764]
call edi
mov edi, eax
test edi, edi
je 0x4d8cb8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4d8cd4
lea edi, [esi + 0xff0]
push esi
push dword [0x5c2764]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4d8cbe
mov eax, esi
pop edi
pop esi
ret
jmp 0x4d8c39

Function at 0x4d8e00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5bafe0]
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 0x4d8e55
mov eax, dword [esp]
cmp al, 2
jne 0x4d8e4f
shr eax, 8
cmp al, 2
jne 0x4d8e4f
call fcn.004d9180
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0052b755
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.0052b755
add esp, 0x194
ret
Function at 0x4e3e80
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 0x4e3eb2
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 0x4e3ff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x5bafe0]
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 + 0x2e0], 0
push edi
je case.default.0x4e4050
test eax, eax
je case.default.0x4e4050
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x4e4050
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4e4050
jmp dword [edx*4 + 0x4e416c]
mov ecx, str.Header
mov edx, str.from
jmp 0x4e406d
mov ecx, str.Header
mov edx, 0x599c20
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.004e8550
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e4090
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4e40e5
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4e4150
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4e4113
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4e4150
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x57d5e0
call fcn.0052e4f9
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0052e4f9
add esp, 0x20
jmp case.default.0x4e4050
test ebx, ebx
js 0x4e414e
cmp ebx, 2
jg 0x4e414e
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x57d5e0]
push 2
push ecx
call fcn.0052e4f9
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.0052e4f9
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052b755
add esp, 0xa4
ret
Function at 0x4e4210
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x5cc]
push 0x4000
push ebx
call fcn.004e84f0
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x4e4270
cmp dword [esi + 0x85f8], 0
jne 0x4e4270
push ebx
push 0x597a20
push pe_nt_image_headers32
push eax
call fcn.004e8550
add esp, 0x10
mov dword [esi + 0x85f8], 1
cmp dword [esi + 0x32c], 0
je 0x4e42f7
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e4280
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x4e42a4
mov byte [esi + edi + 0x5cc], 0xa
inc edi
mov byte [esi + edi + 0x5cc], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4e42ce
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.0052b755
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x57d5e0
call fcn.0052e4f9
mov ecx, dword [esi + 0x130]
push ecx
push 1
push edi
push ebx
call fcn.0052e4f9
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.0052b755
pop ecx
ret
Function at 0x4e4310
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.004e9000
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4e436d
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0052b755
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e4370
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x158]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x174]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x4e43d6
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x4e44b9
cmp eax, 0x51
jne 0x4e44b3
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x32c], ecx
je 0x4e446e
cmp dword [esi + 0x2e0], ecx
je 0x4e444f
mov eax, dword [ebx + 0x9c]
cmp eax, ecx
je 0x4e444f
push eax
push 0x599c20
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.004e8550
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e4421
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4e4485
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4e446e
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4e446e
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x4e44c1
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x4e4380
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x57d5e0
call fcn.0052e4f9
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.0052e4f9
add esp, 0x20
jmp 0x4e444f
mov dword [esp + 0x14], eax
jmp 0x4e44c1
mov dword [esp + 0x14], 0x37
push edi
call dword [0x5ba020]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b755
add esp, 0xb8
ret
Function at 0x4e44f0
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
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4e456d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4e4544
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004e9aa0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004e4210
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85fc], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e6210
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x464], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4e6264
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004e4180
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0052b755
add esp, 0x18
ret
mov edx, dword [esi + 0x468]
push edx
mov dword [esp + 0xc], 1
call fcn.004e7700
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x46c]
push eax
call fcn.004e7700
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4e62dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004e4180
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0052b755
add esp, 0x18
ret
Function at 0x4e6990
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x4e6af5
cmp dword [ebp + 0x250], 0
push ebx
push esi
jne 0x4e6aea
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4e6a19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004e9aa0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004e4210
add esp, 0x18
jmp 0x4e6af3
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4e6a59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004e9aa0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004e4210
add esp, 0x18
jmp 0x4e6af3
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x18]
call fcn.004e6920
test eax, eax
jne 0x4e6a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004e9aa0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004e4210
add esp, 0x18
jmp 0x4e6af3
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x98]
call fcn.004e6920
test eax, eax
jne 0x4e6aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004e9aa0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004e4210
add esp, 0x18
jmp 0x4e6af3
push ebp
call fcn.004e68c0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.0052b755
add esp, 0x10c
ret

Function at 0x4e6b10
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x35c]
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
jns 0x4e6b53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004e9aa0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004e4180
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004e4180
add esp, 8
pop esi
pop ecx
ret
Function at 0x4e6b70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x5c27d8]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4e6c13
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00530110
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x1c], 0x9c
mov dword [esp + 0x20], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4e6c07
mov dword [0x5c27d8], 2
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0052b755
add esp, 0xac
ret
mov dword [0x5c27d8], 1
jmp 0x4e6c18
cmp eax, 2
je 0x4e6c62
push esi
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4e6c49
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x4e6c61
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0052b755
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5c0]
test esi, esi
je 0x4e6ced
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4e6ced
push 0x4e6c80
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x34]
push ecx
push edx
call fcn.00503620
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x4e6cf6
mov dword [edi + 0x5c0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e6d00
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x4e6d25
push esi
call fcn.004da9e0
add esp, 4
test eax, eax
jne 0x4e6d39
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4e6ced
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4e77a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x4e7951
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x4e792f
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4e77fd
lea ebx, [eax + 0xe]
jmp 0x4e7809
cmp eax, 0x17
jne 0x4e78a8
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x4e78a8
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x4e78a8
cmp eax, ebx
jb 0x4e78a8
push 0x20
call dword [0x5ba01c]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4e78b5
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]
push ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x5ba01c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x4e78bf
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call fcn.00530190
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x4e788f
push eax
call dword [0x5ba028]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x4e78d3
cmp dword [esp + 0x10], ebp
jne 0x4e7899
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4e78a4
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x4e77f0
jmp 0x4e78ef
mov dword [esp + 0x14], 8
jmp 0x4e78ef
push esi
mov dword [esp + 0x18], 8
call dword [0x5ba020]
add esp, 4
jmp 0x4e78ef
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x5ba020]
push esi
call dword [0x5ba020]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x4e7900
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x4e7929
mov eax, dword [esp + 8]
push eax
call fcn.004e7750
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x4e7942
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x4e90b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00531ae6
add esp, 0x18
test eax, eax
je 0x4e90d3
cmp eax, 0xffffffff
jne 0x4e90d5
xor eax, eax
ret

Function at 0x4ea260
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
jne 0x4ea272
jmp fcn.004ea200
mov eax, 1
ret
Function at 0x4ea590
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4ea59f
jmp dword [ecx*4 + 0x4ea5f4]
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 0x4ea660
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
je 0x4ea77f
mov al, byte [esi]
test al, al
je 0x4ea77f
movsx edx, cl
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x4ea689
jmp dword [edx*4 + 0x4ea7a4]
mov cl, 0x41
jmp case.default.0x4ea689
mov cl, 0x42
jmp case.default.0x4ea689
mov cl, 0x43
jmp case.default.0x4ea689
mov cl, 0x44
jmp case.default.0x4ea689
mov cl, 0x45
jmp case.default.0x4ea689
mov cl, 0x46
jmp case.default.0x4ea689
mov cl, 0x47
jmp case.default.0x4ea689
mov cl, 0x48
jmp case.default.0x4ea689
mov cl, 0x49
jmp case.default.0x4ea689
mov cl, 0x4a
jmp case.default.0x4ea689
mov cl, 0x4b
jmp case.default.0x4ea689
mov cl, 0x4c
jmp case.default.0x4ea689
mov cl, 0x4d
jmp case.default.0x4ea689
mov cl, 0x4e
jmp case.default.0x4ea689
mov cl, 0x4f
jmp case.default.0x4ea689
mov cl, 0x50
jmp case.default.0x4ea689
mov cl, 0x51
jmp case.default.0x4ea689
mov cl, 0x52
jmp case.default.0x4ea689
mov cl, 0x53
jmp case.default.0x4ea689
mov cl, 0x54
jmp case.default.0x4ea689
mov cl, 0x55
jmp case.default.0x4ea689
mov cl, 0x56
jmp case.default.0x4ea689
mov cl, 0x57
jmp case.default.0x4ea689
mov cl, 0x58
jmp case.default.0x4ea689
mov cl, 0x59
jmp case.default.0x4ea689
mov cl, 0x5a
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x4ea701
jmp dword [edx*4 + 0x4ea80c]
mov al, 0x41
jmp case.default.0x4ea701
mov al, 0x42
jmp case.default.0x4ea701
mov al, 0x43
jmp case.default.0x4ea701
mov al, 0x44
jmp case.default.0x4ea701
mov al, 0x45
jmp case.default.0x4ea701
mov al, 0x46
jmp case.default.0x4ea701
mov al, 0x47
jmp case.default.0x4ea701
mov al, 0x48
jmp case.default.0x4ea701
mov al, 0x49
jmp case.default.0x4ea701
mov al, 0x4a
jmp case.default.0x4ea701
mov al, 0x4b
jmp case.default.0x4ea701
mov al, 0x4c
jmp case.default.0x4ea701
mov al, 0x4d
jmp case.default.0x4ea701
mov al, 0x4e
jmp case.default.0x4ea701
mov al, 0x4f
jmp case.default.0x4ea701
mov al, 0x50
jmp case.default.0x4ea701
mov al, 0x51
jmp case.default.0x4ea701
mov al, 0x52
jmp case.default.0x4ea701
mov al, 0x53
jmp case.default.0x4ea701
mov al, 0x54
jmp case.default.0x4ea701
mov al, 0x55
jmp case.default.0x4ea701
mov al, 0x56
jmp case.default.0x4ea701
mov al, 0x57
jmp case.default.0x4ea701
mov al, 0x58
jmp case.default.0x4ea701
mov al, 0x59
jmp case.default.0x4ea701
mov al, 0x5a
cmp cl, al
jne 0x4ea77f
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x4ea674
movzx eax, byte [edi]
push eax
call fcn.004ea590
mov dl, al
movzx eax, byte [esi]
push eax
call fcn.004ea590
add esp, 8
xor ecx, ecx
cmp dl, al
sete cl
pop edi
pop esi
mov eax, ecx
ret