joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463203
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x463248
call fcn.0046ed10
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x463248
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x463264
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0048af22
mov ebx, eax
test edi, edi
je 0x463262
test esi, esi
je 0x463262
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4aabf1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0045d51c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4aac2d
call fcn.004aae10
mov dword [esi + 0xc], 1
jmp 0x4aac32
call fcn.004aae10
cmp dword [esi], 0
je 0x4aac7b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4aac55
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042fd40
jmp 0x4aac66
push 0xff
mov ecx, esi
call fcn.0040dca0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00430350
jmp 0x4aac9f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4aac9f
push dword [esi]
push dword [ebp - 4]
call fcn.0048b5b6
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4aad65
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004aae10
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4aadad
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042fd40
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00430350
jmp 0x4aadb8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0048b5b6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51b0b7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00570dad
call fcn.0046ed64
cmp dword [eax + 0x14], 0
jne 0x51b0d2
mov ecx, esi
pop esi
jmp fcn.0051a4bd
pop esi
ret

Function at 0x5705c2
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401cb0
call fcn.0046ed64
cmp dword [eax + 0x14], 0
jne 0x5705dd
mov ecx, esi
pop esi
jmp fcn.0056feab
pop esi
ret
Function at 0x59e8a0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6731c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00590fd3
mov dword [ebp - 0x14], eax
cmp dword [0x67f7a4], esi
jne 0x59e993
push 0x800
push esi
push 0x634390
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x59e920
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x59ea73
push esi
push esi
push 0x634390
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x59ea73
push 0x6343a8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x59ea73
push eax
call ebx
push 0x6343b4
push edi
mov dword [0x67f7a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x6343c4
push edi
mov dword [0x67f7a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x67f7ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67f7b4], eax
test eax, eax
je 0x59e990
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x67f7b0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x59e9b8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x59e9ab
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x59e9cd
push 4
pop eax
jmp 0x59ea75
cmp dword [ebp - 0x14], esi
je 0x59e9cd
push dword [0x67f7a4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x59e9b2
mov eax, dword [0x67f7b0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x59ea2b
cmp dword [0x67f7b4], edi
je 0x59ea2b
push eax
call ebx
push dword [0x67f7b4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x59ea2b
test eax, eax
je 0x59ea2b
call ecx
test eax, eax
je 0x59ea20
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x59ea20
test byte [ebp - 8], 1
jne 0x59ea2b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x59ea5b
mov eax, dword [0x67f7a8]
cmp eax, edi
je 0x59ea58
push eax
call ebx
test eax, eax
je 0x59ea58
call eax
mov esi, eax
test esi, esi
je 0x59ea58
mov eax, dword [0x67f7ac]
cmp eax, edi
je 0x59ea58
push eax
call ebx
test eax, eax
je 0x59ea58
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x67f7a4]
call ebx
test eax, eax
je 0x59ea73
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x59ea75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587560
mov esp, ebp
pop ebp
ret
Function at 0x5ab440
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6731c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x5ab493
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x5ab48d
shr eax, 8
cmp al, 2
jne 0x5ab48d
call fcn.005ba3f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret

Function at 0x5ac840
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x5ac889
mov al, byte [esi]
push eax
call fcn.005ab4b0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x5ac867
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x5b5e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.005b5e70
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0059ae10

Function at 0x5b5f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
je 0x5b5f44
push esi
push 1
push edi
call fcn.005b6db0
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.005b6db0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x5b5f7a
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x639f54
push 2
push eax
call fcn.0058dd14
push dword [edi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0058dd14
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.005b6850
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x5b63b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5b638c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.005de790
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.005b5f80
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x8e4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x5b690d
cmp dword [ebx + ecx*4 + 0x1bc], 0x5b6280
jne 0x5b690d
cmp dword [esi], 0
je 0x5b689f
test edi, edi
je 0x5b690d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.005ba9d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x5b690d
test al, 1
je 0x5b690d
cmp dword [esi], 0
jne 0x5b68f4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6744a8]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x5b68f4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5b690d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5b97b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5b97ce
cmp dword [esi + 0x6c], 0
je 0x5b97ce
push 2
push 3
push esi
call fcn.005b4930
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005da320
add esp, 4
test esi, esi
je 0x5b97ee
cmp dword [esi + 0x6c], 0
je 0x5b97ee
push 3
push esi
call fcn.005b4970
add esp, 8
pop esi
pop ebp
ret
Function at 0x5baed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x5baef0
push eax
call fcn.005b5340
add esp, 4
test eax, eax
jne 0x5baf12
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x5baeec
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x5baf12
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x5bb610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x67f960]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x5bb661
push 3
push 2
push eax
push 6
call fcn.005df6a0
add esp, 0x10
test al, al
je 0x5bb655
mov dword [0x67f960], 2
mov esp, ebp
pop ebp
ret
mov dword [0x67f960], 1
jmp 0x5bb666
cmp eax, 2
je 0x5bb6a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5bb68d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x5bb6a6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x5bb780
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5bb7c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.005de790
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.005b6060
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.005b6060
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x5bb900
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6731c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x5bbafe
cmp byte [ebx + 0x282], 0
push esi
jne 0x5bbaf4
cmp byte [ebx + 0x29e], 0
jne 0x5bbaf4
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5bb99e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005de790
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.005b5f80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], pe_nt_image_headers32
push 0
push eax
call fcn.0058b410
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5bba07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005de790
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.005b5f80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x134]
push eax
lea esi, [ebx + 0x106]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.005bb0e0
add esp, 0xc
test al, al
jne 0x5bba65
call fcn.0058aa78
mov esi, eax
call fcn.0058aa78
push dword [esi]
mov edi, eax
push ebx
call fcn.005de790
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.005b5f80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movdqu xmmword [ebx + 0x5c], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [ebx + 0x6c], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x7c], xmm0
mov dword [ebx + 0x84], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x88], ax
lea eax, [ebx + 0x168]
push eax
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005bb0e0
add esp, 0xc
test al, al
jne 0x5bbaf4
call fcn.0058aa78
mov esi, eax
call fcn.0058aa78
push dword [esi]
mov edi, eax
push ebx
call fcn.005de790
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.005b5f80
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005bb530
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00587560
mov esp, ebp
pop ebp
ret
Function at 0x5bc360
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6731c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x66c], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5bc3bd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.005b6060
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
push dword [esi + 0x670]
mov dword [ebp - 0x10], 1
call fcn.005b5ea0
push dword [esi + 0x674]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.005b5ea0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5bc42d
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.005b6060
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00587560
mov esp, ebp
pop ebp
ret
Function at 0x5be970
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 0x5beaed
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x5bead9
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x5bea6a
cmp dword [edi + 0x18], 0
je 0x5bea6a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5bea6a
cmp eax, 0x10
jb 0x5bea6a
push 0x20
call dword [0x6744a8]
mov esi, eax
add esp, 4
test esi, esi
je 0x5beace
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 [0x6744a8]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x5beabd
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x5bea58
push eax
call dword [0x6744b4]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x5beaa3
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x5bea67
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x5be9b0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x5bea87
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x5bead5
push ebx
call fcn.005be930
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 [0x6744ac]
push esi
call dword [0x6744ac]
add esp, 8
jmp 0x5bea78
push esi
mov edi, 8
call dword [0x6744ac]
add esp, 4
jmp 0x5bea78
mov edi, 8
jmp 0x5bea78
test ebx, ebx
jne 0x5beae5
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.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 0x5bee30
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.0058e28d
add esp, 0x18
test eax, eax
je 0x5bee52
cmp eax, 0xffffffff
jne 0x5bee54
xor eax, eax
pop ebp
ret
Function at 0x5c4150
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6731c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push ecx
mov eax, dword [edi + 0x1ac]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5c41a8
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.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x1c]
push edi
call fcn.005badf0
add esp, 8
cmp esi, 0xffffffff
jne 0x5c41dd
push str.Error_accept__ing_server_connect
push ebx
call fcn.005b5f80
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.005b6060
push 1
mov byte [edi + 0x28c], 0
push esi
mov dword [edi + 0x1ac], esi
call fcn.005df840
add esp, 0x10
mov byte [edi + 0x1b9], 1
cmp dword [ebx + 0x1d8], 0
je 0x5c4259
push 1
push ebx
call fcn.005b6db0
mov eax, dword [ebx + 0x1d8]
push 1
push esi
push dword [ebx + 0x1dc]
call eax
push 0
push ebx
mov esi, eax
call fcn.005b6db0
add esp, 0x1c
test esi, esi
je 0x5c4259
push edi
call fcn.005c46b0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587560
mov esp, ebp
pop ebp
ret

Function at 0x5c6620
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov eax, edx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
shr eax, 0x1f
add eax, edx
mov ebx, dword [edi]
cmp eax, 2
je 0x5c665c
push str.Couldnt_set_desired_mode
push ebx
call fcn.005b5f80
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x5c6673
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.005b6060
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x5c668b
push edi
call fcn.005c6380
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x5c66a0
push edi
call fcn.005c53e0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x5c66b5
push edi
call fcn.005c6360
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x5c66c5
push edi
call fcn.005c6500
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x5cf8e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6731c0]
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.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5cf92d
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.005b5f80
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x5cf955
shr eax, 8
test al, al
jne 0x5cf955
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587560
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.005b5f80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.00587560
mov esp, ebp
pop ebp
ret

Function at 0x5d0170
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 + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5d01b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.005b5f80
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.005cfa70
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret