Function at 0x18000bf00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa0
mov rbx, r9
mov esi, edx
mov r14, rcx
xor r13d, r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], r13b
mov qword [rbp - 9], r13
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], r13b
lea ecx, [rdx + 0x276]
mov dword [rbp - 0x59], ecx
cmp edx, ecx
jae 0x18000c43d
lea r12, [0x180000000]
mov rcx, qword [rbp + 0x77]
mov r15d, dword [rbp + 0x5f]
mov eax, dword [rbp - 0x59]
nop dword [rax + rax]
cmp esi, 0xff
ja 0x18000c3c7
je 0x18000c39e
mov eax, esi
sub eax, 0x4b
je 0x18000c376
sub eax, 0x5a
je 0x18000bfc2
cmp eax, 0x51
jne 0x18000c42c
xor edx, edx
lea ecx, [rax + 0x3c]
call fcn.180027930
mov rcx, qword [rbp + 0x77]
mov r8, qword [rbp + 0x67]
jmp 0x18000c42c
mov rax, qword [rbp + 0x7f]
mov eax, dword [rax]
mov dword [rbp - 0x51], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x51]
mov ecx, 0xcf
call fcn.180026e70
mov rdx, qword [rbx + 0x10]
cmp qword [r14 + 0x10], rdx
cmovae rdx, qword [r14 + 0x10]
mov qword [rbp - 0x41], rdx
mov rdi, r13
mov rbx, r13
mov r10d, 0xb9
mov dword [rbp - 0x49], r10d
mov r9d, 0xb
mov dword [rbp - 0x51], r9d
cmp r9d, 0x2f
ja case.0x18000c034.7
mov eax, r9d
movzx eax, byte [r12 + rax + 0xc510]
mov ecx, dword [r12 + rax*4 + 0xc4e8]
add rcx, r12
jmp rcx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0xab
call fcn.180026a00
test al, al
je case.0x18000c034.5
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
lea rdx, [0x18007d6e0]
call qword [0x18007d6d0]
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
jmp case.0x18000c034.7
lea rcx, [rbp - 0x19]
call fcn.180039f10
lea rdi, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rdi, qword [rbp - 0x39]
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
jmp case.0x18000c034.7
xor r12b, r12b
test rdx, rdx
je 0x18000c1f1
mov r13, rdx
mov esi, 0xb3
nop dword [rax + rax]
cmp esi, 0xb3
je 0x18000c1b8
cmp esi, 0x134
je 0x18000c171
cmp esi, 0x1b5
je 0x18000c157
cmp esi, 0x236
je 0x18000c129
cmp esi, 0x2b7
jne 0x18000c1c9
lea rcx, [rbp - 0x39]
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
cmovae rcx, r8
inc rdi
add rcx, qword [rbp - 0x29]
cmp rdi, rcx
jne 0x18000c1c9
lea rdi, [rbp - 0x39]
cmp rdx, 0x10
cmovae rdi, r8
jmp 0x18000c1c9
mov rcx, r14
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x18000c139
mov rcx, qword [r14]
inc rbx
add rcx, qword [r14 + 0x10]
cmp rbx, rcx
jne 0x18000c1c9
mov rbx, r14
cmp rdx, 0x10
jb 0x18000c1c9
mov rbx, qword [r14]
jmp 0x18000c1c9
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
mov rax, qword [rbp - 9]
movzx r12d, byte [rax + rcx - 1]
jmp 0x18000c1c9
movzx r9d, r15b
and r9b, 0xf
mov rcx, qword [rbp - 9]
mov rdx, qword [rbp - 1]
cmp rcx, rdx
jae 0x18000c1a6
lea rax, [rcx + 1]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x19]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x19]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000c1c9
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x19]
call fcn.1800025d0
jmp 0x18000c1c9
movsx r15d, byte [rbx]
movsx eax, byte [rdi]
add r15d, eax
movzx eax, r12b
add r15d, eax
add esi, 0x81
cmp esi, 0x338
jb 0x18000c0c0
sub r13, 1
jne 0x18000c0b3
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
lea r12, [0x180000000]
inc r10d
mov dword [rbp - 0x49], r10d
inc r9d
mov dword [rbp - 0x51], r9d
cmp r10d, 0xc4
jb 0x18000c013
mov esi, dword [rbp + 0x5f]
mov rbx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x77]
mov r8, qword [rbp + 0x67]
jmp 0x18000c42c
mov edx, dword [rbp - 0x39]
cmp edx, 9
jbe 0x18000c2a2
nop
mov eax, 0xcccccccd
mul edx
shr edx, 3
movzx eax, dl
shl al, 2
add dl, al
add dl, dl
movzx r9d, byte [rbp - 0x39]
sub r9b, dl
mov rcx, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x18]
cmp rcx, rdx
jae 0x18000c278
lea rax, [rcx + 1]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp rdx, 0x10
jb 0x18000c26d
mov rax, qword [r14]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x18000c287
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call fcn.1800025d0
mov eax, 0xcccccccd
mul dword [rbp - 0x39]
shr edx, 3
mov dword [rbp - 0x39], edx
cmp edx, 9
ja 0x18000c230
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rcx, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x18]
cmp rcx, rdx
jae 0x18000c2da
lea rax, [rcx + 1]
mov qword [r14 + 0x10], rax
mov r8, r14
cmp rdx, 0x10
jb 0x18000c2c3
mov r8, qword [r14]
movzx eax, byte [rbp - 0x39]
mov byte [r8 + rcx], al
mov byte [r8 + rcx + 1], 0
mov rdx, qword [rbp - 0x41]
jmp case.0x18000c034.7
movzx r9d, byte [rbp - 0x39]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call fcn.1800025d0
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
jmp case.0x18000c034.7
mov rcx, qword [0x18007de00]
test rcx, rcx
je case.0x18000c034.7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [0x18007de00], r13
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
jmp case.0x18000c034.7
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [0x18007de00]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov r9d, dword [rbp - 0x51]
mov r10d, dword [rbp - 0x49]
mov rdx, qword [rbp - 0x41]
jmp case.0x18000c034.7
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb case.0x18000c034.7
mov rbx, qword [r14]
jmp case.0x18000c034.7
mov rax, qword [rbp + 0x7f]
cmp dword [rax], 0
je 0x18000c43d
cmp qword [rbx + 0x10], 0
je 0x18000c43d
cmp qword [r14 + 0x10], 0
je 0x18000c43d
jmp 0x18000c42c
cmp rcx, rbx
je 0x18000c42f
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18000c3b4
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.180031070
mov rcx, qword [rbp + 0x77]
mov r8, qword [rbp + 0x67]
jmp 0x18000c42c
mov eax, esi
sub eax, 0x150
je 0x18000c41d
sub eax, 9
je 0x18000c3f7
cmp eax, 0x51
jne 0x18000c42c
lea edx, [rax - 0x49]
mov rcx, qword [rbp + 7]
call fcn.180040b40
mov qword [0x18007d6b0], r13
mov rcx, qword [rbp + 0x77]
mov r8, qword [rbp + 0x67]
jmp 0x18000c42c
mov rax, qword [r8]
mov qword [rbp - 0x41], rax
lea r9, [rbp - 0x41]
lea r8, [rbp - 0x19]
mov rdx, rcx
mov ecx, 0x10f
call fcn.18000c540
mov rcx, qword [rbp + 0x77]
mov r8, qword [rbp + 0x67]
jmp 0x18000c42c
mov rax, qword [0x18007d6b0]
mov rax, qword [rax + 0x48]
mov qword [rbp + 7], rax
mov eax, dword [rbp - 0x59]
add esi, 0x5a
mov dword [rbp + 0x5f], esi
cmp esi, eax
jb 0x18000bf80
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18000c474
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c46f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c4df
call fcn.180040b40
mov qword [rbp - 9], r13
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000c4be
inc rdx
mov r8, qword [rbp - 0x39]
mov rax, r8
cmp rdx, 0x1000
jb 0x18000c4b6
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
sar al, 0x48
cmp eax, 0x1f
ja 0x18000c4d9
mov rcx, r8
call fcn.180040b40
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180046e04
nop
call fcn.180046e04
nop
nop dword [rax]
inc edx
add byte [rax], al
jl 0x18000c4ae
add byte [rax], al
invalid