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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ecb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x582654]
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 edi, ecx
cmp byte [0x6e0b15], 1
je 0x4e63a5
push 0x104
lea ebx, [edi + 0x474]
push 0
push ebx
call fcn.004d9af0
push 0x104
lea esi, [edi + 0x578]
push 0
push esi
call fcn.004d9af0
push 0x104
lea eax, [edi + 0x67c]
push 0
push eax
call fcn.004d9af0
add esp, 0x24
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4e633a
xor al, al
jmp 0x4e63a7
push 0x5c
push esi
call fcn.004d9b90
add esp, 8
test eax, eax
je 0x4e6336
sub eax, edi
sub eax, 0x577
push eax
push esi
push ebx
call fcn.004d9c40
push 0x5c
push ebx
call fcn.004ea6e0
push 0x5c
push esi
call fcn.004ea6e0
push ebx
lea esi, [edi + 0x67c]
push esi
call fcn.004d9bf0
add esp, 0x24
lea ecx, [ebp - 0x58]
push 0x560454
call fcn.004e5860
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004e0ed0
push eax
push esi
call fcn.004d9b50
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004e5a10
mov al, 1
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.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4e71e0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ee0c
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x830]
push eax
mov dword [ebp - 0x830], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x82c]
lea ecx, [ebp - 0x93c]
mov dword [esi], eax
mov eax, dword [ebp - 0x824]
shr eax, 0xa
push 0x562790
mov dword [esi + 4], eax
call fcn.004e6690
push 0
push 0
mov ecx, eax
push dword [eax + 4]
call fcn.004e5c80
push dword [esi]
mov ecx, dword [ebp - 0x820]
shr ecx, 0xa
push ecx
mov ecx, dword [ebp - 0x828]
shr ecx, 0xa
push ecx
push dword [esi + 4]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004ea330
add esp, 0x18
mov eax, dword [ebp - 0x938]
mov dword [ebp - 4], 0
mov dword [ebp - method.CDectBaseCopy_wchar_t__128_.virtual_0], vtable.CDectBaseCopy_wchar_t__128_.0
test eax, eax
je 0x4e72b6
push eax
call fcn.004e5d30
add esp, 4
xor eax, eax
mov dword [ebp - 0x938], eax
mov byte [ebp - 4], 1
mov dword [ebp - method.CDectBase_wchar_t_.virtual_0], vtable.CDectBase_wchar_t_.0
test eax, eax
je 0x4e72d1
push eax
call fcn.004e5d30
add esp, 4
push 0
push 0
push 0x400
lea eax, [esi + 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
Function at 0x4ea020
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f570
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
jne 0x4ea0bf
push 0x5604a0
lea ecx, [ebp - 0x28]
call fcn.004e0d00
mov ecx, eax
call fcn.004e0ed0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], vtable.CDectBaseCopy_char__16_.0
test eax, eax
je 0x4ea091
push eax
call fcn.004e10c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], vtable.CDectBase_char_.0
test eax, eax
je 0x4ea0a9
push eax
call fcn.004e10c0
add esp, 4
cmp dword [esi], 0
mov dword [ebp - 4], 0xffffffff
jne 0x4ea0bf
mov eax, 0x7a87f9
jmp 0x4ea161
cmp dword [esi + 0x28], 0
jne 0x4ea13d
push 0x5604b0
lea ecx, [ebp - 0x50]
call fcn.004e63d0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004e0ed0
push eax
push dword [esi]
call fcn.004ea4f0
add esp, 8
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 3
mov dword [ebp - 0x50], vtable.CDectBaseCopy_char__32_.0
test eax, eax
je 0x4ea111
push eax
call fcn.004e10c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], vtable.CDectBase_char_.0
test eax, eax
je 0x4ea129
push eax
call fcn.004e10c0
add esp, 4
cmp dword [esi + 0x28], 0
mov dword [ebp - 4], 0xffffffff
jne 0x4ea13d
mov eax, 0x7a87fa
jmp 0x4ea161
push 0x24
lea edi, [esi + 4]
push 0
push edi
call fcn.004d9af0
mov eax, dword [esi + 0x28]
add esp, 0xc
push edi
test eax, eax
je 0x4ea159
call eax
jmp 0x4ea15f
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4ebd50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f830
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], esi
test edi, edi
jne 0x4ebd97
mov eax, 0x4c72ba
jmp 0x4ebf41
call fcn.004ebb60
mov ecx, esi
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], 1
mov dword [esi + 8], edi
mov dword [ebp - 4], 0
call fcn.0051a4d0
mov dword [esi + 0x28], eax
test eax, eax
je 0x4ebf3c
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push eax
call edi
test eax, eax
jne 0x4ebea4
mov eax, dword [esi + 0x28]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4ebdf0
mov eax, 0x4c72b5
jmp 0x4ebf41
mov ecx, esi
call fcn.004ebd10
mov dword [esi + 0x2c], eax
test eax, eax
je 0x4ebe9a
push 0xf8
push eax
call edi
test eax, eax
jne 0x4ebe75
mov ecx, dword [esi + 0x2c]
cmp dword [ecx], 0x4550
jne 0x4ebde6
movzx edx, word [ecx + 0x18]
lea eax, [ecx + 0x18]
mov edi, 0x10b
cmp dx, di
jne 0x4ebe39
mov dword [esi + 0x34], eax
add eax, 0x60
mov dword [esi + 0x20], 0
jmp 0x4ebe50
mov edi, 0x20b
cmp dx, di
jne 0x4ebde6
mov dword [esi + 0x38], eax
add eax, 0x70
mov dword [esi + 0x20], 1
mov dword [esi + 0x40], eax
lea eax, [ecx + 4]
mov dword [esi + 0x30], eax
movzx eax, word [eax + 0x10]
add eax, 0x18
add eax, ecx
mov dword [esi + 0x3c], eax
test ebx, ebx
je 0x4ebe6e
mov eax, dword [esi + 0x20]
mov dword [ebx], eax
xor eax, eax
jmp 0x4ebf41
call fcn.004eaa90
push dword [esi + 0x2c]
push str.__08x_
push 0xe9698b67
push eax
call fcn.004eaaf0
add esp, 0x10
mov eax, 0x4c72b8
jmp 0x4ebf41
mov eax, 0x4c72b7
jmp 0x4ebf41
push 0x5628e8
lea ecx, [ebp - 0x30]
call fcn.004e5900
push 0
push 0
push dword [eax + 4]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004e5c80
mov edi, eax
call fcn.004eaa90
push dword [esi + 0x28]
push edi
push 0xb9b0d524
push eax
call fcn.004eaaf0
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.004e5a80
mov eax, 0x4c72b8
jmp 0x4ebf41
mov eax, 0x4c72b6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
Function at 0x4ed7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4ed7ec
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4ed7dd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4ed820
cmp dword [esi + 8], 0
jne 0x4ed810
push 0x553d34
push dword [eax + 8]
call fcn.00535a41
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4ed810
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00528933
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ed842
mov eax, dword [esi + 8]
test eax, eax
je 0x4ed83c
push eax
call fcn.005286e7
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4ee090
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4ee0e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4ee0da
shr eax, 8
cmp al, 2
jne 0x4ee0da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4ee7ce
push esi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4ee79e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004fe270
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004ee430
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x858c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ee9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x4ee9d9
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4eea0f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x562b6c
push 2
push eax
call fcn.00529452
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00529452
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4faa60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x550]
cmp ecx, 0xffffffff
je 0x4faabb
mov eax, dword [eax + 0x544]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4faabb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4faa89
mov dword [ecx], eax
cmp dword [eax + 0x150], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4faa9f
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1a4], 0
mov ebx, dword [edi]
jne 0x4fb0d3
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
je 0x4fafde
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004fe270
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004ee430
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x4fb031
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004fe270
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004ee430
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004fb560
add esp, 0xc
test eax, eax
jne 0x4fb082
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004fe270
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004ee430
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004fb560
add esp, 0xc
test eax, eax
jne 0x4fb0d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004fe270
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004ee430
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push edi
call fcn.004facc0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4fb950
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 4
cmp dword [esi + 0x408], eax
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x4fb990
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004ee4d0
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4fb9a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jns 0x4fb9ea
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
call fcn.004fe270
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004ee4d0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004ee4d0
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x4ff660
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4ffcbb
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4ffca7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x4ffc38
cmp dword [edi + 0x18], 0
je 0x4ffc38
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4ffc38
cmp eax, 0x10
jb 0x4ffc38
push 0x20
call dword [0x581bf8]
mov esi, eax
add esp, 4
test esi, esi
je 0x4ffc9c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x581bf8]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4ffc8b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4ffc26
push eax
call dword [0x581c04]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4ffc71
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4ffc35
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4ffb80
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4ffc55
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4ffca3
push ebx
call fcn.004ffaf0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x581bfc]
push esi
call dword [0x581bfc]
add esp, 8
jmp 0x4ffc46
push esi
mov edi, 8
call dword [0x581bfc]
add esp, 4
jmp 0x4ffc46
mov edi, 8
jmp 0x4ffc46
test ebx, ebx
jne 0x4ffcb3
mov edi, 0x2af9
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5000d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0053539d
add esp, 0x18
test eax, eax
je 0x5000f2
cmp eax, 0xffffffff
jne 0x5000f4
xor eax, eax
pop ebp
ret
Function at 0x509690
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x134]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x5096e8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.004fa8a0
add esp, 8
cmp edi, 0xffffffff
jne 0x50971d
push str.Error_accept__ing_server_connect
push ebx
call fcn.004ee430
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004ee4d0
push 1
push edi
mov dword [esi + 0x134], edi
call fcn.00515e80
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [esi + 0x13c], 1
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret

Function at 0x50bcd0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x50bcff
push str.Couldnt_set_desired_mode
push edx
call fcn.004ee430
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x50bd16
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004ee4d0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x50bd2d
push edi
call fcn.0050b860
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x50bd41
push edi
call fcn.0050b350
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x50bd55
push edi
call fcn.0050b7c0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x50bd65
push edi
call fcn.0050b840
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x50fba0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x50fbed
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004ee430
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x50fc15
shr eax, 8
test al, al
jne 0x50fc15
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004ee430
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x130]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x510488
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ee430
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.0050fd30
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x510560
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x8684]
jne 0x5106b6
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x510597
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5105a2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5105ad
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WSOCK32.dll_htons]
push eax
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x5105dd
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5105ea
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5105f7
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x510604
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51060f
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51061a
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.0050fe30
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x130]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x510672
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ee430
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.005104a0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x130]
call dword [sym.imp.WSOCK32.dll_send]
pop esi
test eax, eax
jns 0x5106b5
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004ee430
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret