joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e5f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov esi, esp
push 0
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.WS2_32.dll_recv]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43e673
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x43e652
mov dword [ebp - 0x10], 1
jmp 0x43e659
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x43e66c
mov eax, 0x51
jmp 0x43e67d
mov eax, 0x38
jmp 0x43e67d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x1a8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043ee60
add esp, 8
mov esi, esp
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x43e863
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x43e828
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x43e863
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041d3e0
add esp, 8
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0043e100
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x48b4], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x37
mov eax, dword [ebp - 8]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x43ee60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x1a8]
mov dword [ebp - 4], edx
imul eax, dword [ebp + 0xc], 0x14
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1cc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c8]
mov edx, dword [ecx + 0x40]
and edx, 3
je 0x43eff2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1bc], 0x43e690
jne 0x43eff2
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x43eee9
cmp dword [ebp - 0xc], 0
je 0x43eff2
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.0043cec0
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x43eff2
mov ecx, dword [ebp - 0x10]
and ecx, 1
je 0x43eff2
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x43ef75
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4b8]
shl edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov esi, esp
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x43efe8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 4]
je 0x43efa9
mov esi, esp
push 0xab
push 0x4c45b0
push str.psnd__bindsock__sockfd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.004a9923
mov esi, esp
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x43efe6
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
jmp 0x43eff2
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x43f400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1d0], 0
je 0x43f45e
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x15c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1d0]
call edx
add esp, 0x14
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 4], eax
jmp 0x43f4c2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x43f4c2
cmp dword [ebp - 8], 2
jle 0x43f472
jmp 0x43f4c2
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x158]
push edx
push 1
push 2
imul eax, dword [ebp + 0xc], 3
add eax, 0x4b08b0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004a9923
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x158]
push edx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004a9923
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, 0x10
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x1f4]
test eax, eax
je 0x440199
mov ecx, dword [ebp + 8]
push ecx
call fcn.00431710
add esp, 4
test eax, eax
jne 0x440197
xor al, al
jmp 0x4401e8
jmp 0x4401e6
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 0x1a8], 0xffffffff
jne 0x4401b4
xor al, al
jmp 0x4401e8
mov esi, esp
push 2
push 1
lea edx, [ebp - 5]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x1a8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x4401e6
xor al, al
jmp 0x4401e8
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x440208]
call fcn.004a98cf
pop eax
pop edx
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x440220
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 4
cmp dword [0x4d1e3c], 0
jne 0x440292
push 3
push 2
push 0
push 6
call fcn.00458670
add esp, 0x10
movzx eax, al
test eax, eax
je 0x440288
mov dword [0x4d1e3c], 2
jmp 0x440292
mov dword [0x4d1e3c], 1
cmp dword [0x4d1e3c], 2
jne 0x44029d
jmp 0x4402f3
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x4402d0
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jle 0x4402d0
jmp 0x4402f3
mov esi, esp
push 4
lea edx, [ebp - 8]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.004a9923
push edx
mov ecx, ebp
push eax
lea edx, [0x440314]
call fcn.004a98cf
pop eax
pop edx
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x440930
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 6
mov esi, esp
push 4
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.004a9923
test eax, eax
jge 0x4409b4
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041d3e0
add esp, 8
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov eax, dword [ebp - 4]
push eax
call fcn.0043e010
add esp, 0xc
jmp 0x4409c5
push str.TCP_NODELAY_set_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043e010
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x4409e8]
call fcn.004a98cf
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x440cd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x648]
test ecx, ecx
je 0x440d08
mov dword [ebp - 0x34], 1
jmp 0x440d0f
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.004a9923
test eax, eax
jge 0x440d53
mov edx, dword [ebp + 0xc]
push edx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov eax, dword [ebp + 8]
push eax
call fcn.0043e010
add esp, 0xc
jmp 0x440df7
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x64c]
push edx
call fcn.00441de0
add esp, 4
mov dword [ebp - 0xc], eax
imul eax, dword [ebp - 0xc], 0x3e8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x650]
push eax
call fcn.00441de0
add esp, 4
mov dword [ebp - 0xc], eax
imul ecx, dword [ebp - 0xc], 0x3e8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x98000004
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x440df7
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e010
add esp, 0x10
push edx
mov ecx, ebp
push eax
lea edx, [0x440e24]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x34
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x4420c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
push eax
call fcn.00441dd0
add esp, 4
mov esi, esp
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp esi, esp
call fcn.004a9923
pop esi
cmp ebp, esp
call fcn.004a9923
pop ebp
ret
Function at 0x457e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x457e4d
cmp dword [ebp - 4], 0xffffffff
jne 0x457e51
xor eax, eax
jmp 0x457e54
mov eax, dword [ebp - 4]
pop esi
add esp, 4
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x45c380
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
push edi
lea edi, [ebp - 0x11c]
mov ecx, 0x47
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x114], eax
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x118], 0x104
jae 0x45c3df
jmp 0x45c3e4
call fcn.004a9a68
mov eax, dword [ebp - 0x118]
mov byte [ebp + eax - 0x10c], 0
cmp dword [ebp - 0x114], 0
je 0x45c41d
mov esi, esp
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp esi, esp
call fcn.004a9923
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x10c]
test edx, edx
je 0x45c452
mov esi, esp
lea eax, [ebp - 0x10c]
push eax
call dword [0x4c000c]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x11c], eax
jmp 0x45c45c
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x11c]
push edx
mov ecx, ebp
push eax
lea edx, [0x45c490]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x11c
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret

Function at 0x45cca0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, esp
push 0xf0000000
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x45cceb
mov ecx, dword [ebp + 8]
add ecx, 4
mov esi, esp
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.004a9923
pop esi
cmp ebp, esp
call fcn.004a9923
pop ebp
ret
Function at 0x468e40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
lea edi, [ebp - 0x38]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x1a8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x30], 0x10
mov esi, esp
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x468ed0
mov dword [ebp - 0x30], 0x10
mov esi, esp
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_accept]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004406e0
add esp, 8
cmp dword [ebp - 0x10], 0xffffffff
jne 0x468f01
push str.Error_accept__ing_server_connect
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043e100
add esp, 8
mov eax, 0x1e
jmp 0x468faa
push str.Connection_accepted_from_server_n
mov edx, dword [ebp - 8]
push edx
call fcn.0043e010
add esp, 8
mov eax, dword [ebp + 8]
mov byte [eax + 0x28c], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + ecx + 0x1a8], eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0047cfd0
add esp, 8
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x1b8], 1
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1d8], 0
je 0x468fa8
mov dword [ebp - 0x38], 0
mov esi, esp
push 1
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1dc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1d8]
call eax
add esp, 0xc
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x468fa8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00468c60
add esp, 4
mov eax, 0x2a
jmp 0x468faa
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x468fd8]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x38
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x46be90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x46bedb
push str.Couldnt_set_desired_mode
mov edx, dword [ebp - 8]
push edx
call fcn.0043e100
add esp, 8
mov eax, 0x11
jmp 0x46bf56
cmp dword [ebp + 0xc], 0xc8
je 0x46bef9
mov eax, dword [ebp + 0xc]
push eax
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043e010
add esp, 0xc
cmp dword [ebp + 0x10], 0x13
jne 0x46bf10
mov edx, dword [ebp + 8]
push edx
call fcn.0046a800
add esp, 4
mov dword [ebp - 4], eax
jmp 0x46bf53
cmp dword [ebp + 0x10], 0x14
jne 0x46bf27
mov eax, dword [ebp + 8]
push eax
call fcn.0046a8b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x46bf53
cmp dword [ebp + 0x10], 0x15
jne 0x46bf3e
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046aaf0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x46bf53
cmp dword [ebp + 0x10], 0x16
jne 0x46bf53
mov edx, dword [ebp + 8]
push edx
call fcn.0046ab30
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret

Function at 0x46e1b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push esi
push edi
lea edi, [ebp - 0x1a4]
mov ecx, 0x69
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x46e1fe
mov esi, esp
push 0xd2
push 0x4cbcb0
push str.data
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.004a9923
mov ecx, 2
mov word [ebp - 0xc], cx
mov esi, esp
lea edx, [ebp - 0x1a0]
push edx
movzx eax, word [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46e247
mov ecx, dword [ebp - 8]
push ecx
push str.WSAStartup_failed___d_
mov edx, dword [ebp + 8]
push edx
call fcn.0043e100
add esp, 0xc
mov eax, 2
jmp 0x46e2b6
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp esi, esp
call fcn.004a9923
movzx eax, word [ebp - 0x1a0]
and eax, 0xff
movzx ecx, al
movzx edx, word [ebp - 0xc]
and edx, 0xff
movzx eax, dl
cmp ecx, eax
jne 0x46e29c
movzx ecx, word [ebp - 0x1a0]
shr ecx, 8
and ecx, 0xff
movzx edx, cl
movzx eax, word [ebp - 0xc]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp edx, ecx
je 0x46e2b4
push str.insufficient_winsock_version_to_support_telnet
mov edx, dword [ebp + 8]
push edx
call fcn.0043e100
add esp, 8
mov eax, 2
jmp 0x46e2b6
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x46e2e4]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x1a4
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x46ebd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 8], 0xff
mov ecx, 1
shl ecx, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 8], dl
mov eax, 1
shl eax, 1
mov cl, byte [ebp + 0x10]
mov byte [ebp + eax - 8], cl
mov esi, esp
push 0
push 3
lea edx, [ebp - 8]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x1a8]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x46ec7a
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x4cbd98
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043e100
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4cbdb4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0046e990
add esp, 0x10
push edx
mov ecx, ebp
push eax
lea edx, [0x46ecb8]
call fcn.004a98cf
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x485fb0
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push str.CURL_GETHOSTNAME
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x486013
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 4], 0
jmp 0x48603c
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov byte [edx + ecx], 0
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0xc]
mov byte [edx - 1], 0
cmp dword [ebp - 4], 0
je 0x486051
mov eax, dword [ebp - 4]
jmp 0x486070
push 0x2e
mov eax, dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48606e
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
xor eax, eax
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret