Function at 0x140036220
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r13d, r13d
movsxd rax, r8d
mov r15, rcx
mov rbx, rdx
mov esi, r13d
mov qword [rbp - 0x50], rdx
mov qword [rsp + 0x58], r13
lea rcx, [rax + rax*2]
mov dword [rsp + 0x60], r13d
mov r14, qword [rdx + rcx*8 + 0x1f0]
mov qword [rbp - 0x78], r14
cmp byte [rdx + 0x289], r13b
je 0x1400362cb
movzx ecx, byte [r14 + 0x6c]
cmp byte [r15 + 0x5e3], sil
je 0x1400362a0
test cl, cl
mov eax, 0x1808
mov edx, 0x1820
cmove eax, edx
jmp 0x1400362d0
cmp byte [r15 + 0x5e5], sil
je 0x1400362ba
test cl, cl
mov eax, 0x1a08
mov edx, 0x1a20
cmove eax, edx
jmp 0x1400362d0
test cl, cl
mov eax, 0x208
mov edx, 0x220
cmove eax, edx
jmp 0x1400362d0
mov eax, 0x1808
mov edi, eax
or edi, 4
cmp byte [rbx + 0x28a], sil
cmovne edi, eax
mov eax, edi
or eax, 0x10
cmp byte [r15 + 0x5e7], sil
cmove edi, eax
movsxd rax, dword [rbx + 0x220]
mov dword [rsp + 0x70], edi
cmp eax, 7
ja case.default.0x140036313
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x36ddc]
add rax, rcx
jmp rax
mov r8, rbx
lea rcx, [rsp + 0x60]
mov rdx, r15
call fcn.140038720
test eax, eax
jne 0x140036a94
mov rcx, qword [r15 + 0x550]
mov qword [rsp + 0x2d8], r12
test rcx, rcx
jne 0x14003634e
cmp qword [r15 + 0x578], rsi
je 0x140036834
xor edx, edx
mov dword [rsp + 0x54], r13d
mov r14d, r13d
mov qword [rbp - 0x80], r13
mov rdi, r13
mov qword [rbp - 0x70], r13
mov r12, r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r13
mov ebx, edx
mov r13, qword [r15 + 0x578]
mov qword [rbp - 0x60], r13
test r13, r13
je 0x140036396
mov rax, qword [r13]
mov qword [rsp + 0x68], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x78], rax
jmp 0x1400363f7
call fcn.14005c358
mov rbx, rax
test rax, rax
je case.0x140036d94.2146893056
lea r9, [rbp - 0x70]
mov rcx, rax
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x54]
call fcn.140035ef0
mov edi, eax
test eax, eax
je 0x14003671b
mov rcx, qword [r15 + 0x550]
cmp byte [rcx], sil
je 0x1400366f6
lea rdx, [0x14008e6c4]
call fcn.1400389f0
mov r12, rax
test rax, rax
je 0x1400366f6
mov r14d, dword [rsp + 0x54]
mov rdi, qword [rbp - 0x80]
mov rcx, qword [r15 + 0x5b8]
test rcx, rcx
je 0x14003643d
lea rdx, [0x140090344]
call fcn.14002a890
test eax, eax
jne 0x14003643d
lea r14, str._memory_blob_
test r13, r13
jne 0x140036426
mov r14, qword [r15 + 0x550]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, r15
call fcn.140027f90
jmp 0x14003676f
test r12, r12
jne 0x14003644b
test r13, r13
je 0x140036724
xor eax, eax
lea r14, str._memory_blob_
mov edi, eax
test r13, r13
jne 0x140036462
mov r14, qword [r15 + 0x550]
test rbx, rbx
je 0x140036471
mov rcx, rbx
call fcn.14004bbc4
xor eax, eax
test r12, r12
je 0x140036610
xor edx, edx
mov ebx, eax
mov rcx, r12
lea r8d, [rdx + 2]
call fcn.14004db18
test eax, eax
sete r13b
test eax, eax
jne 0x1400365a5
mov rcx, r12
call fcn.14004dffc
mov ebx, eax
test eax, eax
jns 0x1400365a5
mov rbx, qword [rsp + 0x78]
xor r13b, r13b
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400365dd
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14004d220
cmp eax, 1
jne 0x1400365dd
mov rcx, r12
call fcn.14004d838
test r13b, r13b
je 0x1400365e5
mov r13, qword [rbp - 0x60]
mov rax, qword [r15 + 0x5d8]
mov r12, qword [rsp + 0x68]
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x70], ebx
test rax, rax
je 0x14003651a
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], sil
jne 0x140036511
lea rcx, [rdi*2 + 2]
call qword [fcn.14004bbcc]
mov rbx, rax
test rax, rax
je 0x140036646
test rdi, rdi
je 0x14003661a
mov r8, qword [r15 + 0x5d8]
lea ecx, [rdi + 1]
mov dword [rsp + 0x28], ecx
mov r9d, edi
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x14003661c
xor edx, edx
mov word [rbx], dx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14003cc20
lea rcx, [rbp - 0x70]
mov rdx, rbx
test al, al
je 0x140036631
mov r8d, 0x8000
jmp 0x140036634
test r13b, r13b
je 0x1400364b2
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.14004db18
test eax, eax
sete r13b
test eax, eax
jne 0x1400364b2
lea rcx, [rbx + 1]
call qword [fcn.14004bbcc]
mov qword [rsp + 0x68], rax
jmp 0x1400364b7
mov rcx, r12
call fcn.14004d838
mov r8, qword [r15 + 0x550]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, r15
call fcn.140027f90
mov rcx, qword [rsp + 0x68]
call qword [fcn.14004bbc4]
mov eax, 0x3a
jmp 0x140036a8c
mov rbx, qword [rsp + 0x78]
jmp 0x1400364f2
mov eax, esi
cmp eax, edi
jg 0x14003656b
mov eax, eax
xor edx, edx
mov word [rbx + rax*2], dx
jmp 0x140036570
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rbx
mov rsi, rax
call qword [fcn.14004bbc4]
test r13, r13
jne 0x140036654
mov rcx, r12
call qword [fcn.14004bbc4]
test rsi, rsi
jne 0x140036697
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, r15
cmp eax, 0x56
jne 0x14003667e
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.140027f90
lea eax, [rsi + 0x3a]
jmp 0x140036a8c
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.140027f90
mov eax, 0x3a
jmp 0x140036a8c
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov edx, 0x10001
mov qword [rsp + 0x20], r13
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140036828
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, r15
call fcn.140027f90
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x140036a8c
mov r8, qword [r15 + 0x550]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, r15
call fcn.140027f90
mov rcx, rbx
call fcn.14004bbc4
mov eax, edi
jmp 0x140036a8c
mov r14d, dword [rsp + 0x54]
mov rdi, qword [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov r9d, r14d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rsi, rax
test rax, rax
jne 0x140036786
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
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, r15
call fcn.140027f90
mov rcx, rdi
call qword [fcn.14004bbc4]
test rbx, rbx
je 0x14003677c
mov rcx, rbx
call fcn.14004bbc4
mov eax, 0x3a
jmp 0x140036a8c
mov rcx, rdi
call qword [fcn.14004bbc4]
mov rcx, qword [rbp - 0x70]
lea rax, [rbp + 0x48]
xor r13d, r13d
mov qword [rbp + 0x18], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea r9, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0x28]
mov dword [rbp + 0x10], socket
lea r8d, [r13 + 4]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1400367e4
test rbx, rbx
je 0x1400366e1
mov rcx, rbx
call fcn.14004bbc4
jmp 0x1400366e1
mov r9d, 0x10000
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x10]
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 0x14003681f
mov rcx, rbx
call fcn.14004bbc4
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400366e1
mov rbx, qword [rbp - 0x50]
mov edi, dword [rsp + 0x70]
mov r14, qword [rbp - 0x78]
mov edx, 0x30
lea ecx, [rdx - 0x2f]
call qword [case.0x140041354.1]
mov qword [r14], rax
test rax, rax
jne 0x140036883
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r15
call fcn.140027f90
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140036869
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test rsi, rsi
je case.0x140036d94.2146893056
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x140036a8c
mov dword [rax + 0x28], 1
xor edx, edx
mov rax, qword [r14]
mov r8d, 0x4563
mov dword [rsp + 0x20], 3
lea ecx, [rdx + 0xa]
lea r9d, [rdx + 2]
mov qword [rax + 0x20], rsi
call fcn.14003cc20
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
test al, al
je 0x140036c89
xor eax, eax
lea rcx, [rbp + 0x70]
xor edx, edx
mov qword [rbp], rax
mov r8d, 0xc0
mov qword [rbp + 0x40], rax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
call fcn.140045d40
mov rdi, qword [rbx + 0x250]
xorps xmm0, xmm0
mov dword [rsp + 0x54], r13d
xorps xmm1, xmm1
mov r11d, r13d
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x60], xmm1
test rdi, rdi
je 0x140036c29
mov r14b, 1
mov byte [rsp + 0x51], 1
movzx r12d, r14b
mov byte [rsp + 0x50], 1
movups xmmword [rbp + 0x48], xmm0
mov byte [rsp + 0x52], 1
movups xmmword [rbp + 0x58], xmm0
nop
cmp byte [rdi], 0
je 0x140036abe
cmp r13d, 5
jge 0x140036abe
mov edx, 0x3a
mov rcx, rdi
call fcn.140046220
mov rsi, rax
test rax, rax
je 0x140036960
mov rbx, rax
sub rbx, rdi
jmp 0x140036970
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140036967
cmp rbx, 0x1f
ja 0x140036ab5
mov r8, rbx
lea rcx, [rbp + 0x48]
mov rdx, rdi
call fcn.14004d650
cmp byte [rsp + 0x51], 0
mov byte [rbp + rbx + 0x48], 0
je 0x1400369b6
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_256_GCM_SHA384
call fcn.140054780
test eax, eax
jne 0x1400369b6
xor r9b, r9b
mov byte [rsp + 0x51], r9b
jmp 0x140036a52
cmp byte [rsp + 0x50], 0
je 0x1400369e1
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_128_GCM_SHA256
call fcn.140054780
test eax, eax
jne 0x1400369e1
movzx r9d, byte [rsp + 0x51]
xor r8b, r8b
mov byte [rsp + 0x50], r8b
jmp 0x140036a58
cmp byte [rsp + 0x52], 0
je 0x140036a12
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_CHACHA20_POLY1305_SHA256
call fcn.140054780
test eax, eax
jne 0x140036a12
movzx r8d, byte [rsp + 0x50]
xor r10b, r10b
movzx r9d, byte [rsp + 0x51]
mov byte [rsp + 0x52], r10b
jmp 0x140036a5e
test r14b, r14b
je 0x140036a30
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_128_CCM_8_SHA256
call fcn.140054780
test eax, eax
jne 0x140036a30
xor r14b, r14b
jmp 0x140036a4c
test r12b, r12b
je 0x140036a78
lea rdx, [rbp + 0x48]
lea rcx, str.TLS_AES_128_CCM_SHA256
call fcn.140054780
test eax, eax
jne 0x140036a78
xor r12b, r12b
movzx r9d, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
movzx r10d, byte [rsp + 0x52]
mov rdi, rsi
test rsi, rsi
je 0x140036a6a
lea rdi, [rsi + 1]
inc r13d
test rdi, rdi
jne 0x140036930
jmp 0x140036ad0
lea rdx, str.Passed_in_an_unknown_TLS_1.3_cipher.
mov rcx, r15
call fcn.140027f90
mov eax, 0x3b
mov r12, qword [rsp + 0x2d8]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140044950
add rsp, 0x280
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Cipher_name_too_long__not_checked.
jmp 0x140036a7f
movzx r10d, byte [rsp + 0x52]
movzx r9d, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
lea rdx, [0x140090618]
test r9b, r9b
je 0x140036af9
test r8b, r8b
je 0x140036af9
test r10b, r10b
je 0x140036af9
test r14b, r14b
je 0x140036afe
test r12b, r12b
je 0x140036b03
lea rdx, str.All_available_TLS_1.3_ciphers_were_disabled.
jmp 0x140036a7f
test r14b, r14b
jne 0x140036b03
test r12b, r12b
je 0x140036b6d
mov dword [rbp - 0x50], 0x200020
lea rax, str.ChainingModeCCM
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x70], 2
mov dword [rbp + 0x88], 1
mov dword [rbp + 0x78], 0x80008
mov qword [rbp + 0x80], rdx
cmp r14b, r12b
je 0x140036b65
test r14b, r14b
je 0x140036b5b
mov dword [rbp + 0x98], 0x80
mov r11d, 1
jmp 0x140036b72
mov dword [rbp + 0x9c], 0x40
mov r11d, 1
jmp 0x140036b72
mov r11d, dword [rsp + 0x54]
test r9b, r9b
jne 0x140036b7c
test r8b, r8b
je 0x140036bf1
lea rax, str.ChainingModeGCM
mov dword [rbp - 0x60], 0x200020
mov qword [rbp - 0x58], rax
mov eax, r11d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp r9b, r8b
je 0x140036bb2
test r9b, r9b
lea rax, str.SHA384
lea rdx, str.SHA256
cmovne rdx, rax
xor r13d, r13d
mov eax, r13d
cmp r9b, r8b
setne al
add eax, 2
mov dword [rbp + rcx*8 + 0x70], eax
inc r11d
mov dword [rbp + rcx*8 + 0x78], 0x80008
lea rax, [rbp - 0x60]
mov qword [rbp + rcx*8 + 0x80], rdx
mov qword [rbp + rcx*8 + 0x90], rax
mov dword [rbp + rcx*8 + 0x88], 1
jmp 0x140036bf4
xor r13d, r13d
mov r14, qword [rbp - 0x78]
test r10b, r10b
je 0x140036c29
mov eax, r11d
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, str.CHACHA20_POLY1305
inc r11d
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], r11d
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x20]
mov qword [rbp], rax
mov eax, dword [rsp + 0x70]
bts eax, 0x16
mov dword [rbp - 8], 1
cmp qword [rsp + 0x58], 0
mov dword [rbp - 0xc], eax
mov eax, dword [rsp + 0x60]
not eax
mov dword [rbp - 0x40], 5
mov dword [rbp + 0x30], eax
je 0x140036c77
lea rax, [rsp + 0x58]
mov dword [rbp - 0x38], 1
mov qword [rbp - 0x30], rax
mov rcx, qword [r14]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x40]
jmp 0x140036d02
mov rdx, qword [rbx + 0x248]
mov eax, dword [rsp + 0x60]
mov dword [rbp - 0x40], 4
mov dword [rbp - 8], eax
movups xmmword [rbp], xmm0
mov dword [rbp + 8], edi
test rdx, rdx
je 0x140036cd3
lea r8, [rbp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.140038630
mov ebx, eax
test eax, eax
je 0x140036cda
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, r15
call fcn.140027f90
mov eax, ebx
jmp 0x140036a8c
bts edi, 0x16
mov dword [rbp + 8], edi
cmp qword [rsp + 0x58], 0
je 0x140036cf2
lea rax, [rsp + 0x58]
mov dword [rbp - 0x3c], 1
mov qword [rbp - 0x38], rax
mov rcx, qword [r14]
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], r13
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400b0208]
lea r8d, [r9 + 2]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140036d42
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x140036da0
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, ebx
call fcn.14003b7f0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, r15
call fcn.140027f90
mov rcx, qword [r14]
call qword [fcn.14004bbc4]
add ebx, 0x7ff6fd00
mov qword [r14], r13
cmp ebx, 0xe
ja case.0x140036d94.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x36dfc]
add rcx, rdx
jmp rcx
mov eax, 0x23
jmp 0x140036a8c
xor eax, eax
jmp 0x140036a8c
lea rdx, str.SSL_versions_not_supported
mov rcx, r15
call fcn.140027f90
mov eax, 4
jmp 0x140036a94
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, r15
call fcn.140027f90
mov eax, 0x23
jmp 0x140036a94