Function at 0x14012aab0
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 - 0x180]
sub rsp, 0x280
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
mov qword [rsp + 0x70], rdx
mov rcx, qword [rcx + 0x10]
lea r8, str.SSL_PROXY
mov rax, qword [rbx + 0x18]
cmp qword [rbx], r8
jne 0x14012ab42
lea r13, [rax + 0x2f0]
lea r11, [rax + 0x2f8]
mov qword [rsp + 0x68], r13
lea rdi, [rax + 0x338]
mov qword [rsp + 0x60], r13
lea r9, [rax + 0x33a]
mov r15, r13
add rax, 0x339
lea r10, [rdx + 0x6b7]
lea r8, [rdx + 0x6b5]
add rdx, 0x6b3
jmp 0x14012ab86
lea r15, [rax + 0x280]
lea r11, [rax + 0x288]
mov qword [rsp + 0x60], r15
lea rdi, [rax + 0x2c8]
mov qword [rsp + 0x68], r15
lea r9, [rax + 0x2ca]
mov r13, r15
add rax, 0x2c9
lea r10, [rdx + 0x5ff]
lea r8, [rdx + 0x5fd]
add rdx, 0x5fb
mov r14, r11
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x58], r11
xor r11d, r11d
mov qword [rbp + 0x58], r11
mov r12d, r11d
mov esi, r11d
mov rcx, qword [rcx + 0x30]
mov qword [rbp - 0x78], rcx
cmp byte [rax], r11b
je 0x14012abee
movzx ecx, byte [rcx + 0x6c]
cmp byte [rdx], sil
je 0x14012abc7
test cl, cl
mov eax, 0x1808
mov edx, 0x1820
cmove eax, edx
jmp 0x14012abf3
cmp byte [r8], sil
je 0x14012abdd
test cl, cl
mov eax, 0x1a08
mov edx, 0x1a20
cmove eax, edx
jmp 0x14012abf3
test cl, cl
mov eax, 0x208
mov edx, 0x220
cmove eax, edx
jmp 0x14012abf3
mov eax, 0x1808
movzx ecx, byte [r10]
mov edx, eax
or edx, 4
cmp byte [r9], sil
cmovne edx, eax
mov eax, edx
or eax, 0x10
test cl, cl
mov rcx, qword [rsp + 0x70]
cmove edx, eax
lea rax, str.schannel:_enabled_automatic_use_of_client_certificate
mov dword [rbp - 0x68], edx
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
cmovne rdx, rax
call fcn.140102070
movzx eax, byte [rdi]
cmp eax, 7
ja case.default.0x14012ac48
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x12bccc]
add rax, rcx
jmp rax
mov rdx, qword [rbx + 0x18]
lea r9, str.SSL_PROXY
cmp qword [rbx], r9
mov r8d, 0x2c4
mov eax, 0x334
cmovne eax, r8d
mov r8d, 0x2c8
mov edi, dword [rax + rdx]
mov eax, 0x338
cmovne eax, r8d
movzx ebx, byte [rax + rdx]
test edi, 0xfffeffff
jne 0x14012acae
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r8d, 0x4f7c
call fcn.14012a7e0
test al, al
mov edi, 0x60000
mov eax, 0x70000
cmovne edi, eax
sar edi, 0x10
cmp ebx, edi
jg 0x14012ad09
mov ecx, ebx
sub ecx, 4
je 0x14012acff
sub ecx, 1
je 0x14012acf9
sub ecx, 1
je 0x14012acf3
cmp ecx, 1
jne 0x14012ad03
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r8d, 0x4f7c
call fcn.14012a7e0
test al, al
je 0x14012ad96
bts esi, 0xd
jmp 0x14012ad03
bts esi, 0xb
jmp 0x14012ad03
bts esi, 9
jmp 0x14012ad03
bts esi, 7
inc ebx
cmp ebx, edi
jle 0x14012acb5
mov r11, qword [rsp + 0x70]
mov rcx, qword [r11 + 0x560]
test rcx, rcx
jne 0x14012ad27
cmp qword [r11 + 0x588], r12
je 0x14012b27d
mov r9, qword [r11 + 0x588]
xor r10d, r10d
mov qword [rbp - 0x80], r10
mov r13d, r10d
mov qword [rbp - 0x50], r10
mov r14d, r10d
mov qword [rbp - 0x58], r10
mov r15d, r10d
mov qword [rbp - 0x70], r10
mov edi, r10d
mov qword [rbp - 0x60], r10
mov qword [rbp + 0x60], r9
test r9, r9
je 0x14012ada2
mov rbx, qword [rsp + 0x58]
mov rax, qword [r9]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rbx
mov rbx, qword [rsp + 0x78]
mov qword [rbp - 0x70], rax
mov rax, qword [r9 + 8]
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x60], rax
jmp 0x14012b01c
lea rdx, str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
jmp 0x14012bc93
call fcn.140102780
mov rdi, rax
test rax, rax
je case.0x14012bc46.2146893056
mov r15d, 0x5c
mov rcx, rax
mov edx, r15d
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r14, rax
test rax, rax
je 0x14012af63
mov rbx, rax
lea rdx, str.CurrentUser
sub rbx, rdi
mov rcx, rdi
sar rbx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012adfc
mov r13d, 0x10000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.LocalMachine
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012ae1e
mov r13d, 0x20000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.CurrentService
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012ae40
mov r13d, 0x40000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.Services
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012ae5f
mov r13d, 0x50000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.Users
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012ae7e
mov r13d, 0x60000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012ae9d
mov r13d, 0x70000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012aebc
mov r13d, 0x80000
jmp 0x14012aedd
mov r8, rbx
lea rdx, str.LocalMachineEnterprise
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14012af63
mov r13d, 0x90000
mov edx, r15d
lea rcx, [r14 + 2]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x14012af63
lea r15, [rax + 2]
mov rax, 0xffffffffffffffff
mov qword [rbp - 0x50], r15
inc rax
cmp word [r15 + rax*2], r12w
jne 0x14012af01
cmp rax, 0x28
jne 0x14012af63
lea rcx, [r14 + 2]
mov word [rbx], r12w
call qword [case.0x140114cc7.1]
mov r14, rax
mov qword [rbp - 0x80], rax
test rax, rax
mov word [rbx], 0x5c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x78], rax
jne 0x14012b0ba
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012af90
mov rax, qword [rsp + 0x58]
mov ebx, 0x3a
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x560]
cmp byte [rcx], 0
je 0x14012bc51
call fcn.140102780
lea rcx, [0x1402225ec]
mov r15, rax
call fcn.140102780
mov r14, rax
test r15, r15
je 0x14012afd7
test rax, rax
je 0x14012afd7
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r12, rax
jmp 0x14012afe8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x2726
test r15, r15
je 0x14012aff1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x14012afff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x14012bc4c
mov r14, qword [rbp - 0x80]
xor r10d, r10d
mov r15, qword [rbp - 0x50]
mov r9, qword [rbp + 0x60]
mov r11, qword [rsp + 0x70]
mov rdx, qword [r11 + 0x5d0]
test rdx, rdx
je 0x14012b0a8
cmp byte [rdx], 0
lea r8, [0x1402aee6c]
je 0x14012b067
lea rbx, [0x140000000]
nop
movzx eax, byte [r8]
test al, al
je 0x14012b067
movzx ecx, byte [rdx]
movzx eax, byte [rax + rbx + 0x26b9b0]
cmp byte [rcx + rbx + 0x26b9b0], al
jne 0x14012b07e
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x14012b040
cmp byte [rdx], 0
mov ecx, r10d
mov eax, r10d
sete cl
cmp byte [r8], 0
setne al
cmp ecx, eax
jne 0x14012b0a8
lea r14, str._memory_blob_
test r9, r9
jne 0x14012b091
mov r14, qword [r11 + 0x560]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, r11
call fcn.140101f40
jmp 0x14012b1ae
test r12, r12
jne 0x14012b2d7
test r9, r9
jne 0x14012b2d7
mov r9d, r13d
mov qword [rsp + 0x20], r14
bts r9d, 0xe
xor r8d, r8d
xor edx, edx
mov ecx, 0xa
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r12, rax
test rax, rax
jne 0x14012b1ca
xor r15d, r15d
mov ebx, r15d
test r14, r14
je 0x14012b168
mov qword [rsp + 0x38], r15
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, r14
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jle 0x14012b168
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14012b168
mov qword [rsp + 0x38], r15
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r15
mov r8, r14
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14012b168
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14012b16b
mov r15, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x70]
lea r9, str._unknown_
test r15, r15
mov dword [rsp + 0x20], eax
mov r8d, r13d
lea rdx, str.schannel:_Failed_to_open_cert_store__lx__s__last_error_is_0x_lx
cmovne r9, r15
call fcn.140101f40
mov rcx, r14
call qword [fcn.14016f1de]
test r15, r15
je 0x14012b1ae
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x14012b502
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x3a
jmp 0x14012bca2
mov rcx, r14
call qword [fcn.14016f1de]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], reloc.WS2_32.dll_sendto
xor ebx, ebx
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea r9, [rbp + 0x30]
mov edx, Ordinal_41
mov qword [rsp + 0x20], rax
mov r8d, 4
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x14012b22a
test rdi, rdi
je 0x14012b552
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14012b552
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rbx
mov r9d, 0x10000
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x10001
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rbp + 0x58], rax
test rdi, rdi
je 0x14012b265
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x14012b552
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov edx, 0x30
mov ecx, 1
call qword [case.0x14015e1a2.3]
mov rbx, qword [rbp - 0x78]
mov qword [rbx], rax
test rax, rax
jne 0x14012b567
mov rcx, qword [rsp + 0x70]
lea rdx, str.schannel:_unable_to_allocate_memory
call fcn.140101f40
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14012b2bd
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test r12, r12
je case.0x14012bc46.2146893056
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012bca2
lea r14, str._memory_blob_
mov rbx, r10
mov r15d, r10d
test r9, r9
jne 0x14012b2f0
mov r14, qword [r11 + 0x560]
test rdi, rdi
je 0x14012b301
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
test r12, r12
je 0x14012b3de
xor edx, edx
mov edi, r10d
mov r8d, 2
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
mov r15d, eax
sete r13b
test eax, eax
jne 0x14012b377
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
test eax, eax
jns 0x14012b377
mov rdi, qword [rbp - 0x60]
xor r13b, r13b
mov r15, qword [rbp - 0x70]
test r15, r15
je 0x14012b3a7
mov r9, r12
mov r8d, 1
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x14012b3a7
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r13b, r13b
je 0x14012b3b0
mov r15d, ebx
jmp 0x14012b3e2
test r15d, r15d
jne 0x14012b341
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 r13b
test eax, eax
jne 0x14012b341
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rbp - 0x70], rax
jmp 0x14012b345
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rsp + 0x70]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rax
mov r8, qword [rax + 0x560]
call fcn.140101f40
mov rcx, r15
call qword [fcn.14016f1de]
mov eax, 0x3a
jmp 0x14012bca2
mov rdi, qword [rbp - 0x60]
mov r13, qword [rsp + 0x70]
mov r12, qword [rbp - 0x70]
mov qword [rbp - 0x40], r12
mov dword [rbp - 0x48], edi
mov rax, qword [r13 + 0x5f0]
test rax, rax
je 0x14012b40e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14012b405
lea rcx, [rbx*2 + 2]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14012b4b1
test rbx, rbx
je 0x14012b45a
mov r8, qword [r13 + 0x5f0]
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 r15d, eax
test eax, eax
js 0x14012b46a
cmp r15d, ebx
jg 0x14012b46a
mov eax, r15d
xor ebx, ebx
mov word [rdi + rax*2], bx
jmp 0x14012b46f
xor ebx, ebx
mov word [rdi], bx
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
mov ecx, 6
call fcn.14012a7e0
lea rcx, [rbp - 0x48]
mov rdx, rdi
test al, al
je 0x14012b499
mov r8d, 0x8000
jmp 0x14012b49c
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rdi
mov qword [rbp - 0x58], rax
call qword [fcn.14016f1de]
jmp 0x14012b4b3
xor ebx, ebx
cmp qword [rbp + 0x60], 0
jne 0x14012b4c3
mov rcx, r12
call qword [fcn.14016f1de]
mov r12, qword [rbp - 0x58]
test r12, r12
jne 0x14012b50c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, r13
cmp eax, 0x56
jne 0x14012b4f3
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.140101f40
mov eax, 0x3a
jmp 0x14012bca2
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
call fcn.140101f40
mov eax, 0x3a
jmp 0x14012bca2
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x10001
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rbp + 0x58], rax
test rax, rax
jne 0x14012b26e
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_lx
mov r9d, eax
mov rcx, r13
call fcn.140101f40
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x14012bca2
mov dword [rax + 0x28], 1
mov rax, qword [rbx]
mov qword [rax + 0x20], r12
cmp qword [r13], 0
jne 0x14012b9b2
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r8d, 0x4563
call fcn.14012a7e0
test al, al
je 0x14012b9b2
mov rdi, qword [rsp + 0x78]
xor eax, eax
xorps xmm1, xmm1
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
mov qword [rbp + 0x50], rax
xor r13d, r13d
mov qword [rbp + 0x98], rax
mov rdi, qword [rdi]
mov r12d, r13d
mov dword [rbp + 0x70], r13d
mov word [rbp - 0x48], r13w
mov qword [rbp - 0x46], rax
mov dword [rbp - 0x3e], eax
mov word [rbp - 0x3a], ax
mov word [rbp + 0x60], r13w
mov qword [rbp + 0x62], rax
mov dword [rbp + 0x6a], eax
mov word [rbp + 0x6e], ax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0xa0], xmm1
movups xmmword [rbp + 0xb0], xmm1
movups xmmword [rbp + 0xc0], xmm1
movups xmmword [rbp + 0xd0], xmm1
movups xmmword [rbp + 0xe0], xmm1
movups xmmword [rbp + 0xf0], xmm1
movups xmmword [rbp + 0x100], xmm1
movups xmmword [rbp + 0x110], xmm1
movups xmmword [rbp + 0x120], xmm1
test rdi, rdi
je 0x14012b956
mov r15b, 1
mov edx, r13d
movzx eax, r15b
mov dword [rbp - 0x80], edx
mov byte [rsp + 0x52], al
movzx r13d, r15b
mov byte [rsp + 0x50], r15b
mov byte [rsp + 0x51], r15b
cmp byte [rdi], r12b
je 0x14012b7f4
cmp edx, 5
jge 0x14012b7f4
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r14, rax
test rax, rax
je 0x14012b6a5
mov rbx, rax
sub rbx, rdi
jmp 0x14012b6b9
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], r12b
jne 0x14012b6b0
test r15b, r15b
je 0x14012b6e8
cmp rbx, 0x16
jne 0x14012b6e8
mov r8, rbx
lea rcx, str.TLS_AES_256_GCM_SHA384
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012b6e8
movzx eax, byte [rsp + 0x52]
xor r15b, r15b
jmp 0x14012b7a9
cmp byte [rsp + 0x50], r12b
je 0x14012b71e
cmp rbx, 0x16
jne 0x14012b71e
mov r8, rbx
lea rcx, str.TLS_AES_128_GCM_SHA256
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012b71e
movzx eax, byte [rsp + 0x52]
xor r8b, r8b
mov byte [rsp + 0x50], r8b
jmp 0x14012b7af
test r13b, r13b
je 0x14012b74a
cmp rbx, 0x1c
jne 0x14012b74a
mov r8, rbx
lea rcx, str.TLS_CHACHA20_POLY1305_SHA256
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012b74a
movzx eax, byte [rsp + 0x52]
xor r13b, r13b
jmp 0x14012b7a9
cmp byte [rsp + 0x51], r12b
je 0x14012b781
cmp rbx, 0x18
jne 0x14012b781
mov r8, rbx
lea rcx, str.TLS_AES_128_CCM_8_SHA256
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012b781
movzx eax, byte [rsp + 0x52]
xor cl, cl
movzx r8d, byte [rsp + 0x50]
mov byte [rsp + 0x51], cl
jmp 0x14012b7b4
cmp byte [rsp + 0x52], r12b
je 0x14012b7d3
cmp rbx, 0x16
jne 0x14012b7d3
mov r8, rbx
lea rcx, str.TLS_AES_128_CCM_SHA256
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012b7d3
mov byte [rsp + 0x52], al
movzx r8d, byte [rsp + 0x50]
movzx ecx, byte [rsp + 0x51]
mov rdi, r14
test r14, r14
je 0x14012b7c0
lea rdi, [r14 + 1]
mov edx, dword [rbp - 0x80]
inc edx
mov dword [rbp - 0x80], edx
test rdi, rdi
jne 0x14012b675
jmp 0x14012b7ff
mov rcx, qword [rsp + 0x70]
lea rdx, str.schannel:_Unknown_TLS_1.3_cipher:__.s
mov r9, rdi
mov r8d, ebx
call fcn.140101f40
mov eax, 0x3b
jmp 0x14012bca2
movzx ecx, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
lea rdx, [0x1402af1b8]
test r15b, r15b
je 0x14012b838
test r8b, r8b
je 0x14012b838
test r13b, r13b
je 0x14012b838
test cl, cl
je 0x14012b83c
test al, al
je 0x14012b840
mov rcx, qword [rsp + 0x70]
lea rdx, str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
call fcn.140101f40
mov eax, 0x3b
jmp 0x14012bca2
test cl, cl
jne 0x14012b840
test al, al
je 0x14012b8a0
mov dword [rbp - 0x48], 0x200020
lea r9, str.ChainingModeCCM
mov qword [rbp - 0x40], r9
lea r9, [rbp - 0x48]
mov qword [rbp + 0x90], r9
mov dword [rbp + 0x70], 2
mov dword [rbp + 0x88], 1
mov dword [rbp + 0x78], 0x80008
mov qword [rbp + 0x80], rdx
cmp cl, al
je 0x14012b89a
test cl, cl
je 0x14012b890
mov dword [rbp + 0x98], Ordinal_133
jmp 0x14012b89a
mov dword [rbp + 0x9c], Ordinal_73
mov r12d, 1
movzx eax, r8b
test r15b, r15b
jne 0x14012b8ad
test al, al
je 0x14012b91e
lea rax, str.ChainingModeGCM
mov dword [rbp + 0x60], 0x200020
mov qword [rbp + 0x68], rax
mov eax, r12d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp r15b, r8b
je 0x14012b8e3
test r15b, r15b
lea rax, str.SHA384
lea rdx, str.SHA256
cmovne rdx, rax
xor ebx, ebx
mov eax, ebx
cmp r15b, r8b
setne al
add eax, 2
mov dword [rbp + rcx*8 + 0x70], eax
inc r12d
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
mov rbx, qword [rbp - 0x78]
test r13b, r13b
je 0x14012b953
mov eax, r12d
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, str.CHACHA20_POLY1305
inc r12d
mov dword [rbp + rcx*8 + 0x70], 2
mov dword [rbp + rcx*8 + 0x78], 0x240024
mov qword [rbp + rcx*8 + 0x80], rax
xor r13d, r13d
lea rax, [rbp + 0x70]
mov dword [rbp + 0x44], r12d
mov qword [rbp + 0x48], rax
not esi
lea rax, [rbp + 0x30]
mov dword [rbp + 8], 1
mov qword [rbp + 0x10], rax
mov eax, dword [rbp - 0x68]
bts eax, 0x16
mov dword [rbp - 0x30], 5
cmp qword [rbp + 0x58], 0
mov dword [rbp + 4], eax
mov dword [rbp + 0x40], esi
je 0x14012b99d
lea rax, [rbp + 0x58]
mov dword [rbp - 0x28], 1
mov qword [rbp - 0x20], rax
mov rcx, qword [rbx]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
jmp 0x14012bbb3
mov rdi, qword [r15]
xorps xmm0, xmm0
mov eax, dword [rbp - 0x68]
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x30], 4
movups xmmword [rbp], xmm0
mov dword [rbp + 8], esi
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x18], eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
test rdi, rdi
je 0x14012bb83
mov r12, qword [rsp + 0x70]
bt esi, 0xd
jae 0x14012b9ff
lea rdx, str.schannel:_WARNING:_This_version_of_Schannel_may_negotiate_a_less_secure_TLS_version_than_TLS_1.3_because_the_user_set_an_algorithm_cipher_list.
mov rcx, r12
call fcn.140102070
cmp qword [r14], 0
je 0x14012ba1e
lea rdx, str.schannel:_This_version_of_Schannel_does_not_support_setting_an_algorithm_cipher_list_and_TLS_1.3_cipher_list_at_the_same_time
mov rcx, r12
call fcn.140101f40
mov eax, 0x3b
jmp 0x14012bca2
xor r13d, r13d
mov r15d, r13d
mov r14d, r13d
cmp byte [rdi], r13b
je 0x14012bb5c
cmp r14, 0x2f
jge 0x14012bb58
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
test eax, eax
jne 0x14012bb26
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x14012ba6b
sub rbx, rdi
jmp 0x14012ba7b
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x14012ba72
mov rcx, qword [str.CALG_MD2]
mov rsi, r13
test rcx, rcx
je 0x14012bae9
nop word [rax + rax]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r13b
jne 0x14012ba97
cmp rbx, rax
jne 0x14012bab5
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14012bad4
inc rsi
lea rcx, [0x140000000]
mov rax, rsi
add rax, rax
mov rcx, qword [rcx + rax*8 + 0x26c170]
test rcx, rcx
jne 0x14012ba90
jmp 0x14012bae9
add rsi, rsi
lea rax, [0x140000000]
mov eax, dword [rax + rsi*8 + 0x26c178]
test eax, eax
jne 0x14012bb26
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.USE_STRONG_CRYPTO
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14012bb1d
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SCH_USE_STRONG_CRYPTO
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14012bb6a
or dword [rbp + 0x18], 0x400000
jmp 0x14012bb31
inc r15d
mov dword [rbp + r14*4 + 0x70], eax
inc r14
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
lea rdi, [rax + 1]
cmove rdi, rax
test rdi, rdi
je 0x14012bb58
cmp byte [rdi], r13b
jne 0x14012ba30
mov rbx, qword [rbp - 0x78]
lea rax, [rbp + 0x70]
mov dword [rbp - 8], r15d
mov qword [rbp], rax
jmp 0x14012bb8d
lea rdx, str.schannel:_Failed_setting_algorithm_cipher_list
mov rcx, r12
call fcn.140101f40
mov eax, 0x3b
jmp 0x14012bca2
bts eax, 0x16
mov dword [rbp + 0x18], eax
xor r13d, r13d
cmp qword [rbp + 0x58], 0
je 0x14012bba3
lea rax, [rbp + 0x58]
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x28], rax
mov rcx, qword [rbx]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
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
mov r8d, 2
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov rax, qword [0x1402de880]
call qword [rax + Ordinal_26]
mov rcx, qword [rbp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x14012bbf4
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x14012bc48
lea rdx, [rbp + 0x70]
mov ecx, ebx
call fcn.1400fb4a0
mov rcx, qword [rsp + 0x70]
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov r8, rax
call fcn.140101f40
mov rdi, qword [rbp - 0x78]
mov rcx, qword [rdi]
call qword [fcn.14016f1de]
add ebx, 0x7ff6fd00
mov qword [rdi], r13
cmp ebx, 0xe
ja case.0x14012bc46.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x12bcec]
add rcx, rdx
jmp rcx
xor eax, eax
jmp 0x14012bca2
mov rax, qword [rsp + 0x70]
mov r8, qword [rax + 0x560]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rax
call fcn.140101f40
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
jmp 0x14012bca2
mov rcx, qword [rsp + 0x70]
lea rdx, str.SSL_versions_not_supported
call fcn.140101f40
mov eax, 4
jmp 0x14012bca2
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, qword [rsp + 0x70]
call fcn.140101f40
mov eax, 0x23
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret