Function at 0x140301b90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x560
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov rax, qword [rsp + 0x570]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x198], rax
mov rcx, qword [rsp + 0x570]
call fcn.1402c4cc0
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0x578]
mov rcx, qword [rsp + 0x570]
call fcn.1402c4c60
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x108], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0xa4], 0
mov rax, qword [rsp + 0x198]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x88], rax
xor eax, eax
test eax, eax
jne 0x140301c3e
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x69]
test eax, eax
je 0x140301cde
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0x6c]
test eax, eax
je 0x140301c72
mov dword [rsp + 0x5c], 8
jmp 0x140301c7a
mov dword [rsp + 0x5c], 0x20
mov rax, qword [rsp + 0x118]
movzx eax, byte [rax + 0xb3]
test eax, eax
je 0x140301ca2
mov eax, dword [rsp + 0x5c]
or eax, 0x1800
mov dword [rsp + 0x5c], eax
xor eax, eax
test eax, eax
jne 0x140301c9a
jmp 0x140301cdc
mov rax, qword [rsp + 0x118]
movzx eax, byte [rax + 0xb5]
test eax, eax
je 0x140301cca
mov eax, dword [rsp + 0x5c]
or eax, 0x1a00
mov dword [rsp + 0x5c], eax
xor eax, eax
test eax, eax
jne 0x140301cc2
jmp 0x140301cdc
mov eax, dword [rsp + 0x5c]
bts eax, 9
mov dword [rsp + 0x5c], eax
xor eax, eax
test eax, eax
jne 0x140301cd6
jmp 0x140301cec
mov dword [rsp + 0x5c], 0x1808
xor eax, eax
test eax, eax
jne 0x140301ce6
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x6a]
test eax, eax
jne 0x140301d0d
mov eax, dword [rsp + 0x5c]
or eax, 4
mov dword [rsp + 0x5c], eax
xor eax, eax
test eax, eax
jne 0x140301d07
mov rax, qword [rsp + 0x118]
movzx eax, byte [rax + 0xb7]
test eax, eax
jne 0x140301d4c
mov eax, dword [rsp + 0x5c]
and eax, 0xffffffbf
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
or eax, 0x10
mov dword [rsp + 0x5c], eax
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
mov rcx, qword [rsp + 0x578]
call fcn.1402e8500
jmp 0x140301d60
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate
mov rcx, qword [rsp + 0x578]
call fcn.1402e8500
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax + 0x68]
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 7
ja case.default.0x140301d96
movsxd rax, dword [rsp + 0xf0]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x303324]
add rax, rcx
jmp rax
mov r8, qword [rsp + 0x578]
mov rdx, qword [rsp + 0x570]
lea rcx, [rsp + 0xa4]
call fcn.140301580
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140301dc9
mov eax, dword [rsp + 0x68]
jmp 0x140303309
jmp 0x140301e07
lea rdx, str.SSL_versions_not_supported
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 4
jmp 0x140303309
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 0x23
jmp 0x140303309
mov rax, qword [rsp + 0x578]
cmp qword [rax + 0x528], 0
jne 0x140301e2f
mov rax, qword [rsp + 0x578]
cmp qword [rax + 0x550], 0
je 0x1403027d8
mov dword [rsp + 0xb0], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xf8], 0
mov rax, qword [rsp + 0x578]
cmp qword [rax + 0x550], 0
je 0x140301ea1
mov dword [rsp + 0xf4], 1
jmp 0x140301eac
mov dword [rsp + 0xf4], 0
cmp dword [rsp + 0xf4], 0
jne 0x140301ec3
mov dword [rsp + 0xd8], 0
jmp 0x140301ece
mov dword [rsp + 0xd8], 1
movzx eax, byte [rsp + 0xd8]
mov byte [rsp + 0x58], al
mov qword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x140301f26
mov rax, qword [rsp + 0x578]
mov rax, qword [rax + 0x550]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x578]
mov rax, qword [rax + 0x550]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf8], rax
jmp 0x140302022
mov rax, qword [rsp + 0x578]
mov rcx, qword [rax + 0x528]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140301f52
mov eax, 0x1b
jmp 0x140303309
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
call fcn.140301940
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140301fc2
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x578]
mov rcx, qword [rcx + 0x528]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140301fc2
lea rdx, [0x140452cc8]
mov rax, qword [rsp + 0x578]
mov rcx, qword [rax + 0x528]
call fcn.1402f3c90
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0x68], 0
je 0x140302022
cmp qword [rsp + 0x90], 0
jne 0x140302022
mov rax, qword [rsp + 0x578]
mov r8, qword [rax + 0x528]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
cmp qword [rsp + 0x60], 0
je 0x140302013
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140301ff7
mov eax, dword [rsp + 0x68]
jmp 0x140303309
cmp qword [rsp + 0x90], 0
jne 0x14030203a
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x1403020e8
mov rax, qword [rsp + 0x578]
cmp qword [rax + 0x598], 0
je 0x1403020e8
lea rdx, [0x140452d0c]
mov rax, qword [rsp + 0x578]
mov rcx, qword [rax + 0x598]
call fcn.1402b1a10
test eax, eax
jne 0x1403020e8
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x140302089
lea rax, [0x140452d10]
mov qword [rsp + 0x140], rax
jmp 0x1403020a0
mov rax, qword [rsp + 0x578]
mov rax, qword [rax + 0x528]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x140]
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
cmp qword [rsp + 0x60], 0
je 0x1403020d8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1403020bc
mov eax, 0x3a
jmp 0x140303309
cmp qword [rsp + 0x90], 0
jne 0x140302100
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x1403025ec
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xa0], 0
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x140302131
lea rax, [0x140452d60]
mov qword [rsp + 0x148], rax
jmp 0x140302148
mov rax, qword [rsp + 0x578]
mov rax, qword [rax + 0x528]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x60], 0
je 0x140302174
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140302158
cmp qword [rsp + 0x90], 0
je 0x140302349
mov dword [rsp + 0xac], 0
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1403021bb
mov dword [rsp + 0xdc], 1
jmp 0x1403021c6
mov dword [rsp + 0xdc], 0
cmp dword [rsp + 0xdc], 0
jne 0x1403021dd
mov dword [rsp + 0xe0], 0
jmp 0x1403021e8
mov dword [rsp + 0xe0], 1
movzx eax, byte [rsp + 0xe0]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140302212
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0xac], eax
cmp dword [rsp + 0xac], 0
jge 0x140302223
mov byte [rsp + 0x50], 0
jmp 0x140302233
movsxd rax, dword [rsp + 0xac]
mov qword [rsp + 0xf8], rax
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140302299
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140302260
mov dword [rsp + 0xe4], 1
jmp 0x14030226b
mov dword [rsp + 0xe4], 0
cmp dword [rsp + 0xe4], 0
jne 0x140302282
mov dword [rsp + 0xe8], 0
jmp 0x14030228d
mov dword [rsp + 0xe8], 1
movzx eax, byte [rsp + 0xe8]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1403022be
mov rax, qword [rsp + 0xf8]
inc rax
mov rcx, rax
call qword [str._N5_]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1403022f2
mov r9, qword [rsp + 0x90]
mov r8d, 1
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
je 0x1403022f7
mov byte [rsp + 0x50], 0
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x140302349
mov rax, qword [rsp + 0x578]
mov r8, qword [rax + 0x528]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov rcx, qword [rsp + 0xb8]
call qword [str.EN5_]
mov eax, 0x3a
jmp 0x140303309
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x1a8], rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x1a0], eax
mov rax, qword [rsp + 0x578]
cmp qword [rax + 0x5b8], 0
je 0x140302395
mov rax, qword [rsp + 0x578]
mov rcx, qword [rax + 0x5b8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
lea rax, [rax + rax + 2]
mov rcx, rax
call qword [str._N5_]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1403024d9
cmp qword [rsp + 0xd0], 0
jbe 0x140302417
mov rax, qword [rsp + 0xd0]
inc rax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xd0]
mov rax, qword [rsp + 0x578]
mov r8, qword [rax + 0x5b8]
mov edx, 8
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jl 0x140302449
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0xa0], eax
jg 0x140302449
movsxd rax, dword [rsp + 0xa0]
xor ecx, ecx
mov rdx, qword [rsp + 0xc0]
mov word [rdx + rax*2], cx
jmp 0x140302460
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0xc0]
mov word [rdx + rax], cx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140320720
movzx eax, al
test eax, eax
je 0x1403024aa
mov r8d, 0x8000
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.crypt32.dll_PFXImportCertStore]
mov qword [rsp + 0x80], rax
jmp 0x1403024cb
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.crypt32.dll_PFXImportCertStore]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xc0]
call qword [str.EN5_]
movzx eax, byte [rsp + 0x58]
test eax, eax
jne 0x1403024f0
mov rcx, qword [rsp + 0xb8]
call qword [str.EN5_]
cmp qword [rsp + 0x80], 0
jne 0x14030255e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xec], eax
cmp dword [rsp + 0xec], 0x56
jne 0x140302530
mov r8, qword [rsp + 0x120]
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
jmp 0x140302554
mov r9d, dword [rsp + 0xec]
mov r8, qword [rsp + 0x120]
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 0x3a
jmp 0x140303309
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.crypt32.dll_CertFindCertificateInStore]
mov ecx, 8
imul rcx, rcx, 0
mov qword [rsp + rcx + 0x70], rax
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x70], 0
jne 0x1403025e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x120]
lea rdx, str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.crypt32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x140303309
jmp 0x1403027c8
mov eax, dword [rsp + 0xb0]
bts eax, 0xe
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
xor edx, edx
mov ecx, 9
call qword [sym.imp.crypt32.dll_CertOpenStore]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140302692
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x100]
mov r8d, dword [rsp + 0xb0]
lea rdx, str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov rcx, qword [rsp + 0x100]
call qword [str.EN5_]
cmp qword [rsp + 0x60], 0
je 0x140302682
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140302666
mov eax, 0x3a
jmp 0x140303309
mov rcx, qword [rsp + 0x100]
call qword [str.EN5_]
lea rax, [rsp + 0x430]
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x1b0], 0x14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x430]
mov r8d, 4
mov edx, 0x28
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.crypt32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14030273b
cmp qword [rsp + 0x60], 0
je 0x14030271b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1403026ff
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.crypt32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x140303309
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r9d, 0x10000
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.crypt32.dll_CertFindCertificateInStore]
mov ecx, 8
imul rcx, rcx, 0
mov qword [rsp + rcx + 0x70], rax
cmp qword [rsp + 0x60], 0
je 0x140302797
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x14030277b
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x70], 0
jne 0x1403027c8
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.crypt32.dll_CertCloseStore]
mov eax, 0x3a
jmp 0x140303309
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x108], rax
mov edx, 0x30
mov ecx, 1
call qword [str.QN5_]
mov rcx, qword [rsp + 0x88]
mov qword [rcx], rax
mov rax, qword [rsp + 0x88]
cmp qword [rax], 0
jne 0x14030285f
lea rdx, [0x140452ea8]
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x70], 0
je 0x14030283a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x70]
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp qword [rsp + 0x108], 0
je 0x140302855
xor edx, edx
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.crypt32.dll_CertCloseStore]
mov eax, 0x1b
jmp 0x140303309
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov dword [rax + 0x28], 1
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x108]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0xc8]
cmp qword [rax + 0x20], 0
jne 0x1403030a4
mov dword [rsp + 0x20], 3
mov r9d, 2
mov r8d, 0x4563
xor edx, edx
mov ecx, 0xa
call fcn.140320720
movzx eax, al
test eax, eax
je 0x1403030a4
mov qword [rsp + 0x128], 0
mov byte [rsp + 0x52], 0
mov byte [rsp + 0x5a], 0
mov byte [rsp + 0x5b], 0
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x59], 0
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x290], 0
lea rax, [rsp + 0x298]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x90
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x178], ax
lea rax, [rsp + 0x17a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x188], ax
lea rax, [rsp + 0x18a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x128], rax
cmp qword [rsp + 0x128], 0
je 0x140302c50
mov dword [rsp + 0x110], 5
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xb4], 0
lea rax, [rsp + 0x410]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov byte [rsp + 0x52], 1
mov byte [rsp + 0x5a], 1
mov byte [rsp + 0x5b], 1
mov byte [rsp + 0x51], 1
mov byte [rsp + 0x59], 1
cmp qword [rsp + 0x98], 0
je 0x140302c50
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
test eax, eax
je 0x140302c50
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0xb4], eax
jge 0x140302c50
mov edx, 0x3a
mov rcx, qword [rsp + 0x98]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x138], rax
cmp qword [rsp + 0x138], 0
je 0x140302a7b
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x138]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x158], rax
jmp 0x140302a90
mov rcx, qword [rsp + 0x98]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0x1f
jbe 0x140302ac9
lea rdx, str.schannel:_Cipher_name_too_long__not_checked
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 0x3b
jmp 0x140303309
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0x20
jae 0x140302b04
jmp 0x140302b09
call fcn.140354478
mov rax, qword [rsp + 0x160]
mov byte [rsp + rax + 0x410], 0
movzx eax, byte [rsp + 0x52]
test eax, eax
je 0x140302b44
lea rdx, [rsp + 0x410]
lea rcx, str.TLS_AES_256_GCM_SHA384
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140302b44
mov byte [rsp + 0x52], 0
jmp 0x140302c0d
movzx eax, byte [rsp + 0x5a]
test eax, eax
je 0x140302b6f
lea rdx, [rsp + 0x410]
lea rcx, str.TLS_AES_128_GCM_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140302b6f
mov byte [rsp + 0x5a], 0
jmp 0x140302c0d
movzx eax, byte [rsp + 0x5b]
test eax, eax
je 0x140302b97
lea rdx, [rsp + 0x410]
lea rcx, str.TLS_CHACHA20_POLY1305_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140302b97
mov byte [rsp + 0x5b], 0
jmp 0x140302c0d
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x140302bbf
lea rdx, [rsp + 0x410]
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 0x140302bbf
mov byte [rsp + 0x51], 0
jmp 0x140302c0d
movzx eax, byte [rsp + 0x59]
test eax, eax
je 0x140302be7
lea rdx, [rsp + 0x410]
lea rcx, str.TLS_AES_128_CCM_SHA256
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140302be7
mov byte [rsp + 0x59], 0
jmp 0x140302c0d
lea r8, [rsp + 0x410]
lea rdx, str.schannel:_Unknown_TLS_1.3_cipher:__s
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 0x3b
jmp 0x140303309
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140302c3b
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0xb4]
inc eax
mov dword [rsp + 0xb4], eax
jmp 0x140302a00
movzx eax, byte [rsp + 0x52]
test eax, eax
je 0x140302c9b
movzx eax, byte [rsp + 0x5a]
test eax, eax
je 0x140302c9b
movzx eax, byte [rsp + 0x5b]
test eax, eax
je 0x140302c9b
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x140302c9b
movzx eax, byte [rsp + 0x59]
test eax, eax
je 0x140302c9b
lea rdx, str.schannel:_All_available_TLS_1.3_ciphers_were_disabled
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 0x3b
jmp 0x140303309
movzx eax, byte [rsp + 0x51]
test eax, eax
jne 0x140302cb1
movzx eax, byte [rsp + 0x59]
test eax, eax
je 0x140302dc5
mov eax, 0x10
imul rax, rax, 0
mov ecx, 0x20
mov word [rsp + rax + 0x178], cx
mov eax, 0x10
imul rax, rax, 0
mov ecx, 0x20
mov word [rsp + rax + 0x17a], cx
mov eax, 0x10
imul rax, rax, 0
lea rcx, str.ChainingModeCCM
mov qword [rsp + rax + 0x180], rcx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x290], 2
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
lea rcx, [rsp + 0x178]
mov qword [rsp + rax + 0x2b0], rcx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x2a8], 1
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 8
mov word [rsp + rax + 0x298], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 8
mov word [rsp + rax + 0x29a], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
lea rcx, [0x140453008]
mov qword [rsp + rax + 0x2a0], rcx
movzx eax, byte [rsp + 0x51]
movzx ecx, byte [rsp + 0x59]
cmp eax, ecx
je 0x140302dbb
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x140302da7
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x2b8], 0x80
jmp 0x140302dbb
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x2bc], 0x40
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
movzx eax, byte [rsp + 0x52]
test eax, eax
jne 0x140302ddb
movzx eax, byte [rsp + 0x5a]
test eax, eax
je 0x140302f44
mov eax, 0x10
imul rax, rax, 0
mov ecx, 0x20
mov word [rsp + rax + 0x188], cx
mov eax, 0x10
imul rax, rax, 0
mov ecx, 0x20
mov word [rsp + rax + 0x18a], cx
mov eax, 0x10
imul rax, rax, 0
lea rcx, str.ChainingModeGCM
mov qword [rsp + rax + 0x190], rcx
movzx eax, byte [rsp + 0x52]
movzx ecx, byte [rsp + 0x5a]
cmp eax, ecx
je 0x140302eb5
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x290], 3
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 8
mov word [rsp + rax + 0x298], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 8
mov word [rsp + rax + 0x29a], cx
movzx eax, byte [rsp + 0x52]
test eax, eax
je 0x140302e8b
lea rax, str.SHA384
mov qword [rsp + 0x168], rax
jmp 0x140302e9a
lea rax, str.SHA256
mov qword [rsp + 0x168], rax
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0x168]
mov qword [rsp + rax + 0x2a0], rcx
jmp 0x140302f0d
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x290], 2
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 8
mov word [rsp + rax + 0x298], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 8
mov word [rsp + rax + 0x29a], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
lea rcx, [0x140453050]
mov qword [rsp + rax + 0x2a0], rcx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
lea rcx, [rsp + 0x188]
mov qword [rsp + rax + 0x2b0], rcx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x2a8], 1
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
movzx eax, byte [rsp + 0x5b]
test eax, eax
je 0x140302faf
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov dword [rsp + rax + 0x290], 2
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 0x24
mov word [rsp + rax + 0x298], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
mov ecx, 0x24
mov word [rsp + rax + 0x29a], cx
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x30
lea rcx, str.CHACHA20_POLY1305
mov qword [rsp + rax + 0x2a0], rcx
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x278], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x274], eax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x1f8], 1
mov dword [rsp + 0x1c0], 5
mov eax, dword [rsp + 0x5c]
bts eax, 0x16
mov dword [rsp + 0x1f4], eax
mov eax, dword [rsp + 0xa4]
not eax
mov rcx, qword [rsp + 0x200]
mov dword [rcx + 0x10], eax
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x70], 0
je 0x14030303c
mov dword [rsp + 0x1c8], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
add rax, 0x10
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 2
lea rdx, [0x140453080]
xor ecx, ecx
mov rax, qword [0x14045ee28]
call qword [rax + 0x18]
mov dword [rsp + 0x78], eax
jmp 0x140303232
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x210]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
mov dword [rsp + 0x210], 4
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x258], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x248], eax
cmp qword [rsp + 0x170], 0
je 0x140303197
mov eax, dword [rsp + 0xa4]
and eax, 0x2000
test eax, eax
je 0x140303123
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, qword [rsp + 0x578]
call fcn.1402e8500
mov rax, qword [rsp + 0xc8]
cmp qword [rax + 0x28], 0
je 0x140303150
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, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, 0x3b
jmp 0x140303309
lea r8, [rsp + 0x350]
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x210]
call fcn.1403017f0
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140303195
lea rdx, str.schannel:_Failed_setting_algorithm_cipher_list
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov eax, dword [rsp + 0x68]
jmp 0x140303309
jmp 0x1403031a6
mov eax, dword [rsp + 0x5c]
bts eax, 0x16
mov dword [rsp + 0x258], eax
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x70], 0
je 0x1403031cf
mov dword [rsp + 0x214], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
add rax, 0x10
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x210]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 2
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov rax, qword [0x14045ee28]
call qword [rax + 0x18]
mov dword [rsp + 0x78], eax
mov eax, 8
imul rax, rax, 0
cmp qword [rsp + rax + 0x70], 0
je 0x140303257
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + rax + 0x70]
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp dword [rsp + 0x78], 0
je 0x140303307
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x450]
mov ecx, dword [rsp + 0x78]
call fcn.1402ade70
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, qword [rsp + 0x578]
call fcn.1402e83a0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax]
call qword [str.EN5_]
mov rax, qword [rsp + 0x88]
mov qword [rax], 0
xor eax, eax
test eax, eax
jne 0x140303290
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, 0x7ff6fd00
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0xe
ja case.0x1403032f7.2146893055
movsxd rax, dword [rsp + 0xa8]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x303344]
add rax, rcx
jmp rax
mov eax, 0x1b
jmp 0x140303309
mov eax, 0x23
jmp 0x140303309
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140354350
add rsp, 0x560
pop rdi
ret