Function at 0x1400248a8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov r11, rsp
push r13
push r14
push r15
sub rsp, 0x760
mov qword [r11 - 0x500], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov rax, qword [0x140078790]
xor rax, rsp
mov qword [rsp + 0x750], rax
xor r8d, r8d
lea rdx, str.CDPAgentCerts::CreateDPAgentCertificate
lea rcx, [r11 - 0x2a8]
call fcn.14002de00
nop
xor ebx, ebx
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x68]
call fcn.14002ad48
mov dword [rsp + 0x40], eax
lea esi, [rbx + 1]
cmp eax, esi
jne 0x14002495e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002494a
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x140024945
call fcn.140007048
jmp 0x14002494a
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x4d0]
call fcn.14002e7a8
mov eax, esi
jmp 0x140025c16
mov qword [rsp + 0x48], rbx
lea r14, [0x14004f118]
mov rdx, r14
lea rcx, [rsp + 0x3d8]
call fcn.140003374
nop
mov dword [rsp + 0x20], 0x20
mov r15d, 0x18
mov r9d, r15d
lea r12, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov r8, r12
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400249b2
call fcn.140007048
mov edi, eax
jmp 0x1400249b4
mov edi, ebx
mov rcx, qword [rsp + 0x3e8]
test rcx, rcx
je 0x1400249ce
call fcn.140009640
mov qword [rsp + 0x3e8], rbx
test edi, edi
js 0x140024a2f
mov rdx, r14
lea rcx, [rsp + 0x3f0]
call fcn.140003374
nop
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x20], 0x30
mov r9d, r15d
mov r8, r12
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140024a15
call fcn.140007048
nop
mov rcx, qword [rsp + 0x400]
test rcx, rcx
je 0x140024a2f
call fcn.140009640
mov qword [rsp + 0x400], rbx
mov rdx, r14
lea rcx, [rsp + 0x3c0]
call fcn.140003374
nop
mov dword [rsp + 0x20], 0x28
mov r9d, r15d
mov r8, r12
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140024a6f
call fcn.140007048
mov r14d, eax
mov dword [rsp + 0x40], eax
jmp 0x140024a76
mov r14d, ebx
mov dword [rsp + 0x40], ebx
test r14d, r14d
jns 0x140024a84
mov ecx, r14d
call fcn.140032390
nop
mov rcx, qword [rsp + 0x3d0]
test rcx, rcx
je 0x140024a9e
call fcn.140009640
mov qword [rsp + 0x3d0], rbx
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x148], rbx
lea r9, [rsp + 0x148]
mov r8d, esi
mov r13d, 2
mov edx, r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x140024afa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x1fff0000
test edi, eax
je 0x140024ae7
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xc0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xf8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x108], xmm1
mov qword [rsp + 0x118], rbx
xor edx, edx
lea rcx, [rsp + 0xf8]
call fcn.14000ab64
lea rax, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x218], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x220], xmm0
mov qword [rsp + 0x230], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov r15d, 8
mov edx, r15d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140024ba3
lea rcx, [rsp + 0x218]
mov rax, qword [rsp + 0x218]
call qword [rax + VariantCopy]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x220], rax
lea rcx, [rsp + 0x540]
call fcn.140003f94
nop
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0x540]
lea rcx, [rsp + 0x218]
call fcn.1400023ac
mov r12d, 0xf003f
mov r8d, r12d
lea rdx, [rsp + 0x548]
lea rcx, [rsp + 0x110]
call fcn.140005ef4
mov rdi, qword [rsp + 0xf8]
test eax, eax
js 0x140024c15
xor r9d, r9d
mov r8, qword [rsp + 0x110]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x140024c15
call fcn.140007048
mov r9d, esi
mov r8, rdi
mov edx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
jne 0x140024c32
call fcn.140007048
mov r9d, r13d
mov r8, rdi
mov edx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
jne 0x140024c4f
call fcn.140007048
lea rcx, [rsp + 0x5c0]
call fcn.1400110ec
nop
mov r8d, r12d
lea rdx, [rsp + 0x5c8]
lea rcx, [rsp + 0x110]
call fcn.140005ef4
mov rdi, qword [rsp + 0xf8]
test eax, eax
js 0x140024ca0
xor r9d, r9d
mov r8, qword [rsp + 0x110]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x140024ca0
call fcn.140007048
mov r9d, 4
mov r8, rdi
mov edx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
jne 0x140024cc0
call fcn.140007048
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.140022be0
nop
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x2e0], rax
movabs rdx, 0x16685d6f870000
mov qword [rsp + 0x288], rdx
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, eax
or rcx, rax
add rcx, rdx
mov qword [rsp + 0x290], rcx
mov dword [rsp + 0x58], ecx
shr rcx, 0x20
mov dword [rsp + 0x5c], ecx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x2e8], rax
lea rcx, [rsp + 0x370]
call fcn.140002fd4
nop
lea r8, [0x140056978]
lea rdx, [rsp + 0x370]
lea rcx, [rsp + 0x458]
call fcn.1400022d8
nop
lea r8, str.Altus_Local_client_Certificate_Authority
mov rdx, rax
lea rcx, [rsp + 0x430]
call fcn.140002268
nop
lea r8, [0x140056970]
mov rdx, rax
lea rcx, [rsp + 0x408]
call fcn.140002268
mov rdi, rax
lea rax, [rsp + 0x370]
cmp rax, rdi
je 0x140024dc1
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x370]
call fcn.140011b58
mov rdx, rdi
lea rcx, [rsp + 0x370]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x408]
call fcn.140011b58
nop
mov r12d, 0x10
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [rsp + 0x408]
call fcn.140011434
mov qword [rsp + 0x408], rbx
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x430]
call fcn.140011b58
nop
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [rsp + 0x430]
call fcn.140011434
mov qword [rsp + 0x430], rbx
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x458]
call fcn.140011b58
nop
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [rsp + 0x458]
call fcn.140011434
mov qword [rsp + 0x458], rbx
lea r8, str.OCrossmatch
lea rdx, [rsp + 0x370]
lea rcx, [rsp + 0x480]
call fcn.1400022d8
mov rdi, rax
lea rax, [rsp + 0x370]
cmp rax, rdi
je 0x140024ea4
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x370]
call fcn.140011b58
mov rdx, rdi
lea rcx, [rsp + 0x370]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x480]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rsi
mov rcx, qword [rsp + 0x480]
call fcn.140011434
mov qword [rsp + 0x480], rbx
lea rdx, [rsp + 0x378]
cmp qword [rsp + 0x390], r15
cmovae rdx, qword [rsp + 0x378]
mov r13d, 0x6000003
mov r8d, r13d
lea rcx, [rsp + 0x2a0]
call fcn.140029d68
test eax, eax
jne 0x140024f2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x1fff0000
test edi, eax
je 0x140024f1c
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
lea rcx, [rsp + 0x398]
call fcn.140002fd4
nop
lea r8, str.CN127.0.0.1
lea rdx, [rsp + 0x398]
lea rcx, [rsp + 0x4a8]
call fcn.1400022d8
mov rdi, rax
lea rax, [rsp + 0x398]
cmp rax, rdi
je 0x140024f8d
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x398]
call fcn.140011b58
mov rdx, rdi
lea rcx, [rsp + 0x398]
call fcn.1400111b0
nop
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x4a8]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rsi
mov rcx, qword [rsp + 0x4a8]
call fcn.140011434
mov qword [rsp + 0x4a8], rbx
lea rdx, [rsp + 0x3a0]
cmp qword [rsp + 0x3b8], r15
cmovae rdx, qword [rsp + 0x3a0]
mov r8d, r13d
lea rcx, [rsp + 0x2a0]
call fcn.140029fb8
test eax, eax
jne 0x140025012
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x1fff0000
test edi, eax
je 0x140024fff
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
mov r8d, 2
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x2a0]
call fcn.140029e48
test eax, eax
jne 0x140025057
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x1fff0000
test edi, eax
je 0x140025044
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
xor r8d, r8d
lea rdx, str.1.2.840.113549.1.1.11
lea rcx, [rsp + 0x188]
call fcn.140022f28
nop
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x2b8]
call fcn.140017884
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.140034b00
nop
mov dword [rsp + 0xb4], 0xa0050203
mov dword [rsp + 0x238], 4
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x240], rax
xor r9d, r9d
lea r8, [rsp + 0x238]
lea rdx, str.2.5.29.15
lea rcx, [rsp + 0x1f8]
call fcn.140022b70
nop
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0xe8]
call fcn.140023d78
mov dword [rsp + 0x60], ebx
lea rdi, str.300a06082b06010505070301
mov rcx, rdi
call fcn.140037f9c
mov rdx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r13d, [r9 + 0xc]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
lea r12, vtable.CCryptBlob_struct__CRYPTOAPI_BLOB__class__heap_allocator_.0
mov qword [rsp + 0x120], r12
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x128], eax
mov ecx, eax
call fcn.1400331f0
test rax, rax
jne 0x14002515f
mov ecx, 0x8007000e
call fcn.140032390
mov qword [rsp + 0x130], rax
mov r8d, dword [rsp + 0x128]
xor edx, edx
mov rcx, rax
call fcn.140034b00
nop
mov rcx, rdi
call fcn.140037f9c
mov rdx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x130]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor r9d, r9d
lea r8, [rsp + 0x128]
lea rdx, str.2.5.29.37
lea rcx, [rsp + 0x1d8]
call fcn.140022b70
nop
lea rdx, [rsp + 0x1d8]
lea rcx, [rsp + 0xe8]
call fcn.140023d78
mov dword [rsp + 0x138], ebx
xor eax, eax
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x1a0], ebx
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1b0], rax
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0xa8], eax
mov qword [rsp + 0x170], r12
mov r13d, 4
mov dword [rsp + 0x178], r13d
mov ecx, r13d
call fcn.1400331f0
mov rdi, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140025256
mov ecx, 0x8007000e
call fcn.140032390
mov qword [rsp + 0x180], rdi
mov r8, r13
xor edx, edx
mov rcx, rdi
call fcn.140034b00
nop
mov r8, r13
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.1400346b0
mov dword [rsp + 0x1a0], r15d
movups xmm0, xmmword [rsp + 0x178]
movdqu xmmword [rsp + 0x1a8], xmm0
mov dword [rsp + 0x138], esi
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x138]
lea rdi, str.2.5.29.17
mov rdx, rdi
mov r13d, 0x10001
mov ecx, r13d
call qword [sym.imp.CRYPT32.dll_CryptEncodeObjectEx]
mov qword [rsp + 0xd0], r12
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0xd8], eax
mov ecx, eax
call fcn.1400331f0
test rax, rax
jne 0x140025314
mov ecx, 0x8007000e
call fcn.140032390
mov qword [rsp + 0xe0], rax
mov r8d, dword [rsp + 0xd8]
xor edx, edx
mov rcx, rax
call fcn.140034b00
nop
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x138]
mov rdx, rdi
mov ecx, r13d
call qword [sym.imp.CRYPT32.dll_CryptEncodeObjectEx]
xor r9d, r9d
lea r8, [rsp + 0xd8]
mov rdx, rdi
lea rcx, [rsp + 0x1b8]
call fcn.140022b70
nop
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0xe8]
call fcn.140023d78
lea r15, [rsp + 0xe8]
mov edi, ebx
mov dword [rsp + 0xac], ebx
cmp edi, dword [r15]
jae 0x1400253d2
mov edx, edi
shl rdx, 5
add rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x2a0]
call fcn.140023e00
add edi, esi
mov dword [rsp + 0xac], edi
jmp 0x1400253a7
mov qword [rsp + 0x90], r12
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x98], ebx
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140025408
call fcn.140009660
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x98], ebx
mov r9d, 2
mov r8, rdi
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2a0]
call fcn.14002a14c
lea rax, [0x140051eb4]
mov qword [rsp + 0x20], rax
mov r9d, 0x20000
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xa]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r15, rax
mov qword [rsp + 0xc8], rax
test rax, rax
jne 0x140025499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x1fff0000
test edi, eax
je 0x140025482
cmp eax, 0x80000000
jb 0x14002549e
mov ecx, eax
call fcn.140032390
test eax, eax
je 0x14002549e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
mov edi, 0x1fff0000
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov edx, r13d
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x1400254f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, eax
je 0x1400254e0
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x248]
call fcn.140034b00
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x640]
call fcn.140034b00
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x640]
mov edx, 6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
jne 0x14002554d
call fcn.140007048
jmp 0x14002554f
mov eax, ebx
test eax, eax
jns 0x14002555a
mov ecx, eax
call fcn.140032390
lea rcx, [rsp + 0x640]
call fcn.14003b600
mov r12, rax
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, [rsp + 0x640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, eax
test eax, eax
jne 0x1400255c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, eax
je 0x1400255af
cmp eax, 0x80000000
jb 0x1400255c6
mov ecx, eax
call fcn.140032390
test eax, eax
je 0x1400255c6
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
lea eax, [r13 + 1]
movsxd rcx, eax
lea rax, vtable._mem_alloc_t_wchar_t__class__heap_allocator_.0
mov qword [rsp + 0x160], rax
mov rsi, rbx
mov qword [rsp + 0x168], rbx
test rcx, rcx
je 0x140025627
lea r12, [rcx + rcx]
mov rcx, r12
call fcn.1400331f0
mov rsi, rax
test rax, rax
jne 0x14002560a
mov ecx, 0x8007000e
call fcn.140032390
mov qword [rsp + 0x168], rax
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140034b00
mov r12, qword [rsp + 0xb8]
lea rax, vtable._auto_heap_mem_wchar_t_.0
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rsi
mov r9d, r12d
lea r8, [rsp + 0x640]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x248], rsi
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x640]
mov edx, 4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
jne 0x140025694
call fcn.140007048
jmp 0x140025696
mov eax, ebx
test eax, eax
jns 0x1400256a1
mov ecx, eax
call fcn.140032390
lea rcx, [rsp + 0x640]
call fcn.14003b600
mov r12, rax
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, [rsp + 0x640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, eax
test eax, eax
jne 0x14002570d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, eax
je 0x1400256f6
cmp eax, 0x80000000
jb 0x14002570d
mov ecx, eax
call fcn.140032390
test eax, eax
je 0x14002570d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
lea eax, [r13 + 1]
movsxd rcx, eax
lea rax, vtable._mem_alloc_t_wchar_t__class__heap_allocator_.0
mov qword [rsp + 0x150], rax
mov rsi, rbx
mov qword [rsp + 0x158], rbx
test rcx, rcx
je 0x14002576e
lea r12, [rcx + rcx]
mov rcx, r12
call fcn.1400331f0
mov rsi, rax
test rax, rax
jne 0x140025751
mov ecx, 0x8007000e
call fcn.140032390
mov qword [rsp + 0x158], rax
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140034b00
mov r12, qword [rsp + 0xb8]
lea rax, vtable._auto_heap_mem_wchar_t_.0
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rsi
mov r9d, r12d
lea r8, [rsp + 0x640]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x250], rsi
mov dword [rsp + 0x74], ebx
mov dword [rsp + 0xb0], 4
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x74]
mov r12d, 0x10
mov edx, r12d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
jne 0x1400257e6
call fcn.140007048
jmp 0x1400257e8
mov eax, ebx
test eax, eax
jns 0x1400257f3
mov ecx, eax
call fcn.140032390
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x258], eax
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x78]
mov edx, 0x1b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
jne 0x140025833
call fcn.140007048
jmp 0x140025835
mov eax, ebx
test eax, eax
jns 0x140025840
mov ecx, eax
call fcn.140032390
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x25c], eax
mov dword [rsp + 0x260], ebx
mov qword [rsp + 0x268], rbx
mov eax, 2
mov dword [rsp + 0x270], eax
lea r9, [rsp + 0x248]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x1400258aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, eax
je 0x140025896
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
nop
lea rcx, [rsp + 0x150]
call fcn.140015058
nop
lea rcx, [rsp + 0x160]
call fcn.140015058
nop
lea rsi, vtable.CCryptBlob_struct__CRYPTOAPI_BLOB__class__heap_allocator_.0
mov qword [rsp + 0x90], rsi
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400258e7
call fcn.140009660
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x98], ebx
mov edi, 1
mov edx, edi
mov rcx, qword [rsp + 0x1b8]
call fcn.1400331f8
mov qword [rsp + 0x1b8], rbx
mov dword [rsp + 0x1c0], ebx
mov rcx, qword [rsp + 0x1d0]
test rcx, rcx
je 0x14002592b
call fcn.140009660
mov qword [rsp + 0x1d0], rbx
mov dword [rsp + 0x1c8], ebx
mov qword [rsp + 0xd0], rsi
mov rcx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140025954
call fcn.140009660
mov qword [rsp + 0xe0], rbx
mov dword [rsp + 0xd8], ebx
mov qword [rsp + 0x170], rsi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002597d
call fcn.140009660
mov qword [rsp + 0x180], rbx
mov dword [rsp + 0x178], ebx
mov rdx, rdi
mov rcx, qword [rsp + 0x1d8]
call fcn.1400331f8
mov qword [rsp + 0x1d8], rbx
mov dword [rsp + 0x1e0], ebx
mov rcx, qword [rsp + 0x1f0]
test rcx, rcx
je 0x1400259bd
call fcn.140009660
mov qword [rsp + 0x1f0], rbx
mov dword [rsp + 0x1e8], ebx
mov qword [rsp + 0x120], rsi
mov rcx, qword [rsp + 0x130]
test rcx, rcx
je 0x1400259e6
call fcn.140009660
mov qword [rsp + 0x130], rbx
mov dword [rsp + 0x128], ebx
mov rdx, rdi
mov rcx, qword [rsp + 0x1f8]
call fcn.1400331f8
mov qword [rsp + 0x1f8], rbx
mov dword [rsp + 0x200], ebx
mov rcx, qword [rsp + 0x210]
test rcx, rcx
je 0x140025a26
call fcn.140009660
mov qword [rsp + 0x210], rbx
mov dword [rsp + 0x208], ebx
lea rcx, [rsp + 0xe8]
call fcn.1400241f8
nop
mov rcx, qword [rsp + 0x188]
call fcn.1400331f8
mov qword [rsp + 0x188], rbx
mov rcx, qword [rsp + 0x198]
test rcx, rcx
je 0x140025a6a
call fcn.140009660
mov qword [rsp + 0x198], rbx
mov dword [rsp + 0x190], ebx
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x398]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rdi
mov rcx, qword [rsp + 0x398]
call fcn.140011434
mov qword [rsp + 0x398], rbx
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x370]
call fcn.140011b58
nop
mov r8, r12
mov rdx, rdi
mov rcx, qword [rsp + 0x370]
call fcn.140011434
mov qword [rsp + 0x370], rbx
lea rcx, [rsp + 0x2a0]
call fcn.140024284
nop
lea rcx, [rsp + 0x5c0]
call fcn.14000501c
nop
lea rcx, [rsp + 0x540]
call fcn.14000501c
nop
lea rcx, [rsp + 0x218]
call fcn.140004880
nop
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1400331f8
mov rcx, qword [rsp + 0x100]
call fcn.140037ab4
mov rcx, qword [rsp + 0x108]
call fcn.140037ab4
mov rcx, qword [rsp + 0x110]
call fcn.140037ab4
mov rcx, qword [rsp + 0x118]
call fcn.140037ab4
nop
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140025b6e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0xc0], rbx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140025b90
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x140025b8b
call fcn.140007048
jmp 0x140025b90
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140025bb2
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x140025bad
call fcn.140007048
jmp 0x140025bb2
mov qword [rsp + 0x68], rbx
jmp 0x140025bc3
mov r8d, r14d
lea rdx, [0x14004ee5e]
lea rcx, [rsp + 0x4d0]
call fcn.140030b9c
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140025bf5
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov qword [rsp + 0x88], rbx
test r15, r15
je 0x140025c06
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop
lea rcx, [rsp + 0x4d0]
call fcn.14002e7a8
mov eax, r14d
mov rcx, qword [rsp + 0x750]
xor rcx, rsp
call fcn.140033cb0
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret