Function at 0x14012d160
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 [0x1402e1040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rax, qword [rcx]
mov r11, rdx
mov r8, qword [rcx + 0x10]
mov rdi, rcx
mov qword [rsp + 0x78], rdx
mov edx, dword [rax + 8]
mov rax, qword [rcx + 0x18]
and edx, 0xa
cmp dl, 0xa
jne 0x14012d1eb
lea r15, [rax + 0x358]
lea r13, [rax + 0x350]
lea r14, [rax + 0x398]
lea r9, [rax + 0x39a]
lea rcx, [rax + 0x399]
lea rax, [r11 + 0x69b]
lea r10, [r11 + 0x69f]
lea rdx, [r11 + 0x69d]
jmp 0x14012d223
lea r15, [rax + 0x2e8]
lea r13, [rax + 0x2e0]
lea r14, [rax + 0x328]
lea r9, [rax + 0x32a]
lea rcx, [rax + 0x329]
lea rax, [r11 + 0x5e3]
lea r10, [r11 + 0x5e7]
lea rdx, [r11 + 0x5e5]
xor r11d, r11d
mov qword [rsp + 0x68], r15
mov qword [rbp + 0x58], r11
mov esi, r11d
mov r12d, r11d
mov r11, qword [r8 + 0x30]
mov qword [rbp - 0x68], r11
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x58], r15
cmp byte [rcx], sil
je 0x14012d293
movzx ecx, byte [r11 + 0x6c]
cmp byte [rax], sil
je 0x14012d26c
test cl, cl
mov eax, 0x1808
mov edx, 0x1820
cmove eax, edx
jmp 0x14012d298
cmp byte [rdx], sil
je 0x14012d282
test cl, cl
mov eax, 0x1a08
mov edx, 0x1a20
cmove eax, edx
jmp 0x14012d298
test cl, cl
mov eax, 0x208
mov edx, 0x220
cmove eax, edx
jmp 0x14012d298
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 + 0x78]
cmove edx, eax
lea rax, str.schannel:_enabled_automatic_use_of_client_certificate
mov dword [rbp - 0x70], edx
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
cmovne rdx, rax
call fcn.140101ff0
movzx eax, byte [r14]
cmp eax, 7
ja case.default.0x14012d2ee
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x12e3a0]
add rax, rcx
jmp rax
mov rax, qword [rdi]
mov ecx, dword [rax + 8]
mov rax, qword [rdi + 0x18]
and ecx, 0xa
cmp cl, 0xa
jne 0x14012d311
lea rdi, [rax + 0x394]
add rax, 0x398
jmp 0x14012d33c
mov rcx, qword [rsp + 0x60]
lea rdi, [rax + 0x324]
mov qword [rsp + 0x60], rcx
add rax, 0x328
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x70], r13
mov edi, dword [rdi]
mov r14d, 0x70000
movzx ebx, byte [rax]
test edi, 0xfffeffff
jne 0x14012d374
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r8d, 0x4f7c
call fcn.14012ce90
test al, al
mov edi, 0x60000
cmovne edi, r14d
sar edi, 0x10
cmp ebx, edi
jg 0x14012d3d4
nop dword [rax + rax]
mov ecx, ebx
sub ecx, 4
je 0x14012d3ca
sub ecx, 1
je 0x14012d3c4
sub ecx, 1
je 0x14012d3be
cmp ecx, 1
jne 0x14012d3ce
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r8d, 0x4f7c
call fcn.14012ce90
test al, al
je 0x14012d466
bts esi, 0xd
jmp 0x14012d3ce
bts esi, 0xb
jmp 0x14012d3ce
bts esi, 9
jmp 0x14012d3ce
bts esi, 7
inc ebx
cmp ebx, edi
jle 0x14012d380
mov r13, qword [rsp + 0x78]
mov rcx, qword [r13 + 0x548]
test rcx, rcx
jne 0x14012d3f2
cmp qword [r13 + 0x570], r12
je 0x14012dbce
mov r11, qword [rsp + 0x78]
xor r10d, r10d
mov r13d, r10d
mov qword [rbp - 0x80], r10
mov r14d, r10d
mov qword [rbp - 0x50], r10
mov r15d, r10d
mov qword [rbp - 0x58], r10
mov r9, qword [r11 + 0x570]
mov edi, r10d
mov qword [rbp - 0x78], r10
mov qword [rbp - 0x60], r10
mov qword [rbp + 0x60], r9
test r9, r9
je 0x14012d472
mov rax, qword [r9]
mov rbx, qword [rsp + 0x58]
mov qword [rbp - 0x78], rax
mov rax, qword [r9 + 8]
mov qword [rbp - 0x60], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rbx
jmp 0x14012d6e3
lea rdx, str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
jmp 0x14012e364
call fcn.1401029d0
mov rdi, rax
test rax, rax
je case.0x14012e317.2146893056
mov r15d, 0x5c
mov rcx, rax
mov edx, r15d
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r14, rax
test rax, rax
je 0x14012d62a
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 0x14012d4cc
mov r13d, 0x10000
jmp 0x14012d5ad
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 0x14012d4ee
mov r13d, 0x20000
jmp 0x14012d5ad
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 0x14012d510
mov r13d, 0x40000
jmp 0x14012d5ad
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 0x14012d52f
mov r13d, 0x50000
jmp 0x14012d5ad
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 0x14012d54e
mov r13d, 0x60000
jmp 0x14012d5ad
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 0x14012d56d
mov r13d, 0x70000
jmp 0x14012d5ad
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 0x14012d58c
mov r13d, 0x80000
jmp 0x14012d5ad
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 0x14012d62a
mov r13d, 0x90000
mov edx, r15d
lea rcx, [r14 + 2]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x14012d62a
lea r15, [rax + 2]
mov rax, 0xffffffffffffffff
mov qword [rbp - 0x50], r15
inc rax
cmp word [r15 + rax*2], r12w
jne 0x14012d5d1
cmp rax, 0x28
jne 0x14012d62a
lea rcx, [r14 + 2]
mov word [rbx], r12w
call qword [case.0x140115757.1]
mov qword [rbp - 0x80], rax
mov r14, rax
mov word [rbx], 0x5c
test rax, rax
jne 0x14012d607
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012d62f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rax
jmp 0x14012d77c
mov ebx, 0x3a
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], 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 rcx, qword [rax + 0x548]
cmp byte [rcx], 0
je 0x14012e322
call fcn.1401029d0
lea rcx, [0x1402265ac]
mov r15, rax
call fcn.1401029d0
mov r14, rax
test r15, r15
je 0x14012d69e
test rax, rax
je 0x14012d69e
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov r12, rax
jmp 0x14012d6af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x2726
test r15, r15
je 0x14012d6b8
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x14012d6c6
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12, r12
je 0x14012e31d
mov r14, qword [rbp - 0x80]
xor r10d, r10d
mov r15, qword [rbp - 0x50]
mov r9, qword [rbp + 0x60]
mov r11, qword [rsp + 0x78]
mov rdx, qword [r11 + 0x5b8]
test rdx, rdx
je 0x14012d76a
cmp byte [rdx], 0
lea r8, [0x1402b39c0]
je 0x14012d729
lea rbx, [0x140000000]
movzx eax, byte [r8]
test al, al
je 0x14012d729
movzx ecx, byte [rdx]
movzx eax, byte [rax + rbx + 0x26f9e0]
cmp byte [rcx + rbx + 0x26f9e0], al
jne 0x14012d740
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x14012d702
cmp byte [rdx], 0
mov ecx, r10d
mov eax, r10d
sete cl
cmp byte [r8], 0
setne al
cmp ecx, eax
jne 0x14012d76a
lea r14, str._memory_blob_
test r9, r9
jne 0x14012d753
mov r14, qword [r11 + 0x548]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, r11
call fcn.140101e00
jmp 0x14012d875
test r12, r12
jne 0x14012d940
test r9, r9
jne 0x14012d940
mov rbx, qword [rsp + 0x58]
mov r9d, r13d
bts r9d, 0xe
mov qword [rsp + 0x20], r14
xor r8d, r8d
xor edx, edx
mov ecx, 0xa
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r12, rax
test rax, rax
jne 0x14012d891
xor r15d, r15d
mov ebx, r15d
test r14, r14
je 0x14012d82f
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 0x14012d82f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14012d82f
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 0x14012d82f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14012d832
mov r15, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x78]
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.140101e00
mov rcx, r14
call qword [0x1402e1138]
test r15, r15
je 0x14012d875
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
je 0x14012db6d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0x3a
jmp 0x14012e373
mov rcx, r14
call qword [0x1402e1138]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], reloc.WS2_32.dll_sendto
xor r14d, r14d
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
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 0x14012d8f2
test rdi, rdi
je 0x14012dbb9
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14012dbb9
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], r14
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 0x14012d92d
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 0x14012dbb9
mov r13, qword [rsp + 0x78]
jmp 0x14012dbd3
lea r14, str._memory_blob_
mov rbx, r10
mov r15d, r10d
test r9, r9
jne 0x14012d959
mov r14, qword [r11 + 0x548]
test rdi, rdi
je 0x14012d96a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
test r12, r12
je 0x14012da47
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 0x14012d9e0
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
test eax, eax
jns 0x14012d9e0
mov rdi, qword [rbp - 0x60]
xor r13b, r13b
mov r15, qword [rbp - 0x78]
test r15, r15
je 0x14012da10
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 0x14012da10
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r13b, r13b
je 0x14012da19
mov r15d, ebx
jmp 0x14012da4b
test r15d, r15d
jne 0x14012d9aa
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 0x14012d9aa
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rbp - 0x78], rax
jmp 0x14012d9ae
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rsp + 0x78]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rax
mov r8, qword [rax + 0x548]
call fcn.140101e00
mov rcx, r15
call qword [0x1402e1138]
mov eax, 0x3a
jmp 0x14012e373
mov rdi, qword [rbp - 0x60]
mov r13, qword [rsp + 0x78]
mov r12, qword [rbp - 0x78]
mov qword [rbp - 0x40], r12
mov dword [rbp - 0x48], edi
mov rax, qword [r13 + 0x5d8]
test rax, rax
je 0x14012da79
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14012da70
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 0x14012db1c
test rbx, rbx
je 0x14012dac5
mov r8, qword [r13 + 0x5d8]
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 0x14012dad5
cmp r15d, ebx
jg 0x14012dad5
mov eax, r15d
xor ebx, ebx
mov word [rdi + rax*2], bx
jmp 0x14012dada
xor ebx, ebx
mov word [rdi], bx
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
mov ecx, 6
call fcn.14012ce90
lea rcx, [rbp - 0x48]
mov rdx, rdi
test al, al
je 0x14012db04
mov r8d, 0x8000
jmp 0x14012db07
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rdi
mov qword [rbp - 0x58], rax
call qword [0x1402e1138]
jmp 0x14012db1e
xor ebx, ebx
cmp qword [rbp + 0x60], 0
jne 0x14012db2e
mov rcx, r12
call qword [0x1402e1138]
mov r12, qword [rbp - 0x58]
test r12, r12
jne 0x14012db77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, r13
cmp eax, 0x56
jne 0x14012db5e
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.140101e00
mov eax, 0x3a
jmp 0x14012e373
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_lx
call fcn.140101e00
mov eax, 0x3a
jmp 0x14012e373
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 0x14012dbce
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.140101e00
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x14012e373
mov rbx, qword [rsp + 0x58]
mov edx, 0x30
mov ecx, 1
call qword [case.0x140161b02.3]
mov r14, qword [rbp - 0x68]
mov qword [r14], rax
test rax, rax
jne 0x14012dc27
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r13
call fcn.140101e00
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14012dc0d
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test r12, r12
je case.0x14012e317.2146893056
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012e373
mov dword [rax + 0x28], 1
mov rax, qword [r14]
mov qword [rax + 0x20], r12
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
jne 0x14012e079
xor edx, edx
mov dword [rsp + 0x20], 3
mov ecx, 0xa
mov r8d, 0x4563
call fcn.14012ce90
test al, al
je 0x14012e079
mov rdi, qword [rsp + 0x68]
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 0x14012e01d
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
nop dword [rax]
cmp byte [rdi], r12b
je 0x14012debb
cmp edx, 5
jge 0x14012debb
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r14, rax
test rax, rax
je 0x14012dd70
mov rbx, rax
sub rbx, rdi
jmp 0x14012dd80
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], r12b
jne 0x14012dd77
test r15b, r15b
je 0x14012ddaf
cmp rbx, 0x16
jne 0x14012ddaf
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 0x14012ddaf
movzx eax, byte [rsp + 0x52]
xor r15b, r15b
jmp 0x14012de70
cmp byte [rsp + 0x50], r12b
je 0x14012dde5
cmp rbx, 0x16
jne 0x14012dde5
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 0x14012dde5
movzx eax, byte [rsp + 0x52]
xor r8b, r8b
mov byte [rsp + 0x50], r8b
jmp 0x14012de76
test r13b, r13b
je 0x14012de11
cmp rbx, 0x1c
jne 0x14012de11
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 0x14012de11
movzx eax, byte [rsp + 0x52]
xor r13b, r13b
jmp 0x14012de70
cmp byte [rsp + 0x51], r12b
je 0x14012de48
cmp rbx, 0x18
jne 0x14012de48
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 0x14012de48
movzx eax, byte [rsp + 0x52]
xor cl, cl
movzx r8d, byte [rsp + 0x50]
mov byte [rsp + 0x51], cl
jmp 0x14012de7b
cmp byte [rsp + 0x52], r12b
je 0x14012de9a
cmp rbx, 0x16
jne 0x14012de9a
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 0x14012de9a
mov byte [rsp + 0x52], al
movzx r8d, byte [rsp + 0x50]
movzx ecx, byte [rsp + 0x51]
mov rdi, r14
test r14, r14
je 0x14012de87
lea rdi, [r14 + 1]
mov edx, dword [rbp - 0x80]
inc edx
mov dword [rbp - 0x80], edx
test rdi, rdi
jne 0x14012dd40
jmp 0x14012dec6
mov rcx, qword [rsp + 0x78]
lea rdx, str.schannel:_Unknown_TLS_1.3_cipher:__.s
mov r9, rdi
mov r8d, ebx
call fcn.140101e00
mov eax, 0x3b
jmp 0x14012e373
movzx ecx, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
lea rdx, [0x1402b3d38]
test r15b, r15b
je 0x14012deff
test r8b, r8b
je 0x14012deff
test r13b, r13b
je 0x14012deff
test cl, cl
je 0x14012df03
test al, al
je 0x14012df07
mov rcx, qword [rsp + 0x78]
lea rdx, str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
call fcn.140101e00
mov eax, 0x3b
jmp 0x14012e373
test cl, cl
jne 0x14012df07
test al, al
je 0x14012df67
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 0x14012df61
test cl, cl
je 0x14012df57
mov dword [rbp + 0x98], Ordinal_133
jmp 0x14012df61
mov dword [rbp + 0x9c], Ordinal_73
mov r12d, 1
movzx eax, r8b
test r15b, r15b
jne 0x14012df74
test al, al
je 0x14012dfe5
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 0x14012dfaa
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 r14, qword [rbp - 0x68]
test r13b, r13b
je 0x14012e01a
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 - 0x70]
bts eax, 0x16
mov dword [rbp - 0x30], 5
cmp qword [rbp + 0x58], 0
mov dword [rbp + 4], eax
mov dword [rbp + 0x40], esi
je 0x14012e064
lea rax, [rbp + 0x58]
mov dword [rbp - 0x28], 1
mov qword [rbp - 0x20], rax
mov rcx, qword [r14]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
jmp 0x14012e288
mov rdi, qword [rsp + 0x70]
xorps xmm0, xmm0
mov eax, dword [rbp - 0x70]
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x30], 4
mov rdi, qword [rdi]
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 0x14012e258
bt esi, 0xd
jae 0x14012e0c6
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, r13
call fcn.140101ff0
cmp qword [rbx], 0
je 0x14012e0e5
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, r13
call fcn.140101e00
mov eax, 0x3b
jmp 0x14012e373
xor r13d, r13d
mov r15d, r13d
mov r14d, r13d
cmp byte [rdi], r13b
je 0x14012e22b
nop word [rax + rax]
cmp r14, 0x2f
jge 0x14012e22b
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 0x14012e1f9
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x14012e13b
sub rbx, rdi
jmp 0x14012e14b
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x14012e142
mov rcx, qword [str.CALG_MD2]
mov rsi, r13
test rcx, rcx
je 0x14012e1bc
lea r12, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r13b
jne 0x14012e177
cmp rbx, rax
jne 0x14012e195
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14012e1ad
inc rsi
mov rax, rsi
add rax, rax
mov rcx, qword [r12 + rax*8 + 0x2700a0]
test rcx, rcx
jne 0x14012e170
jmp 0x14012e1bc
add rsi, rsi
mov eax, dword [r12 + rsi*8 + 0x2700a8]
test eax, eax
jne 0x14012e1f9
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 0x14012e1f0
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 0x14012e23d
or dword [rbp + 0x18], 0x400000
jmp 0x14012e204
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 0x14012e22b
cmp byte [rdi], r13b
jne 0x14012e100
mov r14, qword [rbp - 0x68]
lea rax, [rbp + 0x70]
mov qword [rbp], rax
mov dword [rbp - 8], r15d
jmp 0x14012e262
mov rcx, qword [rsp + 0x78]
lea rdx, str.schannel:_Failed_setting_algorithm_cipher_list
call fcn.140101e00
mov eax, 0x3b
jmp 0x14012e373
bts eax, 0x16
mov dword [rbp + 0x18], eax
xor r13d, r13d
cmp qword [rbp + 0x58], 0
je 0x14012e278
lea rax, [rbp + 0x58]
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x28], rax
mov rcx, qword [r14]
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 [0x1402e36a0]
call qword [rax + Ordinal_26]
mov rcx, qword [rbp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x14012e2c9
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x14012e319
lea rdx, [rbp + 0x70]
mov ecx, ebx
call fcn.1400faf80
mov rcx, qword [rsp + 0x78]
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov r8, rax
call fcn.140101e00
mov rcx, qword [r14]
call qword [0x1402e1138]
add ebx, 0x7ff6fd00
mov qword [r14], r13
cmp ebx, 0xe
ja case.0x14012e317.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x12e3c0]
add rcx, rdx
jmp rcx
xor eax, eax
jmp 0x14012e373
mov rax, qword [rsp + 0x78]
mov r8, qword [rax + 0x548]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rax
call fcn.140101e00
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
jmp 0x14012e373
mov rcx, qword [rsp + 0x78]
lea rdx, str.SSL_versions_not_supported
call fcn.140101e00
mov eax, 4
jmp 0x14012e373
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, qword [rsp + 0x78]
call fcn.140101e00
mov eax, 0x23
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140171bd0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret