Function at 0x1800d75d0
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 + 0x70], rcx
lea rax, [rdx + 0x44]
mov qword [rsp + 0x120], rax
lea rax, [rdx + 0x10]
mov qword [rsp + 0x158], rax
lea rax, [rdx + 0xc0]
mov qword [rsp + 0xd8], rax
xorps xmm6, xmm6
movzx eax, byte [rdi + 0x40]
test rax, rax
jne 0x1800d84ec
movzx r14d, byte [rdi + 0x41]
movzx ebp, byte [rdi + 0x42]
movzx ebx, byte [rdi + 0x43]
movzx esi, byte [rdi + 0x44]
mov r15, qword [rdi + 0xb8]
mov rax, qword [rdi + 0xb0]
cmp rax, r15
lea r13, [rsp + 0x80]
jne 0x1800d7680
test r14b, r14b
je 0x1800d7670
cmp qword [rdi + 0x38], 0
je 0x1800d86b3
cmp byte [rdi + 0x40], 0
je 0x1800d771d
or sil, bl
jne 0x1800d7733
jmp 0x1800d7726
xor r12d, r12d
nop word cs:[rax + rax]
sub rax, r15
jb 0x1800d86b3
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x1800d86b3
mov r9, qword [rdi + 0xa0]
add r9, r15
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, qword [rsp + 0x158]
call fcn.180117300
mov rcx, qword [rsp + 0x80]
cmp rcx, 2
je 0x1800d84b6
mov rax, qword [rsp + 0x88]
test rcx, rcx
jne 0x1800d84c0
add r12, rax
add r15, rax
mov qword [rdi + 0xb8], r15
mov rax, qword [rdi + 0xb0]
cmp rax, r15
jne 0x1800d7690
test r12, r12
je 0x1800d7656
cmp byte [rdi + 0x40], 0
jne 0x1800d765b
mov byte [rdi + 0x41], 1
jmp 0x1800d765b
mov byte [rdi + 0x41], 0
or sil, bl
jne 0x1800d7733
cmp byte [rdi + 0x122], 0
je 0x1800d7c59
test bpl, bpl
je 0x1800d7e47
cmp qword [rdi + 0xf8], 0
je 0x1800d7771
mov rcx, r13
mov rdx, rdi
call fcn.1800d89b0
cmp qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x88]
jne 0x1800d84c0
test rax, rax
je 0x1800d8526
mov rsi, qword [rdi + 0x98]
movzx eax, byte [0x18021ea38]
mov rax, qword [0x18021e9c0]
test rax, rax
jne 0x1800d77a1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1800d86c4
mov qword [0x18021e9c0], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800d86c4
cmp rsi, qword [rdi + 0x90]
ja 0x1800d86b3
mov r12, rax
mov rax, qword [rdi + 0x80]
mov dword [r12], esi
mov dword [r12 + 4], 2
mov qword [r12 + 8], rax
movups xmmword [r12 + 0x10], xmm6
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], 2
mov qword [rsp + 0xc0], 2
mov rdx, qword [rdi + 0x108]
mov esi, 2
test rdx, rdx
je 0x1800d7890
mov r8, qword [rdi + 0x118]
mov rcx, r13
call fcn.1800f8960
mov r15, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
test r15, r15
mov qword [rsp + 0x78], rbp
je 0x1800d7890
mov r14, qword [rsp + 0x88]
lea rcx, [rsp + 0xb0]
call fcn.1800d6f00
mov r12, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xc0]
mov rax, rsi
shl rax, 4
mov dword [r12 + rax], r14d
mov dword [r12 + rax + 4], 0x12
mov qword [r12 + rax + 8], rbp
inc rsi
mov qword [rsp + 0xc0], rsi
jmp 0x1800d7893
xor r15d, r15d
mov dword [rsp + 0x128], 0
mov dword [rsp + 0x12c], esi
mov qword [rsp + 0x130], r12
movabs rax, 0x200000000
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
movabs rax, 0x1100000000
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x98]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
movabs rax, 0x300000000
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], r13
mov dword [rsp + 0xcc], 0
cmp byte [rdi + 0x122], 0
je 0x1800d7a80
cmp byte [rdi + 0x123], 0
mov edx, 0
mov rcx, qword [rsp + 0xd8]
cmove rdx, rcx
mov rax, qword [rdi + 0x58]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xe0], xmm0
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x100]
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 qword [sym.imp.Secur32.dll_AcceptSecurityContext]
mov r13d, eax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1800d79ac
call qword [sym.imp.Secur32.dll_FreeContextBuffer]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1800d79bf
call qword [sym.imp.Secur32.dll_FreeContextBuffer]
cmp r13d, 0x80090318
je 0x1800d7b35
test r13d, r13d
je 0x1800d7b62
cmp r13d, 0x90312
jne 0x1800d7c11
mov byte [rdi + 0x123], 0
cmp rsi, 1
jbe 0x1800d86b3
cmp dword [r12 + 0x14], 5
jne 0x1800d7d18
mov r13, qword [rdi + 0x98]
mov eax, dword [r12 + 0x10]
mov r14, r13
sub r14, rax
jb 0x1800d86b3
mov ebp, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
test eax, eax
je 0x1800d7e3d
mov rax, qword [rdi + 0x90]
mov rsi, rax
sub rsi, r14
jb 0x1800d86b3
mov qword [rdi + 0x90], 0
test r14, r14
je 0x1800d7ed8
cmp rax, r14
je 0x1800d7eeb
mov rcx, qword [rdi + 0x80]
lea rdx, [rcx + r14]
mov r8, rsi
call fcn.180180980
jmp 0x1800d7ee4
cmp byte [rdi + 0x120], 0
mov rax, qword [rdi + 0xd0]
mov r8d, 0
cmovne r8, rax
test rax, rax
cmove r8, rax
mov rax, qword [rdi + 0x58]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xe0], xmm0
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x100]
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 + 0xd8]
mov r9d, 0x9819c
call qword [sym.imp.Secur32.dll_InitializeSecurityContextW]
mov r13d, eax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
jne 0x1800d79a6
jmp 0x1800d79ac
cmp rsi, 1
jbe 0x1800d86b3
mov eax, 1
cmp dword [r12 + 0x14], 4
jne 0x1800d7b51
mov eax, dword [r12 + 0x10]
mov qword [rdi + 0xf8], rax
mov r13, qword [rsp + 0x78]
jmp 0x1800d8070
cmp rsi, 1
jbe 0x1800d86b3
cmp dword [r12 + 0x14], 5
jne 0x1800d7d3b
mov r14, qword [rdi + 0x98]
mov eax, dword [r12 + 0x10]
mov rbp, r14
sub rbp, rax
mov r13, qword [rsp + 0x88]
test r13, r13
mov rax, qword [rsp + 0xd0]
je 0x1800d7bb2
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x118], rax
mov rax, r13
cmp r14, rbp
jb 0x1800d86b3
mov qword [rsp + 0xd0], rax
je 0x1800d7f61
mov rax, qword [rdi + 0x90]
mov rsi, rax
sub rsi, rbp
jb 0x1800d86b3
mov qword [rdi + 0x90], 0
test rbp, rbp
je 0x1800d7f5c
cmp rax, rbp
je 0x1800d7f61
mov rcx, qword [rdi + 0x80]
lea rdx, [rcx + rbp]
mov r8, rsi
call fcn.180180980
jmp 0x1800d7f6b
shl r13, 0x20
or r13, 2
test r15, r15
je 0x1800d8032
mov r8, qword [rsp + 0x78]
cmp r15, 0x11
jb 0x1800d7c36
mov rax, qword [rsp + 0x78]
mov r8, qword [rax - 8]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0xb8], 0
jne 0x1800d803d
jmp 0x1800d804f
mov byte [rsp + 0x6f], bl
mov byte [rsp + 0x6e], bpl
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0xd8]
mov edx, 0x53
mov r8, r13
call qword [sym.imp.Secur32.dll_QueryContextAttributesW]
mov r15, rax
shl r15, 0x20
or r15, 2
test eax, eax
jne 0x1800d7c9b
mov r15, qword [rsp + 0x80]
movzx eax, byte [rsp + 0x6e]
je 0x1800d7d86
test al, al
je 0x1800d8664
mov eax, r15d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1800d773c
test rax, rax
je 0x1800d773c
lea rsi, [r15 - 1]
mov r14, qword [r15 - 1]
mov r15, qword [r15 + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1800d7d01
cmp qword [r15 + 0x10], 0x11
jb 0x1800d7cef
mov r14, qword [r14 - 8]
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800d773c
mov r13, qword [rdi + 0x98]
mov ebp, dword [rsp + 0x80]
mov eax, 1
mov rbx, qword [rsp + 0x88]
mov r14, r13
jmp 0x1800d7eed
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1800d7d60
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x118], rcx
mov qword [rsp + 0xd0], rax
mov qword [rdi + 0x98], 0
mov qword [rdi + 0xf8], 1
mov r13, qword [rsp + 0x78]
jne 0x1800d7f92
jmp 0x1800d805d
mov rcx, qword [r15 + 0x20]
test rcx, rcx
je 0x1800d80bf
call qword [sym.imp.crypt32.dll_CertDuplicateStore]
mov r12, rax
cmp qword [rdi], 0
je 0x1800d7e25
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
je 0x1800d7e25
nop word [rax + rax]
mov r13, rax
mov rcx, rax
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov r14, rax
mov qword [rsp + 0x80], 0
mov rcx, r12
mov rdx, r13
mov r8d, 3
lea r9, [rsp + 0x80]
call qword [sym.imp.crypt32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x1800d8637
mov rcx, qword [rsp + 0x80]
mov rsi, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call rsi
mov rcx, r13
call rsi
mov rcx, qword [rdi + 8]
mov rdx, r14
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
jne 0x1800d7dc0
mov rcx, r12
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
lea r13, [rsp + 0x80]
jmp 0x1800d80cb
mov eax, 1
jmp 0x1800d7eed
mov al, 2
test bl, bl
jne 0x1800d7eae
movaps xmmword [rsp + 0x80], xmm6
mov dword [rsp + 0x90], 0
mov rcx, qword [rsp + 0xd8]
mov edx, 4
mov r8, r13
call qword [sym.imp.Secur32.dll_QueryContextAttributesW]
test eax, eax
jne 0x1800d86b7
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x114], eax
mov rax, qword [rsp + 0x84]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x8c]
mov qword [rsp + 0x148], rax
mov al, 1
mov byte [rdi + 0x40], al
mov eax, dword [rsp + 0x114]
mov dword [rdi + 0x44], eax
mov rax, qword [rsp + 0x150]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0x148]
mov qword [rdi + 0x50], rax
jmp 0x1800d761d
cmp rax, r14
jne 0x1800d7ee4
xor eax, eax
xor r14d, r14d
jmp 0x1800d7eed
mov qword [rdi + 0x90], rsi
xor eax, eax
sub r13, r14
mov qword [rdi + 0x98], r13
mov qword [rdi + 0xf8], rax
test ebp, ebp
mov esi, ebp
mov r14, rbx
lea rax, str.description___is_deprecated__use_Display
cmove r14, rax
mov rax, qword [rdi + 0xa8]
mov rbp, qword [rdi + 0xb0]
sub rax, rbp
cmp rax, rsi
jb 0x1800d821a
mov r13, qword [rsp + 0x78]
mov rcx, qword [rdi + 0xa0]
add rcx, rbp
mov rdx, r14
mov r8, rsi
call fcn.180180980
add rbp, rsi
mov qword [rdi + 0xb0], rbp
mov rcx, rbx
call qword [sym.imp.Secur32.dll_FreeContextBuffer]
jmp 0x1800d8070
cmp rax, rbp
jne 0x1800d7f6b
xor eax, eax
sub r14, rbp
sete al
jmp 0x1800d7f7a
xor eax, eax
sub r14, rbp
sete al
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], r14
mov qword [rdi + 0xf8], rax
test r13, r13
mov r13, qword [rsp + 0x78]
je 0x1800d8002
mov esi, dword [rsp + 0x118]
test rsi, rsi
mov r14, qword [rsp + 0xd0]
lea rax, str.description___is_deprecated__use_Display
cmove r14, rax
mov rax, qword [rdi + 0xa8]
mov r13, qword [rdi + 0xb0]
sub rax, r13
cmp rax, rsi
jb 0x1800d8498
mov rcx, qword [rdi + 0xa0]
add rcx, r13
mov rdx, r14
mov r8, rsi
call fcn.180180980
add r13, rsi
mov qword [rdi + 0xb0], r13
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.Secur32.dll_FreeContextBuffer]
mov r14, qword [rdi + 0x98]
mov r13, qword [rsp + 0x78]
test r14, r14
je 0x1800d805d
lea rcx, [rsp + 0xe0]
mov rdx, rdi
call fcn.1800d8700
cmp byte [rsp + 0xe0], 0
je 0x1800d805d
mov r13, qword [rsp + 0xe8]
test r15, r15
jne 0x1800d7c22
cmp qword [rsp + 0xb8], 0
je 0x1800d804f
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r13, r13
je 0x1800d761d
jmp 0x1800d851b
cmp byte [rdi + 0x40], 0
jne 0x1800d8070
mov byte [rdi + 0x42], 0
nop word [rax + rax]
test r15, r15
je 0x1800d8091
mov r8, r13
cmp r15, 0x11
jb 0x1800d8082
mov r8, qword [r13 - 8]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0xb8], 0
je 0x1800d80ae
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor r13d, r13d
test r13, r13
je 0x1800d761d
jmp 0x1800d851b
mov r12, qword [rdi]
test r12, r12
je 0x1800d80cb
mov r12, qword [rdi + 8]
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x80], 0x20
mov dword [rsp + 0x88], 1
lea rax, str.1.3.6.1.5.5.7.3.1
mov qword [rsp + 0xb0], rax
lea rax, str.1.3.6.1.4.1.311.10.3.3
mov qword [rsp + 0xb8], rax
lea rax, str.2.16.840.1.113730.4.1
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x90], 3
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xe0], 0
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xc0000001
xor ecx, ecx
mov rdx, r15
xor r8d, r8d
mov r9, r12
call qword [sym.imp.crypt32.dll_CertGetCertificateChain]
test eax, eax
je 0x1800d866b
mov r12, qword [rsp + 0xe0]
mov esi, 0xf00
cmp qword [rdi], 0
je 0x1800d835d
cmp dword [r12 + 0xc], 0
je 0x1800d835d
mov qword [rsp + 0x140], r15
mov rax, qword [r12 + 0x10]
mov rbx, qword [rax]
mov rcx, r12
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov r14, rax
mov qword [rsp + 0xf8], r12
cmp dword [r12 + 0xc], 2
jb 0x1800d8238
mov r12d, 1
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov r15, qword [rsp + 0xf8]
nop dword [rax]
mov rax, qword [r15 + 0x10]
mov rbx, qword [rax + r12*8]
mov rcx, r15
call rbp
mov rsi, rax
mov rcx, r14
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov eax, dword [r15 + 0xc]
inc r12
mov r14, rsi
cmp r12, rax
jb 0x1800d81f0
jmp 0x1800d824a
lea rcx, [rdi + 0xa0]
mov rdx, rbp
mov r8, rsi
call fcn.180184d40
mov rbp, qword [rdi + 0xb0]
jmp 0x1800d7f2a
mov rsi, r14
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov r15, qword [rsp + 0xf8]
mov rcx, r15
call rbp
mov qword [rsp + 0x138], rax
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov r15, qword [rsp + 0x140]
mov rbp, rbx
xor ebx, ebx
jmp 0x1800d8283
inc rbx
mov rcx, r13
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
lea r13, [rsp + 0x80]
mov eax, dword [rbp + 0xc]
mov esi, 0xf00
cmp rbx, rax
jae 0x1800d8347
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x1800d8347
mov rax, qword [rax + rbx*8]
mov rcx, qword [rax + 8]
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov r13, rax
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
je 0x1800d826f
nop word cs:[rax + rax]
mov r14, rax
mov rcx, rax
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov rsi, rax
mov r8d, dword [r14 + 0x10]
cmp r8d, dword [r13 + 0x10]
jne 0x1800d831e
mov rcx, qword [r14 + 8]
mov rdx, qword [r13 + 8]
call fcn.1801813c0
mov r12d, eax
mov rcx, r14
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
test r12d, r12d
je 0x1800d8329
mov rcx, qword [rdi + 8]
mov rdx, rsi
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
jne 0x1800d82d0
jmp 0x1800d826f
mov rcx, r14
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
jmp 0x1800d8307
mov rcx, rsi
mov rsi, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call rsi
mov rcx, r13
call rsi
mov esi, 0xf10
lea r13, [rsp + 0x80]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov r12, qword [rsp + 0xf8]
lea rax, [rsp + 0xe8]
movups xmmword [rax], xmm6
movabs rax, 0x200000018
mov qword [rsp + 0xe0], rax
mov rax, qword [rdi + 0xd0]
test rax, rax
je 0x1800d8397
cmp byte [rdi + 0x121], 0
jne 0x1800d8397
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x100], 0x10
mov dword [rsp + 0x104], esi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x108], rax
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xb0], 0x18
mov ecx, 4
mov rdx, r12
lea r8, [rsp + 0x100]
lea r9, [rsp + 0xb0]
call qword [sym.imp.crypt32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x1800d867c
mov esi, dword [rsp + 0xb4]
mov rax, qword [rdi + 0xe8]
test rax, rax
je 0x1800d845a
mov r8, qword [rdi + 0xf0]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
mov qword [rsp + 0x80], r12
mov dword [rsp + 0x88], esi
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x8c], rax
mov rdx, r13
call qword [r8 + 0x28]
test rax, rax
je 0x1800d846b
jmp 0x1800d8696
test esi, esi
jne 0x1800d8683
mov rcx, r12
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov rcx, r15
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp byte [rdi + 0x40], 0
movzx ebp, byte [rsp + 0x6e]
movzx ebx, byte [rsp + 0x6f]
jne 0x1800d7733
mov rax, qword [rsp + 0x120]
mov byte [rax], 1
jmp 0x1800d7733
lea rcx, [rdi + 0xa0]
mov rdx, r13
mov r8, rsi
call fcn.180184d40
mov r13, qword [rdi + 0xb0]
jmp 0x1800d7fc9
movabs rax, 0xd00000003
mov rdi, qword [rsp + 0x70]
mov qword [rdi + 8], rax
mov eax, 2
mov dword [rdi], 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 0x1800d8512
mov rcx, qword [rsp + 0x120]
mov eax, dword [rcx + 0x10]
mov rdi, qword [rsp + 0x70]
mov dword [rdi + 0x14], eax
movups xmm0, xmmword [rcx]
movups xmmword [rdi + 4], xmm0
mov eax, 1
jmp 0x1800d84ce
xor eax, eax
mov rdi, qword [rsp + 0x70]
jmp 0x1800d84ce
mov rdi, qword [rsp + 0x70]
mov qword [rdi + 8], r13
jmp 0x1800d84c9
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x1800d8552
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1800d86e6
mov rcx, rax
mov qword [0x18021e9c0], rax
mov r8d, 0x1f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800d86e6
mov rsi, rax
movups xmm0, xmmword [0x1801e1e83]
movups xmmword [rax + 0xf], xmm0
movups xmm0, xmmword [0x1801e1e74]
movups xmmword [rax], xmm0
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x1800d85ad
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1800d86d5
mov rcx, rax
mov qword [0x18021e9c0], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800d86d5
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], 0x1f
mov qword [rax + 0x10], 0x1f
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x1800d8606
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1800d86d5
mov rcx, rax
mov qword [0x18021e9c0], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800d86d5
mov qword [rax], rdi
lea rcx, fcn.18003fed0
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0x25
inc rax
jmp 0x1800d84c0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, r13
mov rdi, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call rdi
mov rcx, r14
call rdi
mov rcx, r12
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
jmp 0x1800d8699
mov rdi, qword [rsp + 0x70]
jmp 0x1800d86aa
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1800d8699
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, r12
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
jmp 0x1800d8699
mov rsi, rax
mov rdi, qword [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov r15, rsi
mov qword [rdi + 8], r15
jmp 0x1800d84c9
ud2
shl rax, 0x20
or rax, 2
jmp 0x1800d84c0
mov ecx, 8
mov edx, 0x20
call fcn.1801828e0
ud2
mov ecx, 8
mov edx, 0x18
call fcn.1801828e0
ud2
mov ecx, 1
mov edx, 0x1f
call fcn.1801828e0
ud2