Function at 0x100098dac
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x240
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r14, r8
mov r13, rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x2c0]
cmp rcx, rbx
je 0x100098dfa
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp r13, rbx
je 0x100098e7c
mov eax, 0x7fffffff
mov rcx, rax
mov qword [rsp + 0x50], rax
mov rdx, r13
mov qword [rsp + 0x60], rdx
mov r8d, ebx
cmp rcx, rbx
je 0x100098e34
cmp word [rdx], bx
je 0x100098e3a
add rdx, 2
mov qword [rsp + 0x60], rdx
dec rcx
mov qword [rsp + 0x50], rcx
jmp 0x100098e17
mov r8d, 0x80070057
cmp r8d, ebx
jge 0x100098e81
mov dword [rsp + 0x20], 0x80070057
lea r9, [0x100020fe0]
mov r8d, 0x17e
lea rdx, [0x100021080]
lea rcx, [rsp + 0x1d8]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x1d8]
call sub.msvcrt.dll__CxxThrowException
mov eax, 0x7fffffff
cmp r14, rbx
je 0x100098ef8
mov qword [rsp + 0x68], rax
mov rcx, r14
mov qword [rsp + 0x58], rcx
mov edx, ebx
cmp rax, rbx
je 0x100098eb2
cmp word [rcx], bx
je 0x100098eb7
add rcx, 2
mov qword [rsp + 0x58], rcx
dec rax
mov qword [rsp + 0x68], rax
jmp 0x100098e95
mov edx, 0x80070057
cmp edx, ebx
jge 0x100098ef8
mov dword [rsp + 0x20], 0x80070057
lea r9, [0x100021110]
mov r8d, 0x17f
lea rdx, [0x100021080]
lea rcx, [rsp + 0x118]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x118]
call sub.msvcrt.dll__CxxThrowException
cmp qword [rsp + 0x298], rbx
jne 0x100098f3f
mov dword [rsp + 0x20], 0x80070057
lea r9, [0x100021720]
mov r8d, 0x181
lea rdx, [0x100021080]
lea rcx, [rsp + 0xb8]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0xb8]
call sub.msvcrt.dll__CxxThrowException
mov esi, dword [rsp + 0x2a8]
mov ecx, esi
and ecx, 0xfffffff7
xor edx, edx
call fcn.100099820
xor edx, edx
mov r15d, dword [rsp + 0x2b0]
mov ecx, r15d
call fcn.100099890
mov qword [rsp + 0x30], rbx
mov r12d, ebx
mov dword [rsp + 0x3c], ebx
mov edi, ebx
mov dword [rsp + 0x38], ebx
cmp rbx, rbx
jne 0x1000990f2
mov eax, esi
or eax, 0x40
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x278]
mov r8, r13
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x100099055
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edi, eax
mov dword [rsp + 0x38], eax
cmp byte [rsp + 0x2b8], bl
je 0x100099055
mov eax, esi
or eax, 8
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x278]
mov r8, r13
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov r12d, eax
mov dword [rsp + 0x3c], eax
cmp eax, ebx
jne 0x100099174
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
cmp eax, 0x800704c7
je 0x10009901a
cmp eax, 0x4c7
je 0x10009901a
cmp eax, 0x8010006e
jne 0x10009901c
mov edi, eax
mov dword [rsp + 0x20], edi
lea r9, [0x100021730]
mov r8d, 0x1a4
lea rdx, [0x100021080]
lea rcx, [rsp + 0x178]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x178]
call sub.msvcrt.dll__CxxThrowException
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10009906c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x278]
mov r8, r13
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x100099174
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
cmp eax, 0x800704c7
je 0x1000990b7
cmp eax, 0x4c7
je 0x1000990b7
cmp eax, 0x8010006e
jne 0x1000990b9
mov edi, eax
mov dword [rsp + 0x20], edi
lea r9, [0x100021758]
mov r8d, 0x1b8
lea rdx, [0x100021080]
lea rcx, [rsp + 0xe8]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0xe8]
call sub.msvcrt.dll__CxxThrowException
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_113]
mov rdi, rax
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
cmp eax, ebx
jne 0x100099167
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x100099129
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x10009912e
mov ecx, 0x80004005
mov dword [rsp + 0x20], ecx
lea r9, [0x100021770]
mov r8d, 0x1bf
lea rdx, [0x100021080]
lea rcx, [rsp + 0x148]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x148]
call sub.msvcrt.dll__CxxThrowException
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.100099790
mov qword [rsp + 0x48], rbx
cmp rbx, rbx
je 0x100099189
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
jmp 0x10009918c
mov rax, rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
mov r8d, dword [rsp + 0x2a0]
mov rdx, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp eax, ebx
jne 0x10009922d
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edi, eax
mov dword [rsp + 0x38], eax
cmp r12d, ebx
je 0x1000991f4
or esi, 0x10
mov dword [rsp + 0x20], esi
mov r9d, dword [rsp + 0x278]
mov r8, r13
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [rsp + 0x20], edi
lea r9, [0x100021758]
mov r8d, 0x1d8
lea rdx, [0x100021080]
lea rcx, [rsp + 0x1a8]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x1a8]
call sub.msvcrt.dll__CxxThrowException
mov ecx, 0x38
call fcn.1000ef43c
mov qword [rsp + 0x70], rax
cmp rax, rbx
je 0x100099267
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9d, dword [rsp + 0x288]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.1000a0950
jmp 0x10009926a
mov rax, rbx
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x1000992b1
mov dword [rsp + 0x20], 0x8007000e
lea r9, [0x10001fb68]
mov r8d, 0x1dd
lea rdx, [0x100021080]
lea rcx, [rsp + 0x208]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x208]
call sub.msvcrt.dll__CxxThrowException
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x1000992cd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x40]
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret