Function at 0x18007847c
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 - 0x170]
sub rsp, 0x270
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov r14, rcx
call fcn.180061728
mov rdx, rdi
mov qword [rbp - 0x60], rax
mov rcx, r14
mov r15, rax
call fcn.180061700
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x58], r8
mov esi, r8d
mov r12, qword [rbx + 0x28]
mov qword [rbp - 0x68], r12
mov dword [rsp + 0x64], r8d
cmp byte [r15 + 0x69], r8b
je 0x18007852f
mov cl, byte [r12 + 0x6c]
cmp byte [rax + 0xb3], r8b
je 0x18007850a
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x1820
jmp 0x180078534
cmp byte [rax + 0xb5], r8b
je 0x180078521
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x1a20
jmp 0x180078534
neg cl
sbb eax, eax
and eax, 0xffffffe8
add eax, 0x220
jmp 0x180078534
mov eax, 0x1808
mov r13d, eax
or r13d, 4
cmp byte [r15 + 0x6a], r8b
cmovne r13d, eax
mov al, byte [rdx + 0xb7]
test al, al
jne 0x180078551
or r13d, 0x10
test al, al
mov dword [rsp + 0x60], r13d
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.180068060
movzx edx, byte [r15 + 0x68]
test edx, edx
je 0x1800785d0
sub edx, 1
je 0x1800785d0
sub edx, 1
je 0x1800785b7
sub edx, 1
je 0x1800785b7
sub edx, 1
je 0x1800785d0
sub edx, 1
je 0x1800785d0
sub edx, 1
je 0x1800785d0
cmp edx, 1
je 0x1800785d0
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.180067f94
mov eax, 0x23
jmp 0x180078b1b
lea rdx, str.SSL_versions_not_supported
mov rcx, rdi
call fcn.180067f94
mov eax, 4
jmp 0x180078b1b
mov r8, rdi
lea rcx, [rsp + 0x64]
mov rdx, r14
call fcn.18007a098
xor r14d, r14d
test eax, eax
jne 0x180078b1b
mov rcx, qword [rdi + 0x538]
test rcx, rcx
jne 0x180078604
cmp qword [rdi + 0x560], r14
je 0x180078ad0
mov rax, qword [rdi + 0x560]
xor edx, edx
mov dword [rsp + 0x54], r14d
mov r15d, r14d
mov qword [rsp + 0x78], r14
mov r12d, edx
mov qword [rbp - 0x80], rdx
mov ebx, edx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
mov qword [rbp - 0x70], rax
test rax, rax
je 0x180078649
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rcx
jmp 0x1800786af
call fcn.180075b0c
mov rbx, rax
test rax, rax
je 0x180078b16
lea r9, [rbp - 0x80]
mov rcx, rax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x54]
call fcn.180078168
mov r14d, eax
test eax, eax
je 0x1800789b7
mov rcx, qword [rdi + 0x538]
cmp byte [rcx], r12b
je 0x180078991
lea rdx, [0x18034d310]
call fcn.180075c90
xor edx, edx
mov r12, rax
test rax, rax
je 0x180078991
mov r15d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x78]
mov rcx, qword [rdi + 0x5a8]
test rcx, rcx
je 0x1800786f8
lea rdx, [0x1803516c4]
call fcn.18006bc60
xor edx, edx
test eax, eax
jne 0x1800786f8
lea r14, str._memory_blob_
cmp qword [rbp - 0x70], rdx
jne 0x1800786e1
mov r14, qword [rdi + 0x538]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rdi
call fcn.180067f94
jmp 0x180078a0c
mov rax, qword [rbp - 0x70]
test r12, r12
jne 0x18007870a
test rax, rax
je 0x1800789c1
mov dword [rsp + 0x78], edx
mov r15, rdx
lea r14, str._memory_blob_
test rax, rax
jne 0x180078724
mov r14, qword [rdi + 0x538]
test rbx, rbx
je 0x180078733
mov rcx, rbx
call fcn.1800b6bbc
xor edx, edx
test r12, r12
je 0x180078815
mov dword [rsp + 0x54], edx
mov rcx, r12
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1800bb7d4
test eax, eax
sete bl
test eax, eax
jne 0x1800787ca
mov rcx, r12
call fcn.1800c7b88
xor ecx, ecx
test eax, eax
jns 0x1800787ce
mov bl, cl
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
test rax, rax
je 0x18007878f
mov rdx, rcx
mov r9, r12
mov rcx, rax
mov r8d, 1
call fcn.1800bb3cc
cmp eax, 1
je 0x180078793
xor eax, eax
mov bl, al
mov rcx, r12
call fcn.1800ba920
test bl, bl
jne 0x180078815
mov r8, qword [rdi + 0x538]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rdi
call fcn.180067f94
mov rcx, qword [rsp + 0x68]
call qword [fcn.1800b6bbc]
mov eax, 0x3a
jmp 0x180078b1b
mov eax, dword [rsp + 0x54]
xor r8d, r8d
mov ecx, eax
mov qword [rsp + 0x70], rcx
test bl, bl
je 0x18007880b
xor edx, edx
mov rcx, r12
call fcn.1800bb7d4
test eax, eax
sete bl
test eax, eax
jne 0x180078767
mov rcx, qword [rsp + 0x70]
inc rcx
call qword [fcn.1800b6bd0]
mov qword [rsp + 0x68], rax
jmp 0x18007876c
mov rax, qword [rsp + 0x68]
jmp 0x180078771
mov rcx, qword [rdi + 0x5c8]
mov r12, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x80], eax
test rcx, rcx
je 0x18007883a
call fcn.1800bc0f0
mov r15, rax
lea rcx, [r15*2 + 2]
call qword [fcn.1800b6bd0]
xor ecx, ecx
mov rbx, rax
test rax, rax
je 0x1800788d6
test r15, r15
je 0x18007890e
mov r8, qword [rdi + 0x5c8]
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]
xor ecx, ecx
test eax, eax
jns 0x180078912
mov word [rbx], cx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.180083a44
xor r8d, r8d
lea rcx, [rbp - 0x80]
mov rdx, rbx
test al, al
je 0x1800788c2
mov r8d, 0x8000
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rbx
mov rsi, rax
call qword [fcn.1800b6bbc]
xor ecx, ecx
cmp qword [rbp - 0x70], rcx
jne 0x1800788e7
mov rcx, r12
call qword [fcn.1800b6bbc]
xor ecx, ecx
test rsi, rsi
jne 0x18007893a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, rdi
cmp eax, 0x56
jne 0x180078926
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.180067f94
jmp 0x1800787c0
mov eax, dword [rsp + 0x78]
cmp eax, r15d
jg 0x180078890
mov eax, eax
mov word [rbx + rax*2], cx
jmp 0x180078893
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.180067f94
jmp 0x1800787c0
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rsi
mov edx, 0x10001
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x180078ac5
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.180067f94
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x1800787c0
mov r8, qword [rdi + 0x538]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rdi
call fcn.180067f94
mov rcx, rbx
call fcn.1800b6bbc
mov eax, r14d
jmp 0x180078b1b
mov r15d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x20], r14
mov r9d, r15d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 0xa]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rsi, rax
test rax, rax
jne 0x180078a22
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.180067f94
mov rcx, r14
call qword [fcn.1800b6bbc]
test rbx, rbx
je 0x1800787c0
mov rcx, rbx
call fcn.1800b6bbc
jmp 0x1800787c0
mov rcx, r14
call qword [fcn.1800b6bbc]
mov rcx, qword [rbp - 0x80]
lea rax, [rbp + 0x38]
xor r14d, r14d
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r14 + 0x28]
mov dword [rbp - 0x50], socket
lea r8d, [r14 + 4]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x180078a80
test rbx, rbx
je 0x180078981
mov rcx, rbx
call fcn.1800b6bbc
jmp 0x180078981
mov r9d, 0x10000
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x50]
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 0x180078abb
mov rcx, rbx
call fcn.1800b6bbc
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x180078ac8
jmp 0x180078981
xor r14d, r14d
mov r15, qword [rbp - 0x60]
mov r12, qword [rbp - 0x68]
mov edx, 0x30
lea ecx, [rdx - 0x2f]
call qword [fcn.1800b6bb4]
mov qword [r12], rax
test rax, rax
jne 0x180078b45
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.180067f94
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180078b06
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test rsi, rsi
je 0x180078b16
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rax + 0x28], 1
xor edx, edx
mov rax, qword [r12]
mov r8d, 0x4563
mov dword [rsp + 0x20], 3
lea ecx, [rdx + 0xa]
lea r9d, [rdx + 2]
mov qword [rax + 0x20], rsi
call fcn.180083a44
xor edx, edx
test al, al
je 0x180078ef2
lea r8d, [rdx + 0x48]
lea rcx, [rbp - 0x40]
call fcn.1800e44e0
xorps xmm0, xmm0
lea rcx, [rbp + 0x60]
xor eax, eax
xor edx, edx
mov r8d, 0xc0
mov qword [rbp + 0x30], rax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
call fcn.1800e44e0
mov rbx, qword [r15 + 0x28]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov esi, r14d
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x80], xmm1
test rbx, rbx
je 0x180078e92
mov r15b, 1
mov ecx, r14d
mov al, r15b
mov dword [rsp + 0x54], ecx
mov byte [rsp + 0x52], al
mov r12b, r15b
movups xmmword [rbp + 0x38], xmm0
mov byte [rsp + 0x51], r15b
movups xmmword [rbp + 0x48], xmm0
mov byte [rsp + 0x50], r15b
cmp byte [rbx], r14b
je 0x180078d53
cmp ecx, 5
jge 0x180078d53
mov edx, 0x3a
mov rcx, rbx
call fcn.1800b17f4
mov r13, rax
test rax, rax
je 0x180078c1c
mov r14, rax
sub r14, rbx
jmp 0x180078c27
mov rcx, rbx
call fcn.1800bc0f0
mov r14, rax
cmp r14, 0x1f
ja 0x180078d3a
mov r8, r14
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.1800c6230
xor eax, eax
mov byte [rbp + r14 + 0x38], al
xor r14d, r14d
test r15b, r15b
je 0x180078c6f
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_256_GCM_SHA384
call fcn.1800bc070
test eax, eax
jne 0x180078c6f
mov r15b, r14b
mov al, byte [rsp + 0x52]
jmp 0x180078d06
cmp byte [rsp + 0x51], r14b
je 0x180078c98
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_128_GCM_SHA256
call fcn.1800bc070
test eax, eax
jne 0x180078c98
mov al, byte [rsp + 0x52]
mov r9b, r14b
mov byte [rsp + 0x51], r14b
jmp 0x180078d0b
cmp byte [rsp + 0x50], r14b
je 0x180078cc6
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_CHACHA20_POLY1305_SHA256
call fcn.1800bc070
test eax, eax
jne 0x180078cc6
mov al, byte [rsp + 0x52]
mov r8b, r14b
mov r9b, byte [rsp + 0x51]
mov byte [rsp + 0x50], r14b
jmp 0x180078d10
test r12b, r12b
je 0x180078ce4
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_128_CCM_8_SHA256
call fcn.1800bc070
test eax, eax
jne 0x180078ce4
mov r12b, r14b
jmp 0x180078c66
cmp byte [rsp + 0x52], r14b
je 0x180078d31
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_128_CCM_SHA256
call fcn.1800bc070
test eax, eax
jne 0x180078d31
mov al, r14b
mov byte [rsp + 0x52], al
mov r9b, byte [rsp + 0x51]
mov r8b, byte [rsp + 0x50]
mov rbx, r13
test r13, r13
je 0x180078d1c
lea rbx, [r13 + 1]
mov ecx, dword [rsp + 0x54]
inc ecx
mov dword [rsp + 0x54], ecx
test rbx, rbx
jne 0x180078bed
jmp 0x180078d5d
lea rdx, str.Passed_in_an_unknown_TLS_1.3_cipher.
jmp 0x180078d41
lea rdx, str.Cipher_name_too_long__not_checked.
mov rcx, rdi
call fcn.180067f94
mov eax, 0x3b
jmp 0x180078b1b
mov r9b, byte [rsp + 0x51]
mov r8b, byte [rsp + 0x50]
lea rdx, [0x180351998]
test r15b, r15b
je 0x180078d85
test r9b, r9b
je 0x180078d85
test r8b, r8b
je 0x180078d85
test r12b, r12b
je 0x180078d8a
test al, al
je 0x180078d8e
lea rdx, str.All_available_TLS_1.3_ciphers_were_disabled.
jmp 0x180078d41
test r12b, r12b
jne 0x180078d8e
test al, al
je 0x180078de9
mov dword [rbp - 0x60], 0x200020
lea rcx, str.ChainingModeCCM
mov qword [rbp - 0x58], rcx
lea rcx, [rbp - 0x60]
mov qword [rbp + 0x80], rcx
mov dword [rbp + 0x60], 2
mov dword [rbp + 0x78], 1
mov dword [rbp + 0x68], 0x80008
mov qword [rbp + 0x70], rdx
cmp r12b, al
je 0x180078de4
test r12b, r12b
je 0x180078dda
mov dword [rbp + 0x88], 0x80
jmp 0x180078de4
mov dword [rbp + 0x8c], 0x40
mov esi, 1
mov al, r9b
test r15b, r15b
jne 0x180078df5
test al, al
je 0x180078e5d
lea rax, str.ChainingModeGCM
mov dword [rbp - 0x80], 0x200020
mov qword [rbp - 0x78], rax
mov eax, esi
lea rcx, [rax + rax*2]
add rcx, rcx
cmp r15b, r9b
je 0x180078e2a
test r15b, r15b
lea rax, str.SHA384
lea rdx, str.SHA256
cmovne rdx, rax
mov eax, r14d
cmp r15b, r9b
setne al
add eax, 2
mov dword [rbp + rcx*8 + 0x60], eax
inc esi
mov dword [rbp + rcx*8 + 0x68], 0x80008
lea rax, [rbp - 0x80]
mov qword [rbp + rcx*8 + 0x70], rdx
mov qword [rbp + rcx*8 + 0x80], rax
mov dword [rbp + rcx*8 + 0x78], 1
mov r13d, dword [rsp + 0x60]
mov r12, qword [rbp - 0x68]
test r8b, r8b
je 0x180078e92
mov eax, esi
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, str.CHACHA20_POLY1305
inc esi
mov dword [rbp + rcx*8 + 0x60], 2
mov dword [rbp + rcx*8 + 0x68], 0x240024
mov qword [rbp + rcx*8 + 0x70], rax
lea rax, [rbp + 0x60]
mov dword [rbp + 0x24], esi
mov qword [rbp + 0x28], rax
bts r13d, 0x16
lea rax, [rbp + 0x10]
mov dword [rbp - 8], 1
mov qword [rbp], rax
mov eax, dword [rsp + 0x64]
not eax
mov dword [rbp - 0x40], 5
mov dword [rbp + 0x20], eax
mov dword [rbp - 0xc], r13d
cmp qword [rsp + 0x58], r14
je 0x180078edc
lea rax, [rsp + 0x58]
mov dword [rbp - 0x38], 1
mov qword [rbp - 0x30], rax
mov rcx, qword [r12]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x40]
jmp 0x180078f77
mov r8d, 0x50
lea rcx, [rbp - 0x40]
call fcn.1800e44e0
mov eax, dword [rsp + 0x64]
mov dword [rbp - 8], eax
mov dword [rbp - 0x40], 4
mov dword [rbp + 8], r13d
cmp qword [r15 + 0x20], r14
je 0x180078f46
mov rdx, qword [r15 + 0x20]
lea r8, [rbp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.180079fb0
mov ebx, eax
test eax, eax
je 0x180078f4f
lea rdx, str.Unable_to_set_ciphers_to_from_connection_ssl_config
mov rcx, rdi
call fcn.180067f94
mov eax, ebx
jmp 0x180078b1b
bts r13d, 0x16
mov dword [rbp + 8], r13d
cmp qword [rsp + 0x58], r14
je 0x180078f66
lea rax, [rsp + 0x58]
mov dword [rbp - 0x3c], 1
mov qword [rbp - 0x38], rax
mov rcx, qword [r12]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x38], rcx
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rax, qword [0x180379240]
lea r8d, [r9 + 2]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x180078fb7
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x180079002
mov r8d, 0x100
lea rdx, [rbp + 0x60]
mov ecx, ebx
call fcn.180052dc4
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rdi
call fcn.180067f94
mov rcx, qword [r12]
call qword [fcn.1800b6bbc]
mov eax, 0x1b
mov qword [r12], r14
cmp ebx, 0x80090300
lea ecx, [rax + 8]
cmovne eax, ecx
jmp 0x180078b1b
xor eax, eax
jmp 0x180078b1b