Function at 0x1800d7d80
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, 0x1a8
movaps xmmword [rsp + 0x190], xmm6
mov rdi, rdx
mov qword [rsp + 0x78], rcx
lea rax, [rdx + 0x144]
mov qword [rsp + 0x150], rax
lea r10, [rdx + 0x10]
lea r13, [rdx + 0x18]
lea rax, [rdx + 0x1c0]
mov qword [rsp + 0xf8], rax
xorps xmm6, xmm6
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x120], r13
movzx eax, byte [rdi + 0x140]
test rax, rax
jne 0x1800d8e36
movzx r14d, byte [rdi + 0x141]
movzx ebx, byte [rdi + 0x142]
movzx r12d, byte [rdi + 0x143]
movzx esi, byte [rdi + 0x144]
mov r15, qword [rdi + 0x1b8]
mov rax, qword [rdi + 0x1b0]
cmp rax, r15
jne 0x1800d7e80
test r14b, r14b
je 0x1800d7e68
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x1800d901f
cmp dword [r10], 2
je 0x1800d7e5b
mov rcx, r10
call fcn.1800d9070
test rax, rax
jne 0x1800d8f81
test rdx, rdx
mov r10, qword [rsp + 0x70]
jne 0x1800d8f8b
cmp byte [rdi + 0x140], 0
je 0x1800d7f7a
or sil, r12b
jne 0x1800d7f93
jmp 0x1800d7f86
mov byte [rsp + 0x88], bl
mov rbx, rbp
mov ebp, r12d
xor r12d, r12d
sub rax, r15
jb 0x1800d901f
mov r8, qword [rdi + 0x138]
test r8, r8
je 0x1800d901f
mov r9, qword [rdi + 0x1a0]
add r9, r15
cmp dword [r10], 2
jne 0x1800d7ef0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x90]
mov rdx, r13
call fcn.180119b90
mov rcx, qword [rsp + 0x90]
cmp rcx, 2
jne 0x1800d7f17
jmp 0x1800d8e00
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x90]
mov rdx, r10
call fcn.1800d6700
mov rcx, qword [rsp + 0x90]
cmp rcx, 2
je 0x1800d8e00
mov rax, qword [rsp + 0x98]
test rcx, rcx
jne 0x1800d8e0a
add r12, rax
add r15, rax
mov qword [rdi + 0x1b8], r15
mov rax, qword [rdi + 0x1b0]
cmp rax, r15
mov r10, qword [rsp + 0x70]
jne 0x1800d7e90
test r12, r12
mov r12d, ebp
mov rbp, rbx
movzx ebx, byte [rsp + 0x88]
je 0x1800d7e21
cmp byte [rdi + 0x140], 0
jne 0x1800d7e26
mov byte [rdi + 0x141], 1
jmp 0x1800d7e26
mov byte [rdi + 0x141], 0
or sil, r12b
jne 0x1800d7f93
cmp byte [rdi + 0x222], 0
je 0x1800d84f4
test bl, bl
je 0x1800d86e9
cmp qword [rdi + 0x1f8], 0
je 0x1800d7fd5
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.1800d93f0
cmp qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x98]
jne 0x1800d8e0a
test rax, rax
je 0x1800d8e70
mov rsi, qword [rdi + 0x198]
movzx eax, byte [0x180221a30]
mov rax, qword [0x1802219b8]
test rax, rax
jne 0x1800d8005
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d9030
mov qword [0x1802219b8], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d9030
cmp rsi, qword [rdi + 0x190]
ja 0x1800d901f
mov r13, rax
mov rax, qword [rdi + 0x180]
mov dword [r13], esi
mov dword [r13 + 4], 2
mov qword [r13 + 8], rax
movups xmmword [r13 + 0x10], xmm6
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0xd8], 2
mov qword [rsp + 0xe0], 2
mov rdx, qword [rdi + 0x208]
mov r14d, 2
test rdx, rdx
je 0x1800d8100
mov r8, qword [rdi + 0x218]
lea rcx, [rsp + 0x90]
call fcn.1800fae30
mov r12, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xa0]
test r12, r12
je 0x1800d810d
mov r15, rcx
mov rsi, qword [rsp + 0x98]
lea rcx, [rsp + 0xd0]
call fcn.1800d95f0
mov r13, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xe0]
mov rax, r14
shl rax, 4
mov dword [r13 + rax], esi
mov rcx, r15
mov dword [r13 + rax + 4], 0x12
mov qword [r13 + rax + 8], r15
inc r14
mov qword [rsp + 0xe0], r14
jmp 0x1800d8110
xor r12d, r12d
mov rcx, qword [rsp + 0x80]
jmp 0x1800d8110
xor r12d, r12d
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x158], 0
mov dword [rsp + 0x15c], r14d
mov qword [rsp + 0x160], r13
movabs rax, 0x200000000
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
movabs rax, 0x1100000000
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xa8]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
movabs rax, 0x300000000
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x130], rax
mov dword [rsp + 0xf4], 0
cmp byte [rdi + 0x222], 0
je 0x1800d8310
cmp byte [rdi + 0x223], 0
mov edx, 0
mov rcx, qword [rsp + 0xf8]
cmove rdx, rcx
mov rax, qword [rdi + 0x158]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x100], xmm0
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x100]
lea r8, [rsp + 0x158]
mov r9d, 0x1011c
call qword [sym.imp.secur32.dll_AcceptSecurityContext]
mov esi, eax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1800d823c
call qword [sym.imp.secur32.dll_FreeContextBuffer]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x1800d824f
call qword [sym.imp.secur32.dll_FreeContextBuffer]
cmp esi, 0x80090318
je 0x1800d83c7
test esi, esi
mov r10, qword [rsp + 0x70]
je 0x1800d83fa
cmp esi, 0x90312
jne 0x1800d84a1
mov byte [rdi + 0x223], 0
cmp r14, 1
jbe 0x1800d901f
cmp dword [r13 + 0x14], 5
jne 0x1800d85aa
mov rsi, qword [rdi + 0x198]
mov eax, dword [r13 + 0x10]
mov r15, rsi
sub r15, rax
jb 0x1800d901f
mov ebp, dword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
test eax, eax
je 0x1800d86df
mov rax, qword [rdi + 0x190]
mov r14, rax
sub r14, r15
jb 0x1800d901f
mov qword [rdi + 0x190], 0
test r15, r15
je 0x1800d8791
cmp rax, r15
je 0x1800d87a4
mov rcx, qword [rdi + 0x180]
lea rdx, [rcx + r15]
mov r8, r14
call fcn.180181ff0
jmp 0x1800d879d
cmp byte [rdi + 0x220], 0
mov rax, qword [rdi + 0x1d0]
mov r8d, 0
cmovne r8, rax
test rax, rax
cmove r8, rax
mov rax, qword [rdi + 0x158]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x100], xmm0
lea rax, [rsp + 0xf4]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x158]
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 + 0x100]
mov rdx, qword [rsp + 0xf8]
mov r9d, 0x9819c
call qword [sym.imp.secur32.dll_InitializeSecurityContextW]
mov esi, eax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
jne 0x1800d8236
jmp 0x1800d823c
cmp r14, 1
mov r10, qword [rsp + 0x70]
jbe 0x1800d901f
mov eax, 1
cmp dword [r13 + 0x14], 4
jne 0x1800d83e6
mov eax, dword [r13 + 0x10]
mov qword [rdi + 0x1f8], rax
mov rsi, qword [rsp + 0x80]
jmp 0x1800d8970
cmp r14, 1
jbe 0x1800d901f
cmp dword [r13 + 0x14], 5
jne 0x1800d85cd
mov r14, qword [rdi + 0x198]
mov eax, dword [r13 + 0x10]
mov rbp, r14
sub rbp, rax
mov r15, qword [rsp + 0x98]
test r15, r15
je 0x1800d8445
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x140], r15
cmp r14, rbp
jb 0x1800d901f
je 0x1800d882a
mov rax, qword [rdi + 0x190]
mov rsi, rax
sub rsi, rbp
jb 0x1800d901f
mov qword [rdi + 0x190], 0
test rbp, rbp
je 0x1800d8825
cmp rax, rbp
je 0x1800d882a
mov rcx, qword [rdi + 0x180]
lea rdx, [rcx + rbp]
mov r8, rsi
call fcn.180181ff0
mov r10, qword [rsp + 0x70]
jmp 0x1800d8834
shl rsi, 0x20
or rsi, 2
test r12, r12
je 0x1800d8917
mov r8, qword [rsp + 0x80]
cmp r12, 0x11
jb 0x1800d84cc
mov rax, qword [rsp + 0x80]
mov r8, qword [rax - 8]
mov rcx, qword [0x1802219b8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r10, qword [rsp + 0x70]
cmp qword [rsp + 0xd8], 0
jne 0x1800d8922
jmp 0x1800d8939
mov qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0xf8]
mov edx, 0x53
lea r8, [rsp + 0x90]
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov r15, rax
shl r15, 0x20
or r15, 2
test eax, eax
jne 0x1800d8532
mov r15, qword [rsp + 0x90]
je 0x1800d861b
test bl, bl
je 0x1800d8fc7
mov eax, r15d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1800d7f9b
test rax, rax
je 0x1800d7f9b
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 0x1800d8593
cmp qword [r15 + 0x10], 0x11
jb 0x1800d8581
mov r14, qword [r14 - 8]
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1800d7f9b
mov rsi, qword [rdi + 0x198]
mov ebp, dword [rsp + 0x90]
mov eax, 1
mov rbx, qword [rsp + 0x98]
mov r15, rsi
jmp 0x1800d87a6
mov rax, qword [rsp + 0x98]
test rax, rax
mov rsi, qword [rsp + 0x80]
je 0x1800d85fa
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x148], rcx
mov qword [rsp + 0x140], rax
mov qword [rdi + 0x198], 0
mov qword [rdi + 0x1f8], 1
jne 0x1800d8865
jmp 0x1800d8954
mov byte [rsp + 0x6f], r12b
mov rcx, qword [r15 + 0x20]
test rcx, rcx
mov qword [rsp + 0xc8], r15
mov r12, r13
je 0x1800d89d0
call qword [sym.imp.crypt32.dll_CertDuplicateStore]
mov r14, rax
cmp qword [rdi], 0
je 0x1800d86c7
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
je 0x1800d86c7
nop dword [rax]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov r13, rax
mov qword [rsp + 0x90], 0
mov rcx, r14
mov rdx, rsi
mov r8d, 3
lea r9, [rsp + 0x90]
call qword [sym.imp.crypt32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x1800d8f99
mov rcx, qword [rsp + 0x90]
mov r15, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call r15
mov rcx, rsi
call r15
mov rcx, qword [rdi + 8]
mov rdx, r13
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
jne 0x1800d8660
mov rcx, r14
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
mov r15, qword [rsp + 0xc8]
jmp 0x1800d89dc
mov eax, 1
jmp 0x1800d87a6
mov al, 2
test r12b, r12b
jne 0x1800d875b
movaps xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0xf8]
mov edx, 4
lea r8, [rsp + 0x90]
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
jne 0x1800d9023
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x13c], eax
mov rax, qword [rsp + 0x94]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x9c]
mov qword [rsp + 0x170], rax
mov al, 1
mov r10, qword [rsp + 0x70]
mov byte [rdi + 0x140], al
mov eax, dword [rsp + 0x13c]
mov dword [rdi + 0x144], eax
mov rax, qword [rsp + 0x178]
mov qword [rdi + 0x148], rax
mov rax, qword [rsp + 0x170]
mov qword [rdi + 0x150], rax
jmp 0x1800d7de0
cmp rax, r15
jne 0x1800d879d
xor eax, eax
xor r15d, r15d
jmp 0x1800d87a6
mov qword [rdi + 0x190], r14
xor eax, eax
sub rsi, r15
mov qword [rdi + 0x198], rsi
mov qword [rdi + 0x1f8], rax
test ebp, ebp
mov r15d, ebp
mov rbp, rbx
lea rax, str.description___is_deprecated__use_Displayh
cmove rbp, rax
mov rax, qword [rdi + 0x1a8]
mov r14, qword [rdi + 0x1b0]
sub rax, r14
cmp rax, r15
jb 0x1800d8b3c
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rdi + 0x1a0]
add rcx, r14
mov rdx, rbp
mov r8, r15
call fcn.180181ff0
add r14, r15
mov qword [rdi + 0x1b0], r14
mov rcx, rbx
call qword [sym.imp.secur32.dll_FreeContextBuffer]
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov r10, qword [rsp + 0x70]
jmp 0x1800d8970
cmp rax, rbp
jne 0x1800d8834
xor eax, eax
sub r14, rbp
sete al
jmp 0x1800d8843
xor eax, eax
sub r14, rbp
sete al
mov qword [rdi + 0x190], rsi
mov qword [rdi + 0x198], r14
mov qword [rdi + 0x1f8], rax
test r15, r15
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov rsi, qword [rsp + 0x80]
je 0x1800d88e2
mov esi, dword [rsp + 0x148]
test rsi, rsi
mov r14, qword [rsp + 0x140]
mov r15, r14
lea rax, str.description___is_deprecated__use_Displayh
cmove r15, rax
mov rax, qword [rdi + 0x1a8]
mov rbp, qword [rdi + 0x1b0]
sub rax, rbp
cmp rax, rsi
jb 0x1800d8de2
mov rcx, qword [rdi + 0x1a0]
add rcx, rbp
mov rdx, r15
mov r8, rsi
call fcn.180181ff0
add rbp, rsi
mov qword [rdi + 0x1b0], rbp
mov rcx, r14
call qword [sym.imp.secur32.dll_FreeContextBuffer]
mov r14, qword [rdi + 0x198]
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov rsi, qword [rsp + 0x80]
mov r10, qword [rsp + 0x70]
test r14, r14
je 0x1800d8954
lea rcx, [rsp + 0x100]
mov rdx, rdi
call fcn.1800d96a0
cmp byte [rsp + 0x100], 0
je 0x1800d894f
mov rsi, qword [rsp + 0x108]
mov r10, qword [rsp + 0x70]
test r12, r12
jne 0x1800d84b2
cmp qword [rsp + 0xd8], 0
je 0x1800d8939
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
mov r10, qword [rsp + 0x70]
test rsi, rsi
mov r13, qword [rsp + 0x120]
je 0x1800d7de0
jmp 0x1800d8e65
mov r10, qword [rsp + 0x70]
cmp byte [rdi + 0x140], 0
jne 0x1800d8970
mov byte [rdi + 0x142], 0
nop word cs:[rax + rax]
test r12, r12
je 0x1800d8996
mov r8, rsi
cmp r12, 0x11
jb 0x1800d8982
mov r8, qword [rsi - 8]
mov rcx, qword [0x1802219b8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov r10, qword [rsp + 0x70]
cmp qword [rsp + 0xd8], 0
je 0x1800d89b8
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, r13
call qword [sym.imp.kernel32.dll_HeapFree]
mov r10, qword [rsp + 0x70]
xor esi, esi
test rsi, rsi
mov r13, qword [rsp + 0x120]
je 0x1800d7de0
jmp 0x1800d8e65
mov r14, qword [rdi]
test r14, r14
je 0x1800d89dc
mov r14, qword [rdi + 8]
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x90], 0x20
mov dword [rsp + 0x98], 1
lea rax, [0x1801e4c1b]
mov qword [rsp + 0xd0], rax
lea rax, str.1.3.6.1.4.1.311.10.3.3
mov qword [rsp + 0xd8], rax
lea rax, str.2.16.840.1.113730.4.1
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xa0], 3
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x100], 0
lea rax, [rsp + 0x100]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x90]
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, r14
call qword [sym.imp.crypt32.dll_CertGetCertificateChain]
test eax, eax
je 0x1800d8fce
mov rdx, qword [rsp + 0x100]
mov esi, 0xf00
cmp qword [rdi], 0
mov qword [rsp + 0x88], rdx
je 0x1800d8b2e
cmp dword [rdx + 0xc], 0
mov r13, r12
movzx r12d, byte [rsp + 0x6f]
je 0x1800d8c8f
mov rax, qword [rdx + 0x10]
mov r12, qword [rax]
mov rcx, rdx
call rbp
mov rcx, qword [rsp + 0x88]
mov r15, rax
cmp dword [rcx + 0xc], 2
jb 0x1800d8b5a
mov r14d, 1
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
nop word cs:[rax + rax]
mov rax, qword [rcx + 0x10]
mov r12, qword [rax + r14*8]
call rbp
mov rsi, rax
mov rcx, r15
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + 0xc]
inc r14
mov r15, rsi
cmp r14, rax
jb 0x1800d8b00
jmp 0x1800d8b64
mov r13, r12
movzx r12d, byte [rsp + 0x6f]
jmp 0x1800d8c8f
lea rcx, [rdi + 0x1a0]
mov rdx, r14
mov r8, r15
call fcn.180185da0
mov r14, qword [rdi + 0x1b0]
jmp 0x1800d87e4
mov rsi, r15
mov rbp, qword [sym.imp.crypt32.dll_CertDuplicateCertificateChain]
mov qword [rsp + 0x180], r12
call rbp
mov qword [rsp + 0x168], rax
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
xor r14d, r14d
movzx r12d, byte [rsp + 0x6f]
jmp 0x1800d8ba6
mov r14, qword [rsp + 0x188]
inc r14
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov r13, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x180]
mov eax, dword [rcx + 0xc]
mov esi, 0xf00
cmp r14, rax
jae 0x1800d8c79
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1800d8c79
mov qword [rsp + 0x188], r14
mov rax, qword [rax + r14*8]
mov rcx, qword [rax + 8]
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov rsi, rax
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
je 0x1800d8b8a
nop word cs:[rax + rax]
mov r13, rax
mov rcx, rax
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov r15, rax
mov r8d, dword [r13 + 0x10]
cmp r8d, dword [rsi + 0x10]
jne 0x1800d8c4e
mov rcx, qword [r13 + 8]
mov rdx, qword [rsi + 8]
call fcn.180182a30
mov r14d, eax
mov rcx, r13
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
test r14d, r14d
je 0x1800d8c59
mov rcx, qword [rdi + 8]
mov rdx, r15
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
jne 0x1800d8c00
jmp 0x1800d8b8a
mov rcx, r13
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
jmp 0x1800d8c37
mov rcx, r15
mov r14, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call r14
mov rcx, rsi
call r14
mov esi, 0xf10
mov r13, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov rdx, qword [rsp + 0x88]
lea rax, [rsp + 0x108]
movups xmmword [rax], xmm6
movabs rax, 0x200000018
mov qword [rsp + 0x100], rax
mov rax, qword [rdi + 0x1d0]
test rax, rax
je 0x1800d8cc9
cmp byte [rdi + 0x221], 0
jne 0x1800d8cc9
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x128], 0x10
mov dword [rsp + 0x12c], esi
lea rax, [rsp + 0x100]
mov qword [rsp + 0x130], rax
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xd0], 0x18
mov ecx, 4
lea r8, [rsp + 0x128]
lea r9, [rsp + 0xd0]
call qword [sym.imp.crypt32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x1800d8fe0
mov r15d, dword [rsp + 0xd4]
mov rax, qword [rdi + 0x1e8]
test rax, rax
je 0x1800d8d98
mov r8, qword [rdi + 0x1f0]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], r15d
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x9c], rax
lea rdx, [rsp + 0x90]
call qword [r8 + 0x28]
test rax, rax
je 0x1800d8db2
jmp 0x1800d9000
test r15d, r15d
mov rax, qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0x88]
jne 0x1800d8ff0
call rax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp byte [rdi + 0x140], 0
mov r10, qword [rsp + 0x70]
jne 0x1800d7f93
mov rax, qword [rsp + 0x150]
mov byte [rax], 1
jmp 0x1800d7f93
lea rcx, [rdi + 0x1a0]
mov rdx, rbp
mov r8, rsi
call fcn.180185da0
mov rbp, qword [rdi + 0x1b0]
jmp 0x1800d889f
movabs rax, 0xd00000003
mov rdi, qword [rsp + 0x78]
mov qword [rdi + 8], rax
mov eax, 2
mov dword [rdi], eax
movaps xmm6, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 1
jne 0x1800d8e5c
mov rcx, qword [rsp + 0x150]
mov eax, dword [rcx + 0x10]
mov rdi, qword [rsp + 0x78]
mov dword [rdi + 0x14], eax
movups xmm0, xmmword [rcx]
movups xmmword [rdi + 4], xmm0
mov eax, 1
jmp 0x1800d8e18
xor eax, eax
mov rdi, qword [rsp + 0x78]
jmp 0x1800d8e18
mov rdi, qword [rsp + 0x78]
mov qword [rdi + 8], rsi
jmp 0x1800d8e13
movzx eax, byte [0x180221a30]
mov rcx, qword [0x1802219b8]
test rcx, rcx
jne 0x1800d8e9c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d9052
mov rcx, rax
mov qword [0x1802219b8], rax
mov r8d, 0x1f
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d9052
mov rsi, rax
movups xmm0, xmmword [0x1801e4c0b]
movups xmmword [rax + 0xf], xmm0
movups xmm0, xmmword [0x1801e4bfc]
movups xmmword [rax], xmm0
movzx eax, byte [0x180221a30]
mov rcx, qword [0x1802219b8]
test rcx, rcx
jne 0x1800d8ef7
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d9041
mov rcx, rax
mov qword [0x1802219b8], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d9041
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], 0x1f
mov qword [rax + 0x10], 0x1f
movzx eax, byte [0x180221a30]
mov rcx, qword [0x1802219b8]
test rcx, rcx
jne 0x1800d8f50
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800d9041
mov rcx, rax
mov qword [0x1802219b8], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800d9041
mov qword [rax], rdi
lea rcx, fcn.18005f8e0
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0x25
inc rax
jmp 0x1800d8e0a
movabs rdx, 0xd00000003
mov rdi, qword [rsp + 0x78]
mov qword [rdi + 8], rdx
jmp 0x1800d8e13
call sub.kernel32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rcx, rsi
mov rsi, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call rsi
mov rcx, r13
call rsi
mov rcx, r14
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
jmp 0x1800d9003
mov rdi, qword [rsp + 0x78]
jmp 0x1800d9016
call sub.kernel32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
jmp 0x1800d9003
call sub.kernel32.dll_GetLastError
mov r15d, eax
mov rcx, qword [rsp + 0x88]
shl r15, 0x20
or r15, 2
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
jmp 0x1800d9003
mov r15, rax
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov qword [rdi + 8], r15
jmp 0x1800d8e13
ud2
shl rax, 0x20
or rax, 2
jmp 0x1800d8e0a
mov ecx, 8
mov edx, 0x20
call fcn.180183f50
ud2
mov ecx, 8
mov edx, 0x18
call fcn.180183f50
ud2
mov ecx, 1
mov edx, 0x1f
call fcn.180183f50
ud2