Function at 0x1401a34a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14041f880]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
movsxd rax, r8d
mov rbx, rcx
xor r12d, r12d
mov rdi, rdx
mov qword [rsp + 0x68], r12
lea rcx, [rax + rax*2]
mov r14, qword [rdx + rcx*8 + 0x280]
lea r8d, [r12 + 0x50]
xor edx, edx
mov qword [rbp - 0x78], r14
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea r15d, [r12 + 2]
mov esi, 0x2a8
mov dword [rbp - 0x60], 4
lea r13d, [rsi + 0x18]
cmp byte [rdi + 0x359], r12b
je 0x1401a35a4
mov al, byte [r14 + 0x6b]
mov edx, dword [rdi + 0x13c]
neg al
sbb ecx, ecx
and ecx, 0xffffffe8
add ecx, 0x20
cmp edx, r15d
jne 0x1401a3558
cmp qword [rdi + 0x1f8], 0xffffffffffffffff
mov eax, esi
cmovne eax, r13d
cmp dword [rax + rdi], r15d
je 0x1401a3558
mov al, byte [rbx + 0x70b]
jmp 0x1401a355e
mov al, byte [rbx + 0x643]
test al, al
je 0x1401a356a
or ecx, 0x1800
jmp 0x1401a35a9
cmp edx, r15d
jne 0x1401a358c
cmp qword [rdi + 0x1f8], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r13
cmp dword [rax + rdi], r15d
je 0x1401a358c
mov al, byte [rbx + 0x70d]
jmp 0x1401a3592
mov al, byte [rbx + 0x645]
test al, al
je 0x1401a359e
or ecx, 0x1a00
jmp 0x1401a35a9
bts ecx, 9
jmp 0x1401a35a9
mov ecx, 0x1808
mov dword [rbp - 0x18], ecx
cmp byte [rdi + 0x35a], r12b
jne 0x1401a35bb
or ecx, 4
mov dword [rbp - 0x18], ecx
cmp dword [rdi + 0x13c], r15d
jne 0x1401a35e1
cmp qword [rdi + 0x1f8], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r13
cmp dword [rax + rdi], r15d
je 0x1401a35e1
mov al, byte [rbx + 0x70f]
jmp 0x1401a35e7
mov al, byte [rbx + 0x647]
test al, al
jne 0x1401a35fd
and ecx, 0xffffffbf
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [rbp - 0x18], ecx
jmp 0x1401a3604
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate
mov rcx, rbx
call fcn.1401992c4
mov ecx, dword [rdi + 0x2e0]
test ecx, ecx
je 0x1401a366b
sub ecx, 1
je 0x1401a366b
sub ecx, 1
je 0x1401a3652
sub ecx, 1
je 0x1401a3652
sub ecx, 1
je 0x1401a366b
sub ecx, 1
je 0x1401a366b
sub ecx, 1
je 0x1401a366b
cmp ecx, 1
je 0x1401a366b
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rbx
call fcn.1401991f8
mov eax, 0x23
jmp 0x1401a3c2d
lea rdx, str.SSL_versions_not_supported
mov rcx, rbx
call fcn.1401991f8
mov eax, 4
jmp 0x1401a3c2d
mov r8, rdi
lea rcx, [rbp - 0x60]
mov rdx, rbx
call fcn.1401a5728
test eax, eax
jne 0x1401a3c2d
mov ecx, dword [rdi + 0x13c]
cmp ecx, r15d
jne 0x1401a36ab
cmp qword [rdi + 0x1f8], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r13
cmp dword [rax + rdi], r15d
je 0x1401a36ab
mov rax, qword [rdi + 0x398]
jmp 0x1401a36b2
mov rax, qword [rdi + 0x318]
test rax, rax
je 0x1401a3707
cmp ecx, r15d
jne 0x1401a36d7
cmp qword [rdi + 0x1f8], 0xffffffffffffffff
cmovne rsi, r13
cmp dword [rsi + rdi], r15d
je 0x1401a36d7
mov rdx, qword [rdi + 0x398]
jmp 0x1401a36de
mov rdx, qword [rdi + 0x318]
lea r8, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call fcn.1401a5634
mov edi, eax
test eax, eax
je 0x1401a3707
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rbx
call fcn.1401991f8
mov eax, edi
jmp 0x1401a3c2d
mov rcx, qword [rbx + 0x5a0]
test rcx, rcx
jne 0x1401a3720
cmp qword [rbx + 0x5d8], r12
je 0x1401a3bf3
and qword [rsp + 0x60], r12
xor edi, edi
and qword [rsp + 0x58], r12
mov r15d, r12d
mov r13, qword [rbx + 0x5d8]
mov rsi, r12
mov dword [rsp + 0x54], r12d
mov r14, r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
test r13, r13
je 0x1401a3764
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x58], rax
jmp 0x1401a37c9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rdi, rax
test rax, rax
je 0x1401a3c28
lea r9, [rsp + 0x78]
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x54]
call fcn.1401a319c
mov esi, eax
test eax, eax
je 0x1401a3ab4
mov rcx, qword [rbx + 0x5a0]
cmp byte [rcx], r12b
je 0x1401a3a8e
lea rdx, [0x1403de9e4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r12, rax
test rax, rax
je 0x1401a3a8e
mov r15d, dword [rsp + 0x54]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x618]
test rcx, rcx
je 0x1401a380f
lea rdx, [0x1403e39ac]
call fcn.1401a186c
test eax, eax
jne 0x1401a380f
lea rsi, str._memory_blob_
test r13, r13
jne 0x1401a37f8
mov rsi, qword [rbx + 0x5a0]
mov r8, rsi
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rbx
call fcn.1401991f8
jmp 0x1401a3b0e
test r12, r12
jne 0x1401a381d
test r13, r13
je 0x1401a3ac0
and dword [rsp + 0x70], r14d
lea rsi, str._memory_blob_
xor r15d, r15d
test r13, r13
jne 0x1401a3838
mov rsi, qword [rbx + 0x5a0]
test rdi, rdi
je 0x1401a3846
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x1401a3946
xor edi, edi
xor edx, edx
mov rcx, r12
lea r8d, [rdi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
mov dword [rsp + 0x54], eax
sete byte [rsp + 0x50]
test eax, eax
jne 0x1401a38f9
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
test eax, eax
jns 0x1401a38f5
mov byte [rsp + 0x50], r14b
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
test rdi, rdi
je 0x1401a38b0
mov rdx, rcx
mov r9, r12
mov rcx, rdi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
je 0x1401a38b5
mov byte [rsp + 0x50], r14b
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r12d, r12d
cmp byte [rsp + 0x50], r12b
jne 0x1401a394e
mov r8, qword [rbx + 0x5a0]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rbx
call fcn.1401991f8
mov rcx, rdi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x3a
jmp 0x1401a3c2d
mov eax, dword [rsp + 0x54]
mov ecx, edi
mov qword [rsp + 0x58], rcx
test eax, eax
jne 0x1401a393c
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
sete byte [rsp + 0x50]
test eax, eax
jne 0x1401a3887
mov rcx, qword [rsp + 0x58]
inc rcx
call qword [0x1404195d8]
mov rdi, rax
mov qword [rsp + 0x60], rax
jmp 0x1401a388c
mov rdi, qword [rsp + 0x60]
jmp 0x1401a3891
mov rdi, qword [rsp + 0x60]
xor r12d, r12d
mov rcx, qword [rbx + 0x638]
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x80], rdi
mov dword [rsp + 0x78], eax
test rcx, rcx
je 0x1401a396f
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, rax
lea rcx, [r15*2 + 2]
call qword [0x1404195d8]
mov rdi, rax
test rax, rax
je 0x1401a39da
test r15, r15
je 0x1401a3a11
mov r8, qword [rbx + 0x638]
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 0x1401a3a15
mov word [rdi], r12w
xor r8d, r8d
lea rcx, [rsp + 0x78]
mov rdx, rdi
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rdi
mov r14, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
jne 0x1401a39ea
mov rcx, qword [rsp + 0x60]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x1401a3a37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
mov rcx, rbx
cmp eax, 0x56
jne 0x1401a3a23
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.1401991f8
jmp 0x1401a38eb
mov eax, dword [rsp + 0x70]
cmp eax, r15d
jg 0x1401a39b9
mov eax, eax
mov word [rdi + rax*2], r12w
jmp 0x1401a39bd
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.1401991f8
jmp 0x1401a38eb
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov edx, 0x10001
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1401a3bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
lea rdx, str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
mov r9d, eax
mov rcx, rbx
call fcn.1401991f8
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x1401a38eb
mov r8, qword [rbx + 0x5a0]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rbx
call fcn.1401991f8
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, esi
jmp 0x1401a3c2d
mov r15d, dword [rsp + 0x54]
mov rsi, qword [rsp + 0x70]
jmp 0x1401a3ac3
xor r12d, r12d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov r9d, r15d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r14, rax
test rax, rax
jne 0x1401a3b25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rsi
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, rbx
call fcn.1401991f8
mov rcx, rsi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x1401a38eb
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1401a38eb
mov rcx, rsi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x78]
lea rax, [rbp + 0xb0]
mov edx, 0x28
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], r12
lea r9, [rbp + 0xb0]
mov dword [rbp - 0x70], setsockopt
lea r8d, [rdx - 0x24]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1401a3b89
test rdi, rdi
je 0x1401a3a7e
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1401a3a7e
mov r9d, 0x10000
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x70]
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rdi, rdi
je 0x1401a3bc5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1401a3a7e
lea rax, [rsp + 0x68]
mov dword [rbp - 0x5c], 1
xor edx, edx
mov qword [rbp - 0x58], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov r14, qword [rbp - 0x78]
mov r15d, 2
mov edx, 0x28
lea ecx, [rdx - 0x27]
call qword [0x1404195f8]
mov qword [r14], rax
test rax, rax
jne 0x1401a3c57
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rbx
call fcn.1401991f8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401a3c28
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402dd7d0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rax + 0x20], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rcx, qword [r14]
xor r9d, r9d
mov r8d, r15d
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov rax, qword [0x14041fd70]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x68]
mov edi, eax
test rcx, rcx
je 0x1401a3cad
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test edi, edi
je 0x1401a3cf9
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, edi
call fcn.14017a9a0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rbx
call fcn.1401991f8
mov rcx, qword [r14]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x1b
mov qword [r14], r12
cmp edi, 0x80090300
lea ecx, [rax + 8]
cmovne eax, ecx
jmp 0x1401a3c2d
xor eax, eax
jmp 0x1401a3c2d