Function at 0x102839c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x102c97f4]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1b0]
push esi
push edi
mov edi, dword [esp + 0x1b4]
push edi
mov esi, dword [edi + 8]
call fcn.10270a20
push ebp
push edi
mov dword [esp + 0x54], eax
call fcn.10270a10
mov dword [esp + 0x24], 0
mov edx, eax
mov eax, dword [esi + 0x1c]
xor ebx, ebx
mov esi, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], eax
cmp byte [esi + 0x39], bl
je 0x10283a4f
cmp byte [eax + 0x48], bl
mov ecx, 8
mov eax, 0x20
cmove ecx, eax
cmp byte [edx + 0x63], bl
je 0x10283a3a
or ecx, 0x1800
jmp 0x10283a54
cmp byte [edx + 0x65], bl
je 0x10283a47
or ecx, 0x1a00
jmp 0x10283a54
or ecx, 0x200
jmp 0x10283a54
mov ecx, 0x1808
mov eax, ecx
or eax, 4
cmp byte [esi + 0x3a], bl
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10
cmp byte [edx + 0x67], bl
cmovne ecx, eax
movzx eax, byte [esi + 0x38]
mov dword [esp + 0x50], ecx
cmp eax, 7
ja case.default.0x10283a82
movzx eax, byte [eax + 0x1028450c]
jmp dword [eax*4 + 0x10284504]
push ebp
lea eax, [esp + 0x48]
push edi
push eax
call fcn.102855f0
add esp, 0xc
test eax, eax
jne 0x102844eb
mov eax, dword [ebp + 0x3a0]
test eax, eax
jne 0x10283ab6
cmp dword [ebp + 0x3b4], ebx
je 0x10283f51
mov ecx, dword [ebp + 0x3b4]
xor edi, edi
mov dword [esp + 0x20], ebx
xor esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
xor ebx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x10283af1
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
jmp 0x10283b6d
push eax
call fcn.102a40e5
mov esi, eax
add esp, 4
test esi, esi
je 0x10283f92
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call fcn.10283840
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10283b69
mov ecx, dword [ebp + 0x3a0]
cmp byte [ecx], bl
je 0x10283b46
push 0x102b4728
push ecx
call fcn.10285880
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
test edi, edi
jne 0x10283b71
push dword [ebp + 0x3a0]
push str.schannel:_Failed_to_get_certificate_location_or_file_for__s
push ebp
call fcn.102762a0
push esi
call fcn.1029a2b6
mov eax, dword [esp + 0x3c]
add esp, 0x10
jmp 0x102844eb
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10283bd8
mov eax, dword [ebp + 0x3e0]
test eax, eax
je 0x10283bc4
push 0x102b6420
push eax
call fcn.102787e0
add esp, 8
test eax, eax
jne 0x10283bc4
mov eax, str._memory_blob_
cmp dword [esp + 0x34], ebx
jne 0x10283b9e
mov eax, dword [ebp + 0x3a0]
push eax
push str.schannel:_certificate_format_compatibility_error__for__s
push ebp
call fcn.102762a0
add esp, 0xc
test esi, esi
je 0x10283bba
push esi
call fcn.1029a2b6
add esp, 4
mov eax, 0x3a
jmp 0x102844eb
mov ecx, dword [esp + 0x34]
test edi, edi
jne 0x10283cf0
test ecx, ecx
jne 0x10283cf0
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 ebx, eax
push edi
test ebx, ebx
jne 0x10283c48
call fcn.102a40e5
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 ebp
call fcn.102762a0
push dword [esp + 0x38]
call dword [0x102c9534]
add esp, 0x18
test edi, edi
je 0x10283bad
push edi
call fcn.1029a2b6
add esp, 4
jmp 0x10283bad
call dword [0x102c9534]
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 + 0x54]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10283ca7
test esi, esi
je 0x10283c94
push esi
call fcn.1029a2b6
add esp, 4
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x102844eb
push 0
lea eax, [esp + 0x58]
push eax
push 0x10000
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test esi, esi
je 0x10283cd6
push esi
call fcn.1029a2b6
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x10283f4d
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x102844eb
xor edi, edi
test ecx, ecx
je 0x10283d00
mov dword [esp + 0x20], str._memory_blob_
jmp 0x10283d0a
mov eax, dword [ebp + 0x3a0]
mov dword [esp + 0x20], eax
test esi, esi
je 0x10283d17
push esi
call fcn.1029a2b6
add esp, 4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10283dfe
push 2
push 0
push esi
mov dword [esp + 0x30], ebx
call fcn.1029c12f
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x10283db3
push esi
call fcn.102a0746
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
jns 0x10283daf
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x10283d74
push esi
push 1
push ecx
push eax
call fcn.102a003b
add esp, 0x10
cmp eax, 1
je 0x10283d78
mov byte [esp + 0x13], bl
push esi
call fcn.10297177
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x10283dfe
push dword [ebp + 0x3a0]
push str.schannel:_Failed_to_read_cert_file__s
push ebp
call fcn.102762a0
push dword [esp + 0x28]
call dword [0x102c9534]
add esp, 0x10
mov eax, 0x3a
jmp 0x102844eb
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
test al, al
je 0x10283df5
push 0
push 0
push esi
call fcn.1029c12f
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x13], al
test al, al
je 0x10283d56
mov eax, dword [esp + 0x24]
inc eax
push eax
call dword [0x102c9530]
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x10283d5a
mov eax, dword [esp + 0x1c]
jmp 0x10283d5e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x3f0]
test eax, eax
je 0x10283e29
mov edi, eax
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x10283e20
sub edi, ecx
lea eax, [edi*2 + 2]
push eax
call dword [0x102c9530]
mov esi, eax
add esp, 4
test esi, esi
je 0x10283eab
test edi, edi
je 0x10283e87
lea ecx, [edi + 1]
push ecx
push esi
push edi
push dword [ebp + 0x3f0]
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x10283e89
xor eax, eax
mov word [esi], ax
push 3
push 2
push 0
push 0
push 6
call fcn.1028b400
add esp, 0x14
test al, al
lea eax, [esp + 0x2c]
je 0x10283e95
push 0x8000
jmp 0x10283e97
xor eax, eax
cmp eax, edi
jg 0x10283e61
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x10283e66
push 0
push esi
push eax
call dword [sym.imp.CRYPT32.dll_PFXImportCertStore]
push esi
mov ebx, eax
call dword [0x102c9534]
add esp, 4
cmp dword [esp + 0x34], 0
jne 0x10283ebf
push dword [esp + 0x1c]
call dword [0x102c9534]
add esp, 4
test ebx, ebx
jne 0x10283f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x56
jne 0x10283ee8
push dword [esp + 0x20]
push str.schannel:_Failed_to_import_cert_file__s__password_is_bad
push ebp
call fcn.102762a0
add esp, 0xc
lea eax, [ebx + 0x3a]
jmp 0x102844eb
push eax
push dword [esp + 0x24]
push str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
push ebp
call fcn.102762a0
add esp, 0x10
mov eax, 0x3a
jmp 0x102844eb
push 0
push 0
push 0
push 0
push 0x10001
push ebx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10283f4d
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 ebp
call fcn.102762a0
add esp, 0x10
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x102844eb
mov esi, dword [esp + 0x48]
push 0x20
push 1
call dword [0x102c9540]
mov edi, dword [esp + 0x54]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x10283f9c
push str.schannel:_unable_to_allocate_memory
push ebp
call fcn.102762a0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x10283f85
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x10283f92
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x102844eb
mov dword [eax + 0x18], 1
mov eax, dword [edi]
mov dword [eax + 0x14], ebx
cmp dword [esi + 0x10], 0
jne 0x102843a0
push 3
push 2
push 0x4563
push 0
push 0xa
call fcn.1028b400
add esp, 0x14
test al, al
je 0x102843a0
push 0x2c
lea eax, [esp + 0x60]
push 0
push eax
call fcn.10293870
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.10293870
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 + 0x3c], ax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
test edi, edi
je 0x10284325
mov bl, 1
mov dword [esp + 0x38], eax
mov dl, bl
mov byte [esp + 0x15], 1
mov byte [esp + 0x14], 1
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x13], dl
nop dword [eax + eax]
cmp byte [edi], 0
je 0x102841a2
cmp eax, 5
jge 0x102841a2
push 0x3a
push edi
call fcn.10295280
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10284089
mov esi, ebx
sub esi, edi
jmp 0x10284099
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10284090
sub esi, ecx
cmp byte [esp + 0x15], 0
je 0x102840c2
push esi
push edi
push str.TLS_AES_256_GCM_SHA384
call fcn.102837d0
add esp, 0xc
test al, al
je 0x102840c2
mov dl, byte [esp + 0x13]
xor ch, ch
mov byte [esp + 0x15], ch
jmp 0x10284164
mov al, byte [esp + 0x14]
test al, al
je 0x102840ed
push esi
push edi
push str.TLS_AES_128_GCM_SHA256
call fcn.102837d0
add esp, 0xc
test al, al
je 0x102840ed
mov ch, byte [esp + 0x15]
xor dh, dh
mov dl, byte [esp + 0x13]
mov byte [esp + 0x14], dh
jmp 0x10284168
cmp byte [esp + 0x17], 0
je 0x10284112
push esi
push edi
push str.TLS_CHACHA20_POLY1305_SHA256
call fcn.102837d0
add esp, 0xc
test al, al
je 0x10284112
mov dl, byte [esp + 0x13]
mov byte [esp + 0x17], 0
jmp 0x10284160
cmp byte [esp + 0x16], 0
je 0x10284140
push esi
push edi
push str.TLS_AES_128_CCM_8_SHA256
call fcn.102837d0
add esp, 0xc
test al, al
je 0x10284140
mov ch, byte [esp + 0x15]
xor cl, cl
mov dl, byte [esp + 0x13]
mov dh, byte [esp + 0x14]
mov byte [esp + 0x16], cl
jmp 0x1028416c
cmp byte [esp + 0x13], 0
je 0x10284188
push esi
push edi
push str.TLS_AES_128_CCM_SHA256
call fcn.102837d0
add esp, 0xc
test al, al
je 0x10284188
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, ebx
test ebx, ebx
je 0x10284175
lea edi, [ebx + 1]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
test edi, edi
jne 0x10284060
jmp 0x102841ae
push edi
push esi
push str.schannel:_Unknown_TLS_1.3_cipher:__.s
push ebp
call fcn.102762a0
add esp, 0x10
mov eax, 0x3b
jmp 0x102844eb
mov dh, byte [esp + 0x14]
mov ch, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
mov bl, byte [esp + 0x17]
test ch, ch
je 0x102841db
test dh, dh
je 0x102841db
test bl, bl
je 0x102841db
test cl, cl
je 0x102841df
test dl, dl
je 0x102841db
push str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
push ebp
call fcn.102762a0
mov eax, 0x3b
jmp 0x102844e8
test cl, cl
jne 0x102841e3
test dl, dl
je 0x10284256
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], 0x102b66d8
cmp cl, dl
je 0x1028424f
test cl, cl
je 0x10284244
mov dword [esp + 0xc0], 0x80
mov edx, 1
jmp 0x10284258
mov dword [esp + 0xc4], 0x40
mov edx, 1
jmp 0x10284258
xor edx, edx
mov al, byte [esp + 0x14]
test ch, ch
jne 0x10284268
test al, al
je 0x102842f6
cmp ch, al
mov dword [esp + 0x3c], 0x200020
mov dword [esp + 0x40], str.ChainingModeGCM
lea ecx, [edx*8]
je 0x102842b9
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 0x102842df
sub ecx, edx
shl ecx, 2
mov dword [esp + ecx + 0xac], 2
mov dword [esp + ecx + 0xb0], 0x80008
mov dword [esp + ecx + 0xb4], 0x102b66d8
lea eax, [esp + 0x3c]
mov dword [esp + ecx + 0xb8], 1
mov dword [esp + ecx + 0xbc], eax
inc edx
test bl, bl
je 0x10284325
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
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xac]
mov dword [esp + 0xa4], eax
or ecx, 0x400000
cmp dword [esp + 0x18], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
not eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0x80], 1
mov dword [esp + 0x5c], 5
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x1028438d
lea eax, [esp + 0x18]
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x4c]
mov ecx, dword [edi]
lea eax, [ecx + 8]
push eax
lea eax, [esp + 0x60]
jmp 0x1028444e
mov esi, dword [esi + 0x10]
lea eax, [esp + 0x60]
push 0x34
push 0
push eax
call fcn.10293870
mov ecx, dword [esp + 0x5c]
add esp, 0xc
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], 4
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x7c], eax
test esi, esi
je 0x10284420
mov eax, dword [esp + 0x48]
cmp dword [eax + 0x14], 0
je 0x102843f2
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 ebp
call fcn.102762a0
mov eax, 0x3b
jmp 0x102844e8
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x60]
push esi
push eax
call fcn.102856c0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1028442d
push str.schannel:_Failed_setting_algorithm_cipher_list
push ebp
call fcn.102762a0
mov eax, esi
jmp 0x102844e8
or ecx, 0x400000
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0x18], 0
je 0x10284444
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 [0x102cde14]
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 0x1028447a
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x102844c2
push 0x100
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.10288550
push eax
push str.schannel:_AcquireCredentialsHandle_failed:__s
push ebp
call fcn.102762a0
push dword [edi]
call dword [0x102c9534]
xor eax, eax
mov dword [edi], 0
add esp, 0x1c
cmp esi, 0x80090300
setne al
lea eax, [eax*8 + 0x1b]
jmp 0x102844eb
xor eax, eax
jmp 0x102844eb
push str.SSL_versions_not_supported
push ebp
call fcn.102762a0
mov eax, 4
jmp 0x102844e8
push str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
push ebp
call fcn.102762a0
mov eax, 0x23
add esp, 8
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10291b7e
add esp, 0x1a0
ret