joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9b4020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0xa59100]
mov edi, eax
add esp, 8
test edi, edi
je 0x9b407a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x9b4096
cmp esi, ebx
je 0x9b4096
cmp esi, 0x8000
ja 0x9b4096
cmp esi, ebx
jb 0x9b408d
push esi
push edi
call dword [0xa59100]
mov edi, eax
add esp, 8
test edi, edi
jne 0x9b4040
mov ebx, dword [ebp - 4]
push ebx
call dword [0xa590fc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0xa590fc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x9b9c4b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x18], eax
jmp 0x9b9c4e
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x9b9c77
push str.Error_accept__ing_server_connect
push edi
call fcn.0099d0f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.0099d1b0
mov byte [ebx + 0x1d5], 0
push 1
push dword [ebp - 0x18]
call fcn.009d3590
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push edi
call fcn.009ca7e0
add esp, 0x20
test eax, eax
jne 0x9b9d07
cmp dword [edi + 0x1b4], eax
je 0x9b9d05
push 1
push edi
call fcn.0098ce30
mov eax, dword [edi + 0x1b4]
push 1
push dword [ebp - 0x18]
push dword [edi + 0x1b8]
call eax
push 0
push edi
mov esi, eax
call fcn.0098ce30
add esp, 0x1c
test esi, esi
je 0x9b9d05
push 1
push edi
call fcn.0099c820
push 1
push ebx
push edi
call fcn.0099c600
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
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.009857d7
mov esp, ebp
pop ebp
ret
Function at 0x9bbce0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
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 + 0x18]
cmp eax, 0x64
jb 0x9bbd15
push str.Couldnt_set_desired_mode
push esi
call fcn.0099d0f0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xc8
je 0x9bbd2c
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0099d1b0
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x9bbd46
push ebx
push esi
call fcn.009bbbe0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x14
jne 0x9bbe53
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4d8], 2
mov dword [ebp + 0xc], eax
jne 0x9bbdb9
mov eax, dword [esi + 0x12c]
mov eax, dword [eax]
test eax, eax
je 0x9bbdb9
push 3
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
push ebx
push eax
call fcn.009c8940
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x9bbe6e
push 0x2f
push dword [ebp + 8]
call fcn.009df520
add esp, 8
test eax, eax
je 0x9bbdad
mov ebx, dword [ebp + 8]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x9bbdb9
push dword [ebp + 8]
call dword [0xa590fc]
add esp, 4
mov ecx, dword [esi + 0x50c]
test ecx, ecx
jne 0x9bbdd7
cmp byte [esi + 0xd6f], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0xa1d8e4
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0xa34c10
cmove eax, edx
push eax
push ecx
push 0xa360b0
call fcn.009acd70
mov edi, eax
push ebx
mov dword [ebp - 4], edi
call dword [0xa590fc]
add esp, 0x14
test edi, edi
jne 0x9bbe19
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push edi
push 0xa34db4
add eax, 0x380
push eax
push esi
call fcn.009d7c60
push dword [ebp - 4]
mov edi, eax
call dword [0xa590fc]
add esp, 0x14
test edi, edi
jne 0x9bbe6e
mov eax, dword [esi + 0x18]
mov byte [eax + 0x41e], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x15
jne 0x9bbe5b
push 0xd
jmp 0x9bbe61
cmp al, 0x16
jne 0x9bbe6e
push 0xe
push 1
push esi
call fcn.009bb740
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9c2730
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 + 0x18]
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 0x9c2778
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0099d0f0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.009c2340
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x12c]
mov eax, dword [ebx + 0x18]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
jne 0x9c2a1c
lea edx, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, edx
mov dword [edi], edx
cmp edx, edi
jae 0x9c28f0
lea eax, [edx + 1]
mov byte [edx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x9c2904
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x9c2904
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
shr eax, 8
mov dword [ebp - 8], eax
movzx ecx, word [ecx + 0x1caa]
push ecx
call esi
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov dword [ebp - 0xc], eax
cmp ecx, edi
jae 0x9c297b
mov eax, dword [ebp + 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x9c297b
mov eax, dword [ebp - 8]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x9c297b
mov eax, dword [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x9c297b
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x9c297b
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x9c297b
mov byte [ecx], 0xf0
mov ecx, dword [edi]
inc ecx
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1cb4]
mov dword [esi + 0x1eb8], ecx
sub ecx, eax
mov dword [edi], eax
sub ecx, 2
lea eax, [esi + 0x1cb6]
push ecx
push eax
push 0x3e
push ebx
call fcn.009c2440
add esp, 0x10
lea eax, [esi + 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 0x9c29d9
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0099d0f0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.009c2790
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x9c2a1b
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0099d0f0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9c2a30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x808], ebx
mov esi, dword [ebx + 0x12c]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x80c], edi
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.009c2440
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x9c2bfa
cmp cl, 0x23
je 0x9c2bd7
cmp cl, 0x27
jne 0x9c2c88
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.009ace10
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x9c2b71
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9c2af0
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edi
cmp eax, 0x7fa
jae 0x9c2b60
push 0x2c
push edx
call fcn.009df850
mov edx, eax
mov ebx, 0x800
lea eax, [ebp - 0x804]
add esp, 8
sub ebx, edi
add eax, edi
test edx, edx
jne 0x9c2b39
push dword [esi]
push edx
push str._c_s
push ebx
push eax
call fcn.009ace10
add esp, 0x14
jmp 0x9c2b5e
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
lea eax, [ebp - 0x804]
push edx
push 0
push str._c_.s_c_s
add eax, edi
push ebx
push eax
call fcn.009ace10
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x9c2ae4
mov ebx, dword [ebp - 0x808]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x804]
add eax, edi
push eax
call fcn.009ace10
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x9c2bd1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0099d0f0
add esp, 0xc
push edi
jmp 0x9c2c76
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9c2be2
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x9c2c1b
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x9c2c05
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x804]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.009ace10
add esp, 0x28
lea eax, [ebp - 0x804]
push 0
push esi
push eax
push dword [edi + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x9c2c72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0099d0f0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x802]
push eax
push 0x3e
push ebx
call fcn.009c2440
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009857d7
mov esp, ebp
pop ebp
ret
Function at 0x9c3ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + 0x380]
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 0x9c3f6c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.009dcc80
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x9c3f9f
push str.Received_too_short_packet
push ebx
call fcn.0099d0f0
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.009857d7
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x9c3fbe.1
jmp dword [ecx*4 + 0x9c40fc]
cmp esi, 4
jle case.0x9c3fbe.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x9c3fbe.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.0099d230
mov esi, eax
add esp, 0x10
test esi, esi
je 0x9c4025
push 5
push edi
call fcn.009c4a60
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.009ab300
jmp 0x9c40c5
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [ebp - 0x8c], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.009c4ae0
add esp, 8
cmp eax, esi
jae case.0x9c3fbe.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.0099d1b0
jmp 0x9c40c5
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.009c3c90
add esp, 0xc
test eax, eax
je case.0x9c3fbe.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0xa34db4
push ebx
call fcn.0099d0f0
add esp, 0xc
push ebx
call fcn.009ab840
add esp, 4
test eax, eax
je 0x9c3f8c
push 5
push edi
call fcn.009c4a60
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.009857d7
mov esp, ebp
pop ebp
ret
Function at 0x9c4a60
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.0x9c4a70
jmp dword [edx*4 + 0x9c4ac4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.009c4440
mov dword [ebp + 8], eax
pop ebp
jmp fcn.009c4120
mov dword [ebp + 8], eax
pop ebp
jmp fcn.009c4c10
push str.TFTP_finished
push 0xa34db4
push ecx
call fcn.0099d1b0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0xa34db4
push ecx
call fcn.0099d0f0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x9caae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xa5dfb4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x9cab32
push 3
push 2
push eax
push eax
push 6
call fcn.009cede0
add esp, 0x14
test al, al
je 0x9cab26
mov dword [0xa5dfb4], 2
mov esp, ebp
pop ebp
ret
mov dword [0xa5dfb4], 1
jmp 0x9cab37
cmp eax, 2
je 0x9cab77
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x9cab5e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x9cab77
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x9cb680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0
mov eax, dword [ebx]
push dword [ebp + 0x10]
push ecx
mov eax, dword [eax + 8]
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x9cb721
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x9cb6eb
pop esi
mov dword [edi], 0x51
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.009aee10
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.0099d0f0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x930], esi
or eax, 0xffffffff
mov dword [edi], 0x38
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.009857d7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x800
jne 0x9cb860
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.009dd200
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x9cb7f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.009aee10
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0099d0f0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.0099dcf0
add esp, 0x10
test al, al
jne 0x9cb860
push edi
call fcn.009e7dc7
mov esi, dword [eax]
call fcn.009e7dc7
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.009aee10
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0099d0f0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.009857d7
mov esp, ebp
pop ebp
ret
Function at 0x9d91f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x9d9223
push 0x2e
push edi
call fcn.009df850
add esp, 8
test eax, eax
je 0x9d9221
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x9d9520
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9d960e
push esi
mov esi, dword [ebp + 0x10]
push 8
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [ebp - 0xc], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [ebp - 0xb], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [ebp - 0xa], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [ebp - 9], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [ebp - 8], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [ebp - 7], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [ebp - 0x10], 8
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 5], cl
call fcn.009dcb60
add esp, 8
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x9d961f
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [edi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.009857d7
mov esp, ebp
pop ebp
ret
Function at 0x9da190
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.009a0d60
add esp, 0xc
test eax, eax
je 0x9da1c0
mov eax, dword [edi + 0xe8]
mov dword [ebp + 0xc], eax
cmp eax, 0x191
je 0x9da1e4
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.009a0d60
add esp, 0xc
test eax, eax
je 0x9da22b
mov eax, dword [edi + 0xe8]
mov dword [ebp + 0xc], eax
cmp eax, 0x197
jne 0x9da22b
push esi
call fcn.009a4580
mov esi, eax
add esp, 4
test esi, esi
jne 0x9da1fb
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.009a60f0
push esi
mov edi, eax
call dword [0xa590fc]
add esp, 0x10
test edi, edi
je 0x9da3c7
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xf
push str.Content_Length:
push esi
call fcn.009a0d60
add esp, 0xc
test eax, eax
je 0x9da286
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x9da266
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.0099d1b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
add eax, 0x208
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.009af9b0
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 esi
call fcn.009a44e0
add esp, 0x14
test al, al
jne 0x9da3bd
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.009a0d60
add esp, 0xc
test eax, eax
je 0x9da324
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x9da2e0
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.0099d1b0
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 esi
call fcn.009a44e0
add esp, 0x14
test al, al
je 0x9da3c7
push str.CONNECT_responded_chunked
push edi
call fcn.0099d1b0
mov eax, dword [ebp + 0x10]
push edi
mov byte [eax + 0x214], 1
call fcn.009cf2a0
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 esi
call fcn.009a44e0
add esp, 0x14
test al, al
jne 0x9da3bd
push 7
push str.HTTP_1.
push esi
call fcn.009ed020
add esp, 0xc
test eax, eax
jne 0x9da3c7
mov al, byte [esi + 7]
cmp al, 0x30
je 0x9da35e
cmp al, 0x31
jne 0x9da3c7
cmp byte [esi + 8], 0x20
jne 0x9da3c7
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x9da3c7
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x9da3c7
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x9da3c7
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x9da390
cmp al, 0x39
jle 0x9da3c7
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe8], eax
mov dword [edi + 0xd84], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x215], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret