Function at 0x140063850
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
mov rdi, rdx
mov qword [rsp + 0x68], rcx
lea rax, [rdx + 0xd4]
mov qword [rsp + 0x120], rax
lea rbx, [rdx + 0x10]
lea rax, [rdx + 0xf0]
mov qword [rsp + 0xf8], rax
xorps xmm6, xmm6
movzx eax, byte [rdi + 0xd0]
test rax, rax
jne 0x140064758
movzx ebp, byte [rdi + 0xd1]
movzx r12d, byte [rdi + 0xd2]
movzx r13d, byte [rdi + 0xd3]
movzx esi, byte [rdi + 0xd4]
mov rax, qword [rdi + 0x90]
mov r14, qword [rdi + 0x98]
cmp r14, rax
jne 0x140063910
test bpl, bpl
je 0x1400638f6
cmp qword [rdi + 0x38], 0
je 0x140064882
cmp byte [rdi + 0xd0], 0
je 0x1400639ad
or sil, r13b
jne 0x1400639c6
jmp 0x1400639b9
mov r15d, r12d
xor r12d, r12d
nop word cs:[rax + rax]
sub rax, r14
jb 0x140064882
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x140064882
mov r9, qword [rdi + 0x88]
add r9, r14
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
mov rdx, rbx
call fcn.1400fddb0
mov rcx, qword [rsp + 0x70]
cmp rcx, 2
je 0x140064717
mov rax, qword [rsp + 0x78]
test rcx, rcx
jne 0x140064721
add r12, rax
add r14, rax
mov qword [rdi + 0x98], r14
mov rax, qword [rdi + 0x90]
cmp r14, rax
jne 0x140063920
test r12, r12
mov r12d, r15d
je 0x1400638d9
cmp byte [rdi + 0xd0], 0
jne 0x1400638de
mov byte [rdi + 0xd1], 1
jmp 0x1400638de
mov byte [rdi + 0xd1], 0
or sil, r13b
jne 0x1400639c6
cmp byte [rdi + 0x122], 0
je 0x140063fce
test r12b, r12b
je 0x140064180
mov rsi, qword [rdi + 0x78]
mov r14, qword [rdi + 0x110]
test r14, r14
je 0x140063b39
xor r13d, r13d
nop word cs:[rax + rax]
lea rax, [rsi + rsi]
cmp rax, r14
cmova r14, rax
cmp r14, 0x401
mov eax, 0x400
cmovb r14, rax
mov r12, qword [rdi + 0x70]
sub r14, r12
jbe 0x140063a53
mov rax, qword [rdi + 0x60]
sub rax, r12
cmp rax, r14
jb 0x140063b00
mov rbp, qword [rdi + 0x68]
lea rcx, [r12 + rbp]
cmp r14, 2
jb 0x140063a49
lea r8, [r14 - 1]
xor edx, edx
call sub.msvcrt.dll_memset
add r12, r14
dec r12
add rbp, r12
mov rcx, rbp
mov byte [rcx], 0
inc r12
mov qword [rdi + 0x70], r12
sub r12, rsi
jb 0x140064882
mov rax, qword [rdi + 0x68]
add rax, rsi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], r12
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x140064882
mov rcx, rbx
lea r8, [rsp + 0x70]
call fcn.1400fdb70
test rax, rax
movabs rax, 0xd00000003
cmovne rdx, rax
test rdx, rdx
jne 0x14006472c
mov rax, qword [rsp + 0x80]
cmp rax, qword [rsp + 0x78]
ja 0x140064882
add rsi, rax
mov qword [rdi + 0x78], rsi
mov rcx, qword [rdi + 0x110]
mov rdx, rcx
sub rdx, rax
mov r14d, 0
cmovae r14, rdx
mov qword [rdi + 0x110], r14
test rax, rax
je 0x140063b30
add r13, rax
cmp rcx, rax
ja 0x1400639f0
jmp 0x140063b30
lea rcx, [rdi + 0x60]
mov rdx, r12
mov r8, r14
call fcn.140110050
mov r12, qword [rdi + 0x70]
mov rbp, qword [rdi + 0x68]
lea rcx, [r12 + rbp]
cmp r14, 2
jae 0x140063a32
jmp 0x140063a49
test r13, r13
je 0x140064787
movzx eax, byte [0x140206138]
mov rax, qword [0x140206128]
test rax, rax
jne 0x140063b61
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140064882
mov qword [0x140206128], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140064882
cmp rsi, qword [rdi + 0x70]
ja 0x140064882
mov r12, rax
mov rax, qword [rdi + 0x68]
mov dword [r12], esi
mov dword [r12 + 4], 2
mov qword [r12 + 8], rax
movups xmmword [r12 + 0x10], xmm6
mov qword [rsp + 0xa0], 2
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xb0], 2
movabs rax, 0x8000000000000000
cmp qword [rdi + 0xb8], rax
jne 0x140063bf0
mov qword [rsp + 0xc0], 0
jmp 0x140063c70
mov rdx, qword [rdi + 0xc0]
mov r8, qword [rdi + 0xc8]
lea rcx, [rsp + 0xc0]
call fcn.1400d6630
mov r15, qword [rsp + 0xc0]
test r15, r15
je 0x140063c70
mov rsi, qword [rsp + 0xd0]
mov ebp, dword [rsp + 0xc8]
mov edx, 2
lea rcx, [rsp + 0xa0]
call fcn.140049ea0
mov r12, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb0]
mov rax, r14
shl rax, 4
mov dword [r12 + rax], ebp
mov dword [r12 + rax + 4], 0x12
mov qword [r12 + rax + 8], rsi
inc r14
mov qword [rsp + 0xb0], r14
jmp 0x140063c79
mov r14d, 2
xor r15d, r15d
mov dword [rsp + 0x128], 0
mov dword [rsp + 0x12c], r14d
mov qword [rsp + 0x130], r12
movabs rax, 0x200000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
movabs rax, 0x1100000000
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x88]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
movabs rax, 0x300000000
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x158], rax
mov dword [rsp + 0xbc], 0
cmp byte [rdi + 0x122], 0
je 0x140063e4a
cmp byte [rdi + 0x123], 0
mov edx, 0
mov rcx, qword [rsp + 0xf8]
cmove rdx, rcx
mov rax, qword [rdi + 0xe8]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xe0], xmm0
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xe0]
lea r8, [rsp + 0x128]
mov r9d, 0x1011c
call sub.secur32.dll_AcceptSecurityContext
mov r13d, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140063d93
call sub.secur32.dll_FreeContextBuffer
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140063da5
call sub.secur32.dll_FreeContextBuffer
cmp r13d, 0x80090318
je 0x140063f12
test r13d, r13d
je 0x140063f3e
cmp r13d, 0x90312
jne 0x14006479d
mov byte [rdi + 0x123], 0
cmp r14, 1
jbe 0x140064882
cmp dword [r12 + 0x14], 5
jne 0x140064005
mov rsi, qword [rdi + 0x78]
mov eax, dword [r12 + 0x10]
mov r13, rsi
sub r13, rax
jb 0x140064882
mov ebp, dword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
test eax, eax
je 0x140064107
mov rax, qword [rdi + 0x70]
mov r14, rax
sub r14, r13
jb 0x140064882
mov qword [rdi + 0x70], 0
test r13, r13
je 0x14006410e
cmp rax, r13
je 0x140064117
mov rcx, qword [rdi + 0x68]
lea rdx, [rcx + r13]
mov r8, r14
call sub.msvcrt.dll_memmove
jmp 0x140064113
cmp byte [rdi + 0x120], 0
mov r8d, 0
je 0x140063e60
mov r8, qword [rdi + 0xa8]
movabs rax, 0x8000000000000000
cmp qword [rdi + 0xa0], rax
mov eax, 0
cmove r8, rax
mov rax, qword [rdi + 0xe8]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xe0], xmm0
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xe0]
mov rdx, qword [rsp + 0xf8]
mov r9d, 0x9819c
call sub.secur32.dll_InitializeSecurityContextW
mov r13d, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
jne 0x140063d8e
jmp 0x140063d93
cmp r14, 1
jbe 0x140064882
mov eax, 1
cmp dword [r12 + 0x14], 4
jne 0x14006401f
mov eax, dword [r12 + 0x10]
mov qword [rdi + 0x110], rax
jmp 0x1400642f0
cmp r14, 1
jbe 0x140064882
cmp dword [r12 + 0x14], 5
jne 0x14006402b
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x140063f71
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0xb8], eax
mov qword [rsp + 0x100], rsi
mov r13, qword [rdi + 0x78]
mov eax, dword [r12 + 0x10]
mov r12, r13
sub r12, rax
cmp r13, r12
jb 0x140064882
je 0x14006420d
mov rax, qword [rdi + 0x70]
mov r14, rax
sub r14, r12
jb 0x140064882
mov qword [rdi + 0x70], 0
test r12, r12
je 0x140064204
cmp rax, r12
je 0x14006420d
mov rcx, qword [rdi + 0x68]
lea rdx, [rcx + r12]
mov r8, r14
call sub.msvcrt.dll_memmove
jmp 0x140064299
mov byte [rsp + 0x67], r13b
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0xf8]
mov edx, 0x53
lea r8, [rsp + 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x140064066
test r12b, r12b
jne 0x1400639cf
jmp 0x14006482b
mov rsi, qword [rdi + 0x78]
mov ebp, dword [rsp + 0x70]
mov eax, 1
mov r12, qword [rsp + 0x78]
mov r13, rsi
jmp 0x140064119
mov qword [rdi + 0x110], rax
jmp 0x1400642f0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140064048
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0xb8], ecx
mov qword [rsp + 0x100], rax
mov qword [rdi + 0x78], 0
mov qword [rdi + 0x110], 1
jne 0x140064229
jmp 0x1400642dc
mov r15, qword [rsp + 0x70]
mov rcx, qword [r15 + 0x20]
test rcx, rcx
je 0x14006433f
call sub.crypt32.dll_CertDuplicateStore
mov rsi, rax
cmp qword [rdi], 0
je 0x1400640f8
mov rcx, qword [rdi + 8]
xor edx, edx
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x1400640f8
nop word cs:[rax + rax]
mov rbp, rax
mov rcx, rax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov r14, rax
mov qword [rsp + 0x70], 0
mov rcx, rsi
mov rdx, rbp
mov r8d, 3
lea r9, [rsp + 0x70]
call sub.crypt32.dll_CertAddCertificateContextToStore
test eax, eax
je 0x1400647a7
mov rcx, qword [rsp + 0x70]
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 8]
mov rdx, r14
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
jne 0x1400640a0
mov rcx, rsi
xor edx, edx
call sub.crypt32.dll_CertCloseStore
jmp 0x14006434b
mov eax, 1
jmp 0x140064119
cmp rax, r13
je 0x140064117
mov qword [rdi + 0x70], r14
xor eax, eax
sub rsi, r13
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x110], rax
test ebp, ebp
mov r14d, ebp
mov r13, r12
lea rax, str.corrupt_deflate_stream
cmove r13, rax
mov rax, qword [rdi + 0x80]
mov rbp, qword [rdi + 0x90]
sub rax, rbp
cmp rax, r14
jb 0x14006447b
mov rcx, qword [rdi + 0x88]
add rcx, rbp
mov rdx, r13
mov r8, r14
call sub.msvcrt.dll_memcpy
add rbp, r14
mov qword [rdi + 0x90], rbp
mov rcx, r12
call sub.secur32.dll_FreeContextBuffer
jmp 0x1400642f0
mov al, 2
test r13b, r13b
jne 0x1400641ce
lea rcx, [rsp + 0x70]
mov rdx, qword [rsp + 0xf8]
call fcn.1400d5f90
cmp dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x110], rax
jne 0x140064884
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x10c], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x140], rax
mov al, 1
mov byte [rdi + 0xd0], al
mov eax, dword [rsp + 0x10c]
mov dword [rdi + 0xd4], eax
mov rax, qword [rsp + 0x110]
mov qword [rdi + 0xd8], rax
mov rax, qword [rsp + 0x140]
mov qword [rdi + 0xe0], rax
jmp 0x140063898
cmp rax, r12
jne 0x140064299
xor eax, eax
sub r13, r12
sete al
mov qword [rdi + 0x78], r13
mov qword [rdi + 0x110], rax
test rsi, rsi
je 0x1400642b9
mov eax, dword [rsp + 0xb8]
test eax, eax
mov r14d, eax
mov r12, qword [rsp + 0x100]
lea rax, str.corrupt_deflate_stream
cmove r12, rax
mov rax, qword [rdi + 0x80]
mov r13, qword [rdi + 0x90]
sub rax, r13
cmp rax, r14
jb 0x140064499
mov rcx, qword [rdi + 0x88]
add rcx, r13
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
add r13, r14
mov qword [rdi + 0x90], r13
mov rcx, qword [rsp + 0x100]
call sub.secur32.dll_FreeContextBuffer
mov r13, qword [rdi + 0x78]
test r13, r13
jne 0x1400642be
jmp 0x1400642dc
xor eax, eax
sub r13, r12
sete al
mov qword [rdi + 0x70], r14
mov qword [rdi + 0x78], r13
mov qword [rdi + 0x110], rax
test rsi, rsi
jne 0x140064229
test r13, r13
je 0x1400642dc
lea rcx, [rsp + 0xe0]
mov rdx, rdi
call fcn.1400648a0
cmp byte [rsp + 0xe0], 0
jne 0x1400647d6
cmp byte [rdi + 0xd0], 0
jne 0x1400642f0
mov byte [rdi + 0xd2], 0
nop dword [rax]
test r15, r15
je 0x140064315
mov r8, qword [rsp + 0xd0]
cmp r15, 0x11
jb 0x140064307
mov r8, qword [r8 - 8]
mov rcx, qword [0x140206128]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0xa0], 0
je 0x140063898
mov r8, qword [rsp + 0xa8]
mov rcx, qword [0x140206128]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x140063898
mov rsi, qword [rdi]
test rsi, rsi
je 0x14006434b
mov rsi, qword [rdi + 8]
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x70], 0x20
mov dword [rsp + 0x78], 1
lea rax, [0x1401ca0d7]
mov qword [rsp + 0xc0], rax
lea rax, str.1.3.6.1.4.1.311.10.3.3
mov qword [rsp + 0xc8], rax
lea rax, str.2.16.840.1.113730.4.1
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x80], 3
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xc0000001
xor ecx, ecx
mov rdx, r15
xor r8d, r8d
mov r9, rsi
call sub.crypt32.dll_CertGetCertificateChain
test eax, eax
je 0x14006483d
mov rbp, qword [rsp + 0xa0]
mov esi, 0xf00
cmp qword [rdi], 0
je 0x1400645d6
cmp dword [rbp + 0xc], 0
je 0x1400645d6
mov byte [rsp + 0x66], r12b
mov rax, qword [rbp + 0x10]
mov r12, qword [rax]
mov rcx, rbp
call sub.crypt32.dll_CertDuplicateCertificateChain
mov r13, rax
cmp dword [rbp + 0xc], 2
jb 0x1400644b7
mov esi, 1
nop word cs:[rax + rax]
mov rax, qword [rbp + 0x10]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call sub.crypt32.dll_CertDuplicateCertificateChain
mov r14, rax
mov rcx, r13
call sub.crypt32.dll_CertFreeCertificateChain
mov eax, dword [rbp + 0xc]
inc rsi
mov r13, r14
cmp rsi, rax
jb 0x140064450
jmp 0x1400644ba
lea rcx, [rdi + 0x80]
mov rdx, rbp
mov r8, r14
call fcn.140110050
mov rbp, qword [rdi + 0x90]
jmp 0x140064154
lea rcx, [rdi + 0x80]
mov rdx, r13
mov r8, r14
call fcn.140110050
mov r13, qword [rdi + 0x90]
jmp 0x140064262
mov r14, r13
mov rcx, rbp
call sub.crypt32.dll_CertDuplicateCertificateChain
mov qword [rsp + 0x138], rax
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateChain
xor r14d, r14d
mov qword [rsp + 0x118], r15
jmp 0x1400644fd
mov r14, qword [rsp + 0x148]
inc r14
mov rcx, r13
call sub.crypt32.dll_CertFreeCertificateContext
mov rbp, r15
mov r15, qword [rsp + 0x118]
mov eax, dword [r12 + 0xc]
mov esi, 0xf00
cmp r14, rax
jae 0x1400645c3
mov rax, qword [r12 + 0x10]
test rax, rax
je 0x1400645c3
mov r15, rbp
mov qword [rsp + 0x148], r14
mov rax, qword [rax + r14*8]
mov rcx, qword [rax + 8]
call sub.crypt32.dll_CertDuplicateCertificateContext
mov r13, rax
mov rcx, qword [rdi + 8]
xor edx, edx
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x1400644df
nop dword [rax]
mov r14, rax
mov rcx, rax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov rbp, rax
mov r8d, dword [r14 + 0x10]
cmp r8d, dword [r13 + 0x10]
jne 0x140064599
mov rdx, qword [r13 + 8]
mov rcx, qword [r14 + 8]
call sub.msvcrt.dll_memcmp
mov esi, eax
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateContext
test esi, esi
je 0x1400645a3
mov rcx, qword [rdi + 8]
mov rdx, rbp
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
jne 0x140064550
jmp 0x1400644df
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateContext
jmp 0x140064583
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, r13
call sub.crypt32.dll_CertFreeCertificateContext
mov esi, 0xf10
mov rbp, r15
mov r15, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x138]
call sub.crypt32.dll_CertFreeCertificateChain
movzx r12d, byte [rsp + 0x66]
lea rax, [rsp + 0xa8]
movups xmmword [rax], xmm6
movabs rax, 0x200000018
mov qword [rsp + 0xa0], rax
movabs rax, 0x8000000000000000
cmp qword [rdi + 0xa0], rax
je 0x14006461e
cmp byte [rdi + 0x121], 0
jne 0x14006461e
mov rax, qword [rdi + 0xa8]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xe0], 0x10
mov dword [rsp + 0xe4], esi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xe8], rax
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xc0], 0x18
mov ecx, 4
mov rdx, rbp
lea r8, [rsp + 0xe0]
lea r9, [rsp + 0xc0]
call sub.crypt32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x14006484f
mov r13d, dword [rsp + 0xc4]
mov rax, qword [rdi + 0x100]
test rax, rax
je 0x1400646db
mov r8, qword [rdi + 0x108]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
mov qword [rsp + 0x70], rbp
mov dword [rsp + 0x78], r13d
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x7c], rax
lea rdx, [rsp + 0x70]
call qword [r8 + 0x28]
test rax, rax
je 0x1400646ec
jmp 0x140064869
test r13d, r13d
jne 0x140064857
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateChain
mov rcx, r15
call sub.crypt32.dll_CertFreeCertificateContext
cmp byte [rdi + 0xd0], 0
movzx r13d, byte [rsp + 0x67]
jne 0x1400639c6
mov rax, qword [rsp + 0x120]
mov byte [rax], 1
jmp 0x1400639c6
movabs rax, 0xd00000003
mov rsi, qword [rsp + 0x68]
mov qword [rsi + 8], rax
jmp 0x140064735
mov rsi, qword [rsp + 0x68]
mov qword [rsi + 8], rdx
mov eax, 2
mov dword [rsi], eax
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 1
jne 0x14006477e
mov rcx, qword [rsp + 0x120]
mov eax, dword [rcx + 0x10]
mov rsi, qword [rsp + 0x68]
mov dword [rsi + 0x14], eax
movups xmm0, xmmword [rcx]
movups xmmword [rsi + 4], xmm0
mov eax, 1
jmp 0x14006473a
xor eax, eax
mov rsi, qword [rsp + 0x68]
jmp 0x14006473a
lea rdx, str.unexpected_EOF_during_handshake1.3.6.1.5.5.7.3.1
mov r8d, 0x1f
mov cl, 0x25
call fcn.14008da40
jmp 0x140064721
shl r13, 0x20
or r13, 2
jmp 0x1400647de
call sub.kernel32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, rsi
xor edx, edx
call sub.crypt32.dll_CertCloseStore
jmp 0x14006486c
mov r13, qword [rsp + 0xe8]
test r15, r15
mov rsi, qword [rsp + 0x68]
je 0x140064808
mov r8, qword [rsp + 0xd0]
cmp r15, 0x11
jb 0x1400647fa
mov r8, qword [r8 - 8]
mov rcx, qword [0x140206128]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0xa0], 0
je 0x140064879
mov r8, qword [rsp + 0xa8]
mov rcx, qword [0x140206128]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x140064879
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rsi, qword [rsp + 0x68]
jmp 0x140064879
call sub.kernel32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
jmp 0x14006486c
call sub.kernel32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateChain
jmp 0x14006486c
mov r13, rax
mov rsi, qword [rsp + 0x68]
mov rcx, r15
call sub.crypt32.dll_CertFreeCertificateContext
mov qword [rsi + 8], r13
jmp 0x140064735
ud2
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x110]
jmp 0x140064726