joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d36a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
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 - 8], eax
test eax, eax
jne 0x101d3837
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x101d3823
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x101d36fe
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101d36f0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x101d3700
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x101d3712
mov eax, 0x10
jmp 0x101d3720
cmp eax, 0x17
jne 0x101d37c5
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x101d37c5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x101d37c5
cmp edx, eax
jb 0x101d37c5
add ecx, 0x20
add eax, ecx
push eax
call dword [0x1042b7b0]
mov edi, eax
add esp, 4
test edi, edi
je 0x101d3815
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.101fcde0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x101d37b3
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.101fcde0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x101d37c2
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x101d36e0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x101d37e2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x101d381f
test ebx, ebx
je 0x101d3806
nop word [eax + eax]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1042b7b4]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x101d37f0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x101d37d3
test ebx, ebx
jne 0x101d382f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101d3a50
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x101d3a96
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
push 2
call fcn.101d3980
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x101d3ac8
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.101d3980
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret

Function at 0x101d3c30
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.102136c8
add esp, 0x18
test eax, eax
je 0x101d3c52
cmp eax, 0xffffffff
jne 0x101d3c54
xor eax, eax
pop ebp
ret

Function at 0x101d3ca0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x101d3d47
mov esi, dword [ebp + 0xc]
nop dword [eax]
push 4
lea eax, [ebp + 0x10]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp edi, ebx
cmovb ebx, edi
call fcn.101bb7d0
add esp, 0xc
cmp eax, 4
jne 0x101d3d05
cmp byte [0x104e478c], 0
jne 0x101d3d10
push 2
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x101d3d49
mov eax, dword [ebp + 0x10]
jmp 0x101d3d2c
imul eax, dword [0x104e4788], 0x41c64e6d
add eax, 0x3039
mov dword [0x104e4788], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x101d3d3f
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x101d3d30
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x101d3cc0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x101d91f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.101d9160

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x101defe6
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x101defec
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x101df015
push str.Error_accept__ing_server_connect
push edi
call fcn.101c0fa0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.101c1060
mov byte [ebx + 0x205], 0
push 1
push dword [ebp - 0x88]
call fcn.101ee780
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.101c1d20
add esp, 0x20
test eax, eax
jne 0x101df0ae
cmp dword [edi + 0x1b0], eax
je 0x101df0ac
push 1
push edi
call fcn.101b0a00
mov eax, dword [edi + 0x1b0]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.101b0a00
add esp, 0x1c
test esi, esi
je 0x101df0ac
push 1
push edi
call fcn.101d0d00
push 1
push ebx
push edi
call fcn.101d0c70
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret

Function at 0x101e16c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x101e16f2
push str.Couldnt_set_desired_mode
push esi
call fcn.101c0fa0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x101e1709
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.101c1060
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x101e1722
push ebx
push esi
call fcn.101e1360
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x101e1737
push esi
call fcn.101e0260
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x101e1750
push 0xd
push 1
push esi
call fcn.101e0e70
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x101e1764
push 0xe
push 1
push esi
call fcn.101e0e70
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x101e7c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x101e7ca8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.101c0fa0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.101e7550
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
jne 0x101e7f3e
push edi
lea eax, [ebx + 0x1cb4]
lea edi, [ebx + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x101e7e18
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x101e7e23
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x101e7e2e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x101e7e5e
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x101e7e6b
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x101e7e78
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x101e7e85
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x101e7e90
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x101e7e9b
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea ecx, [ebx + 0x1cb4]
mov esi, dword [ebp + 8]
mov dword [ebx + 0x1eb8], eax
sub eax, ecx
sub eax, 2
mov dword [edi], ecx
push eax
lea eax, [ebx + 0x1cb6]
push eax
push 0x3e
push esi
call fcn.101e7650
add esp, 0x10
lea eax, [ebx + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x101e7efb
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.101c0fa0
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb7]
push eax
push esi
call fcn.101e7cc0
add esp, 0xc
lea eax, [ebx + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x101e7f3c
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.101c0fa0
add esp, 0xc
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101e8f50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x2b0]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x101e8fdc
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.101fcde0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x101e900f
push str.Received_too_short_packet
push ebx
call fcn.101c0fa0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x101e9030
jmp dword [ecx*4 + 0x101e9190]
cmp edx, 4
jle case.0x101e9030.4
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x101e9030.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi + 0x148]
add eax, 4
push eax
push 1
push ebx
call fcn.101c0f00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101e90a3
push 5
push edi
call fcn.101e9a00
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.101d1260
jmp 0x101e915a
mov eax, dword [edi + 0x148]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 0x148]
push esi
push dword [ebp - 0x8c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
call fcn.101e9b30
add esp, 8
cmp eax, esi
jae case.0x101e9030.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.101c1060
jmp 0x101e915a
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x148]
add eax, 2
push eax
push edi
call fcn.101e8d10
add esp, 0xc
test eax, eax
je case.0x101e9030.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x10410128
push ebx
call fcn.101c0fa0
add esp, 0xc
push ebx
call fcn.101d1580
add esp, 4
test eax, eax
je 0x101e8ffc
push 5
push edi
call fcn.101e9a00
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x101e9a00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x101e9a10
jmp dword [edx*4 + 0x101e9a64]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.101e94c0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.101e91a0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.101e9c60
push str.TFTP_finished
push 0x10410128
push ecx
call fcn.101c1060
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x10410128
push ecx
call fcn.101c0fa0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x101ec0a0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov al, byte [edi]
test al, al
jne 0x101ec0d9
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push ebx
cmp al, 0x5b
jne 0x101ec25f
cmp esi, 4
jb 0x101ec1d9
inc edi
sub esi, 2
cmp byte [esi + edi], 0x5d
lea ebx, [esi + edi]
jne 0x101ec1d9
push str.0123456789abcdefABCDEF:.
push edi
call fcn.10213b30
add esp, 8
cmp esi, eax
je 0x101ec1c4
mov dword [ebp - 0x50], eax
add eax, edi
mov dword [ebp - 0x4c], eax
cmp byte [eax], 0x25
jne 0x101ec1d9
push 2
lea esi, [eax + 1]
xor ebx, ebx
push 0x103bbdf4
push esi
call fcn.102002b0
add esp, 0xc
test eax, eax
jne 0x101ec14c
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x101ec14c
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x101ec1ef
lea ecx, [ebp - 0x14]
sub ecx, esi
nop dword [eax + eax]
cmp al, 0x5d
je 0x101ec175
cmp ebx, 0xf
jge 0x101ec175
mov byte [ecx + esi], al
inc ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x101ec160
test ebx, ebx
je 0x101ec1ef
cmp byte [esi], 0x5d
jne 0x101ec1ef
cmp ebx, 0x10
jae 0x101ec287
lea eax, [ebp - 0x14]
mov byte [ebp + ebx - 0x14], 0
push eax
call dword [0x1042b7bc]
mov ecx, dword [ebp - 0x48]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x101ec1b9
pop ebx
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov word [ebx], 0x5d
lea eax, [ebp - 0x14]
mov byte [ebx], 0
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x101ec205
pop ebx
pop edi
mov eax, 0x16
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x101ec249
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x101ec220
sub edx, ecx
cmp edx, esi
jae 0x101ec249
lea ecx, [ebp - 0x44]
mov esi, edi
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x101ec236
lea ebx, [edx + edi]
mov byte [ebx + 1], al
mov byte [ebx], 0x5d
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push str.__r_n_t_:______________
push edi
call fcn.102036f0
add esp, 8
cmp esi, eax
je 0x101ec24c
mov ecx, dword [ebp - 4]
mov eax, 0x15
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
call fcn.100aa282
int3
Function at 0x101edad0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp ebx, 0x20
jbe 0x101edaf4
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call esi
cmp eax, 1
jne 0x101edb1b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
call esi
cmp eax, 1
je 0x101edb23
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x101edb59
cmp ebx, 0x20
je 0x101edb59
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov edi, eax
call esi
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, edi
shl edx, cl
pop edi
test edx, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [ebp - 8]
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101edb70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x28], eax
mov ebx, 0x80
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
cmovne ebx, eax
push edi
lea eax, [ebp - 0x24]
mov edi, ebx
push eax
push ecx
push 0x17
shr edi, 3
and ebx, 7
call esi
cmp eax, 1
jne 0x101edbd0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push 0x17
call esi
cmp eax, 1
jne 0x101edbd0
cmp edi, 0x10
ja 0x101edbd0
jne 0x101edbe3
test ebx, ebx
je 0x101edbe7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x101edc37
mov esi, edi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
sub esi, 4
jb 0x101edc05
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x101edc0a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x101edbf4
cmp esi, 0xfffffffc
je 0x101edc37
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101edbd0
cmp esi, 0xfffffffd
je 0x101edc37
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101edbd0
cmp esi, 0xfffffffe
je 0x101edc37
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101edbd0
cmp esi, 0xffffffff
je 0x101edc37
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x101edbd0
test ebx, ebx
je 0x101edc5d
movzx eax, byte [ebp + edi - 0x24]
mov ecx, 8
movzx edx, byte [ebp + edi - 0x14]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
je 0x101edbd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x101f4140
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x11
push str.WWW_Authenticate:
push edi
mov dword [ebp + 8], 0
call sym.gcm32.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x101f4175
mov ebx, dword [esi + 0xf0]
cmp ebx, 0x191
je 0x101f4197
push 0x13
push str.Proxy_authenticate:
push edi
call sym.gcm32.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x101f41dd
mov ebx, dword [esi + 0xf0]
cmp ebx, 0x197
jne 0x101f41dd
push edi
call fcn.101cb060
mov edi, eax
add esp, 4
test edi, edi
jne 0x101f41ae
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0x197
push edi
sete al
movzx eax, al
push eax
push esi
call fcn.101ccb20
push edi
mov esi, eax
call dword [0x1042b7b4]
add esp, 0x10
test esi, esi
je 0x101f4324
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
push 0xf
push str.Content_Length:
push edi
call sym.gcm32.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x101f4238
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x101f4218
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.101c1060
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
add eax, 0x1f8
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.101d29b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.101cafb0
add esp, 0x14
test al, al
jne 0x101f42ed
push 0x12
push str.Transfer_Encoding:
push edi
call sym.gcm32.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x101f42d2
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x101f4292
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.101c1060
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.101cafb0
add esp, 0x14
test al, al
je 0x101f4324
push str.CONNECT_responded_chunked
push esi
call fcn.101c1060
mov eax, dword [ebp + 0xc]
push esi
mov byte [eax + 0x204], 1
call fcn.101efe40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.101cafb0
add esp, 0x14
test al, al
je 0x101f42fe
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov byte [eax + 0x205], 1
xor eax, eax
pop ebp
ret
lea ebx, [esi + 0xf0]
push ebx
lea eax, [ebp + 8]
push eax
push str.HTTP_1._d__d
push edi
call fcn.101b63e0
add esp, 0x10
cmp eax, 2
jne 0x101f4324
mov eax, dword [ebx]
mov dword [esi + 0xd7c], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret