Function at 0x14005f0fc
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 - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rbp + 0x120], rax
movsxd rax, r8d
xor r13d, r13d
add rax, 0x1a
mov qword [rsp + 0x68], r13
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x50]
lea r8d, [r13 + 0x50]
lea r14, [rax + rax*2]
mov qword [rbp - 0x70], r14
call sub.VCRUNTIME140.dll_memset
lea r15d, [r13 + 2]
mov esi, 0x2a0
mov dword [rbp - 0x50], 4
lea r12d, [rsi + 0x18]
cmp byte [rdi + 0x348], r13b
je 0x14005f1fe
mov rax, qword [rdi + r14*8 + 8]
mov cl, byte [rax + 0x6b]
neg cl
mov ecx, dword [rdi + 0x13c]
sbb edx, edx
and edx, 0xffffffe8
add edx, 0x20
cmp ecx, r15d
jne 0x14005f1b2
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov eax, esi
cmovne eax, r12d
cmp dword [rax + rdi], r15d
je 0x14005f1b2
mov al, byte [rbx + 0x713]
jmp 0x14005f1b8
mov al, byte [rbx + 0x64b]
test al, al
je 0x14005f1c4
or edx, 0x1800
jmp 0x14005f209
cmp ecx, r15d
jne 0x14005f1e6
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r12
cmp dword [rax + rdi], r15d
je 0x14005f1e6
mov al, byte [rbx + 0x715]
jmp 0x14005f1ec
mov al, byte [rbx + 0x64d]
test al, al
je 0x14005f1f8
or edx, 0x1a00
jmp 0x14005f209
bts edx, 9
jmp 0x14005f209
mov ecx, dword [rdi + 0x13c]
mov edx, 0x1808
mov dword [rbp - 8], edx
cmp byte [rdi + 0x349], r13b
jne 0x14005f21b
or edx, 4
mov dword [rbp - 8], edx
cmp ecx, r15d
jne 0x14005f23d
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r12
cmp dword [rax + rdi], r15d
je 0x14005f23d
mov al, byte [rbx + 0x717]
jmp 0x14005f243
mov al, byte [rbx + 0x64f]
test al, al
jne 0x14005f259
and edx, 0xffffffbf
or edx, 0x10
mov dword [rbp - 8], edx
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
jmp 0x14005f260
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate
mov rcx, rbx
call fcn.14005a460
mov ecx, dword [rdi + 0x2d8]
test ecx, ecx
je 0x14005f2c7
sub ecx, 1
je 0x14005f2c7
sub ecx, 1
je 0x14005f2ae
sub ecx, 1
je 0x14005f2ae
sub ecx, 1
je 0x14005f2c7
sub ecx, 1
je 0x14005f2c7
sub ecx, 1
je 0x14005f2c7
cmp ecx, 1
je 0x14005f2c7
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rbx
call fcn.14005a394
mov eax, 0x23
jmp 0x14005f8a0
lea rdx, str.SSL_versions_not_supported
mov rcx, rbx
call fcn.14005a394
mov eax, 4
jmp 0x14005f8a0
mov r8, rdi
lea rcx, [rbp - 0x50]
mov rdx, rbx
call fcn.140061670
test eax, eax
jne 0x14005f8a0
mov ecx, dword [rdi + 0x13c]
cmp ecx, r15d
jne 0x14005f307
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r12
cmp dword [rax + rdi], r15d
je 0x14005f307
mov rax, qword [rdi + 0x388]
jmp 0x14005f30e
mov rax, qword [rdi + 0x310]
test rax, rax
je 0x14005f368
cmp ecx, r15d
jne 0x14005f333
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
cmovne rsi, r12
cmp dword [rsi + rdi], r15d
je 0x14005f333
mov rdx, qword [rdi + 0x388]
jmp 0x14005f33a
mov rdx, qword [rdi + 0x310]
mov r8, qword [rdi + r14*8 + 8]
lea rcx, [rbp - 0x50]
add r8, 0x6c
call fcn.140061580
mov esi, eax
test eax, eax
je 0x14005f368
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rbx
call fcn.14005a394
mov eax, esi
jmp 0x14005f8a0
mov rcx, qword [rbx + 0x5a8]
test rcx, rcx
jne 0x14005f381
cmp qword [rbx + 0x5d8], r13
je 0x14005f859
mov rax, qword [rbx + 0x5d8]
mov r12d, r13d
and qword [rsp + 0x60], r12
xor esi, esi
and qword [rsp + 0x58], r12
mov r14, r13
mov dword [rsp + 0x54], r13d
mov r15, r13
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14005f3c8
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
jmp 0x14005f42d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
test rax, rax
je 0x14005f89b
lea r9, [rbp - 0x80]
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x54]
call fcn.14005edf4
mov r14d, eax
test eax, eax
je 0x14005f721
mov rcx, qword [rbx + 0x5a8]
cmp byte [rcx], r13b
je 0x14005f6fa
lea rdx, [0x1400858f0]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r13, rax
test rax, rax
je 0x14005f6fa
mov r12d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x620]
test rcx, rcx
je 0x14005f475
lea rdx, [0x140087aac]
call fcn.14004cfcc
test eax, eax
jne 0x14005f475
lea r14, str._memory_blob_
cmp qword [rsp + 0x78], r15
jne 0x14005f45e
mov r14, qword [rbx + 0x5a8]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rbx
call fcn.14005a394
jmp 0x14005f77b
mov rax, qword [rsp + 0x78]
test r13, r13
jne 0x14005f488
test rax, rax
je 0x14005f72d
xor r12d, r12d
lea r14, str._memory_blob_
and dword [rsp + 0x70], r12d
test rax, rax
jne 0x14005f4a3
mov r14, qword [rbx + 0x5a8]
test rsi, rsi
je 0x14005f4b1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x14005f5b1
xor esi, esi
xor edx, edx
mov rcx, r13
lea r8d, [rsi + 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 0x14005f564
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
test eax, eax
jns 0x14005f560
mov byte [rsp + 0x50], r12b
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
test rsi, rsi
je 0x14005f51b
mov rdx, rcx
mov r9, r13
mov rcx, rsi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
je 0x14005f520
mov byte [rsp + 0x50], r12b
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r13d, r13d
cmp byte [rsp + 0x50], r13b
jne 0x14005f5b9
mov r8, qword [rbx + 0x5a8]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rbx
call fcn.14005a394
mov rcx, rsi
call qword [0x1400a0210]
mov eax, 0x3a
jmp 0x14005f8a0
mov eax, dword [rsp + 0x54]
mov ecx, esi
mov qword [rsp + 0x58], rcx
test eax, eax
jne 0x14005f5a7
xor r8d, r8d
xor edx, edx
mov rcx, r13
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 0x14005f4f2
mov rcx, qword [rsp + 0x58]
inc rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x60], rax
jmp 0x14005f4f7
mov rsi, qword [rsp + 0x60]
jmp 0x14005f4fc
mov rsi, qword [rsp + 0x60]
xor r13d, r13d
mov rcx, qword [rbx + 0x640]
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x78], rsi
mov dword [rbp - 0x80], eax
test rcx, rcx
je 0x14005f5d9
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r12, rax
lea rcx, [r12*2 + 2]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14005f644
test r12, r12
je 0x14005f67d
mov r8, qword [rbx + 0x640]
lea ecx, [r12 + 1]
mov dword [rsp + 0x28], ecx
mov r9d, r12d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x14005f681
mov word [rsi], r13w
xor r8d, r8d
lea rcx, [rbp - 0x80]
mov rdx, rsi
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rsi
mov r15, rax
call qword [0x1400a0210]
cmp qword [rsp + 0x78], r13
jne 0x14005f656
mov rcx, qword [rsp + 0x60]
call qword [0x1400a0210]
test r15, r15
jne 0x14005f6a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, rbx
cmp eax, 0x56
jne 0x14005f68f
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.14005a394
jmp 0x14005f556
mov eax, dword [rsp + 0x70]
cmp eax, r12d
jg 0x14005f624
mov eax, eax
mov word [rsi + rax*2], r13w
jmp 0x14005f628
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.14005a394
jmp 0x14005f556
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov edx, 0x10001
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14005f834
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, rbx
call fcn.14005a394
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x14005f556
mov r8, qword [rbx + 0x5a8]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rbx
call fcn.14005a394
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r14d
jmp 0x14005f8a0
mov r12d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x70]
jmp 0x14005f730
xor r13d, r13d
xor edx, edx
mov qword [rsp + 0x20], r14
mov r9d, r12d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r15, rax
test rax, rax
jne 0x14005f792
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, r12d
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.14005a394
mov rcx, r14
call qword [0x1400a0210]
test rsi, rsi
je 0x14005f556
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14005f556
mov rcx, r14
call qword [0x1400a0210]
mov rcx, qword [rbp - 0x80]
lea rax, [rbp]
mov edx, 0x28
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x30], r13
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], r13
lea r9, [rbp]
mov dword [rbp - 0x68], setsockopt
lea r8d, [rdx - 0x24]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14005f7ef
test rsi, rsi
je 0x14005f6ea
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14005f6ea
mov r9d, 0x10000
mov qword [rsp + 0x28], r13
lea rax, [rbp - 0x68]
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rsi, rsi
je 0x14005f82b
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14005f6ea
lea rax, [rsp + 0x68]
mov dword [rbp - 0x4c], 1
xor edx, edx
mov qword [rbp - 0x48], rax
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov r14, qword [rbp - 0x70]
mov r15d, 2
mov edx, 0x20
lea ecx, [rdx - 0x1f]
call qword [case.0x14007525c.1]
mov rcx, qword [rdi + r14*8 + 8]
mov qword [rcx], rax
mov rax, qword [rdi + r14*8 + 8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14005f8ca
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rbx
call fcn.14005a394
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005f89b
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14007ae40
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rcx + 0x18], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rax, qword [rdi + r14*8 + 8]
xor r9d, r9d
mov r8d, r15d
mov rcx, qword [rax]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400a4738]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x68]
mov esi, eax
test rcx, rcx
je 0x14005f925
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x14005f978
mov r8d, 0x100
lea rdx, [rbp + 0x20]
mov ecx, esi
call fcn.140062964
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rbx
call fcn.14005a394
mov rcx, qword [rdi + r14*8 + 8]
mov rcx, qword [rcx]
call qword [0x1400a0210]
mov rax, qword [rdi + r14*8 + 8]
cmp esi, 0x80090300
mov qword [rax], r13
mov eax, 0x1b
lea ecx, [rax + 8]
cmovne eax, ecx
jmp 0x14005f8a0
xor eax, eax
jmp 0x14005f8a0