Function at 0x140018200
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor edi, edi
mov qword [rsp + 0x60], rdi
lea ecx, [rdi + 0x28]
call fcn.1400253fc
mov rsi, rax
mov qword [rsp + 0x50], rax
lea r14, [rax + 0x28]
mov qword [rsp + 0x60], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x20], 0xf0000040
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, eax
test eax, eax
je 0x140018294
mov r8, rsi
lea edx, [rdi + 0x28]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400182a9
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x14001844b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov r15, r14
sub r15, rsi
je 0x140018303
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x140018498
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.140009ab0
mov r8, r15
mov rdx, rsi
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400470c0
lea rax, [r15 + rbx]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x140062e50]
call fcn.140014ae0
mov rbx, qword [rsp + 0x38]
test eax, eax
je 0x140018411
mov r15, qword [rsp + 0x40]
mov rax, r15
sub rax, rbx
cmp rax, 0x100
jne 0x140018411
lea rcx, [0x14006a4d8]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [0x14006a530]
test rcx, rcx
je 0x140018384
mov rdx, qword [0x14006a540]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001837f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001849e
mov rcx, r8
call fcn.1400253f4
mov qword [0x14006a530], rsi
mov qword [0x14006a538], r14
mov qword [0x14006a540], r14
mov rsi, rdi
mov r14, rdi
mov rcx, qword [0x14006a548]
test rcx, rcx
je 0x1400183df
mov rdx, qword [0x14006a558]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400183da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001849e
mov rcx, r8
call fcn.1400253f4
mov qword [0x14006a548], rbx
mov qword [0x14006a550], r15
mov rax, qword [rsp + 0x48]
mov qword [0x14006a558], rax
mov rbx, rdi
inc qword [0x14006a4d0]
lea rcx, [0x14006a4d8]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x140018416
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x14001844b
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001843f
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184a4
mov rdx, rdi
mov rcx, rbx
call fcn.1400253f4
nop
test rsi, rsi
je 0x140018480
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x140018474
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184aa
mov rdx, r14
mov rcx, rsi
call fcn.1400253f4
nop
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140006350
nop
call fcn.140036744
nop
call fcn.140036744
nop
call fcn.140036744
int3