Function at 0x140002160
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
movzx edi, dl
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x39], r14
movdqa xmm0, xmmword [0x14003f0a0]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov edx, 0x80
lea rcx, [rbp - 0x39]
call fcn.140005180
mov qword [rbp - 0x29], r14
lea r8d, [r14 + 0x10]
lea rdx, str..pipewinpty_
lea rcx, [rbp - 0x39]
call fcn.140004d50
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400021d0
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140004d50
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x21]
cmp rcx, rdx
jae 0x140002212
lea rax, [rcx + 1]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x39]
cmp rdx, 8
cmovae rax, qword [rbp - 0x39]
mov dword [rax + rcx*2], 0x2d
jmp 0x140002221
mov r9d, 0x2d
lea rcx, [rbp - 0x39]
call fcn.1400052f0
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14000246d
mov qword [rbp - 0x51], r14
mov byte [rbp - 0x49], 0
mov qword [rbp - 0x41], r14
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1400022b1
lea rdx, str.SystemFunction036
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400149c0
mov qword [rbp - 0x51], rbx
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rbx + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne byte [rbp - 0x49]
test eax, eax
jne 0x1400022b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_CryptAcquireContext_failed:__u
call fcn.1400149c0
jmp 0x1400022b5
mov qword [rbp - 0x51], rbx
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x59]
call fcn.1400150d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400022d1
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140004d50
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp - 0x29]
movups xmmword [rbp - 9], xmm1
movdqa xmm0, xmmword [0x14003f0a0]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x14000233f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000233a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002486
call fcn.140017cec
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r14w
cmp byte [rbp - 0x49], 0
je 0x140002362
xor edx, edx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1400023ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000248c
call fcn.140017cec
movdqa xmm0, xmmword [0x14003f0a0]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r14w
mov rcx, rsi
call fcn.14000cc90
mov rbx, rax
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov ecx, edi
xor ecx, 1
shl ecx, 8
mov r9d, edi
shl r9d, 0xd
lea r8d, [rdi + 1]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call fcn.14000ec00
test dil, dil
jne 0x14000240e
test byte [rbx + 0x48], 1
je 0x140002492
mov qword [rbx + 0x50], 0x10000
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14000244a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002445
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002467
call fcn.140017cec
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140017c90
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14001e704
nop
lea r8, str.m_module___NULL
mov edx, 0x28
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedOsModule.h
call fcn.1400178c0
nop
call fcn.14001e704
nop
call fcn.14001e704
int3
lea r8, str.m_openMode__OpenMode::Reading
mov edx, 0x13a
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400178c0
int3