Function at 0x1000982d8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r12, r8
mov r15d, edx
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x2d8]
cmp rcx, rbx
je 0x100098323
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp rsi, rbx
je 0x1000983a5
mov eax, 0x7fffffff
mov rcx, rax
mov qword [rsp + 0x60], rax
mov rdx, rsi
mov qword [rsp + 0x50], rdx
mov r8d, ebx
cmp rcx, rbx
je 0x10009835d
cmp word [rdx], bx
je 0x100098363
add rdx, 2
mov qword [rsp + 0x50], rdx
dec rcx
mov qword [rsp + 0x60], rcx
jmp 0x100098340
mov r8d, 0x80070057
cmp r8d, ebx
jge 0x1000983aa
mov dword [rsp + 0x20], 0x80070057
lea r9, [0x100020fe0]
mov r8d, 0x38
lea rdx, [0x100021080]
lea rcx, [rsp + 0x200]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x200]
call sub.msvcrt.dll__CxxThrowException
mov eax, 0x7fffffff
cmp r12, rbx
je 0x100098421
mov qword [rsp + 0x68], rax
mov rcx, r12
mov qword [rsp + 0x58], rcx
mov edx, ebx
cmp rax, rbx
je 0x1000983db
cmp word [rcx], bx
je 0x1000983e0
add rcx, 2
mov qword [rsp + 0x58], rcx
dec rax
mov qword [rsp + 0x68], rax
jmp 0x1000983be
mov edx, 0x80070057
cmp edx, ebx
jge 0x100098421
mov dword [rsp + 0x20], 0x80070057
lea r9, [0x100021110]
mov r8d, 0x39
lea rdx, [0x100021080]
lea rcx, [rsp + 0x1a0]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x1a0]
call sub.msvcrt.dll__CxxThrowException
mov edi, dword [rsp + 0x2b0]
test edi, 0xffff0000
je 0x10009846d
mov dword [rsp + 0x20], 0x80070057
lea r9, [0x100020690]
mov r8d, 0x3a
lea rdx, [0x100021080]
lea rcx, [rsp + 0x140]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x140]
call sub.msvcrt.dll__CxxThrowException
mov r13d, dword [rsp + 0x2b8]
mov ecx, r13d
and ecx, 0xffffffdf
xor edx, edx
call fcn.100099820
xor edx, edx
mov ecx, dword [rsp + 0x2c0]
call fcn.100099890
mov qword [rsp + 0x30], rbx
mov r14d, r13d
or r14d, 8
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov r8, rsi
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x10009861c
cmp bl, bl
je 0x1000985c5
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x8009000f
jne 0x1000985c5
or r13d, 0x10
mov dword [rsp + 0x20], r13d
mov r9d, r15d
mov r8, rsi
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x10009854d
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x10009850f
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x100098514
mov ecx, 0x80004005
mov dword [rsp + 0x20], ecx
lea r9, [0x100021240]
mov r8d, reloc.WLDAP32.dll_Ordinal_79
lea rdx, [0x100021080]
lea rcx, [rsp + 0xb0]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov r8, rsi
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x10009861c
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x100098587
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x10009858c
mov ecx, 0x80004005
mov dword [rsp + 0x20], ecx
lea r9, [0x100021310]
mov r8d, 0x55
lea rdx, [0x100021080]
lea rcx, [rsp + 0xe0]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll__CxxThrowException
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x1000985de
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x1000985e3
mov ecx, 0x80004005
mov dword [rsp + 0x20], ecx
lea r9, [0x1000211b0]
mov r8d, Ordinal_73
lea rdx, [0x100021080]
lea rcx, [rsp + 0x110]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll__CxxThrowException
cmp byte [rsp + 0x2c8], bl
je 0x10009869f
mov dword [rsp + 0x48], 1
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x29]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
cmp eax, ebx
jne 0x10009869f
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x100098661
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x100098666
mov ecx, 0x80004005
mov dword [rsp + 0x20], ecx
lea r9, [0x1000213e0]
mov r8d, 0x5f
lea rdx, [0x100021080]
lea rcx, [rsp + 0x170]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x170]
call sub.msvcrt.dll__CxxThrowException
mov qword [rsp + 0x40], rbx
shl edi, 0x10
or edi, dword [rsp + 0x2c0]
lea r9, [rsp + 0x40]
mov r8d, edi
mov edi, dword [rsp + 0x2a8]
mov edx, edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
cmp eax, ebx
jne 0x100098725
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x1000986e7
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x1000986ec
mov ecx, 0x80004005
mov dword [rsp + 0x20], ecx
lea r9, [0x100021490]
mov r8d, 0x67
lea rdx, [0x100021080]
lea rcx, [rsp + 0x1d0]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x1d0]
call sub.msvcrt.dll__CxxThrowException
mov ecx, 0x38
call fcn.1000ef43c
mov qword [rsp + 0x48], rax
cmp rax, rbx
je 0x10009875a
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9d, edi
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.1000a0950
jmp 0x10009875d
mov rax, rbx
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x1000987a4
mov dword [rsp + 0x20], 0x8007000e
lea r9, [0x10001fb68]
mov r8d, 0x6b
lea rdx, [0x100021080]
lea rcx, [rsp + 0x230]
call fcn.10003845c
lea rdx, [0x100109b30]
lea rcx, [rsp + 0x230]
call sub.msvcrt.dll__CxxThrowException
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x1000987c0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x38]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret