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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1610]
mov eax, 0x1710
call fcn.1400540e0
sub rsp, rax
mov rax, qword [0x1400a9100]
xor rax, rsp
mov qword [rbp + 0x1608], rax
mov r14, rcx
xor r13d, r13d
mov ecx, 1
call fcn.14001cf40
mov dword [rbp + 0x15f0], 0x390038
mov dword [rbp + 0x15f4], 0x370041
mov dword [rbp + 0x15f8], 0x450032
mov dword [rbp + 0x15fc], 0x300046
mov dword [rbp + 0x1600], 0x31
lea rdx, [rbp + 0x15f0]
lea rcx, [rbp - 0x60]
call fcn.140021830
nop
mov rcx, qword [rbp - 0x60]
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
jne 0x1400173b3
mov ecx, 2
call fcn.14005d2e8
mov rcx, rax
lea rdx, str.Cant_lock_synchronize_n
call fcn.140017270
mov r12d, 1
jmp 0x140017f2c
lea rcx, [rbp - 0x68]
call fcn.140020e10
nop
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x18]
test al, al
je 0x1400173d6
mov r12d, 2
jmp 0x140017f18
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], r13
mov qword [rbp + 0x108], r13
mov qword [rbp + 0x110], r13
mov ecx, 0x10
call fcn.140053270
mov qword [rax + 8], r13
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0xf0]
mov qword [rax], rcx
mov qword [rbp + 0x118], r13
mov qword [rbp + 0x120], r13
mov qword [rbp + 0x128], r13
mov qword [rbp + 0x130], r13
mov qword [rbp + 0x138], r13
mov ecx, 0x10
call fcn.140053270
mov qword [rax + 8], r13
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x118]
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x158], xmm0
movups xmmword [rbp + 0x168], xmm0
movups xmmword [rbp + 0x178], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x148], xmm1
mov dword [rbp + 0x188], 0xffffffff
mov r12d, 2
mov dword [rbp + 0x140], r12d
mov dword [rbp + 0x18c], r13d
lea rcx, [rbp + 0x190]
call fcn.1400309f4
nop
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1e0], xmm0
mov qword [rbp + 0x1f0], r13
mov qword [rbp - 0x18], 0x14
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x1e0]
call fcn.140018bb0
mov byte [rbp + 0x1d8], 1
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_56afa3ecc4b99decf72c845ffdb15239___bool__struct_WalkerItem_const____ptr64_.0
mov qword [rbp + 0xb0], rax
lea rax, [rbp + 0xb0]
mov qword [rbp + 0xe8], rax
mov rbx, qword [rbp + 0x1e8]
cmp rbx, qword [rbp + 0x1f0]
je 0x14001757f
mov qword [rbx + 0x38], r13
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140017575
lea rax, [rbp + 0xb0]
cmp rcx, rax
jne 0x140017567
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 8]
mov qword [rbx + 0x38], rax
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140017575
mov rax, qword [rcx]
lea rdx, [rbp + 0xb0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, r13
mov qword [rbp + 0xe8], rcx
add qword [rbp + 0x1e8], 0x40
jmp 0x14001759c
mov qword [rbx + 0x38], rcx
mov rcx, r13
mov qword [rbp + 0xe8], rcx
add qword [rbp + 0x1e8], 0x40
jmp 0x14001759c
lea r8, [rbp + 0xb0]
mov rdx, rbx
lea rcx, [rbp + 0x1e0]
call fcn.1400196d0
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x1400175b4
mov rax, qword [rcx]
lea rdx, [rbp + 0xb0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov rsi, r13
mov qword [rbp - 0x70], r13
movups xmmword [rbp + 0x200], xmm0
movups xmmword [rbp + 0x210], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x220], xmm1
movups xmmword [rbp + 0x230], xmm1
xor eax, eax
movups xmmword [rbp + 0x240], xmm0
mov qword [rbp + 0x250], rax
mov byte [rbp + 0x258], al
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
imul ecx, ebx
rdtsc
shl rdx, 0x20
or rax, rdx
imul eax, ecx
imul eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], r13d
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140017687
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400176ad
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400176ad
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400176ad
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [rsp + 0x30]
call fcn.1400276e0
mov eax, dword [rsp + 0x30]
mov dword [rbp + 0x25c], eax
lea rcx, [rbp + 0x200]
call fcn.14000c4f0
test al, al
jne 0x1400176fa
mov ecx, r12d
call fcn.14005d2e8
mov rcx, rax
lea rdx, str.Cant_init_crypto_session_n
call fcn.140017270
mov r12d, 1
mov rbx, qword [rbp - 0x78]
mov r14, qword [rbp - 0x80]
jmp 0x140017e7d
mov rcx, qword [0x1400a9d90]
lea r15, [0x1400a9d80]
cmp rcx, 0x40
jb 0x140017732
mov qword [0x1400a9d90], 0x40
mov rax, r15
cmp qword [0x1400a9d98], 0xf
cmova rax, qword [0x1400a9d80]
mov byte [rax + 0x40], 0
jmp 0x140017792
mov edi, 0x40
sub rdi, rcx
mov rdx, qword [0x1400a9d98]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14001777c
mov qword [0x1400a9d90], 0x40
mov rbx, r15
cmp rdx, 0xf
cmova rbx, qword [0x1400a9d80]
add rbx, rcx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.14007ec80
mov byte [rdi + rbx], 0
jmp 0x140017792
mov byte [rsp + 0x20], 0
mov r9, rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.1400023f0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x60]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.140016ba0
mov rbx, qword [rsp + 0x40]
movaps xmm0, xmmword [rbp + 0x200]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [rbp + 0x210]
movups xmmword [rbx + 0x10], xmm1
lea rdx, [rbx + 0xc]
mov dword [rsp + 0x30], r13d
mov r8d, 0x14
lea rcx, [rsp + 0x30]
call fcn.14001d5c0
cmp qword [0x1400a9d98], 0xf
cmova r15, qword [0x1400a9d80]
mov edx, dword [rsp + 0x48]
sub edx, ebx
mov r8, r15
mov rcx, rbx
call fcn.14001c570
nop
test rbx, rbx
je 0x140017843
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001783b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017f96
mov rcx, rbx
call fcn.1400532ac
lea rcx, [rbp + 0x90]
call fcn.14001adf0
nop
lea rcx, [rbp + 0x640]
call fcn.14001fc90
nop
lea rdx, [rbp + 0x640]
lea rcx, [rbp + 0x3a0]
call fcn.140011290
nop
cmp dword [rbp + 0x590], 0
jne 0x140017926
mov byte [rbp + 0x598], 1
mov rdx, r12
lea rcx, [rbp + 0x260]
call fcn.14001f1b0
nop
lea rax, [rbp + 0x260]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x48], rax
mov ecx, 0x10
call fcn.140053270
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x140016a00]
xor edx, edx
xor ecx, ecx
call fcn.140062aec
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140017fa8
cmp dword [rbp + 0x590], 0
jne 0x140017fa2
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0x588], xmm1
lea rcx, [rbp + 0x260]
call fcn.14001f220
nop
lea rcx, [rbp + 0x2b0]
call fcn.140005dc0
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_3edd0cabd3fe21553d0e373a492b6efc___void___.0
mov qword [rbp - 0x58], rax
lea rax, [rbp + 0x3a0]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x640]
call fcn.14001fea0
lea rcx, [rbp + 0x70]
call fcn.1400014e0
nop
mov rax, qword [r14 + 0x18]
cmp qword [r14 + 0x10], rax
jne 0x1400179a1
call fcn.140021220
lea rcx, [rsp + 0x40]
call fcn.140021060
nop
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
sub r9, r8
sar r9, 5
mov rdx, qword [r14 + 0x18]
lea rcx, [r14 + 0x10]
call fcn.140019000
nop
lea rcx, [rsp + 0x40]
call fcn.140004360
mov edx, dword [r14 + 8]
lea rcx, [rbp + 0xec0]
call fcn.14000eda0
nop
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_8474572a91047f0564182ca5e361ef14___void__struct_WalkerItem_.0
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rbp + 0x68], rax
lea rdx, [r14 + 0x10]
lea rcx, [rbp - 0x58]
call fcn.140003ea0
nop
lea r8, [rbp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400215f0
nop
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, vtable.std::_Func_impl_no_alloc_class__lambda_72d1e3d479cf596c201a62475718359b___enum_WalkerFilter__struct_WalkerItem_const____ptr64_.0
mov qword [rbp - 0x10], rdx
lea rdx, [rbp + 0xec0]
mov qword [rbp - 8], rdx
lea rdx, [rbp - 0x10]
mov qword [rbp + 0x28], rdx
lea rdx, [rbp - 0x10]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, vtable.std::_Func_impl_no_alloc_class__lambda_9552c67f3c339e524127f6b53b455477___enum_WalkerFilter__struct_WalkerItem_const____ptr64_.0
mov qword [rbp - 0x10], rdx
lea rdx, [rbp + 0x70]
mov qword [rbp - 8], rdx
lea rdx, [rbp - 0x10]
mov qword [rbp + 0x28], rdx
lea rdx, [rbp - 0x10]
call qword [rax + 0x20]
movsxd rax, dword [r14]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140017a82
movabs rcx, 0xfffffffffffffff
cmp rax, rcx
ja 0x140017f9c
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140018a30
mov rsi, qword [rbp - 0x70]
mov eax, dword [r14]
inc eax
movsxd rdx, eax
lea rcx, [rbp + 0x300]
call fcn.14001f1b0
nop
mov edi, r13d
mov rbx, qword [rbp - 0x78]
cmp dword [r14], r13d
jle 0x140017b67
nop word [rax + rax]
lea rax, [rbp + 0x300]
mov qword [rbp - 0x58], rax
lea rax, [rbp + 0x200]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0xf0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], r14
lea rax, [rbp + 0x640]
mov qword [rbp - 0x38], rax
cmp rbx, rsi
je 0x140017b44
mov ecx, 0x28
call fcn.140053270
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp - 0x48]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rbp - 0x38]
movsd qword [rax + 0x20], xmm0
mov qword [rsp + 0x40], rax
lea r15, [rbx + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x140019be0]
xor edx, edx
xor ecx, ecx
call fcn.140062aec
mov qword [rbx], rax
test rax, rax
je 0x140017fb8
add rbx, 0x10
mov qword [rbp - 0x78], rbx
jmp 0x140017b5c
lea r8, [rbp - 0x58]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140019430
mov rsi, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
inc edi
cmp edi, dword [r14]
jl 0x140017ab0
lea rcx, [rbp + 0x300]
call fcn.14001f220
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp + 0x140]
call fcn.1400366e0
test eax, eax
jne 0x140017f78
mov eax, dword [rbp + 0x18c]
cmp eax, 0x7fffffff
je 0x140017f83
cmp qword [rbp + 0x110], 0
jne 0x140017bb7
cmp qword [rbp + 0x138], 0
je 0x140017be3
lea rcx, [rbp + 0x140]
call fcn.1400366e8
mov ecx, 0x32
call fcn.1400213f0
lea rcx, [rbp + 0x140]
call fcn.1400366e0
test eax, eax
jne 0x140017f78
jmp 0x140017b92
lea rcx, [rbp + 0x140]
call fcn.1400366e8
lea rcx, [rbp + 0xf0]
call fcn.140018900
mov r14, qword [rbp - 0x80]
mov rdi, r14
cmp r14, rbx
je 0x140017c53
nop word [rax + rax]
cmp dword [rdi + 8], 0
je 0x140017fd5
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rdi + 8], eax
je 0x140017f78
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140036a94
test eax, eax
jne 0x140017fcc
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
add rdi, 0x10
cmp rdi, rbx
jne 0x140017c10
lea rcx, [rbp + 0x3a0]
call fcn.140013eb0
mov r12d, r13d
lea rcx, [rbp + 0x350]
call fcn.140005dc0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140017c84
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea r9, [fcn.140001be0]
mov edx, 0x20
mov r8d, 6
lea rcx, [rbp + 0x1528]
call fcn.140053400
nop
lea r9, [fcn.140001be0]
mov edx, 0x20
mov r8d, 0x2f
lea rcx, [rbp + 0xf48]
call fcn.140053400
nop
lea rcx, [rbp + 0xf08]
call fcn.14000f370
lea rcx, [rbp + 0xec8]
call fcn.14000f370
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140017d19
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017d14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017fc6
call fcn.1400532ac
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], 0
lea rcx, [rbp + 0x3a0]
call fcn.140013eb0
lea rcx, [rbp + 0x5f8]
call fcn.140005dc0
cmp dword [rbp + 0x590], 0
jne 0x140017fe0
lea rcx, [rbp + 0x3a0]
call fcn.140011980
nop
mov rcx, qword [rbp + 0xea0]
test rcx, rcx
je 0x140017dfe
mov r15, qword [rbp + 0xea8]
cmp rcx, r15
je 0x140017db4
lea rdi, [rcx + 0x38]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140017da0
mov rax, qword [rcx]
mov r8, qword [rax + 0x20]
lea rax, [rdi - 0x38]
cmp rcx, rax
setne dl
call r8
mov qword [rdi], r13
add rdi, 0x40
lea rax, [rdi - 0x38]
cmp rax, r15
jne 0x140017d81
mov rcx, qword [rbp + 0xea0]
mov rdx, qword [rbp + 0xeb0]
sub rdx, rcx
and rdx, 0xffffffffffffffc0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017de7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017fe6
call fcn.1400532ac
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xea0], xmm0
mov qword [rbp + 0xeb0], r13
lea r9, [fcn.140001be0]
mov edx, 0x28
mov r8d, 0x35
lea rcx, [rbp + 0x658]
call fcn.140053400
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140017e63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017fec
call fcn.1400532ac
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], r13w
test r14, r14
je 0x140017edb
mov rax, r14
cmp r14, rbx
je 0x140017ea3
nop word [rax + rax]
cmp dword [rax + 8], 0
jne 0x140017f72
add rax, 0x10
cmp rax, rbx
jne 0x140017e90
sub rsi, r14
and rsi, 0xfffffffffffffff0
mov rax, r14
cmp rsi, 0x1000
jb 0x140017ecf
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017ff2
mov rdx, rsi
mov rcx, r14
call fcn.1400532ac
nop
lea rcx, [rbp + 0xf0]
call fcn.140018900
lea rcx, [rbp + 0x1e0]
call fcn.140018750
lea rcx, [rbp + 0x190]
call fcn.140005dc0
lea rcx, [rbp + 0x118]
call fcn.140018810
lea rcx, [rbp + 0xf0]
call fcn.140018810
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140017f2c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140017f3f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov eax, r12d
mov rcx, qword [rbp + 0x1608]
xor rcx, rsp
call fcn.140053250
lea r11, [rsp + 0x1710]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140062bd4
nop
mov ecx, 5
call fcn.140030b7c
int3
dec eax
mov dword [rbp + 0x18c], eax
mov ecx, 6
call fcn.140030b7c
nop
call fcn.1400593b4
nop
call fcn.1400067d0
nop
call fcn.140062bd4
nop
mov dword [rsp + 0x78], r13d
mov ecx, 6
call fcn.140030b7c
nop
mov dword [r15], r13d
mov ecx, 6
call fcn.140030b7c
nop
call fcn.1400593b4
nop
mov ecx, r12d
call fcn.140030b7c
int3
mov ecx, 1
call fcn.140030b7c
nop
call fcn.140062bd4
nop
call fcn.1400593b4
nop
call fcn.1400593b4
nop
call fcn.1400593b4
int3