joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e380
Capabilities:
Terminate process

Disassembly:
sub esp, 0x18
push ebx
push ebp
xor ebp, ebp
test edi, edi
push esi
mov esi, eax
mov ebx, 0x100
je 0x43e45a
push 0x104
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x43e3b0
jmp fcn.00408a80
mov edx, dword [edi]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [edi], ecx
mov byte [eax], 0
mov edx, dword [esi + 0x2c]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x30]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push ecx
push 2
push edx
mov eax, edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
call fcn.004420a0
add esp, 0xc
push eax
mov eax, dword [esi + 4]
push 2
push eax
mov eax, edi
call fcn.004420a0
add esp, 8
push eax
push ecx
mov ecx, dword [esi]
push 2
push ecx
mov eax, edi
call fcn.004420a0
add esp, 0xc
push eax
push str._s__s__s_p_d_i_d_t_d_pr_d_a_d_h_d_m_d__d__d__d__d
lea esi, [esp + 0x4c]
call fcn.00402ff0
mov eax, dword [esp + 0x58]
add esp, 0x3c
test eax, eax
je 0x43e475
cmp dword [esp + 0x18], ebp
jl 0x43e475
mov edx, dword [esp + 0x14]
add eax, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x100
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x43e3b9
jmp fcn.00408a80
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x43f170
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
jne 0x43f190
jmp fcn.00408a80
push 0x40
push edi
push esi
call sub.MSVCR80.dll_memset
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], edi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
add esp, 0xc
mov eax, esi
mov ecx, ebx
mov dword [esi], 2
call fcn.0043ee50
call fcn.0044c840
mov eax, dword [ebx + 0x57c]
cmp eax, edi
je 0x43f1eb
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f9a0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xffffffff
cmp eax, 0xf423e
ja 0x43f9ec
push 4
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x43f9ec
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x43f9ec
mov eax, dword [esp + 4]
push eax
push str.NOTE:_setsockopt_SO_SNDBUF_d_failed
push 0x40
call fcn.00408640
add esp, 0xc
ret

Function at 0x43f9f0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xffffffff
cmp eax, 0xf423e
ja 0x43fa3f
push 4
lea ecx, [esp + 8]
push ecx
push 0x1002
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x43fa3f
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fa3c
mov eax, dword [esp + 4]
push eax
push str.NOTE:_setsockopt_SO_RCVBUF_d_failed
push 0x40
call fcn.00408640
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret

Function at 0x43fba0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x43fbe4
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fbe0
mov edx, dword [esp]
push edx
push str.NOTE:_setsockopt_TCP_NODELAY_d_failed
push 0x40
call fcn.00408640
add esp, 0xc
xor eax, eax
pop ecx
ret
cmp dword [0x5426d0], 3
jb 0x43fc14
push 0x2b000003
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fc14
mov eax, dword [esp]
push eax
push str.Socket_flags:_TCP_NODELAY_d_succeeded
push 0x2b000003
call fcn.00408640
add esp, 0xc
mov eax, 1
pop ecx
ret

Function at 0x43fc20
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [esi + 0x14]
test eax, eax
push edi
jne 0x43fc59
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 0x11
push 2
push 2
call edi
cmp dword [esi + 0x1a4], 0
mov dword [esi + 0x1c], eax
je 0x43fc9e
push 6
push 1
push 2
call edi
mov dword [esi + 0x20], eax
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x43fc8f
cmp eax, 2
je 0x43fc8f
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fc9e
push 0x262
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43fcb0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
push edi
mov edi, eax
mov dword [esp + 8], esi
je 0x43fd30
cmp dword [0x5426d0], 1
jb 0x43fd00
push 1
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fd00
lea eax, [esp + 8]
push eax
push 2
push 0x5164a8
call fcn.00441eb0
add esp, 0xc
push eax
push str.Listening_for_incoming_TCP_connection_on__s
push 1
call fcn.00408640
mov esi, dword [esp + 0x14]
add esp, 0xc
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43fd30
push 0x210
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fd30
push str.TCP:_listen___failed
push 0x210
call fcn.00408640
add esp, 8
cmp dword [esp + 0x14], 0
je 0x43fd77
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x43fd77
push 0x210
call fcn.00408960
add esp, 4
test eax, eax
je 0x43fd77
push str.Set_socket_to_non_blocking_mode_failed
push 0x210
call fcn.00408640
add esp, 8
test esi, esi
je 0x43fd91
mov edi, dword [sym.imp.MSVCR80.dll_free]
mov eax, esi
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x43fd83
pop edi
pop esi
pop ecx
ret
Function at 0x4416b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
xor ebx, ebx
test esi, esi
push edi
mov edi, 0x40
je 0x44174e
push 0x44
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4416e0
jmp fcn.00408a80
mov edx, dword [esi]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [esi], ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
test edi, edi
mov byte [eax], bl
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
je 0x4417f4
mov bl, byte [esp + 0x2c]
test bl, 1
je 0x441787
test byte [edi + 0xec], 1
mov eax, 0x5127d8
jne 0x441723
mov eax, 0x5103dc
push eax
push 0x520138
lea esi, [esp + 0x18]
call fcn.00402ff0
mov eax, dword [edi + 0x24]
add esp, 8
sub eax, 0
je 0x441770
sub eax, 1
je 0x441769
sub eax, 1
je 0x441762
mov eax, 0x514fa0
jmp 0x441775
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4416e9
jmp fcn.00408a80
mov eax, 0x511290
jmp 0x441775
mov eax, 0x525134
jmp 0x441775
mov eax, 0x51128c
push eax
push 0x5103a4
lea esi, [esp + 0x18]
call fcn.00402ff0
add esp, 8
test bl, 2
je 0x441805
test byte [edi + 0xec], 2
mov eax, 0x511b74
jne 0x44179f
mov eax, 0x511af4
push eax
push 0x520138
lea esi, [esp + 0x18]
call fcn.00402ff0
mov eax, dword [edi + 0x80]
add esp, 8
sub eax, 0
je 0x4417db
sub eax, 1
je 0x4417d4
sub eax, 1
je 0x4417cd
mov eax, 0x514fa0
jmp 0x4417e0
mov eax, 0x511290
jmp 0x4417e0
mov eax, 0x525134
jmp 0x4417e0
mov eax, 0x51128c
push eax
push 0x5103a4
lea esi, [esp + 0x18]
call fcn.00402ff0
add esp, 8
jmp 0x441805
push 0x52013c
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x441821
cmp dword [esp + 0x18], ebp
jl 0x441821
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x441eb0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
test ebx, ebx
push ebp
push esi
push edi
je 0x441fbe
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x2c], edi
mov esi, 0x40
je 0x441f2e
push 0x44
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x441ee3
jmp fcn.00408a80
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 4]
mov dword [edx], ecx
mov byte [eax], 0
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 2]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
mov al, byte [esp + 0x28]
test al, 8
jne 0x441f5d
cmp dword [ebx + 4], ebp
je 0x441f42
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x441f47
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x441ef4
jmp fcn.00408a80
mov eax, str._undef_
push eax
push 0x5103a4
lea esi, [esp + 0x18]
call fcn.00402ff0
mov al, byte [esp + 0x30]
add esp, 8
test al, 2
jne 0x441f6a
cmp dword [ebx + 4], ebp
je 0x441f9a
test al, 1
je 0x441f9a
test edi, edi
je 0x441f9a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x441f88
push eax
push 0x5103a4
lea esi, [esp + 0x18]
call fcn.00402ff0
add esp, 8
push edi
push 0x51608c
lea esi, [esp + 0x18]
call fcn.00402ff0
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x441fb5
cmp dword [esp + 0x18], ebp
jl 0x441fb5
mov edx, dword [esp + 0x14]
add eax, edx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
pop edi
pop esi
mov eax, str._NULL_
pop ebp
add esp, 0x14
ret

Function at 0x441fd0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x18], 0
push ebx
push ebp
push esi
push edi
mov esi, eax
je 0x44208b
xor ebp, ebp
xor ebx, ebx
test esi, esi
mov edi, 0x80
je 0x44206a
push 0x84
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x44200a
jmp fcn.00408a80
mov edx, dword [esi]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [esi], ecx
mov byte [eax], bl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
push 0x5164a8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
call fcn.00441eb0
add esp, 0xc
push eax
push 0x5103a4
lea esi, [esp + 0x18]
call fcn.00402ff0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x442081
cmp dword [esp + 0x18], ebp
jl 0x442081
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x442013
jmp fcn.00408a80
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov eax, str._NULL_
pop ebx
add esp, 0x14
ret
Function at 0x4420a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
xor ebx, ebx
test esi, esi
push edi
mov edi, 0x40
je 0x442101
push 0x44
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4420cc
jmp fcn.00408a80
mov edx, dword [esi]
mov dword [ecx], edx
lea eax, [ecx + 4]
mov dword [esi], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov byte [eax], bl
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jne 0x4420f6
test byte [esp + 0x2c], 1
jne 0x442139
test byte [esp + 0x2c], 2
je 0x442115
mov eax, ecx
jmp 0x44211c
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4420d5
jmp fcn.00408a80
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x5103a4
lea esi, [esp + 0x18]
call fcn.00402ff0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x442151
cmp dword [esp + 0x18], ebx
jl 0x442151
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x4422f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
push edi
mov edi, 0x100
je 0x442364
push 0x104
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x442322
jmp fcn.00408a80
mov edx, dword [esi]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [esi], ecx
xor ecx, ecx
mov dword [esp + 0x10], edi
mov byte [eax], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
xor edi, edi
test edi, edi
je 0x442356
push 0x510330
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
cmp edi, 3
ja 0x44237b
mov eax, dword [edi*8 + 0x508c0c]
jmp 0x442380
push 0x100
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x44232b
jmp fcn.00408a80
mov eax, str._unknown_protocol_
push eax
push 0x5103cc
lea esi, [esp + 0x18]
call fcn.00402ff0
add edi, 1
add esp, 8
cmp edi, 4
jl 0x442341
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4423b5
cmp dword [esp + 0x18], ebx
jl 0x4423b5
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
test eax, eax
push ebx
push esi
push edi
mov ebx, ecx
je 0x44309a
test ebx, ebx
jne 0x44309a
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x443094
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], eax
push 0x8c
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4430b3
jmp fcn.00408a80
push 0x8c
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x4430eb
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4430eb
push 0x4b
push str.._socks.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0xffffffff
cmp ecx, 0xfffe
jbe 0x44311d
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x44311d
push 0x4c
push str.._socks.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
push 0x80
lea edi, [esi + 8]
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_strncpy]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
mov byte [edi + 0x7f], 0
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x88], edx
mov dword [esi], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443160
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
push 0
push 3
push 0x52063c
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 3
je 0x4431cd
cmp dword [0x5426d0], 1
jb 0x44335a
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x44335a
push str.socks_handshake:_TCP_port_write_failed_on_send__
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
mov ebx, dword [sym.imp.WS2_32.dll_select]
lea eax, [esp + 0x18]
push eax
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea eax, [edi + 1]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], 0
call ebx
mov esi, eax
call fcn.00453190
mov dword [ebp], eax
mov edx, dword [ebp]
test edx, edx
jne 0x44335a
test esi, esi
je 0x443276
jl 0x4432b6
push edx
push 1
lea eax, [esp + 0x17]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x4432f6
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0xf]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x4431d3
mov ax, word [esp + 0x10]
cmp al, 5
jne 0x44332e
test ah, ah
jne 0x44332e
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
cmp dword [0x5426d0], 1
jb 0x44335a
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x44335a
push str.socks_handshake:_TCP_port_read_timeout_expired
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
cmp dword [0x5426d0], 1
jb 0x44335a
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x44335a
push str.socks_handshake:_TCP_port_read_failed_on_select__
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
cmp dword [0x5426d0], 1
jb 0x44335a
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x44335a
push str.socks_handshake:_TCP_port_read_failed_on_recv__
push 0x1000221
call fcn.00408640
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
cmp dword [0x5426d0], 1
jb 0x44335a
push 0x1000021
call fcn.00408960
add esp, 4
test eax, eax
je 0x44335a
push str.socks_handshake:_Socks_proxy_returned_bad_status
push 0x1000021
call fcn.00408640
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret
Function at 0x443370
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x13c
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
xor edi, edi
test esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 0
je 0x4433b4
push edi
mov word [esi], 2
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], eax
push edx
add eax, 1
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.00453190
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4435ae
test esi, esi
je 0x4434e3
jl 0x443514
mov edx, dword [esp + 0x14c]
push eax
mov esi, 1
push esi
lea ecx, [esp + 0x1b]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x44353e
cmp edi, 3
mov cl, byte [esp + 0x13]
jne 0x443441
mov byte [esp + 0x12], cl
jmp 0x443474
cmp edi, 4
jne 0x44346f
movsx eax, byte [esp + 0x12]
sub eax, esi
je 0x443468
sub eax, 2
je 0x443463
sub eax, esi
jne 0x443563
mov ebp, 0x10
jmp 0x443474
movzx ebp, cl
jmp 0x443474
mov ebp, 4
jmp 0x443474
cmp edi, 0x16
jge 0x44347b
mov byte [esp + edi + 0x12c], cl
add edi, esi
lea eax, [ebp + 6]
cmp edi, eax
jl 0x4433b4
cmp byte [esp + 0x12c], 5
jne 0x443583
cmp byte [esp + 0x12d], 0
jne 0x443583
cmp byte [esp + 0x12], 1
jne 0x4434c9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4434c9
mov ecx, dword [esp + 0x130]
mov dx, word [esp + 0x134]
mov dword [eax + 4], ecx
mov word [eax + 2], dx
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004dcaae
add esp, 0x13c
ret
cmp dword [0x5426d0], 1
jb 0x4435ae
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x4435ae
push str.recv_socks_reply:_TCP_port_read_timeout_expired
push 0x1000221
jmp 0x4435a6
cmp dword [0x5426d0], 1
jb 0x4435ae
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x4435ae
push str.recv_socks_reply:_TCP_port_read_failed_on_select__
push 0x1000221
jmp 0x4435a6
cmp dword [0x5426d0], esi
jb 0x4435ae
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x4435ae
push str.recv_socks_reply:_TCP_port_read_failed_on_recv__
push 0x1000221
jmp 0x4435a6
cmp dword [0x5426d0], esi
jb 0x4435ae
push 0x1000021
call fcn.00408960
add esp, 4
test eax, eax
je 0x4435ae
push str.recv_socks_reply:_Socks_proxy_returned_bad_address_type
jmp 0x4435a1
cmp dword [0x5426d0], esi
jb 0x4435ae
push 0x1000021
call fcn.00408960
add esp, 4
test eax, eax
je 0x4435ae
push str.recv_socks_reply:_Socks_proxy_returned_bad_reply
push 0x1000021
call fcn.00408640
add esp, 8
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004dcaae
add esp, 0x13c
ret
Function at 0x4435d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push edi
mov edi, ecx
push ebp
call fcn.00443160
add esp, 4
test eax, eax
je 0x4436b6
mov ebx, esi
mov byte [esp + 0x10], 5
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 3
lea ecx, [ebx + 1]
lea ebx, [ebx]
mov al, byte [ebx]
add ebx, 1
test al, al
jne 0x443620
sub ebx, ecx
lea eax, [ebx + 7]
cmp eax, 0x80
jbe 0x44363a
mov ebx, 0x79
push ebx
lea ecx, [esp + 0x19]
push esi
push ecx
mov byte [esp + 0x20], bl
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0xac]
mov edx, eax
add esp, 0xc
sar edx, 8
mov byte [esp + ebx + 0x16], al
push 0
mov byte [esp + ebx + 0x19], dl
add ebx, 7
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x4436a5
cmp dword [0x5426d0], 1
jb 0x4436b6
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x4436b6
push str.establish_socks_proxy_passthru:_TCP_port_write_failed_on_send__
push 0x1000221
call fcn.00408640
add esp, 8
jmp 0x4436b6
push edi
mov ebx, ebp
xor ecx, ecx
call fcn.00443370
add esp, 4
test eax, eax
jne 0x4436d4
mov ecx, dword [ebp]
test ecx, ecx
jne 0x4436d4
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 4]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebp], eax
mov ecx, dword [esp + 0x94]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dcaae
add esp, 0x8c
ret

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

Disassembly:
push ebx
push edi
mov ebx, eax
mov edi, ecx
push ebx
call fcn.00443160
add esp, 4
test eax, eax
je 0x443762
push 0
push 0xa
push 0x520880
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xa
je 0x443746
cmp dword [0x5426d0], 1
jb 0x443762
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x443762
push str.establish_socks_proxy_passthru:_TCP_port_write_failed_on_send__
push 0x1000221
call fcn.00408640
add esp, 8
jmp 0x443762
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.00443370
add esp, 4
test eax, eax
jne 0x44377b
mov eax, dword [ebx]
test eax, eax
jne 0x44377b
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 4
mov dword [ebx], edx
pop edi
pop ebx
ret