Function at 0x140086d0c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2d8]
sub rsp, 0x3a0
xor r15d, r15d
mov r14, r8
mov rbx, rdx
mov dword [rbp + 0x2e8], r15d
mov rdi, rcx
mov qword [rbp + 0x78], r15
mov r8d, reloc.WLDAP32.dll_Ordinal_224
mov qword [rbp + 0x88], r15
lea eax, [r15 + 1]
mov qword [rbp + 0x98], r15
mov dword [rbp + 0x70], eax
lea rcx, [rbp + 0x1c0]
mov dword [rbp + 0x80], eax
mov r12d, r15d
mov dword [rbp + 0x90], eax
mov dword [rbp + 0xa0], eax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x48], rax
mov eax, dword [rdx + 0x48]
xor edx, edx
mov qword [rbp + 0xa8], r15
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x5c], r15
call fcn.1400e8100
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, reloc.WLDAP32.dll_Ordinal_208
mov r13d, r15d
call fcn.1400e8100
cmp qword [rbx + 0x40], r15
lea rax, [rbp + 0x1c0]
mov rsi, qword [rbx + 0x10]
mov qword [rbp + 0x48], rax
lea rax, str.1.2.840.113549.1.1.5
cmovne rax, qword [rbx + 0x40]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x80], 2
mov dword [rbp + 0x40], 3
test rsi, rsi
je 0x140086e3f
lea rax, str.2.5.4.3
mov dword [rbp + reloc.WLDAP32.dll_Ordinal_128], 0xc
mov rcx, rsi
mov qword [rbp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x40]
lea rdx, [rbp + 0xc0]
add eax, eax
mov qword [rbp + 0xd8], rsi
mov dword [rbp + 0xd0], eax
mov eax, ecx
add rax, rax
inc ecx
mov dword [rsp + 0x40], ecx
mov qword [rbp + rax*8 + 0x78], rdx
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x140086e93
lea rax, str.2.5.4.11
mov dword [rbp + 0xe8], reloc.WLDAP32.dll_Ordinal_12
mov rcx, rsi
mov qword [rbp + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x40]
lea rdx, [rbp + 0xe0]
add eax, eax
mov qword [rbp + 0xf8], rsi
mov dword [rbp + 0xf0], eax
mov eax, ecx
add rax, rax
inc ecx
mov dword [rsp + 0x40], ecx
mov qword [rbp + rax*8 + 0x78], rdx
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x140086ee7
lea rax, str.2.5.4.10
mov dword [rbp + 0x108], reloc.WLDAP32.dll_Ordinal_12
mov rcx, rsi
mov qword [rbp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x40]
lea rdx, [rbp + 0x100]
add eax, eax
mov qword [rbp + 0x118], rsi
mov dword [rbp + 0x110], eax
mov eax, ecx
add rax, rax
inc ecx
mov dword [rsp + 0x40], ecx
mov qword [rbp + rax*8 + 0x78], rdx
mov rsi, qword [rbx + 0x28]
test rsi, rsi
je 0x140086f3b
lea rax, str.2.5.4.6
mov dword [rbp + 0x128], reloc.WLDAP32.dll_Ordinal_12
mov rcx, rsi
mov qword [rbp + 0x120], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x40]
lea rdx, [rbp + 0x120]
add eax, eax
mov qword [rbp + 0x138], rsi
mov dword [rbp + reloc.WLDAP32.dll_Ordinal_304], eax
mov eax, ecx
add rax, rax
inc ecx
mov dword [rsp + 0x40], ecx
mov qword [rbp + rax*8 + 0x78], rdx
mov r9, r14
lea rdx, [rbp - 0x38]
mov r8, rbx
lea rcx, [rbp - 0x40]
call fcn.140086ad8
lea r8, [rbp - 0x30]
mov ecx, 7
lea rdx, [rsp + 0x40]
call fcn.1400864c8
test eax, eax
je 0x1400875ba
lea rcx, [rbp - 0x30]
call fcn.140086a54
mov rsi, rax
test rax, rax
je 0x140086f92
mov rdx, rax
lea rcx, str._s.cert__subject___:__s_n
call fcn.14000b9e4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbx + 0x30]
mov eax, SQLAllocHandle
mov r14d, 0x80000000
test rcx, rcx
je 0x140086fde
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x70]
call fcn.140012088
test eax, eax
jne 0x140087017
lea rcx, str.BigBad_:_makeSN___ERROR
call fcn.14000b9e4
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400875c6
mov rdx, rax
mov dword [rbp - 0x78], eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140086fc3
mov edx, dword [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
not eax
test r14d, eax
jne 0x140087017
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086fc3
lea rcx, str._s.cert__serial____:
call fcn.14000b9e4
mov edx, dword [rbp - 0x78]
xor r8d, r8d
mov rcx, qword [rbp - 0x70]
call fcn.140012120
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b9e4
movzx eax, word [rbx + 0x38]
lea rcx, str.2.5.29.15
mov r8, qword [rbp + 0x48]
lea rdx, [rbp + 0x50]
mov word [rbp + 0x2f8], ax
mov esi, 1
lea rax, [rbp + 0x2f8]
mov dword [rbp + 0x50], 2
mov qword [rbp + 0x58], rax
mov qword [r8], rcx
mov dword [r8 + 8], esi
add r8, 0x10
mov dword [rbp + 0x60], 5
call fcn.1400864c8
test eax, eax
je 0x14008759f
mov r8, qword [rbp + 0x48]
lea rcx, str.2.5.29.19
lea rdx, [rsp + 0x58]
mov qword [r8 + 0x20], rcx
mov eax, dword [rsp + 0x58]
mov dword [r8 + 0x28], eax
add r8, 0x30
call fcn.1400864c8
test eax, eax
je 0x140087583
mov rdx, qword [rbx + 0x50]
test rdx, rdx
je 0x1400870e9
mov ecx, dword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
movups xmm0, xmmword [rdx]
shl rcx, 5
movups xmmword [rcx + rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
mov eax, dword [rbp + 0x40]
add eax, esi
mov dword [rbp + 0x40], eax
jmp 0x1400870ec
mov eax, dword [rbp + 0x40]
mov rdx, qword [rbx + 0x58]
test rdx, rdx
je 0x140087117
movups xmm0, xmmword [rdx]
mov ecx, eax
mov rax, qword [rbp + 0x48]
shl rcx, 5
movups xmmword [rcx + rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
mov eax, dword [rbp + 0x40]
add eax, esi
mov dword [rbp + 0x40], eax
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x14008713d
movups xmm0, xmmword [rdx]
mov ecx, eax
mov rax, qword [rbp + 0x48]
shl rcx, 5
movups xmmword [rcx + rax], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
add dword [rbp + 0x40], esi
mov rdx, qword [rbp - 0x68]
lea rcx, str._s.cert__algorithm_:__S
call fcn.14000b9e4
mov rdx, qword [rbp - 0x68]
mov r8d, r14d
mov ecx, esi
call qword [sym.imp.CRYPT32.dll_CryptFindOIDInfo]
test rax, rax
je 0x140087171
mov rdx, qword [rax + 0x10]
lea rcx, [0x140108db8]
call fcn.14000b9e4
lea rcx, str._n_s.cert__validity__:
call fcn.14000b9e4
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x14008719e
lea rcx, [rbp + 0x2f8]
call fcn.1400121e0
lea rcx, [0x140112b80]
call fcn.14000b9e4
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1400871cb
lea rcx, [rbp + 0x2f8]
call fcn.1400121e0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b9e4
lea rsi, [rdi + 8]
mov rdx, qword [rsi]
lea rcx, str._s.key___provider__:__s_n
call fcn.14000b9e4
call fcn.1400122f8
mov qword [rdi], rax
test rax, rax
je 0x140087567
mov rdx, rax
lea rcx, str._s.key___container_:__s_n
call fcn.14000b9e4
mov r8, qword [rsi]
lea r15, [rdi + 0x40]
lea r14, [rdi + 0x10]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [r14]
mov rcx, r15
xor edx, edx
mov rbx, r15
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400872a7
mov rcx, qword [r15]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rbp + 0x2f8], r14
mov qword [rsp + 0x28], rax
lea edx, [r9 + 3]
call fcn.140004df8
test eax, eax
je 0x140087278
mov ecx, dword [rsp + 0x50]
lea rax, [rdi + 0x10]
and ecx, 1
mov qword [rbp + 0x2f8], rax
mov dword [rbp + 0x2e8], ecx
lea rsi, [rdi + 8]
lea rbx, [rdi + 0x40]
jmp 0x14008727b
mov ecx, r12d
test ecx, ecx
je 0x14008729c
and dword [rdi + 0x14], 0xffffffbf
mov edx, ecx
mov rcx, qword [r15]
and dword [rdi + 0x38], 0xfffffffe
mov r8, qword [rdi + 0x30]
call fcn.1400868e0
mov r14, qword [rbp + 0x2f8]
mov rcx, qword [r15]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rdi + 0x14]
mov rcx, r15
mov r9d, dword [r14]
or eax, 8
mov r8, qword [rsi]
mov rdx, qword [rdi]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140087550
mov r14d, dword [rbp + 0x2e8]
mov edx, r14d
mov r8, qword [rdi + 0x30]
mov rcx, qword [rbx]
call fcn.1400868e0
movzx edx, word [rdi + 0x3c]
lea rcx, str._s.key___gen___4hu_:
call fcn.14000b9e4
movzx r8d, word [rdi + 0x3c]
lea r9, [rsp + 0x70]
mov edx, dword [rdi + 0x28]
mov rcx, qword [rbx]
shl r8d, 0x10
or r8d, dword [rdi + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x140087537
lea r15, [0x140112bc8]
mov rcx, r15
call fcn.14000b9e4
mov edx, dword [rdi + 0x28]
mov rcx, qword [rbx]
call fcn.14008683c
mov rsi, rax
test rax, rax
je 0x140087521
movups xmm0, xmmword [rax]
mov rbx, qword [rbp + 0x48]
lea rcx, [rbp + 0x140]
mov dword [rbp + 0xb0], Ordinal_26
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
lea rax, [rbp + 0x50]
mov qword [rbp + 0xb8], rax
movaps xmmword [rbp], xmm0
call qword [sym.imp.advapi32.dll_A_SHAInit]
mov r8d, dword [rsi + 0x18]
lea rcx, [rbp + 0x140]
mov rdx, qword [rsi + 0x20]
call qword [sym.imp.advapi32.dll_A_SHAUpdate]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x140]
call qword [sym.imp.advapi32.dll_A_SHAFinal]
and dword [rbx + 0x48], r12d
lea rcx, str.2.5.29.14
lea r8, [rbx + 0x50]
mov qword [rbx + 0x40], rcx
lea rdx, [rbp + 0xb0]
call fcn.1400864c8
test eax, eax
je 0x140087515
mov eax, dword [rbp + 0x40]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x30], rcx
lea r9, [rbp + 0x310]
mov rcx, qword [rbp + 0x2f0]
lea r8, [rsp + 0x68]
shl rax, 5
add rax, qword [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
call fcn.140086bd4
test eax, eax
je 0x140087444
mov eax, dword [rbp + 0x40]
lea rcx, [rbp - 0x50]
mov r13d, eax
inc eax
shl r13, 5
add r13, qword [rbp + 0x48]
mov dword [rbp + 0x40], eax
call fcn.140086a54
mov rbx, rax
test rax, rax
je 0x14008744d
mov rdx, rax
lea rcx, str.__i.cert__subject__:__s_n
call fcn.14000b9e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008744d
movaps xmm0, xmmword [rbp - 0x30]
movdqu xmmword [rbp - 0x50], xmm0
lea rcx, str._s.cert__signature_:
call fcn.14000b9e4
mov rcx, qword [rsp + 0x68]
mov edx, dword [rbp + 0x310]
test rcx, rcx
jne 0x140087470
mov edx, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x40]
mov rax, qword [rbp + 0x308]
lea r9, [rbp - 0x80]
mov rbx, qword [rbp + 0x300]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14008695c
mov r12d, eax
test eax, eax
je 0x1400874e2
mov rcx, r15
call fcn.14000b9e4
test r14d, r14d
je 0x1400874e2
lea rcx, str._s.key___cert.assoc:
call fcn.14000b9e4
mov r8, qword [rbx]
xor r9d, r9d
mov rcx, qword [rsp + 0x70]
lea edx, [r9 + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov rcx, r15
test eax, eax
jne 0x1400874dd
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
test r13, r13
je 0x1400874f1
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x68]
mov edx, dword [rbp + 0x310]
mov ecx, dword [rsp + 0x54]
call fcn.140086b70
mov rcx, qword [rbp + 0x48]
add rcx, 0x58
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140087521
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea rbx, [rdi + 0x40]
test r12d, r12d
jne 0x140087573
jmp 0x140087543
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x14008755c
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140087573
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rbp + 0x48]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008758f
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rbp + 0x48]
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400875ab
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086fcf
lea rcx, str.BigBad_:_generateCertificate___ERROR
call fcn.14000b9e4
mov rbx, qword [rsp + 0x3e0]
mov eax, r12d
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret