Function at 0x140122600
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, 0x1c8
movaps xmmword [rsp + 0x1b0], xmm7
movaps xmmword [rsp + 0x1a0], xmm6
mov rdi, rdx
lea rsi, [rdx + 0x109]
lea r13, [rdx + 0x10c]
lea r14, [rdx + 8]
lea rax, [rdx + 0xc8]
mov qword [rsp + 0x170], rax
lea rax, [rdx + 0x50]
mov qword [rsp + 0x198], rax
xorps xmm6, xmm6
movaps xmm7, xmmword [0x140220d70]
movzx eax, byte [rdi + 0x108]
test rax, rax
jne 0x1401235f7
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rcx
mov r14b, byte [rdi + 0x109]
mov cl, byte [rdi + 0x10a]
mov r12b, byte [rdi + 0x10b]
mov bl, byte [rdi + 0x10c]
mov rdx, qword [rdi + 0xd8]
mov rbp, qword [rdi + 0xe0]
cmp rbp, rdx
mov qword [rsp + 0xa8], rsi
jne 0x1401226f2
test r14b, r14b
mov r14, qword [rsp + 0x78]
mov r15d, dword [rsp + 0xcc]
je 0x1401226d6
cmp qword [rdi + 0x78], 0
je 0x14012381e
cmp byte [rdi + 0x108], 0
je 0x1401227b3
mov qword [rsp + 0xa0], r13
or bl, r12b
or bl, byte [rdi + 0x122]
jne 0x140122d24
jmp 0x1401227cd
mov r15d, ecx
xor esi, esi
nop word [rax + rax]
mov rax, rdx
sub rax, rbp
jb 0x14012380d
mov r8, qword [rdi + 0x78]
test r8, r8
je 0x14012381e
mov rcx, qword [rsp + 0x170]
mov r9, qword [rcx]
add r9, rbp
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x100]
mov rdx, qword [rsp + 0x198]
call fcn.140162030
mov rcx, qword [rsp + 0x100]
cmp rcx, 2
je 0x14012362e
mov rax, qword [rsp + 0x108]
cmp ecx, 1
je 0x140123624
add rsi, rax
add rbp, rax
mov qword [rdi + 0xe0], rbp
mov rdx, qword [rdi + 0xd8]
cmp rbp, rdx
jne 0x140122700
test rsi, rsi
mov rsi, qword [rsp + 0xa8]
mov ecx, r15d
je 0x1401226ac
cmp byte [rdi + 0x108], 0
mov r14, qword [rsp + 0x78]
mov r15d, dword [rsp + 0xcc]
jne 0x1401226be
mov byte [rsi], 1
jmp 0x1401226be
mov byte [rsi], 0
mov qword [rsp + 0xa0], r13
or bl, r12b
or bl, byte [rdi + 0x122]
jne 0x140122d24
mov byte [rsp + 0x6e], cl
mov byte [rsp + 0x6f], r12b
mov qword [rsp + 0x100], 0
mov rcx, r14
mov edx, 0x53
lea r8, [rsp + 0x100]
call sub.Secur32.dll_QueryContextAttributesW
test eax, eax
je 0x14012280b
cmp byte [rsp + 0x6e], 0
jne 0x140122d2c
jmp 0x140123782
mov r12, qword [rsp + 0x100]
mov rcx, qword [r12 + 0x20]
test rcx, rcx
je 0x1401228b6
call sub.CRYPT32.dll_CertDuplicateStore
mov r13, rax
cmp dword [rdi + 0x18], 1
jne 0x1401228c2
mov rcx, qword [rdi + 0x20]
xor edx, edx
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x1401228a5
mov rbp, rax
mov rcx, rax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov r14, rax
mov qword [rsp + 0x100], 0
mov rcx, r13
mov rdx, rbp
mov r8d, 3
lea r9, [rsp + 0x100]
call sub.CRYPT32.dll_CertAddCertificateContextToStore
cmp eax, 1
jne 0x140123755
mov rcx, qword [rsp + 0x100]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, rbp
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test rax, rax
jne 0x140122843
mov rcx, r13
xor edx, edx
call sub.CRYPT32.dll_CertCloseStore
mov r14, qword [rsp + 0x78]
jmp 0x1401228d1
cmp dword [rdi + 0x18], 1
jne 0x1401228ce
mov r13, qword [rdi + 0x20]
jmp 0x1401228d1
mov rcx, r13
xor edx, edx
call sub.CRYPT32.dll_CertCloseStore
jmp 0x1401228d1
xor r13d, r13d
lea rax, [0x1402ced80]
lea rcx, [0x1402ceda0]
lea rdx, [0x1402cedc0]
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0x150], xmm6
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
mov dword [rsp + 0x100], 0x60
mov dword [rsp + 0x108], 1
mov qword [rsp + 0xe0], rax
mov rax, qword [0x1402ced98]
cmp rax, 3
jne 0x140123522
mov rax, qword [rsp + 0xe0]
mov rsi, qword [rax]
mov qword [rsp + 0xe0], rcx
mov rax, qword [0x1402cedb8]
cmp rax, 3
jne 0x140123570
mov rax, qword [rsp + 0xe0]
mov rbx, qword [rax]
mov qword [rsp + 0xe0], rdx
mov rax, qword [0x1402cedd8]
cmp rax, 3
jne 0x1401235b7
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x110], 3
lea rax, [rsp + 0x80]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0xb0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xc0000001
xor ecx, ecx
mov rdx, r12
xor r8d, r8d
mov r9, r13
call sub.CRYPT32.dll_CertGetCertificateChain
cmp eax, 1
jne 0x14012378d
mov r13, qword [rsp + 0xb0]
mov esi, 0xf00
cmp dword [rdi + 0x18], 1
jne 0x140122a9e
cmp dword [r13 + 0xc], 0
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0xb0]
movabs rdx, 0x200000018
je 0x140122beb
mov rax, qword [r13 + 0x10]
mov r15, qword [rax]
mov rcx, r13
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov rsi, rax
cmp dword [r13 + 0xc], 2
jb 0x140122abd
mov ebx, 1
mov rax, qword [r13 + 0x10]
mov r15, qword [rax + rbx*8]
mov rcx, r13
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov rbp, rax
mov rcx, rsi
call sub.CRYPT32.dll_CertFreeCertificateChain
mov eax, dword [r13 + 0xc]
add rbx, 1
mov rsi, rbp
cmp rbx, rax
jb 0x140122a71
jmp 0x140122ac0
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0xb0]
movabs rdx, 0x200000018
jmp 0x140122beb
mov rbp, rsi
mov rcx, r13
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov qword [rsp + 0x190], rax
mov rcx, rbp
call sub.CRYPT32.dll_CertFreeCertificateChain
xor ebx, ebx
mov qword [rsp + 0x188], r13
mov eax, dword [r15 + 0xc]
mov esi, 0xf00
cmp rbx, rax
jae 0x140122bbc
mov rax, qword [r15 + 0x10]
test rax, rax
je 0x140122bbc
mov rax, qword [rax + rbx*8]
add rbx, 1
mov rcx, qword [rax + 8]
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov r13, rax
xor ebp, ebp
jmp 0x140122b21
mov rcx, rsi
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 0x20]
mov rdx, rbp
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x140122b73
mov rsi, rax
mov rcx, rax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov rbp, rax
mov r8d, dword [rsi + 0x10]
cmp r8d, dword [r13 + 0x10]
jne 0x140122b19
mov rcx, qword [rsi + 8]
mov rdx, qword [r13 + 8]
cmp rcx, rdx
je 0x140122b97
call sub.VCRUNTIME140.dll_memcmp
mov r14d, eax
mov rcx, rsi
call sub.CRYPT32.dll_CertFreeCertificateContext
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x140122b21
jmp 0x140122b9f
mov rcx, r13
call sub.CRYPT32.dll_CertFreeCertificateContext
mov r13, qword [rsp + 0x188]
mov eax, dword [r15 + 0xc]
mov esi, 0xf00
cmp rbx, rax
jb 0x140122af4
jmp 0x140122bbc
mov rcx, rsi
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, rbp
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rcx, r13
call sub.CRYPT32.dll_CertFreeCertificateContext
mov esi, 0xf10
mov r13, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x190]
call sub.CRYPT32.dll_CertFreeCertificateChain
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0xb0]
movabs rdx, 0x200000018
mov r15d, dword [rsp + 0xcc]
movups xmmword [rax], xmm6
mov qword [rsp + 0xb0], rdx
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140122c10
cmp byte [rdi + 0x121], 0
jne 0x140122c10
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xd0], reloc.WS2_32.dll_recv
mov dword [rsp + 0xd4], esi
mov qword [rsp + 0xd8], rcx
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x80], 0x18
mov ecx, 4
mov rsi, r13
mov rdx, r13
lea r8, [rsp + 0xd0]
lea r9, [rsp + 0x80]
call sub.CRYPT32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x14012379d
mov r13d, dword [rsp + 0x84]
xor eax, eax
test r13d, r13d
sete dl
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x140122cdc
mov rax, qword [rdi + 0x48]
mov rdx, qword [rax + 0x10]
lea rbp, [rdx + 0xf]
neg rdx
and rdx, rbp
add rcx, rdx
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x100], rsi
mov dword [rsp + 0x108], r13d
mov qword [rsp + 0x10c], rdx
lea rdx, [rsp + 0x100]
call qword [rax + 0x18]
mov rbx, rdx
mov r13, rax
shrd r13, rdx, 8
mov dl, 1
xor ecx, ecx
jmp 0x140122ceb
shl r13, 0x18
mov al, dl
lea eax, [rax + rax*2]
mov cl, 1
xor ebx, ebx
xor edx, edx
cmp al, 3
jne 0x1401237af
test dl, dl
jne 0x140122cff
mov rcx, rsi
call sub.CRYPT32.dll_CertFreeCertificateChain
mov rcx, r12
call sub.CRYPT32.dll_CertFreeCertificateContext
cmp byte [rdi + 0x108], 0
mov r12b, byte [rsp + 0x6f]
mov cl, byte [rsp + 0x6e]
jne 0x140122d24
mov rax, qword [rsp + 0xa0]
mov byte [rax], 1
test cl, cl
je 0x14012344d
cmp qword [rdi + 0x80], 0
mov r15, qword [rsp + 0x168]
je 0x140122d6e
lea rcx, [rsp + 0x100]
mov rdx, rdi
call fcn.1401238d0
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x100], 1
je 0x140123624
test rax, rax
je 0x140123690
mov rsi, qword [rdi + 0xc0]
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140123872
mov rbp, rax
mov rdx, qword [rdi + 0xb8]
cmp rdx, rsi
movabs rax, 0x200000000
jb 0x140123883
mov rdx, qword [rdi + 0xa8]
mov ecx, esi
or rcx, rax
mov qword [rbp + 8], rdx
mov qword [rbp], rcx
movups xmmword [rbp + 0x10], xmm6
mov rdx, qword [rdi + 0xf0]
test rdx, rdx
je 0x140122e8d
mov r8, qword [rdi + 0x100]
lea rcx, [rsp + 0xb0]
call fcn.14013cd60
mov r13, qword [rsp + 0xb8]
test r13, r13
je 0x140122ea4
mov rsi, qword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb0]
mov qword [rsp + 0x100], rbp
movups xmmword [rsp + 0x108], xmm7
mov edx, 0x40
mov r8d, 8
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0x100]
call fcn.14016c1f0
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
cmp qword [rsp + 0x80], 1
je 0x140123838
movabs rax, 0x1200000000
or rbx, rax
shr r12, 4
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x20], rbx
movabs rcx, 0x300000000
mov rdx, rcx
movabs rax, 0x200000000
jmp 0x140122ec4
mov qword [rsp + 0xb8], 0
mov r12d, 2
xor r13d, r13d
jmp 0x140122eb7
mov r12d, 2
xor r13d, r13d
movabs rax, 0x200000000
mov rdx, rax
movabs rcx, 0x300000000
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xe0], rdx
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 0
movups xmmword [rsp + 0x118], xmm6
movabs rax, 0x1100000000
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x128], 0
lea rax, [rsp + 0x100]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xd0], rcx
mov dword [rsp + 0xf4], 0
cmp byte [rdi + 0x122], 0
je 0x14012303d
cmp byte [rdi + 0x123], 0
mov edx, 0
cmove rdx, r14
mov rax, qword [rdi]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0xe0]
mov r9d, 0x1011c
call sub.Secur32.dll_AcceptSecurityContext
mov esi, eax
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x140122fbc
call sub.Secur32.dll_FreeContextBuffer
mov rcx, qword [rsp + 0x128]
test rcx, rcx
je 0x140122fce
call sub.Secur32.dll_FreeContextBuffer
cmp esi, 0x80090318
je 0x14012317b
test esi, esi
je 0x1401230e7
cmp esi, 0x90312
jne 0x14012319e
mov byte [rdi + 0x123], 0
cmp dword [rbp + 0x14], 5
mov rbx, qword [rdi + 0xc0]
jne 0x1401232e0
mov eax, dword [rbp + 0x10]
mov rdx, rbx
sub rdx, rax
cmp rbx, rdx
jb 0x140123844
mov r15d, dword [rsp + 0x100]
mov r14, qword [rsp + 0x108]
sub rbx, rdx
jne 0x1401232fc
mov eax, 1
xor ebx, ebx
jmp 0x14012333c
cmp byte [rdi + 0x120], 0
mov rax, qword [rdi + 0x28]
mov r8d, 0
cmovne r8, rax
test rax, rax
cmove r8, rax
mov rax, qword [rdi]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
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 + 0x80]
mov rdx, r14
mov r9d, 0x9819c
call sub.Secur32.dll_InitializeSecurityContextW
mov esi, eax
mov rcx, qword [rsp + 0x118]
test rcx, rcx
jne 0x140122fb7
jmp 0x140122fbc
cmp dword [rbp + 0x14], 5
mov rbx, qword [rdi + 0xc0]
jne 0x1401231db
mov eax, dword [rbp + 0x10]
mov rdx, rbx
sub rdx, rax
mov rax, qword [rsp + 0x108]
test rax, rax
sete r14b
je 0x140123122
mov r15, qword [rsp + 0x100]
mov qword [rsp + 0xf8], rax
cmp rbx, rdx
jb 0x140123844
sub rbx, rdx
je 0x140123208
mov rsi, qword [rdi + 0xb8]
cmp rsi, rdx
jb 0x14012385e
mov qword [rdi + 0xb8], 0
sub rsi, rdx
je 0x14012320a
test rdx, rdx
je 0x14012316f
mov rcx, qword [rdi + 0xa8]
add rdx, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
mov qword [rdi + 0xb8], rsi
jmp 0x14012320a
mov eax, 1
cmp dword [rbp + 0x14], 4
jne 0x140123189
mov eax, dword [rbp + 0x10]
mov qword [rdi + 0x80], rax
test r13, r13
jne 0x1401233bc
jmp 0x1401233ec
mov r15d, esi
shl r15, 0x18
xor eax, eax
xor ebx, ebx
mov qword [rsp + 0x78], rax
test r13, r13
je 0x14012338c
mov rsi, qword [rsp + 0xc0]
cmp r13, 0x11
jae 0x140123379
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rsi
jmp 0x140123387
mov rax, qword [rsp + 0x108]
test rax, rax
sete r14b
je 0x1401231fc
mov r15, qword [rsp + 0x100]
mov qword [rsp + 0xf8], rax
mov rdx, rbx
sub rbx, rdx
jne 0x140123134
xor ebx, ebx
mov qword [rdi + 0xc0], rbx
xor eax, eax
test rbx, rbx
sete al
mov qword [rdi + 0x80], rax
test r14b, r14b
je 0x140123231
xor esi, esi
test rbx, rbx
jne 0x140123263
jmp 0x1401232b4
mov r8d, r15d
mov rcx, qword [rsp + 0x170]
mov rsi, qword [rsp + 0xf8]
mov rdx, rsi
call fcn.1400b0060
mov rcx, rsi
call sub.Secur32.dll_FreeContextBuffer
mov rbx, qword [rdi + 0xc0]
mov sil, 1
test rbx, rbx
je 0x1401232b4
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140123b70
cmp byte [rsp + 0x80], 1
jne 0x1401232b4
mov qword [rsp + 0x168], r15
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov r15, rbx
shrd r15, rax, 8
shr rax, 8
or sil, r14b
je 0x140123430
mov r14, qword [rsp + 0x78]
jmp 0x1401231a9
cmp byte [rdi + 0x108], 0
jne 0x1401232c4
mov byte [rdi + 0x10a], 0
or sil, r14b
je 0x1401233a5
mov r14, qword [rsp + 0x78]
test r13, r13
jne 0x1401233bc
jmp 0x1401233ec
mov r15d, dword [rsp + 0x100]
mov r14, qword [rsp + 0x108]
mov rdx, rbx
sub rbx, rdx
je 0x140123031
mov rsi, qword [rdi + 0xb8]
cmp rsi, rdx
jb 0x14012385e
mov qword [rdi + 0xb8], 0
sub rsi, rdx
je 0x14012333a
test rdx, rdx
je 0x140123333
mov rcx, qword [rdi + 0xa8]
add rdx, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
mov qword [rdi + 0xb8], rsi
xor eax, eax
mov qword [rdi + 0xc0], rbx
mov qword [rdi + 0x80], rax
mov r8d, r15d
mov rcx, qword [rsp + 0x170]
mov rdx, r14
call fcn.1400b0060
mov rcx, r14
call sub.Secur32.dll_FreeContextBuffer
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x168]
test r13, r13
jne 0x1401233bc
jmp 0x1401233ec
call sub.KERNEL32.dll_GetProcessHeap
mov r8, qword [rsi - 8]
mov rcx, rax
xor edx, edx
call fcn.14021dfcd
test r12, r12
je 0x14012340d
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14021dfcd
jmp 0x14012340d
mov rcx, qword [rsp + 0xf8]
call sub.Secur32.dll_FreeContextBuffer
mov r14, qword [rsp + 0x78]
test r13, r13
je 0x1401233ec
mov rsi, qword [rsp + 0xc0]
cmp r13, 0x11
jae 0x1401233d9
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rsi
jmp 0x1401233e7
call sub.KERNEL32.dll_GetProcessHeap
mov r8, qword [rsi - 8]
mov rcx, rax
xor edx, edx
call fcn.14021dfcd
mov qword [rsp + 0x168], r15
mov bl, 3
test r12, r12
je 0x14012340d
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14021dfcd
mov rcx, qword [rsp + 0x70]
mov r13, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
cmp bl, 3
je 0x14012265d
jmp 0x14012366c
mov rcx, qword [rsp + 0xf8]
mov rsi, rax
call sub.Secur32.dll_FreeContextBuffer
mov rax, rsi
mov r14, qword [rsp + 0x78]
jmp 0x1401231a9
mov dl, 2
test r12b, r12b
jne 0x1401234c0
movaps xmmword [rsp + 0x100], xmm6
mov dword [rsp + 0x110], 0
mov rcx, r14
mov edx, 4
lea r8, [rsp + 0x100]
call sub.Secur32.dll_QueryContextAttributesW
mov rcx, rax
shl rcx, 0x20
mov dl, 1
test eax, eax
cmove rcx, qword [rsp + 0x104]
mov qword [rsp + 0x180], rcx
mov rcx, qword [rsp + 0x10c]
mov eax, 0
cmovne rcx, rax
mov qword [rsp + 0x178], rcx
cmove r15d, dword [rsp + 0x100]
jne 0x1401237e5
mov rcx, qword [rsp + 0x70]
mov r13, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov byte [rdi + 0x108], dl
mov al, byte [rsp + 0x82]
mov byte [rsi + 2], al
movzx eax, word [rsp + 0x80]
mov word [rsi], ax
mov dword [rsp + 0xcc], r15d
mov dword [rdi + 0x10c], r15d
mov rax, qword [rsp + 0x178]
mov qword [rdi + 0x118], rax
mov rax, qword [rsp + 0x180]
mov qword [rdi + 0x110], rax
jmp 0x14012265d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb0], rax
lea rcx, [0x1402ced98]
lea rdx, [rsp + 0xb0]
lea r8, [0x140271730]
call fcn.14014eb60
lea rdx, [0x1402cedc0]
lea rcx, [0x1402ceda0]
jmp 0x140122945
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb0], rax
lea rcx, [0x1402cedb8]
lea rdx, [rsp + 0xb0]
lea r8, [0x140271770]
call fcn.14014eb60
lea rdx, [0x1402cedc0]
jmp 0x140122969
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb0], rax
lea rcx, [0x1402cedd8]
lea rdx, [rsp + 0xb0]
lea r8, [0x1402717b0]
call fcn.14014eb60
jmp 0x14012298d
cmp eax, 1
je 0x140123605
mov qword [rcx], 0
jmp 0x140123648
mov dword [rcx + 4], 1
movups xmm0, xmmword [r13]
movups xmmword [rcx + 8], xmm0
mov eax, dword [r13 + 0x10]
mov dword [rcx + 0x18], eax
mov dword [rcx], 0
jmp 0x140123648
mov rcx, qword [rsp + 0x110]
jmp 0x140123635
mov eax, 0xa01
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rcx
mov dword [rdx], 1
movaps xmm6, xmmword [rsp + 0x1a0]
movaps xmm7, xmmword [rsp + 0x1b0]
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, bl
mov rdx, qword [rsp + 0x78]
shld rdx, r15, 8
shl r15, 8
or r15, rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 8], r15
mov dword [rcx], 1
jmp 0x140123648
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x1f
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1401238b2
mov rsi, rax
movups xmm0, xmmword [0x14026d537]
movups xmmword [rax + 0xf], xmm0
movups xmm0, xmmword [str.unexpected_EOF_during_handshake]
movups xmmword [rax], xmm0
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1401238a1
mov rdi, rax
mov qword [rax], rsi
movaps xmm0, xmmword [0x140220b80]
movups xmmword [rax + 8], xmm0
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1401238a1
mov qword [rax], rdi
lea rcx, [0x140266518]
mov qword [rax + 8], rcx
mov byte [rax + 0x10], send
mov ecx, dword [rsp + 0x100]
mov edx, dword [rsp + 0x103]
mov dword [rax + 0x11], ecx
mov dword [rax + 0x14], edx
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov qword [rcx + 8], 2
mov dword [rcx], 1
jmp 0x140123648
call sub.KERNEL32.dll_GetLastError
mov rsi, r13
mov r13d, eax
shl r13, 0x20
xor ebx, ebx
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 0x1401237c5
mov r13d, eax
shl r13, 0x20
xor ebx, ebx
jmp 0x1401237cd
call sub.KERNEL32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
xor ebx, ebx
jmp 0x1401237c5
call sub.KERNEL32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
mov cl, 1
xor ebx, ebx
jmp 0x1401237b9
movzx eax, al
shl r13, 8
or r13, rax
test cl, cl
je 0x1401237c5
mov rcx, rsi
call sub.CRYPT32.dll_CertFreeCertificateChain
mov rcx, r12
call sub.CRYPT32.dll_CertFreeCertificateContext
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbx
mov dword [rax], 1
jmp 0x140123648
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x180]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x178]
mov qword [rax + 0x10], rcx
mov dword [rax], 1
jmp 0x140123648
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, rbp
call fcn.1400214d0
ud2
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_native_tls_0.3.0_srclib.rs
mov edx, 0x29
call fcn.14001f9d0
ud2
test r12, r12
jne 0x140123894
call fcn.1400182c0
ud2
lea rcx, str.assertion_failed:_size___nread
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov edx, 0x1f
call fcn.14001f9d0
ud2
lea r8, str.C:Usersdarkarp.rustup_toolchains_stable_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_alloc_src_vec.rsthread_not_dropped_yet
mov rcx, rdx
mov rdx, rsi
call fcn.1400201a0
ud2
mov ecx, 0x20
mov edx, 8
call fcn.1400182a0
ud2
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, rsi
call fcn.1400201a0
ud2
mov rcx, rbp
mov rdx, r12
call fcn.1400182a0
ud2
mov ecx, 0x18
mov edx, 8
call fcn.1400182a0
ud2
mov ecx, 0x1f
mov edx, 1
call fcn.1400182a0
ud2