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

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x46c008]
mov edi, eax
add esp, 8
test edi, edi
je 0x42d057
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x42d06f
cmp esi, ebx
je 0x42d06f
cmp esi, 0x8000
ja 0x42d06f
cmp esi, ebx
jb 0x42d068
push esi
push edi
call dword [0x46c008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x42d020
push ebp
call dword [0x46c004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x46c004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42e58c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00416de0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0042e160
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x42e6e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x14], 0x1f
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x12c]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
jne 0x42e84c
push ebp
push esi
lea ebp, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, ebp
mov dword [edi], ebp
cmp ebp, edi
jae 0x42e724
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x42e738
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x42e738
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
shr eax, 8
mov dword [esp + 0x14], eax
movzx ecx, word [ecx + 0x1caa]
push ecx
call esi
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov dword [esp + 0x18], eax
cmp ecx, edi
jae 0x42e7b5
mov eax, dword [esp + 0x24]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x42e7b5
mov eax, dword [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x42e7b5
mov eax, dword [esp + 0x18]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x42e7b5
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x42e7b5
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x42e7b5
mov byte [ecx], 0xf0
mov ecx, dword [edi]
inc ecx
mov esi, dword [esp + 0x20]
mov dword [edi], ebp
mov dword [esi + 0x1eb8], ecx
lea eax, [esi + 0x1cb6]
sub ecx, ebp
sub ecx, 2
push ecx
push eax
push 0x3e
push ebx
call fcn.0042e260
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0
push 3
push ebp
push dword [eax + 0x128]
mov ebp, dword [sym.imp.WS2_32.dll_send]
call ebp
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x42e80b
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00416de0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.0042e5b0
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x128]
call ebp
test eax, eax
jns 0x42e849
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00416de0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42fc60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + 0x380]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
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 0x42fce6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x42fd21
push str.Received_too_short_packet
push ebx
call fcn.00416de0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0x88
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.0x42fd40.1
jmp dword [ecx*4 + 0x42fe4c]
cmp esi, 4
jle case.0x42fd40.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.0x42fd40.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.00416f40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42fd9b
push 5
push edi
call fcn.00430760
add esp, 8
mov eax, esi
jmp 0x42fd08
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.00426f90
jmp 0x42fe21
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.004307d0
add esp, 8
cmp eax, esi
jae case.0x42fd40.4
push ebp
push str.TFTP_error:__s
push ebx
call fcn.00416eb0
jmp 0x42fe21
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0042fa10
add esp, 0xc
test eax, eax
je case.0x42fd40.4
jmp 0x42fd08
push str.Internal_error:_Unexpected_packet
push 0x45b1bc
push ebx
call fcn.00416de0
add esp, 0xc
push ebx
call fcn.004274f0
add esp, 4
test eax, eax
je 0x42fd06
push 5
push edi
call fcn.00430760
add esp, 8
mov eax, 0x2a
jmp 0x42fd08
Function at 0x436590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4365fb
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x4365ff
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x43662f
push str.Error_accept__ing_server_connect
push edi
call fcn.00416de0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00457062
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.00416eb0
mov byte [ebx + 0x1d5], 0
push 1
push dword [esp + 0x18]
call fcn.0044abe0
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.004425d0
add esp, 0x20
test eax, eax
jne 0x4366c9
cmp dword [edi + 0x1b4], eax
je 0x4366c7
push 1
push edi
call fcn.00406fe0
mov eax, dword [edi + 0x1b4]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1b8]
call eax
push 0
push edi
mov esi, eax
call fcn.00406fe0
add esp, 0x1c
test esi, esi
je 0x4366c7
push 1
push edi
call fcn.00416590
push 1
push ebx
push edi
call fcn.00416370
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00457062
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0x8c
ret
Function at 0x4385e0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x438610
push str.Couldnt_set_desired_mode
push esi
call fcn.00416de0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x438627
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00416eb0
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x438641
push ebx
push esi
call fcn.004384e0
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x43874d
mov edi, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4d8], 2
mov dword [esp + 0x18], edi
jne 0x4386be
mov eax, dword [esi + 0x12c]
mov eax, dword [eax]
test eax, eax
je 0x4386be
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.00440620
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x438778
push 0x2f
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x4386ad
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x4386ba
push dword [esp + 0x14]
call dword [0x46c004]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x50c]
test ecx, ecx
jne 0x4386dc
cmp byte [esi + 0xd6f], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x4697f8
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x45be44
cmove eax, edx
push eax
push ecx
push 0x45c4e8
call fcn.0041a990
push ebx
mov ebp, eax
call dword [0x46c004]
add esp, 0x14
test ebp, ebp
jne 0x438719
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x45b1bc
lea eax, [edi + 0x380]
push eax
push esi
call fcn.0044f230
push ebp
mov edi, eax
call dword [0x46c004]
add esp, 0x14
test edi, edi
jne 0x438778
mov eax, dword [esi + 0x18]
pop ebp
mov byte [eax + 0x41e], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x438765
push 0xd
push 1
push esi
call fcn.00438040
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x438778
push 0xe
push 1
push esi
call fcn.00438040
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x43f1c0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
cmp edi, 4
jb 0x43f33c
inc ebp
sub edi, 2
push str.0123456789abcdefABCDEF:.
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strspn
add esp, 8
cmp edi, eax
je 0x43f2be
mov edi, eax
add eax, ebp
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x43f33c
push 2
lea esi, [eax + 1]
xor ebx, ebx
push 0x462ef0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x43f23f
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x43f23f
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x43f33c
lea ecx, [esp + 0x18]
sub ecx, esi
nop
cmp al, 0x5d
je 0x43f265
cmp ebx, 0xf
jge 0x43f265
mov byte [ecx + esi], al
inc ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x43f250
test ebx, ebx
je 0x43f33c
cmp byte [esi], 0x5d
jne 0x43f33c
cmp ebx, 0x10
jae 0x43f354
lea eax, [esp + 0x18]
mov byte [esp + ebx + 0x18], 0
push eax
call dword [0x46c00c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x43f2b5
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00457062
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [edi + ebp], 0
push eax
push ebp
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x43f33c
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x43f323
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x43f2f3
sub edx, ecx
cmp edx, edi
jae 0x43f323
lea ecx, [esp + 0x28]
mov esi, ebp
mov eax, ecx
sub esi, eax
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x43f310
mov byte [edx + ebp + 1], al
mov edi, edx
mov byte [edi + ebp], 0x5d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00457062
add esp, 0x4c
ret
mov ecx, dword [esp + 0x58]
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0x4c
ret
call fcn.00457715
int3
Function at 0x4428b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x46c56c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x442901
push 3
push 2
push eax
push eax
push 6
call fcn.00446800
add esp, 0x14
test al, al
je 0x4428f5
mov dword [0x46c56c], 2
add esp, 0xc
ret
mov dword [0x46c56c], 1
jmp 0x442906
cmp eax, 2
je 0x44294c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x442931
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x44294c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x443430
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push edi
mov edi, dword [esp + 0x11c]
push 0
mov eax, dword [ebx]
push dword [esp + 0x11c]
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 0x4434ce
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x44349a
mov dword [edi], 0x51
jmp 0x4434ca
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004026d0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.00416de0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x930], esi
mov dword [edi], 0x38
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x108]
pop edi
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0x104
ret

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

Disassembly:
sub esp, 0x188
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x800
jne 0x44361d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4435aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push pe_nt_image_headers32
push eax
push esi
call fcn.004026d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00416de0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00457062
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00417a00
add esp, 0x10
test al, al
jne 0x44361d
push edi
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edi, eax
lea eax, [esp + 0x90]
push pe_nt_image_headers32
push eax
push esi
call fcn.004026d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00416de0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00457062
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0x188
ret
Function at 0x44b370
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x46c380]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.00428920
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x44b3ef
push pe_nt_image_headers32
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004027c0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00416de0
push esi
call dword [0x46c004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x44b54f
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x44b449
push pe_nt_image_headers32
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004027c0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00416de0
push 0
mov esi, 0x4d
call dword [0x46c004]
add esp, 0x20
jmp 0x44b541
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x44b489
push pe_nt_image_headers32
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004027c0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00416de0
add esp, 0x1c
mov esi, 0x4d
jmp 0x44b52d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x44b4b7
jg 0x44b49d
cmp edi, 0x100000
jbe 0x44b4b7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00416de0
add esp, 0xc
mov esi, 0x4d
jmp 0x44b52d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x44b4cf
lea esi, [eax + 0x1b]
jmp 0x44b52d
test edi, edi
je 0x44b514
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44b56c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44b568
add esi, eax
cmp esi, edi
jb 0x44b4e0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0044b170
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x46c004]
add esp, 4
push dword [esp + 0x20]
call fcn.0045837d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457062
add esp, 0x120
ret
mov edi, esi
jmp 0x44b514
push pe_nt_image_headers32
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004027c0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00416de0
add esp, 0x1c
mov esi, 0x4d
jmp 0x44b52d
Function at 0x451850
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.0041bf90
add esp, 0xc
test eax, eax
je 0x45187e
mov ebp, dword [edi + 0xe8]
cmp ebp, 0x191
je 0x4518a0
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.0041bf90
add esp, 0xc
test eax, eax
je 0x4518e6
mov ebp, dword [edi + 0xe8]
cmp ebp, 0x197
jne 0x4518e6
push esi
call fcn.00422330
mov esi, eax
add esp, 4
test esi, esi
jne 0x4518b7
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00423ed0
push esi
mov edi, eax
call dword [0x46c004]
add esp, 0x10
test edi, edi
je 0x451a85
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.0041bf90
add esp, 0xc
test eax, eax
je 0x451942
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x451921
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00416eb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x208
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00428d40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.00422280
add esp, 0x14
test al, al
jne 0x451a7a
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.0041bf90
add esp, 0xc
test eax, eax
je 0x4519e1
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x45199c
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00416eb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00422280
add esp, 0x14
test al, al
je 0x451a85
push str.CONNECT_responded_chunked
push edi
call fcn.00416eb0
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x214], 1
call fcn.00446cd0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00422280
add esp, 0x14
test al, al
jne 0x451a7a
push 7
push str.HTTP_1.
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x451a85
mov al, byte [esi + 7]
cmp al, 0x30
je 0x451a1b
cmp al, 0x31
jne 0x451a85
cmp byte [esi + 8], 0x20
jne 0x451a85
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x451a85
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x451a85
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0x451a85
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x451a4d
cmp al, 0x39
jle 0x451a85
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
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 ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x215], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret