Function at 0x1402833fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14042f068]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov r14, rcx
call fcn.140262484
mov rdx, rdi
mov qword [rbp - 0x70], rax
mov rcx, r14
mov r13, rax
call fcn.140262464
mov rdx, rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov esi, eax
mov r12, qword [rbx + 0x20]
xor ebx, ebx
mov dword [rsp + 0x64], eax
mov qword [rbp - 0x60], r12
cmp byte [r13 + 0x69], bl
je 0x1402834ac
mov cl, byte [r12 + 0x6c]
cmp byte [rdx + 0xb3], bl
je 0x140283488
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x1820
jmp 0x1402834b1
cmp byte [rdx + 0xb5], bl
je 0x14028349e
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x1a20
jmp 0x1402834b1
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x220
jmp 0x1402834b1
mov eax, 0x1808
mov r15d, eax
or r15d, 4
cmp byte [r13 + 0x6a], bl
cmovne r15d, eax
mov al, byte [rdx + 0xb7]
test al, al
jne 0x1402834ce
or r15d, 0x10
test al, al
mov dword [rsp + 0x60], r15d
lea rcx, str.schannel:_enabled_automatic_use_of_client_certificate
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
cmovne rdx, rcx
mov rcx, rdi
call fcn.14027c27c
movzx ecx, byte [r13 + 0x68]
test ecx, ecx
je 0x14028354d
sub ecx, 1
je 0x14028354d
sub ecx, 1
je 0x140283534
sub ecx, 1
je 0x140283534
sub ecx, 1
je 0x14028354d
sub ecx, 1
je 0x14028354d
sub ecx, 1
je 0x14028354d
cmp ecx, 1
je 0x14028354d
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.14027c1b0
mov eax, 0x23
jmp 0x140283a87
lea rdx, str.SSL_versions_not_supported
mov rcx, rdi
call fcn.14027c1b0
mov eax, 4
jmp 0x140283a87
mov r8, rdi
lea rcx, [rsp + 0x64]
mov rdx, r14
call fcn.140284fcc
test eax, eax
jne 0x140283a87
mov rcx, qword [rdi + 0x540]
test rcx, rcx
jne 0x14028357e
cmp qword [rdi + 0x568], rbx
je 0x140283a3c
mov r13, qword [rdi + 0x568]
mov r15d, ebx
mov dword [rsp + 0x54], ebx
mov r14, rbx
mov qword [rsp + 0x70], rbx
mov r12, rbx
mov qword [rbp - 0x58], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x68], rbx
mov qword [rbp - 0x80], r13
test r13, r13
je 0x1402835c2
mov rax, qword [r13]
mov qword [rsp + 0x78], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x68], rax
jmp 0x140283626
call case.0x140276512.1
mov rbx, rax
test rax, rax
je 0x140283a82
lea r9, [rbp - 0x58]
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x54]
call fcn.14028325c
mov r14d, eax
test eax, eax
je 0x14028391f
mov rcx, qword [rdi + 0x540]
cmp byte [rcx], r12b
je 0x1402838f9
lea rdx, [0x1403f718c]
call fcn.1402852d0
mov r12, rax
test rax, rax
je 0x1402838f9
mov r15d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rdi + 0x5b0]
test rcx, rcx
je 0x14028366e
lea rdx, [0x1403fc4b4]
call fcn.140281a90
xor ecx, ecx
test eax, eax
jne 0x14028366e
lea r14, str._memory_blob_
test r13, r13
jne 0x140283657
mov r14, qword [rdi + 0x540]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rdi
call fcn.14027c1b0
jmp 0x140283979
test r12, r12
jne 0x14028367c
test r13, r13
je 0x14028392b
mov dword [rsp + 0x70], ecx
mov r15, rcx
lea r14, str._memory_blob_
test r13, r13
jne 0x140283696
mov r14, qword [rdi + 0x540]
test rbx, rbx
je 0x1402836a5
mov rcx, rbx
call fcn.1402b4934
xor ecx, ecx
test r12, r12
je 0x140283791
xor edx, edx
mov r13d, ecx
mov rcx, r12
lea r8d, [rdx + 2]
call fcn.1402b61dc
test eax, eax
mov dword [rsp + 0x54], eax
sete bl
test eax, eax
jne 0x140283742
mov rcx, r12
call fcn.1402b7084
xor ecx, ecx
mov r13d, eax
test eax, eax
jns 0x14028373e
mov bl, cl
mov r13, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
test r13, r13
je 0x140283707
mov rdx, rcx
mov r9, r12
mov rcx, r13
mov r8d, 1
call fcn.1402b5e0c
cmp eax, 1
je 0x140283709
xor bl, bl
mov rcx, r12
call fcn.1402b6acc
test bl, bl
jne 0x14028378d
mov r8, qword [rdi + 0x540]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rdi
call fcn.14027c1b0
mov rcx, r13
call qword [str.4I_]
mov eax, 0x3a
jmp 0x140283a87
mov eax, dword [rsp + 0x54]
mov ecx, r13d
mov qword [rsp + 0x68], rcx
test eax, eax
jne 0x140283783
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.1402b61dc
test eax, eax
sete bl
test eax, eax
jne 0x1402836df
mov rcx, qword [rsp + 0x68]
inc rcx
call qword [str.HI_]
mov r13, rax
mov qword [rsp + 0x78], rax
jmp 0x1402836e4
mov r13, qword [rsp + 0x78]
jmp 0x1402836e9
mov r13, qword [rbp - 0x80]
mov rcx, qword [rdi + 0x5d0]
mov r12, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x58], eax
test rcx, rcx
je 0x1402837b6
call fcn.1402b31f0
mov r15, rax
lea rcx, [r15*2 + 2]
call qword [str.HI_]
mov rbx, rax
test rax, rax
je 0x140283857
test r15, r15
je 0x140283831
mov r8, qword [rdi + 0x5d0]
lea ecx, [r15 + 1]
mov dword [rsp + 0x28], ecx
mov r9d, r15d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jns 0x140283835
mov word [rbx], si
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1402987c8
lea rcx, [rbp - 0x58]
mov rdx, rbx
test al, al
je 0x140283842
mov r8d, 0x8000
jmp 0x140283845
mov eax, dword [rsp + 0x70]
cmp eax, r15d
jg 0x140283800
mov eax, eax
mov word [rbx + rax*2], si
jmp 0x140283803
xor r8d, r8d
call qword [sym.imp.crypt32.dll_PFXImportCertStore]
mov rcx, rbx
mov rsi, rax
call qword [str.4I_]
xor ebx, ebx
test r13, r13
jne 0x140283867
mov rcx, r12
call qword [str.4I_]
test rsi, rsi
jne 0x1402838a2
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8, r14
mov rcx, rdi
cmp eax, 0x56
jne 0x14028388e
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.14027c1b0
jmp 0x140283734
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.14027c1b0
jmp 0x140283734
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x10001
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140283a2f
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8, r14
lea rdx, str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
mov r9d, eax
mov rcx, rdi
call fcn.14027c1b0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertCloseStore]
jmp 0x140283734
mov r8, qword [rdi + 0x540]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rdi
call fcn.14027c1b0
mov rcx, rbx
call fcn.1402b4934
mov eax, r14d
jmp 0x140283a87
mov r15d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x70]
jmp 0x14028392e
xor r12d, r12d
xor edx, edx
mov qword [rsp + 0x20], r14
mov r9d, r15d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.crypt32.dll_CertOpenStore]
mov rsi, rax
test rax, rax
jne 0x14028398f
call qword [sym.imp.kernel32.dll_GetLastError]
mov r9, r14
lea rdx, str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.14027c1b0
mov rcx, r14
call qword [str.4I_]
test rbx, rbx
je 0x140283734
mov rcx, rbx
call fcn.1402b4934
jmp 0x140283734
mov rcx, r14
call qword [str.4I_]
mov rcx, qword [rbp - 0x58]
lea rax, [rbp + 0x48]
mov edx, 0x28
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], r12
lea r9, [rbp + 0x48]
mov dword [rbp - 0x48], 0x14
lea r8d, [rdx - 0x24]
mov qword [rsp + 0x20], rax
call qword [sym.imp.crypt32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1402839eb
test rbx, rbx
je 0x1402838e9
mov rcx, rbx
call fcn.1402b4934
jmp 0x1402838e9
mov r9d, 0x10000
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x48]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.crypt32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x140283a26
mov rcx, rbx
call fcn.1402b4934
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1402838e9
mov r15d, dword [rsp + 0x60]
mov r13, qword [rbp - 0x70]
mov r12, qword [rbp - 0x60]
mov edx, 0x30
lea ecx, [rdx - 0x2f]
call qword [str.HT_]
mov qword [r12], rax
test rax, rax
jne 0x140283ab1
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.14027c1b0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140283a72
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
test rsi, rsi
je 0x140283a82
xor edx, edx
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertCloseStore]
mov eax, 0x1b
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1402af300
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rax + 0x28], 1
mov rax, qword [r12]
mov qword [rax + 0x20], rsi
xor esi, esi
cmp qword [r13 + 0x20], rsi
jne 0x140283eb1
xor edx, edx
mov dword [rsp + 0x20], 3
lea ecx, [rsi + 0xa]
mov r8d, 0x4563
lea r9d, [rsi + 2]
call fcn.1402987c8
test al, al
je 0x140283eb1
xor edx, edx
lea r8d, [rsi + 0x48]
lea rcx, [rbp - 0x30]
call fcn.1402b0760
xorps xmm0, xmm0
mov dword [rbp + 0x70], esi
xor eax, eax
lea rcx, [rbp + 0xa0]
xor edx, edx
mov qword [rbp + 0x40], rax
mov r8d, 0x90
mov qword [rbp + 0x98], rax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
call fcn.1402b0760
mov rbx, qword [r13 + 0x28]
xor eax, eax
mov word [rbp - 0x70], si
mov r14d, esi
mov qword [rbp - 0x6e], rax
mov dword [rbp - 0x66], eax
mov word [rbp - 0x62], ax
mov word [rbp - 0x80], si
mov qword [rbp - 0x7e], rax
mov dword [rbp - 0x76], eax
mov word [rbp - 0x72], ax
test rbx, rbx
je 0x140283e4e
mov r15b, 1
xorps xmm0, xmm0
mov al, r15b
mov byte [rsp + 0x51], r15b
mov ecx, esi
mov byte [rsp + 0x52], al
mov dword [rsp + 0x54], ecx
mov r12b, r15b
movups xmmword [rbp + 0x48], xmm0
mov byte [rsp + 0x50], r15b
movups xmmword [rbp + 0x58], xmm0
cmp byte [rbx], sil
je 0x140283d01
cmp ecx, 5
jge 0x140283d01
mov edx, 0x3a
mov rcx, rbx
call fcn.1402b0d04
mov r13, rax
test rax, rax
je 0x140283bc0
mov rsi, rax
sub rsi, rbx
jmp 0x140283bcb
mov rcx, rbx
call fcn.1402b31f0
mov rsi, rax
cmp rsi, 0x1f
ja 0x140283ce8
mov r8, rsi
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.1402b5560
xor eax, eax
mov byte [rbp + rsi + 0x48], al
xor esi, esi
test r15b, r15b
je 0x140283c11
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_256_GCM_SHA384
call fcn.1402b49b0
test eax, eax
jne 0x140283c11
mov r15b, sil
mov al, byte [rsp + 0x52]
jmp 0x140283ca8
cmp byte [rsp + 0x51], sil
je 0x140283c3a
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_128_GCM_SHA256
call fcn.1402b49b0
test eax, eax
jne 0x140283c3a
mov al, byte [rsp + 0x52]
mov r9b, sil
mov byte [rsp + 0x51], sil
jmp 0x140283cad
cmp byte [rsp + 0x50], sil
je 0x140283c68
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_CHACHA20_POLY1305_SHA256
call fcn.1402b49b0
test eax, eax
jne 0x140283c68
mov al, byte [rsp + 0x52]
mov r8b, sil
mov r9b, byte [rsp + 0x51]
mov byte [rsp + 0x50], sil
jmp 0x140283cb2
test r12b, r12b
je 0x140283c86
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_128_CCM_8_SHA256
call fcn.1402b49b0
test eax, eax
jne 0x140283c86
mov r12b, sil
jmp 0x140283c08
cmp byte [rsp + 0x52], sil
je 0x140283cd3
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_128_CCM_SHA256
call fcn.1402b49b0
test eax, eax
jne 0x140283cd3
mov al, sil
mov byte [rsp + 0x52], al
mov r9b, byte [rsp + 0x51]
mov r8b, byte [rsp + 0x50]
mov rbx, r13
test r13, r13
je 0x140283cbe
lea rbx, [r13 + 1]
mov ecx, dword [rsp + 0x54]
inc ecx
mov dword [rsp + 0x54], ecx
test rbx, rbx
jne 0x140283b91
jmp 0x140283d0b
lea r8, [rbp + 0x48]
mov rcx, rdi
lea rdx, str.schannel:_Unknown_TLS_1.3_cipher:__s
call fcn.14027c1b0
jmp 0x140283cf7
lea rdx, str.schannel:_Cipher_name_too_long__not_checked
mov rcx, rdi
call fcn.14027c1b0
mov eax, 0x3b
jmp 0x140283a87
mov r9b, byte [rsp + 0x51]
mov r8b, byte [rsp + 0x50]
lea rdx, [0x1403fc798]
test r15b, r15b
je 0x140283d33
test r9b, r9b
je 0x140283d33
test r8b, r8b
je 0x140283d33
test r12b, r12b
je 0x140283d38
test al, al
je 0x140283d3c
lea rdx, str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
jmp 0x140283cef
test r12b, r12b
jne 0x140283d3c
test al, al
je 0x140283d9e
mov dword [rbp - 0x70], 0x200020
lea rcx, str.ChainingModeCCM
mov qword [rbp - 0x68], rcx
lea rcx, [rbp - 0x70]
mov qword [rbp + 0x90], rcx
mov dword [rbp + 0x70], 2
mov dword [rbp + 0x88], 1
mov dword [rbp + 0x78], 0x80008
mov qword [rbp + 0x80], rdx
cmp r12b, al
je 0x140283d98
test r12b, r12b
je 0x140283d8e
mov dword [rbp + 0x98], 0x80
jmp 0x140283d98
mov dword [rbp + 0x9c], 0x40
mov r14d, 1
mov al, r9b
test r15b, r15b
jne 0x140283daa
test al, al
je 0x140283e19
lea rax, str.ChainingModeGCM
mov dword [rbp - 0x80], 0x200020
mov qword [rbp - 0x78], rax
mov eax, r14d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp r15b, r9b
je 0x140283de0
test r15b, r15b
lea rax, str.SHA384
lea rdx, str.SHA256
cmovne rdx, rax
mov eax, esi
cmp r15b, r9b
setne al
add eax, 2
mov dword [rbp + rcx*8 + 0x70], eax
inc r14d
mov dword [rbp + rcx*8 + 0x78], 0x80008
lea rax, [rbp - 0x80]
mov qword [rbp + rcx*8 + 0x80], rdx
mov qword [rbp + rcx*8 + 0x90], rax
mov dword [rbp + rcx*8 + 0x88], 1
mov r12, qword [rbp - 0x60]
test r8b, r8b
je 0x140283e4e
mov eax, r14d
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, str.CHACHA20_POLY1305
inc r14d
mov dword [rbp + rcx*8 + 0x70], 2
mov dword [rbp + rcx*8 + 0x78], 0x240024
mov qword [rbp + rcx*8 + 0x80], rax
lea rax, [rbp + 0x70]
mov dword [rbp + 0x34], r14d
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x10], rax
mov eax, dword [rsp + 0x60]
bts eax, 0x16
mov dword [rbp + 8], 1
mov dword [rbp + 4], eax
mov eax, dword [rsp + 0x64]
not eax
mov dword [rbp - 0x30], 5
mov dword [rbp + 0x30], eax
cmp qword [rsp + 0x58], rsi
je 0x140283e9b
lea rax, [rsp + 0x58]
mov dword [rbp - 0x28], 1
mov qword [rbp - 0x20], rax
mov rcx, qword [r12]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
jmp 0x140283f5f
mov rbx, qword [r13 + 0x20]
lea rcx, [rbp - 0x30]
xor edx, edx
lea r8d, [rdx + 0x50]
call fcn.1402b0760
mov eax, dword [rsp + 0x64]
mov dword [rbp + 8], eax
mov dword [rbp - 0x30], 4
mov dword [rbp + 0x18], r15d
test rbx, rbx
je 0x140283f2e
bt eax, 0xd
jae 0x140283ef0
lea rdx, 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.
mov rcx, rdi
call fcn.14027c27c
cmp qword [r13 + 0x28], rsi
je 0x140283f02
lea rdx, str.schannel:_This_version_of_Schannel_does_not_support_setting_an_algorithm_cipher_list_and_TLS_1.3_cipher_list_at_the_same_time
jmp 0x140283cef
lea r8, [rbp + 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1402850b0
mov ebx, eax
test eax, eax
je 0x140283f37
lea rdx, str.schannel:_Failed_setting_algorithm_cipher_list
mov rcx, rdi
call fcn.14027c1b0
mov eax, ebx
jmp 0x140283a87
bts r15d, 0x16
mov dword [rbp + 0x18], r15d
cmp qword [rsp + 0x58], rsi
je 0x140283f4e
lea rax, [rsp + 0x58]
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x28], rax
mov rcx, qword [r12]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rcx
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rax, qword [0x1404309f0]
lea r8d, [r9 + 2]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140283f9f
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x140283fea
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, ebx
call fcn.1402598d0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rdi
call fcn.14027c1b0
mov rcx, qword [r12]
call qword [str.4I_]
mov eax, 0x1b
mov qword [r12], rsi
cmp ebx, 0x80090300
lea ecx, [rax + 8]
cmovne eax, ecx
jmp 0x140283a87
xor eax, eax
jmp 0x140283a87