Function at 0x140017d40
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.140024d1c
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 0x140017dd4
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 0x140017de9
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x140017f8b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov r15, r14
sub r15, rsi
je 0x140017e43
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x140017fd8
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.140009770
mov r8, r15
mov rdx, rsi
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140026bf0
lea rax, [r15 + rbx]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x140061da8]
call fcn.1400148a0
mov rbx, qword [rsp + 0x38]
test eax, eax
je 0x140017f51
mov r15, qword [rsp + 0x40]
mov rax, r15
sub rax, rbx
cmp rax, 0x100
jne 0x140017f51
lea rcx, [0x140069558]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [0x1400695b0]
test rcx, rcx
je 0x140017ec4
mov rdx, qword [0x1400695c0]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140017ebf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017fde
mov rcx, r8
call fcn.140024d14
mov qword [0x1400695b0], rsi
mov qword [0x1400695b8], r14
mov qword [0x1400695c0], r14
mov rsi, rdi
mov r14, rdi
mov rcx, qword [0x1400695c8]
test rcx, rcx
je 0x140017f1f
mov rdx, qword [0x1400695d8]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140017f1a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017fde
mov rcx, r8
call fcn.140024d14
mov qword [0x1400695c8], rbx
mov qword [0x1400695d0], r15
mov rax, qword [rsp + 0x48]
mov qword [0x1400695d8], rax
mov rbx, rdi
inc qword [0x140069550]
lea rcx, [0x140069558]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x140017f56
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x140017f8b
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140017f7f
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017fe4
mov rdx, rdi
mov rcx, rbx
call fcn.140024d14
nop
test rsi, rsi
je 0x140017fc0
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x140017fb4
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017fea
mov rdx, r14
mov rcx, rsi
call fcn.140024d14
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.140006060
nop
call fcn.140035a34
nop
call fcn.140035a34
nop
call fcn.140035a34
int3