Function at 0x140036860
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], 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 [0x14007b068]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor eax, eax
mov qword [rbp - 0x70], rcx
mov r14d, eax
mov qword [rsp + 0x60], rax
mov r15d, eax
mov dword [rsp + 0x54], eax
mov r13, rcx
movsxd rax, r8d
mov esi, 0x2a0
mov rdi, rdx
lea rcx, [rax + rax*2]
lea r12d, [rsi - 0x18]
mov rax, qword [rdx + rcx*8 + 0x260]
mov qword [rbp - 0x68], rax
cmp byte [rdx + 0x329], r14b
je 0x140036977
movzx ecx, byte [rdi + 0x134]
movzx edx, byte [rax + 0x6c]
cmp cl, 2
jne 0x140036902
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov eax, r12d
cmovne eax, esi
cmp dword [rax + rdi], 2
je 0x140036902
movzx eax, byte [r13 + 0x6db]
jmp 0x14003690a
movzx eax, byte [r13 + 0x623]
test al, al
je 0x140036921
test dl, dl
mov eax, 0x1808
mov r8d, 0x1820
cmove eax, r8d
jmp 0x140036983
cmp cl, 2
jne 0x140036945
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov rax, r12
cmovne rax, rsi
cmp dword [rax + rdi], 2
je 0x140036945
movzx eax, byte [r13 + 0x6dd]
jmp 0x14003694d
movzx eax, byte [r13 + 0x625]
test al, al
je 0x140036964
test dl, dl
mov eax, 0x1a08
mov r8d, 0x1a20
cmove eax, r8d
jmp 0x140036983
test dl, dl
mov eax, 0x208
mov r8d, 0x220
cmove eax, r8d
jmp 0x140036983
movzx ecx, byte [rdx + 0x134]
mov eax, 0x1808
mov edx, eax
or edx, 4
cmp byte [rdi + 0x32a], r14b
cmovne edx, eax
cmp cl, 2
jne 0x1400369b6
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov rax, r12
cmovne rax, rsi
cmp dword [rax + rdi], 2
je 0x1400369b6
movzx ecx, byte [r13 + 0x6df]
jmp 0x1400369be
movzx ecx, byte [r13 + 0x627]
mov eax, edx
or eax, 0x10
test cl, cl
mov rcx, r13
cmove edx, eax
lea rax, str.schannel:_enabled_automatic_use_of_client_certificate
mov dword [rsp + 0x78], edx
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
cmovne rdx, rax
call fcn.14001edf0
movsxd rbx, dword [rdi + 0x2c0]
cmp ebx, 7
ja case.default.0x140036a07
lea rcx, [0x140000000]
mov eax, dword [rcx + rbx*4 + 0x37828]
add rax, rcx
jmp rax
movzx ecx, byte [rdi + 0x134]
cmp cl, 2
jne 0x140036a5a
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov rax, r12
cmovne rax, rsi
cmp dword [rax + rdi], 2
je 0x140036a38
mov ebx, dword [rdi + 0x330]
mov esi, dword [rdi + 0x334]
jmp 0x140036a60
cmp cl, 2
jne 0x140036a5a
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov rax, r12
cmovne rax, rsi
cmp dword [rax + rdi], 2
je 0x140036a5a
mov esi, dword [rdi + 0x334]
jmp 0x140036a60
mov esi, dword [rdi + 0x2c4]
test esi, 0xfffeffff
jne 0x140036a93
xor edx, edx
mov dword [rsp + 0x20], 3
mov r8d, 0x4f7c
lea ecx, [rdx + 0xa]
lea r9d, [rdx + 2]
call fcn.140051280
test al, al
mov esi, 0x60000
mov eax, 0x70000
cmovne esi, eax
sar esi, 0x10
cmp ebx, esi
jg 0x140036afb
nop word [rax + rax]
mov ecx, ebx
sub ecx, 4
je 0x140036aeb
sub ecx, 1
je 0x140036ae4
sub ecx, 1
je 0x140036add
cmp ecx, 1
jne 0x140036af5
xor edx, edx
mov dword [rsp + 0x20], 3
mov r8d, 0x4f7c
lea ecx, [rdx + 0xa]
lea r9d, [rdx + 2]
call fcn.140051280
test al, al
je 0x140036b46
bts r14d, 0xd
jmp 0x140036af0
bts r14d, 0xb
jmp 0x140036af0
bts r14d, 9
jmp 0x140036af0
bts r14d, 7
mov dword [rsp + 0x54], r14d
inc ebx
cmp ebx, esi
jle 0x140036aa0
mov rcx, qword [r13 + 0x590]
test rcx, rcx
jne 0x140036b52
cmp qword [r13 + 0x5b8], r15
je 0x140037146
mov rax, qword [r13 + 0x5b8]
mov r14d, ecx
mov r12, rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x78], rcx
mov rbx, rcx
mov qword [rbp - 0x80], rax
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x58], rcx
jmp 0x140036d3d
lea rdx, str.schannel:_TLS_1.3_not_supported_on_Windows_prior_to_11
jmp 0x1400377f1
mov rax, qword [r13 + 0x5b8]
xor edx, edx
mov qword [rsp + 0x68], rdx
mov r14d, edx
mov qword [rbp - 0x78], rdx
mov r12d, edx
mov qword [rsp + 0x58], rdx
mov ebx, edx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140036b93
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x58], rcx
jmp 0x140036d3d
call case.0x140013c09.0
mov rbx, rax
test rax, rax
je case.0x1400377ac.2146893056
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
mov r15, rax
test rax, rax
je 0x140036d10
mov rsi, rax
lea rdx, str.CurrentUser
sub rsi, rbx
mov rcx, rbx
mov r8, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036be4
mov r14d, 0x10000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.LocalMachine
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036c05
mov r14d, 0x20000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.CurrentService
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036c26
mov r14d, 0x40000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.Services
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036c44
mov r14d, 0x50000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.Users
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036c62
mov r14d, 0x60000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036c80
mov r14d, 0x70000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036c9e
mov r14d, 0x80000
jmp 0x140036cba
mov r8, rsi
lea rdx, str.LocalMachineEnterprise
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x140036d10
mov r14d, 0x90000
mov edx, 0x5c
lea rcx, [r15 + 1]
call sub.VCRUNTIME140.dll_strchr
mov rsi, rax
test rax, rax
je 0x140036d10
lea rcx, [rax + 1]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x68], rcx
inc rax
cmp byte [rcx + rax], r12b
jne 0x140036ce0
cmp rax, 0x28
jne 0x140036d10
lea rcx, [r15 + 1]
mov byte [rsi], r12b
call qword [case.0x140013c09.0]
mov byte [rsi], 0x5c
mov r12, rax
test rax, rax
jne 0x140036d98
lea esi, [rax + 0x1b]
jmp 0x140036d15
mov esi, Ordinal_60
mov rcx, qword [r13 + 0x590]
cmp byte [rcx], 0
je 0x1400377b2
lea rdx, [0x1400635f8]
call fcn.140033190
mov r15, rax
test rax, rax
je 0x1400377b2
mov rcx, qword [r13 + 0x5f8]
test rcx, rcx
je 0x140036d82
lea rdx, [0x14006a0a4]
call fcn.140023f10
test eax, eax
jne 0x140036d82
cmp qword [rbp - 0x80], 0
lea r14, str._memory_blob_
jne 0x140036d6e
mov r14, qword [r13 + 0x590]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, r13
call fcn.14001ed00
jmp 0x140036de3
mov rax, qword [rbp - 0x80]
test r15, r15
jne 0x140036ead
test rax, rax
jne 0x140036ead
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 r15, rax
test rax, rax
jne 0x140036dfe
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, r13
call fcn.14001ed00
mov rcx, r12
call qword [fcn.14006153e]
test rbx, rbx
je 0x1400370d3
mov rcx, rbx
call fcn.14006153e
mov eax, Ordinal_60
jmp 0x1400377fe
mov rcx, r12
call qword [fcn.14006153e]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x38]
xor esi, esi
mov qword [rbp + 8], rax
lea rax, [rbp]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x28]
mov dword [rbp], reloc.WS2_32.dll_sendto
lea r8d, [rsi + 4]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140036e54
test rbx, rbx
je 0x140036e98
mov rcx, rbx
call fcn.14006153e
jmp 0x140036e98
mov r9d, 0x10000
mov qword [rsp + 0x28], rsi
lea rax, [rbp]
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x60], rax
test rbx, rbx
je 0x140036e8f
mov rcx, rbx
call fcn.14006153e
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x14003713b
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, Ordinal_60
jmp 0x1400377fe
xor ecx, ecx
mov esi, ecx
mov r13d, ecx
test rax, rax
je 0x140036ec2
lea r14, str._memory_blob_
jmp 0x140036ecd
mov r14, qword [rbp - 0x70]
mov r14, qword [r14 + 0x590]
test rbx, rbx
je 0x140036edc
mov rcx, rbx
call fcn.14006153e
xor ecx, ecx
test r15, r15
je 0x140036faa
xor edx, edx
mov ebx, ecx
mov rcx, r15
lea r8d, [rdx + 2]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
sete r12b
test eax, eax
jne 0x140036f46
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov ebx, eax
test eax, eax
jns 0x140036f46
mov rbx, qword [rbp - 0x60]
xor r12b, r12b
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140036f73
mov r9, r15
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp eax, 1
jne 0x140036f73
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
test r12b, r12b
jne 0x140036fae
jmp 0x140036f7b
test r12b, r12b
je 0x140036f14
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 r12b
test eax, eax
jne 0x140036f14
lea rcx, [rbx + 1]
call qword [section..data]
mov qword [rsp + 0x58], rax
jmp 0x140036f19
mov rcx, r15
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, qword [rbp - 0x70]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rax
mov r8, qword [rax + 0x590]
call fcn.14001ed00
mov rcx, qword [rsp + 0x58]
call qword [fcn.14006153e]
mov eax, Ordinal_60
jmp 0x1400377fe
mov rbx, qword [rbp - 0x60]
mov r15, qword [rbp - 0x70]
mov r12, qword [rsp + 0x58]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x68], ebx
mov rax, qword [r15 + 0x618]
test rax, rax
je 0x140036fdc
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], r13b
jne 0x140036fd3
lea rcx, [rsi*2 + 2]
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x140037084
test rsi, rsi
je 0x140037028
mov r8, qword [r15 + 0x618]
lea ecx, [rsi + 1]
mov dword [rsp + 0x28], ecx
mov r9d, esi
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 0x140037038
cmp r13d, esi
jg 0x140037038
mov eax, r13d
xor esi, esi
mov word [rbx + rax*2], si
jmp 0x14003703d
xor esi, esi
mov word [rbx], si
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140051280
lea rcx, [rsp + 0x68]
mov rdx, rbx
test al, al
je 0x14003706c
mov r8d, 0x8000
jmp 0x14003706f
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rbx
mov qword [rbp - 0x78], rax
call qword [fcn.14006153e]
jmp 0x140037086
xor esi, esi
cmp qword [rbp - 0x80], 0
jne 0x140037096
mov rcx, r12
call qword [fcn.14006153e]
mov rbx, qword [rbp - 0x78]
test rbx, rbx
jne 0x1400370dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, r15
cmp eax, 0x56
jne 0x1400370c4
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.14001ed00
lea eax, [rbx + 0x3a]
jmp 0x1400377fe
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.14001ed00
mov eax, Ordinal_60
jmp 0x1400377fe
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov edx, 0x10001
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140037135
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.14001ed00
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, Ordinal_60
jmp 0x1400377fe
mov r13, r15
mov r15, rbx
mov r14d, dword [rsp + 0x54]
mov r12d, 0x288
mov edx, Ordinal_50
lea ecx, [rdx - 0x2f]
call qword [case.0x140013c09.1]
mov rsi, qword [rbp - 0x68]
mov qword [rsi], rax
test rax, rax
jne 0x140037199
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, r13
call fcn.14001ed00
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003717f
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test r15, r15
je case.0x1400377ac.2146893056
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400377fe
mov dword [rax + 0x28], 1
xor edx, edx
mov rax, qword [rsi]
mov r8d, 0x4563
mov dword [rsp + 0x20], 3
lea ecx, [rdx + 0xa]
lea r9d, [rdx + 2]
mov qword [rax + 0x20], r15
call fcn.140051280
test al, al
je 0x1400375c5
xorps xmm0, xmm0
lea rcx, [rbp + 0x60]
xor eax, eax
xor edx, edx
mov r8d, 0xc0
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp + 0x30], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
xorps xmm0, xmm0
cmp byte [rdi + 0x134], 2
xorps xmm1, xmm1
movups xmmword [rbp - 0x60], xmm0
mov r11d, r14d
mov dword [rsp + 0x58], r14d
movups xmmword [rsp + 0x68], xmm1
jne 0x140037245
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov eax, 0x2a0
cmovne r12, rax
cmp dword [r12 + rdi], 2
je 0x140037245
mov rdi, qword [rdi + 0x360]
jmp 0x14003724c
mov rdi, qword [rdi + 0x2f0]
test rdi, rdi
je 0x140037562
mov r15d, r14d
mov byte [rsp + 0x50], 1
mov r14b, 1
mov byte [rsp + 0x51], 1
movzx r12d, r14b
mov byte [rsp + 0x52], 1
movups xmmword [rbp + 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
cmp byte [rdi], 0
je 0x1400373f3
cmp r15d, 5
jge 0x1400373f3
mov edx, Ordinal_60
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rsi, rax
test rax, rax
je 0x1400372a6
mov rbx, rax
sub rbx, rdi
jmp 0x1400372b9
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400372b0
cmp rbx, 0x1f
ja 0x1400373da
mov r8, rbx
lea rcx, [rbp + 0x38]
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
cmp byte [rsp + 0x50], 0
mov byte [rbp + rbx + 0x38], 0
je 0x1400372ff
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_256_GCM_SHA384
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400372ff
xor r8b, r8b
mov byte [rsp + 0x50], r8b
jmp 0x14003739b
cmp byte [rsp + 0x51], 0
je 0x14003732a
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_128_GCM_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14003732a
movzx r8d, byte [rsp + 0x50]
xor r9b, r9b
mov byte [rsp + 0x51], r9b
jmp 0x1400373a1
cmp byte [rsp + 0x52], 0
je 0x14003735b
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_CHACHA20_POLY1305_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14003735b
movzx r8d, byte [rsp + 0x50]
xor r10b, r10b
movzx r9d, byte [rsp + 0x51]
mov byte [rsp + 0x52], r10b
jmp 0x1400373a7
test r14b, r14b
je 0x140037379
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_128_CCM_8_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140037379
xor r14b, r14b
jmp 0x140037395
test r12b, r12b
je 0x1400373c1
lea rdx, [rbp + 0x38]
lea rcx, str.TLS_AES_128_CCM_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400373c1
xor r12b, r12b
movzx r8d, byte [rsp + 0x50]
movzx r9d, byte [rsp + 0x51]
movzx r10d, byte [rsp + 0x52]
mov rdi, rsi
test rsi, rsi
je 0x1400373b3
lea rdi, [rsi + 1]
inc r15d
test rdi, rdi
jne 0x140037276
jmp 0x140037405
lea rdx, str.Passed_in_an_unknown_TLS_1.3_cipher.
mov rcx, r13
call fcn.14001ed00
mov eax, Ordinal_60
jmp 0x1400377fe
lea rdx, str.Cipher_name_too_long__not_checked.
mov rcx, r13
call fcn.14001ed00
mov eax, Ordinal_60
jmp 0x1400377fe
movzx r10d, byte [rsp + 0x52]
movzx r9d, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
lea rdx, [0x14006a378]
test r8b, r8b
je 0x14003743e
test r9b, r9b
je 0x14003743e
test r10b, r10b
je 0x14003743e
test r14b, r14b
je 0x140037443
test r12b, r12b
je 0x140037448
lea rdx, str.All_available_TLS_1.3_ciphers_were_disabled.
mov rcx, r13
call fcn.14001ed00
mov eax, Ordinal_60
jmp 0x1400377fe
test r14b, r14b
jne 0x140037448
test r12b, r12b
je 0x1400374ac
mov dword [rbp - 0x60], 0x200020
lea rax, str.ChainingModeCCM
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x60], 2
mov dword [rbp + 0x78], 1
mov dword [rbp + 0x68], 0x80008
mov qword [rbp + 0x70], rdx
cmp r14b, r12b
je 0x1400374a4
test r14b, r14b
je 0x14003749a
mov dword [rbp + 0x88], 0x80
mov r11d, 1
jmp 0x1400374b1
mov dword [rbp + 0x8c], 0x40
mov r11d, 1
jmp 0x1400374b1
mov r11d, dword [rsp + 0x58]
test r8b, r8b
jne 0x1400374bb
test r9b, r9b
je 0x14003752d
lea rax, str.ChainingModeGCM
mov dword [rsp + 0x68], 0x200020
mov qword [rsp + 0x70], rax
mov eax, r11d
lea rcx, [rax + rax*2]
add rcx, rcx
cmp r8b, r9b
je 0x1400374f3
test r8b, r8b
lea rax, str.SHA384
lea rdx, str.SHA256
cmovne rdx, rax
xor r14d, r14d
mov eax, r14d
cmp r8b, r9b
setne al
add eax, 2
mov dword [rbp + rcx*8 + 0x60], eax
inc r11d
mov dword [rbp + rcx*8 + 0x68], 0x80008
lea rax, [rsp + 0x68]
mov qword [rbp + rcx*8 + 0x70], rdx
mov qword [rbp + rcx*8 + 0x80], rax
mov dword [rbp + rcx*8 + 0x78], 1
jmp 0x140037530
xor r14d, r14d
mov rsi, qword [rbp - 0x68]
test r10b, r10b
je 0x140037562
mov eax, r11d
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, str.CHACHA20_POLY1305
inc r11d
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], r11d
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov eax, dword [rsp + 0x78]
bts eax, 0x16
mov dword [rbp - 0x18], 1
cmp qword [rsp + 0x60], 0
mov dword [rbp - 0x1c], eax
mov eax, dword [rsp + 0x54]
not eax
mov dword [rbp - 0x50], 5
mov dword [rbp + 0x20], eax
je 0x1400375b0
lea rax, [rsp + 0x60]
mov dword [rbp - 0x48], 1
mov qword [rbp - 0x40], rax
mov rcx, qword [rsi]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
jmp 0x14003771a
cmp byte [rdi + 0x134], 2
jne 0x1400375ef
cmp qword [rdi + 0x1d8], 0xffffffffffffffff
mov eax, 0x2a0
cmovne r12, rax
cmp dword [r12 + rdi], 2
je 0x1400375ef
mov rbx, qword [rdi + 0x358]
jmp 0x1400375f6
mov rbx, qword [rdi + 0x2e8]
mov eax, dword [rsp + 0x78]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x50], 4
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x18], r14d
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 8], eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
test rbx, rbx
je 0x1400376e8
xor r14d, r14d
mov esi, r14d
mov edi, r14d
cmp byte [rbx], r14b
je 0x1400376be
cmp rdi, 0x2f
jge 0x1400376be
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 0x140037696
mov rcx, rbx
call fcn.140036250
test eax, eax
jne 0x140037696
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 0x14003768d
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 0x1400376cf
or dword [rbp - 8], 0x400000
jmp 0x14003769f
inc esi
mov dword [rbp + rdi*4 + 0x60], eax
inc rdi
mov edx, Ordinal_60
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x1400376be
add rbx, 1
jne 0x140037631
lea rax, [rbp + 0x60]
mov dword [rbp - 0x28], esi
mov rsi, qword [rbp - 0x68]
mov qword [rbp - 0x20], rax
jmp 0x1400376f2
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, r13
call fcn.14001ed00
mov eax, Ordinal_60
jmp 0x1400377fe
bts eax, 0x16
mov dword [rbp - 8], eax
xor r14d, r14d
cmp qword [rsp + 0x60], 0
je 0x14003770a
lea rax, [rsp + 0x60]
mov dword [rbp - 0x4c], 1
mov qword [rbp - 0x48], rax
mov rcx, qword [rsi]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
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 [0x14007bb10]
lea r8d, [r9 + 2]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
test rcx, rcx
je 0x14003775a
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x1400377ae
mov r8d, 0x100
lea rdx, [rbp + 0x60]
mov ecx, ebx
call fcn.1400331e0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, r13
call fcn.14001ed00
mov rcx, qword [rsi]
call qword [fcn.14006153e]
add ebx, 0x7ff6fd00
mov qword [rsi], r14
cmp ebx, 0xe
ja case.0x1400377ac.2146893055
lea rdx, [0x140000000]
movsxd rax, ebx
mov ecx, dword [rdx + rax*4 + 0x37848]
add rcx, rdx
jmp rcx
xor eax, eax
jmp 0x1400377fe
mov r8, qword [r13 + 0x590]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, r13
call fcn.14001ed00
mov rcx, rbx
call fcn.14006153e
mov eax, esi
jmp 0x1400377fe
lea rdx, str.SSL_versions_not_supported
mov rcx, r13
call fcn.14001ed00
mov eax, 4
jmp 0x1400377fe
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, r13
call fcn.14001ed00
mov eax, reloc.WLDAP32.dll_Ordinal_35
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140060c00
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret