joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10080260
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x120]
call fcn.100801b0
mov eax, dword [esp + 0x124]
push 0
push eax
push edi
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x1008030a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100802d9
xor eax, eax
mov dword [esi], 0x51
jmp 0x1008030a
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.100a70a0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.1007fc80
mov eax, dword [ebx]
mov dword [eax + 0xeac], ebp
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0x104
ret

Function at 0x100808e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0xc24], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10080934
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1007fb40
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100b197c
add esp, 0x18
ret
mov edx, dword [esi + 0xb38]
push edx
mov dword [esp + 0xc], 1
call fcn.1007d810
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb3c]
push eax
call fcn.1007d810
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100809ad
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.1007fb40
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100b197c
add esp, 0x18
ret
Function at 0x10081180
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
cmp dword [ebx + 0x2f8], 3
push ebp
push esi
push edi
jne 0x10081341
cmp dword [ebx + 0x544], 0
jne 0x10081341
cmp dword [ebx + 0x590], 0
jne 0x10081341
mov esi, dword [esp + 0x224]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10081220
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x11c]
mov esi, eax
push edx
push esi
call fcn.100a70a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.1007fc80
add esp, 0x1c
jmp 0x1008134a
push edi
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], edi
call fcn.100b52f0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10081279
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push 0x100
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.100a70a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.1007fc80
add esp, 0x1c
jmp 0x1008134a
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 0x3a0]
push ecx
lea esi, [ebx + 0x372]
push esi
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.100810e0
add esp, 0x10
test eax, eax
jne 0x100812d7
call fcn.100b600e
mov esi, eax
call fcn.100b600e
mov edx, dword [esi]
push 0x100
lea ecx, [esp + 0x11c]
push ecx
push edx
mov edi, eax
call fcn.100a70a0
push eax
mov eax, dword [edi]
push eax
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.1007fc80
add esp, 0x1c
jmp 0x1008134a
mov eax, dword [esp + 0x14]
lea edi, [ebx + 0x2c4]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x3d4]
push ecx
lea edx, [ebx + 0x3a4]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
movsw word es:[edi], word [esi]
call fcn.100810e0
add esp, 0x10
test eax, eax
jne 0x10081341
call fcn.100b600e
mov esi, eax
call fcn.100b600e
push 0x100
lea edx, [esp + 0x11c]
mov edi, eax
mov eax, dword [esi]
push edx
push eax
call fcn.100a70a0
mov ecx, dword [edi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.1007fc80
add esp, 0x1c
jmp 0x1008134a
push ebx
call fcn.10081060
add esp, 4
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0x20c
ret
Function at 0x100814b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10081511
push 0x100
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100a70a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1007fb40
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100b197c
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x474], 0
je 0x100815ed
push eax
call fcn.1007aa30
add esp, 4
test eax, eax
jne 0x1008160d
xor eax, eax
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x100815ea
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1008160d
ret
mov eax, 1
ret
Function at 0x10086f60
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x101b00f4
push ecx
call fcn.1007fb40
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10085f50
test eax, eax
jne 0x10086f90
mov ecx, esi
jmp fcn.10086380
ret
Function at 0x10087410
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx + 0x7b8]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x10087497
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.100b4ba0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov eax, dword [esi + 0x14c]
cmp eax, 4
jge 0x100874d2
push str.Received_too_short_packet
push ebp
call fcn.1007fc80
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0x8c
ret
mov edx, dword [esi + 0x15c]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x100874f7
jmp dword [ecx*4 + 0x10087640]
cmp eax, 4
jle case.0x100874f7.4
mov ecx, dword [esi + 0x15c]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x40]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x100874f7.4
mov edx, dword [esi + 0x15c]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.10080170
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10087563
mov ecx, 5
mov eax, esi
call fcn.10087390
mov eax, edi
jmp 0x100874b9
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebp + 0x98], eax
mov ecx, dword [ebp + 0x98]
adc dword [ebp + 0x9c], edx
mov eax, dword [ebp + 0x9c]
push eax
push ecx
push ebp
call fcn.1009aef0
add esp, 0xc
jmp case.0x100874f7.4
mov edi, dword [esi + 0x15c]
lea ebx, [eax - 4]
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebx
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call fcn.100b3b20
add esp, 0xc
test eax, eax
je 0x100875dd
sub eax, edi
cmp eax, ebx
jae 0x100875dd
push edi
push str.TFTP_error:__s_n
push ebp
call fcn.1007fb40
add esp, 0xc
mov ebx, dword [esp + 0x14]
push ebx
call fcn.1009b910
add esp, 4
test eax, eax
je 0x100874b7
mov ecx, 5
mov eax, esi
call fcn.10087390
mov eax, 0x2a
jmp 0x100874b9
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.100860c0
add esp, 0xc
test eax, eax
je case.0x100874f7.4
jmp 0x100874b9
push str.Internal_error:_Unexpected_packet
push 0x10201190
push ebp
call fcn.1007fc80
add esp, 0xc
jmp case.0x100874f7.4
Function at 0x10087850
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10087885
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.1007fc80
add esp, 0xc
jmp 0x100878be
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x100878b0
shr eax, 8
test al, al
jne 0x100878b0
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100b197c
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.1007fc80
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.100b197c
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10087a94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1007fc80
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.10087950
add esp, 4
pop esi
pop ecx
ret
Function at 0x10088790
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x138]
mov dword [esp + 4], eax
jne 0x100888e7
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x100887c7
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100887d2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100887dd
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1008880f
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008881d
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10088827
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10088831
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008883c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10088847
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.10087ca0
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x100888a2
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1007fc80
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.10088520
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jns 0x100888e4
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1007fc80
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x1008dfa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x424]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1008dffd
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.10081620
add esp, 8
cmp ebx, 0xffffffff
jne 0x1008e021
push str.Error_accept__ing_server_connect
push edi
call fcn.1007fc80
add esp, 8
mov eax, 0x1e
jmp 0x1008e093
push str.Connection_accepted_from_server_n
push edi
call fcn.1007fb40
push 1
push ebx
mov dword [esi + 0x564], 0
mov dword [esi + 0x424], ebx
call fcn.100a89f0
add esp, 0x10
mov dword [esi + 0x5ac], 1
cmp dword [edi + 0x620], 0
je 0x1008e091
push 1
push edi
call fcn.1007efd0
mov ecx, dword [edi + 0x624]
mov edx, dword [edi + 0x620]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.1007efd0
add esp, 0x1c
test ebx, ebx
je 0x1008e091
call fcn.1008df00
mov eax, 0x2a
jmp 0x1008e093
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0x88
ret
Function at 0x10091a40
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x10091a7a
push str.Couldnt_set_desired_mode
push edi
call fcn.1007fc80
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x10091a91
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.1007fb40
add esp, 0xc
cmp ebp, 0x13
jne 0x10091aa6
push ebx
call fcn.100919c0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10091ab7
call fcn.1008ebd0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x10091ad0
push 0xd
push 1
push ebx
call fcn.10090ca0
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10091ae4
push 0xe
push 1
push ebx
call fcn.10090ca0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x10097da0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ebx, eax
je 0x10097db2
cmp dword [ebx], eax
jne 0x10097de1
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x10097dbe
cmp dword [ecx], eax
jne 0x10097de5
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x10097dca
cmp dword [edx], eax
jne 0x10097de9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.10097d50
add esp, 8
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
lea esi, [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, eax
jg 0x10097e15
jl 0x10097e05
cmp edi, eax
jae 0x10097e0b
mov dword [esp + 0xc], eax
jmp 0x10097e87
cmp esi, eax
jl 0x10097e7f
jg 0x10097e15
cmp edi, eax
jbe 0x10097e7f
push ebp
push eax
push 0x3e8
push esi
push edi
call fcn.100b5e90
push 0
push 0x3e8
push edx
push eax
mov ebp, eax
mov ebx, edx
call fcn.100b70c0
push 0
sub edi, eax
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.100b70c0
mov dword [esp + 0x18], edx
test ebx, ebx
jl 0x10097e66
jg 0x10097e59
cmp ebp, 0x7fffffff
jbe 0x10097e66
mov ebp, accept
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
xor eax, eax
pop ebp
jmp 0x10097e87
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x10097e8f
cmp dword [edx], eax
jne 0x10097e91
xor edx, edx
cmp ecx, eax
je 0x10097e99
cmp dword [ecx], eax
jne 0x10097e9b
xor ecx, ecx
cmp ebx, eax
je 0x10097ea5
cmp dword [ebx], eax
je 0x10097ea5
mov eax, ebx
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x10099930
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x102181c4]
mov edi, eax
add esp, 8
test edi, edi
je 0x100998f8
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10099910
cmp esi, ebx
je 0x10099910
cmp esi, 0x8000
ja 0x10099910
cmp esi, ebx
jb 0x10099909
push esi
push edi
call dword [0x102181c4]
mov edi, eax
add esp, 8
test edi, edi
jne 0x100998c0
push ebp
call dword [0x102181c0]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x102181c0]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x100998a0
Function at 0x1009a580
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x1009a739
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1009a716
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1009a5ee
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009a5e0
sub eax, edx
lea ebx, [eax + 1]
jmp 0x1009a5f0
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x1009a5fd
lea ebp, [eax + 0xe]
jmp 0x1009a609
cmp eax, 0x17
jne 0x1009a6a3
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x1009a6a3
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1009a6a3
cmp eax, ebp
jb 0x1009a6a3
lea edx, [ebx + ebp + 0x20]
push edx
call dword [0x102181bc]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x1009a6b0
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call fcn.100b4ba0
add esp, 0xc
test ebx, ebx
je 0x1009a689
mov eax, dword [esi + 0x18]
add eax, ebp
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call fcn.100b4ba0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x1009a694
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1009a69f
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x1009a5d3
jmp 0x1009a6b8
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x1009a6c9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x1009a70f
mov eax, dword [esp + 8]
test eax, eax
je 0x1009a6f3
jmp 0x1009a6e0
mov esi, dword [eax + 0x1c]
push eax
call dword [0x102181c0]
add esp, 4
mov eax, esi
test esi, esi
jne 0x1009a6e0
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
cmp dword [esp + 8], 0
jne 0x1009a729
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
Function at 0x1009d190
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x10227284], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x1009d1c7
call fcn.10103090
test eax, eax
je 0x1009d1df
mov dword [0x10227284], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.100b197c
add esp, 0x1b8
ret
mov eax, dword [esi + 0xa50]
test eax, eax
je 0x1009d200
push 0x400
push eax
call fcn.101030f0
add esp, 8
call fcn.10103090
test eax, eax
jne 0x1009d1c7
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x1009d220
lea eax, [esp + 0x34]
push eax
call fcn.10098390
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 0
push 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.10097d50
add esp, 0xc
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.100b70c0
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.10098390
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.10098390
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.100b70c0
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.10098390
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.10098390
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
dec dword [esp + 0x20]
jne 0x1009d220
fld qword [0x101b4648]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.10102f60
add esp, 0x10
call fcn.10103090
test eax, eax
je 0x1009d203
lea ecx, [esp + 0xc4]
push 0x100
push ecx
mov byte [esp + 0xcc], 0
call fcn.10103230
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x1009d378
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.101030f0
add esp, 8
call fcn.10103090
test eax, eax
jne 0x1009d1c7
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.1007fb40
add esp, 8
call fcn.10103090
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.100b197c
add esp, 0x1b8
ret