Function at 0x14009a580
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14010f080]
xor rax, rsp
mov qword [rbp + 0x110], rax
xorps xmm0, xmm0
movsxd rax, r8d
xor r12d, r12d
add rax, 0x1a
mov rbx, rdx
mov qword [rsp + 0x58], r12
mov edi, 0x2a0
mov rsi, rcx
movups xmmword [rbp - 0x80], xmm0
lea rax, [rax + rax*2]
mov dword [rbp - 0x80], 4
lea r13, [rdx + rax*8]
lea edx, [r12 + 8]
mov qword [rbp - 0x30], r13
lea r14d, [rdi + 0x18]
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
cmp byte [rbx + 0x348], r12b
je 0x14009a68a
mov rax, qword [r13 + 8]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
cmp byte [rax + 0x6b], r12b
cmovne ecx, edx
mov edx, dword [rbx + 0x13c]
cmp edx, 2
jne 0x14009a63c
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov eax, edi
cmovne eax, r14d
cmp dword [rax + rbx], edx
je 0x14009a63c
movzx eax, byte [rsi + 0x723]
jmp 0x14009a643
movzx eax, byte [rsi + 0x65b]
test al, al
je 0x14009a64f
or ecx, 0x1800
jmp 0x14009a695
cmp edx, 2
jne 0x14009a671
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, rdi
cmovne rax, r14
cmp dword [rax + rbx], edx
je 0x14009a671
movzx eax, byte [rsi + 0x725]
jmp 0x14009a678
movzx eax, byte [rsi + 0x65d]
test al, al
je 0x14009a684
or ecx, 0x1a00
jmp 0x14009a695
bts ecx, 9
jmp 0x14009a695
mov edx, dword [rbx + 0x13c]
mov ecx, 0x1808
mov dword [rbp - 0x38], ecx
cmp byte [rbx + 0x349], r12b
jne 0x14009a6a7
or ecx, 4
mov dword [rbp - 0x38], ecx
cmp edx, 2
jne 0x14009a6c9
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, rdi
cmovne rax, r14
cmp dword [rax + rbx], edx
je 0x14009a6c9
movzx eax, byte [rsi + 0x727]
jmp 0x14009a6d0
movzx eax, byte [rsi + 0x65f]
test al, al
jne 0x14009a6e6
and ecx, 0xffffffbf
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
or ecx, 0x10
mov dword [rbp - 0x38], ecx
jmp 0x14009a6ed
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate
mov rcx, rsi
call fcn.1400830b0
movsxd r8, dword [rbx + 0x2d8]
cmp r8d, 7
ja case.default.0x14009a718
lea rcx, [0x140000000]
mov eax, dword [rcx + r8*4 + 0x9b0b8]
add rax, rcx
jmp rax
mov r10d, dword [rbx + 0x13c]
cmp r10d, 2
jne 0x14009a770
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, rdi
cmovne rax, r14
cmp dword [rax + rbx], r10d
je 0x14009a74c
mov r8d, dword [rbx + 0x350]
mov r9d, dword [rbx + 0x354]
jmp 0x14009a777
cmp r10d, 2
jne 0x14009a770
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, rdi
cmovne rax, r14
cmp dword [rax + rbx], r10d
je 0x14009a770
mov r9d, dword [rbx + 0x354]
jmp 0x14009a777
mov r9d, dword [rbx + 0x2dc]
test r9d, 0xfffeffff
mov qword [rsp + 0x278], r15
mov eax, 0x60000
cmove r9d, eax
sar r9d, 0x10
cmp r8d, r9d
jg 0x14009a7eb
mov edx, dword [rbp - 0x48]
nop dword [rax + rax]
mov ecx, r8d
sub ecx, 4
je 0x14009a7dc
sub ecx, 1
je 0x14009a7d6
sub ecx, 1
je 0x14009a7d0
cmp ecx, 1
jne 0x14009a7e3
lea rdx, str.schannel:_TLS_1.3_is_not_yet_supported
mov rcx, rsi
call fcn.140082f40
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x14009ac07
bts edx, 0xb
jmp 0x14009a7e0
bts edx, 9
jmp 0x14009a7e0
bts edx, 7
mov dword [rbp - 0x48], edx
inc r8d
cmp r8d, r9d
jle 0x14009a7a0
cmp r10d, 2
jne 0x14009a80f
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, rdi
cmovne rax, r14
cmp dword [rax + rbx], r10d
je 0x14009a80f
mov rax, qword [rbx + 0x388]
jmp 0x14009a816
mov rax, qword [rbx + 0x310]
test rax, rax
je 0x14009a8fe
cmp r10d, 2
jne 0x14009a840
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
cmovne rdi, r14
cmp dword [rdi + rbx], r10d
je 0x14009a840
mov rbx, qword [rbx + 0x388]
jmp 0x14009a847
mov rbx, qword [rbx + 0x310]
mov r15, qword [r13 + 8]
mov r14d, r12d
add r15, 0x6c
test rbx, rbx
je 0x14009a8f6
mov rdi, r12
nop
cmp byte [rbx], r12b
je 0x14009a8f6
cmp rdi, 0x2d
jge 0x14009a8f6
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
test eax, eax
jne 0x14009a8cd
mov rcx, rbx
call fcn.140099f40
test eax, eax
jne 0x14009a8cd
lea r8d, [rax + 0x11]
mov rcx, rbx
lea rdx, str.USE_STRONG_CRYPTO
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
je 0x14009a8c4
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SCH_USE_STRONG_CRYPTO
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009a94a
or dword [rbp - 0x38], 0x400000
jmp 0x14009a8d7
inc r14d
mov dword [r15 + rdi*4], eax
inc rdi
mov edx, Ordinal_60
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x14009a8f6
add rbx, 1
jne 0x14009a860
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x58], r14d
mov rcx, qword [rsi + 0x5b8]
test rcx, rcx
jne 0x14009a963
cmp qword [rsi + 0x5e8], r12
je 0x14009acfd
mov rax, qword [rsi + 0x5e8]
mov r14d, r12d
mov qword [rsp + 0x68], rax
mov r13, rcx
mov qword [rsp + 0x70], rcx
mov r15, rcx
mov rdi, rcx
mov rdx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rdx
jmp 0x14009ab4d
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rsi
call fcn.140082f40
mov eax, Ordinal_60
jmp 0x14009ac07
mov rax, qword [rsi + 0x5e8]
xor r8d, r8d
mov qword [rsp + 0x70], r8
mov r14d, r12d
mov qword [rsp + 0x60], r8
mov r13d, r8d
mov qword [rsp + 0x50], r8
mov r15d, r8d
mov qword [rsp + 0x68], rax
mov edi, r8d
test rax, rax
je 0x14009a9a8
mov rdx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rdx
jmp 0x14009ab4d
call case.0x140077a39.0
mov rdi, rax
test rax, rax
je case.0x14009b058.2146893056
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
mov r15, rax
test rax, rax
je 0x14009ab20
mov rbx, rax
lea rdx, str.CurrentUser
sub rbx, rdi
mov rcx, rdi
mov r8, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009a9f9
mov r14d, 0x10000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.LocalMachine
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009aa1a
mov r14d, 0x20000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.CurrentService
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009aa3b
mov r14d, 0x40000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.Services
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009aa59
mov r14d, 0x50000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.Users
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009aa77
mov r14d, 0x60000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009aa95
mov r14d, 0x70000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009aab3
mov r14d, 0x80000
jmp 0x14009aacf
mov r8, rbx
lea rdx, str.LocalMachineEnterprise
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14009ab20
mov r14d, 0x90000
mov edx, 0x5c
lea rcx, [r15 + 1]
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x14009ab20
lea r13, [rax + 1]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rax + r13], r12b
jne 0x14009aaf0
cmp rax, 0x28
jne 0x14009ab20
lea rcx, [r15 + 1]
mov byte [rbx], r12b
call qword [str._K_f_]
mov byte [rbx], 0x5c
mov r12, rax
test rax, rax
jne 0x14009abaa
lea ebx, [rax + 0x1b]
jmp 0x14009ab25
mov ebx, Ordinal_60
mov rcx, qword [rsi + 0x5b8]
cmp byte [rcx], 0
je 0x14009b061
lea rdx, [0x1400f29d4]
call fcn.140098330
mov r15, rax
test rax, rax
je 0x14009b061
mov rcx, qword [rsi + 0x630]
test rcx, rcx
je 0x14009ab93
lea rdx, [0x1400cea4c]
call fcn.140087db0
test eax, eax
jne 0x14009ab93
cmp qword [rsp + 0x68], 0
lea r14, str._memory_blob_
jne 0x14009ab7f
mov r14, qword [rsi + 0x5b8]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rsi
call fcn.140082f40
jmp 0x14009abf5
mov rax, qword [rsp + 0x68]
test r15, r15
jne 0x14009ad4b
test rax, rax
jne 0x14009ad4b
xor edx, edx
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rbx, rax
test rax, rax
jne 0x14009ac30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, r12
lea rdx, str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.140082f40
mov rcx, r12
call qword [fcn.1400c49c5]
test rdi, rdi
je 0x14009ac02
mov rcx, rdi
call fcn.1400c49c5
mov eax, Ordinal_60
mov r15, qword [rsp + 0x278]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400c3090
add rsp, 0x220
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, r12
call qword [fcn.1400c49c5]
xor r12d, r12d
mov dword [rbp - 0x28], reloc.WS2_32.dll_sendto
lea rax, [rbp - 8]
mov qword [rsp + 0x30], r12
mov qword [rbp - 0x20], rax
lea r9, [rbp - 8]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], r12
lea edx, [r12 + 0x28]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 4]
mov rcx, r13
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14009ac9a
test rdi, rdi
je 0x14009af8f
mov rcx, rdi
call fcn.1400c49c5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x14009ac02
mov r9d, 0x10000
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x28]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rdi, rdi
je 0x14009acd5
mov rcx, rdi
call fcn.1400c49c5
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14009af8f
lea rax, [rsp + 0x58]
mov dword [rbp - 0x7c], 1
xor edx, edx
mov qword [rbp - 0x78], rax
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov r13, qword [rbp - 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea ecx, [rdx - 0x1f]
call qword [case.0x140077a39.1]
mov rcx, qword [r13 + 8]
mov qword [rcx], rax
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14009af9f
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rsi
call fcn.140082f40
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je case.0x14009b058.2146893056
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14009ac07
xor ecx, ecx
lea r14, str._memory_blob_
mov ebx, ecx
mov r13d, ecx
test rax, rax
jne 0x14009ad65
mov r14, qword [rsi + 0x5b8]
test rdi, rdi
je 0x14009ad74
mov rcx, rdi
call fcn.1400c49c5
xor ecx, ecx
test r15, r15
je 0x14009ae4b
xor edx, edx
mov r12d, ecx
mov rcx, r15
lea r8d, [rdx + 2]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
sete dil
test eax, eax
jne 0x14009ade1
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov r12d, eax
test eax, eax
jns 0x14009ade1
xor dil, dil
mov r12, qword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
test r12, r12
je 0x14009ae1f
mov r9, r15
mov r8d, 1
mov rdx, rax
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp eax, 1
jne 0x14009ae1f
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
test dil, dil
jne 0x14009ae50
jmp 0x14009ae27
mov eax, r12d
mov qword [rsp + 0x50], rax
test dil, dil
je 0x14009ae18
xor r8d, r8d
xor edx, edx
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
sete dil
test eax, eax
jne 0x14009adaa
mov rcx, qword [rsp + 0x50]
inc rcx
call qword [section..data]
mov r12, rax
jmp 0x14009adaf
mov r12, qword [rsp + 0x60]
jmp 0x14009adb4
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov r8, qword [rsi + 0x5b8]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rsi
call fcn.140082f40
mov rcx, r12
call qword [fcn.1400c49c5]
jmp 0x14009ac02
mov r12, qword [rsp + 0x60]
mov rax, qword [rsp + 0x50]
mov dword [rbp - 0x18], eax
mov rax, qword [rsi + 0x650]
mov qword [rbp - 0x10], r12
test rax, rax
je 0x14009ae79
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], r13b
jne 0x14009ae70
lea rcx, [rbx*2 + 2]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14009aef4
test rbx, rbx
je 0x14009aec1
mov r8, qword [rsi + 0x650]
lea ecx, [rbx + 1]
mov dword [rsp + 0x28], ecx
mov r9d, ebx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, eax
test eax, eax
js 0x14009aed1
cmp r13d, ebx
jg 0x14009aed1
mov eax, r13d
xor ecx, ecx
mov word [rdi + rax*2], cx
jmp 0x14009aed6
xor ecx, ecx
mov word [rdi], cx
xor r8d, r8d
lea rcx, [rbp - 0x18]
mov rdx, rdi
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rdi
mov rbx, rax
call qword [fcn.1400c49c5]
jmp 0x14009aef9
mov rbx, qword [rsp + 0x70]
cmp qword [rsp + 0x68], 0
jne 0x14009af0a
mov rcx, r12
call qword [fcn.1400c49c5]
test rbx, rbx
jne 0x14009af45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, rsi
cmp eax, 0x56
jne 0x14009af31
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.140082f40
jmp 0x14009ac02
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.140082f40
jmp 0x14009ac02
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov edx, 0x10001
mov qword [rsp + 0x20], r12
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14009acde
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, rsi
call fcn.140082f40
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x14009ac02
mov dword [rcx + 0x18], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rax, qword [r13 + 8]
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 2]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
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 [0x14010ff10]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x14009affa
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x14009b05a
mov r8d, 0x100
lea rdx, [rbp + 0x10]
mov ecx, ebx
call fcn.140096f50
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rsi
call fcn.140082f40
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx]
call qword [fcn.1400c49c5]
mov rax, qword [r13 + 8]
add ebx, 0x7ff6fd00
mov qword [rax], r12
cmp ebx, 0xe
ja case.0x14009b058.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x9b0d8]
add rcx, rdx
jmp rcx
xor eax, eax
jmp 0x14009ac07
mov r8, qword [rsi + 0x5b8]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rsi
call fcn.140082f40
mov rcx, rdi
call fcn.1400c49c5
mov eax, ebx
jmp 0x14009ac07
lea rdx, str.SSL_versions_not_supported
mov rcx, rsi
call fcn.140082f40
mov eax, 4
jmp 0x14009ac0f
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rsi
call fcn.140082f40
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x14009ac0f