Function at 0x1003cea0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x102e9418]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
mov ebx, dword [esp + 0x1ac]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b4]
push edi
mov esi, dword [edi + 8]
call fcn.10021b40
push ebx
push edi
mov dword [esp + 0x58], eax
call fcn.10021b20
mov dword [esp + 0x24], 0
xor ebp, ebp
mov edx, dword [esi + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0x4c]
mov ecx, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], edx
cmp byte [esi + 0x39], 0
je 0x1003ce40
cmp byte [edx + 0x48], 0
mov eax, 8
mov edx, 0x20
cmove eax, edx
cmp byte [ecx + 0x63], 0
je 0x1003ce2c
or eax, 0x1800
jmp 0x1003ce45
cmp byte [ecx + 0x65], 0
je 0x1003ce39
or eax, 0x1a00
jmp 0x1003ce45
or eax, 0x200
jmp 0x1003ce45
mov eax, 0x1808
mov edx, eax
or edx, 4
cmp byte [esi + 0x3a], 0
cmovne edx, eax
cmp byte [ecx + 0x67], 0
mov dword [esp + 0x38], edx
jne 0x1003ce6f
or edx, 0x10
push str.schannel:_disabled_automatic_use_of_client_certificate
push ebx
mov dword [esp + 0x40], edx
call fcn.10028dd0
jmp 0x1003ce82
push str.schannel:_enabled_automatic_use_of_client_certificate
push ebx
call fcn.10028dd0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
movzx eax, byte [esi + 0x38]
add esp, 8
cmp eax, 7
ja case.default.0x1003ce99
movzx eax, byte [eax + 0x1003d938]
jmp dword [eax*4 + 0x1003d930]
push ebx
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.1003ea40
add esp, 0xc
test eax, eax
jne 0x1003d915
mov eax, dword [ebx + 0x3b8]
test eax, eax
jne 0x1003cecd
cmp dword [ebx + 0x3cc], ebp
je 0x1003d369
mov ecx, dword [ebx + 0x3cc]
xor edi, edi
mov dword [esp + 0x20], ebp
xor esi, esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], ebp
xor ebp, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1003cf08
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
jmp 0x1003cf85
push eax
call fcn.1006add1
mov esi, eax
add esp, 4
test esi, esi
je 0x1003d3aa
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call fcn.1003cc30
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1003cf81
mov ecx, dword [ebx + 0x3b8]
cmp byte [ecx], 0
je 0x1003cf5e
push 0x102cda20
push ecx
call fcn.10039470
mov edi, eax
add esp, 8
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x1003cf89
push dword [ebx + 0x3b8]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebx
call fcn.10028d00
push esi
call fcn.1005cfd2
mov eax, dword [esp + 0x3c]
add esp, 0x10
jmp 0x1003d915
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1003cff0
mov eax, dword [ebx + 0x3f8]
test eax, eax
je 0x1003cfdc
push 0x102d3824
push eax
call fcn.1002d300
add esp, 8
test eax, eax
jne 0x1003cfdc
mov eax, str._memory_blob_
cmp dword [esp + 0x34], ebp
jne 0x1003cfb6
mov eax, dword [ebx + 0x3b8]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebx
call fcn.10028d00
add esp, 0xc
test esi, esi
je 0x1003cfd2
push esi
call fcn.1005cfd2
add esp, 4
mov eax, 0x3a
jmp 0x1003d915
mov ecx, dword [esp + 0x34]
test edi, edi
jne 0x1003d108
test ecx, ecx
jne 0x1003d108
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
or eax, 0x4000
push edi
push eax
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebp, eax
push edi
test ebp, ebp
jne 0x1003d060
call fcn.1006add1
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
test edi, edi
mov ecx, str._unknown_
cmovne ecx, edi
push ecx
push dword [esp + 0x28]
push str.schannel:_Failed_to_open_cert_store__lx__s__last_error_is_0x_lx
push ebx
call fcn.10028d00
push dword [esp + 0x38]
call dword [0x102e9004]
add esp, 0x18
test edi, edi
je 0x1003cfc5
push edi
call fcn.1005cfd2
add esp, 4
jmp 0x1003cfc5
call dword [0x102e9004]
add esp, 4
mov dword [esp + 0x54], 0x14
lea eax, [esp + 0x94]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push 0
push 0
push eax
lea eax, [esp + 0xa0]
push eax
push 4
push 0x28
push dword [esp + 0x58]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1003d0bf
test esi, esi
je 0x1003d0ac
push esi
call fcn.1005cfd2
add esp, 4
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x1003d915
push 0
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test esi, esi
je 0x1003d0ee
push esi
call fcn.1005cfd2
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x1003d365
push eax
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x1003d915
xor edi, edi
test ecx, ecx
je 0x1003d118
mov dword [esp + 0x20], str._memory_blob_
jmp 0x1003d122
mov eax, dword [ebx + 0x3b8]
mov dword [esp + 0x20], eax
test esi, esi
je 0x1003d12f
push esi
call fcn.1005cfd2
add esp, 4
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x1003d219
push 2
push 0
push esi
mov dword [esp + 0x30], edi
call fcn.1005dc56
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x1003d1ce
push esi
call fcn.100633d4
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jns 0x1003d1ca
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x1003d18d
push esi
push 1
push ecx
push eax
call fcn.100625bb
add esp, 0x10
cmp eax, 1
je 0x1003d192
mov byte [esp + 0x13], 0
push esi
call fcn.1005caa7
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x1003d219
push dword [ebx + 0x3b8]
push str.schannel:_Failed_to_read_cert_file__s
push ebx
call fcn.10028d00
push dword [esp + 0x28]
call dword [0x102e9004]
add esp, 0x10
mov eax, 0x3a
jmp 0x1003d915
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
test al, al
je 0x1003d210
push 0
push 0
push esi
call fcn.1005dc56
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x1003d16f
mov eax, dword [esp + 0x24]
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x1003d173
mov eax, dword [esp + 0x1c]
jmp 0x1003d177
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x408]
test eax, eax
je 0x1003d241
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1003d238
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x1003d2c3
test edi, edi
je 0x1003d29f
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebx + 0x408]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x1003d2a1
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.100490b0
add esp, 0x14
test al, al
lea eax, [esp + 0x2c]
je 0x1003d2ad
push 0x8000
jmp 0x1003d2af
xor eax, eax
cmp eax, edi
jg 0x1003d279
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x1003d27e
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov ebp, eax
call dword [0x102e9004]
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x1003d2d7
push dword [esp + 0x1c]
call dword [0x102e9004]
add esp, 4
test ebp, ebp
jne 0x1003d31d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x1003d300
push dword [esp + 0x20]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebx
call fcn.10028d00
add esp, 0xc
lea eax, [ebp + 0x3a]
jmp 0x1003d915
push eax
push dword [esp + 0x24]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
push ebx
call fcn.10028d00
add esp, 0x10
mov eax, 0x3a
jmp 0x1003d915
push 0
push 0
push 0
push 0
push 0x10001
push ebp
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1003d365
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x24]
push str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_lx
push ebx
call fcn.10028d00
add esp, 0x10
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x1003d915
mov esi, dword [esp + 0x4c]
push 0x20
push 1
call dword [0x102e9010]
mov edi, dword [esp + 0x58]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x1003d3b4
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.10028d00
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x1003d39d
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebp, ebp
je 0x1003d3aa
push 0
push ebp
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x1003d915
mov dword [eax + 0x18], 1
mov eax, dword [edi]
mov dword [eax + 0x14], ebp
cmp dword [esi + 0x10], 0
jne 0x1003d7b5
push 3
push 2
push 0x4563
push 0
push 0xa
call fcn.100490b0
add esp, 0x14
test al, al
je 0x1003d7b5
push 0x2c
lea eax, [esp + 0x60]
push 0
push eax
call fcn.10056ce0
push 0x70
lea eax, [esp + 0xbc]
mov dword [esp + 0xa4], 0
xorps xmm0, xmm0
mov dword [esp + 0xb8], 0
push 0
push eax
movups xmmword [esp + 0xb0], xmm0
call fcn.10056ce0
mov edi, dword [esi + 0x14]
xor eax, eax
add esp, 0x18
mov word [esp + 0x2c], ax
xor edx, edx
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov word [esp + 0x40], ax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
test edi, edi
je 0x1003d73b
mov dl, 1
mov dword [esp + 0x3c], eax
mov byte [esp + 0x15], 1
mov byte [esp + 0x14], 1
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], 1
mov byte [esp + 0x13], dl
cmp byte [edi], 0
je 0x1003d5b6
cmp eax, 5
jge 0x1003d5b6
push 0x3a
push edi
call fcn.10058730
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1003d49c
mov esi, ebp
sub esi, edi
jmp 0x1003d4aa
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003d4a1
sub esi, ecx
cmp byte [esp + 0x15], 0
je 0x1003d4d3
push esi
push edi
push str.TLS_AES_256_GCM_SHA384
call fcn.1003cbc0
add esp, 0xc
test al, al
je 0x1003d4d3
mov dl, byte [esp + 0x13]
xor ch, ch
mov byte [esp + 0x15], ch
jmp 0x1003d578
mov al, byte [esp + 0x14]
test al, al
je 0x1003d501
push esi
push edi
push str.TLS_AES_128_GCM_SHA256
call fcn.1003cbc0
add esp, 0xc
test al, al
je 0x1003d501
mov ch, byte [esp + 0x15]
xor dh, dh
mov dl, byte [esp + 0x13]
mov byte [esp + 0x14], dh
jmp 0x1003d57c
cmp byte [esp + 0x17], 0
je 0x1003d526
push esi
push edi
push str.TLS_CHACHA20_POLY1305_SHA256
call fcn.1003cbc0
add esp, 0xc
test al, al
je 0x1003d526
mov dl, byte [esp + 0x13]
mov byte [esp + 0x17], 0
jmp 0x1003d574
cmp byte [esp + 0x16], 0
je 0x1003d554
push esi
push edi
push str.TLS_AES_128_CCM_8_SHA256
call fcn.1003cbc0
add esp, 0xc
test al, al
je 0x1003d554
mov ch, byte [esp + 0x15]
xor cl, cl
mov dl, byte [esp + 0x13]
mov dh, byte [esp + 0x14]
mov byte [esp + 0x16], cl
jmp 0x1003d580
cmp byte [esp + 0x13], 0
je 0x1003d59c
push esi
push edi
push str.TLS_AES_128_CCM_SHA256
call fcn.1003cbc0
add esp, 0xc
test al, al
je 0x1003d59c
xor dl, dl
mov byte [esp + 0x13], dl
mov ch, byte [esp + 0x15]
mov dh, byte [esp + 0x14]
mov cl, byte [esp + 0x16]
mov edi, ebp
test ebp, ebp
je 0x1003d589
lea edi, [ebp + 1]
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x1003d473
jmp 0x1003d5c2
push edi
push esi
push str.schannel:_Unknown_TLS_1.3_cipher:__.s
push ebx
call fcn.10028d00
add esp, 0x10
mov eax, 0x3b
jmp 0x1003d915
mov dh, byte [esp + 0x14]
mov ch, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
test ch, ch
je 0x1003d5ee
test dh, dh
je 0x1003d5ee
cmp byte [esp + 0x17], 0
je 0x1003d5ee
test cl, cl
je 0x1003d5f2
test dl, dl
je 0x1003d5ee
push str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
push ebx
call fcn.10028d00
mov eax, 0x3b
jmp 0x1003d912
test cl, cl
jne 0x1003d5f6
test dl, dl
je 0x1003d669
mov dword [esp + 0x2c], 0x200020
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], str.ChainingModeCCM
mov dword [esp + 0xac], 2
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xb0], 0x80008
mov dword [esp + 0xb4], 0x102d3ad8
cmp cl, dl
je 0x1003d662
test cl, cl
je 0x1003d657
mov dword [esp + 0xc0], 0x80
mov edx, 1
jmp 0x1003d66b
mov dword [esp + 0xc4], 0x40
mov edx, 1
jmp 0x1003d66b
xor edx, edx
mov al, byte [esp + 0x14]
test ch, ch
jne 0x1003d67b
test al, al
je 0x1003d709
cmp ch, al
mov dword [esp + 0x40], 0x200020
mov dword [esp + 0x44], str.ChainingModeGCM
lea ecx, [edx*8]
je 0x1003d6cc
sub ecx, edx
mov eax, str.SHA384
shl ecx, 2
mov esi, str.SHA256
cmp byte [esp + 0x15], 0
cmove eax, esi
mov dword [esp + ecx + 0xac], 3
mov dword [esp + ecx + 0xb0], 0x40004
mov dword [esp + ecx + 0xb4], eax
jmp 0x1003d6f2
sub ecx, edx
shl ecx, 2
mov dword [esp + ecx + 0xac], 2
mov dword [esp + ecx + 0xb0], 0x80008
mov dword [esp + ecx + 0xb4], 0x102d3ad8
lea eax, [esp + 0x40]
mov dword [esp + ecx + 0xb8], 1
mov dword [esp + ecx + 0xbc], eax
inc edx
cmp byte [esp + 0x17], 0
je 0x1003d73b
lea eax, [edx*8]
sub eax, edx
inc edx
mov dword [esp + eax*4 + 0xac], 2
mov dword [esp + eax*4 + 0xb0], 0x240024
mov dword [esp + eax*4 + 0xb4], str.CHACHA20_POLY1305
lea eax, [esp + 0xac]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
or eax, 0x400000
mov dword [esp + 0x80], 1
cmp dword [esp + 0x18], 0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48]
not eax
mov dword [esp + 0x5c], 5
mov dword [esp + 0x9c], eax
je 0x1003d7a2
lea eax, [esp + 0x18]
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x50]
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
jmp 0x1003d878
mov esi, dword [esi + 0x10]
lea eax, [esp + 0x60]
push 0x34
push 0
push eax
call fcn.10056ce0
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], 4
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x7c], eax
test esi, esi
je 0x1003d84a
test eax, 0x2000
je 0x1003d7fd
push str.schannel:_WARNING:_This_version_of_Schannel_may_negotiate_a_less_secure_TLS_version_than_TLS_1.3_because_the_user_set_an_algorithm_cipher_list.
push ebx
call fcn.10028dd0
add esp, 8
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x14], 0
je 0x1003d81c
push str.schannel:_This_version_of_Schannel_does_not_support_setting_an_algorithm_cipher_list_and_TLS_1.3_cipher_list_at_the_same_time
push ebx
call fcn.10028d00
mov eax, 0x3b
jmp 0x1003d912
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x60]
push esi
push eax
call fcn.1003eb10
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1003d857
push str.schannel:_Failed_setting_algorithm_cipher_list
push ebx
call fcn.10028d00
mov eax, esi
jmp 0x1003d912
or ecx, 0x400000
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0x18], 0
je 0x1003d86e
lea eax, [esp + 0x18]
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], eax
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
push ecx
push 0
push 0
push eax
mov eax, dword [0x102ea764]
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
mov eax, dword [eax + 0xc]
push 0
call eax
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1003d8a4
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x1003d8ec
push 0x100
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.100394b0
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebx
call fcn.10028d00
push dword [edi]
call dword [0x102e9004]
xor eax, eax
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0x80090300
setne al
lea eax, [eax*8 + 0x1b]
jmp 0x1003d915
xor eax, eax
jmp 0x1003d915
push str.SSL_versions_not_supported
push ebx
call fcn.10028d00
mov eax, 4
jmp 0x1003d912
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebx
call fcn.10028d00
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10053c7f
add esp, 0x1a0
ret