Function at 0x140001ff0
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 qword [rbp - 0x39], 0xfffffffffffffffe
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r8
movzx edi, dl
mov rsi, rcx
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x21], xmm0
xor r14d, r14d
mov word [rbp - 0x31], r14w
mov edx, 0x80
lea rcx, [rbp - 0x31]
call fcn.140004a10
nop
lea r8d, [r14 + 0x10]
lea rdx, str..pipewinpty_
lea rcx, [rbp - 0x31]
call fcn.140004e70
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140002061
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.140004e70
mov rcx, qword [rbp - 0x21]
mov rdx, qword [rbp - 0x19]
cmp rcx, rdx
jae 0x1400020a3
lea rax, [rcx + 1]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
cmp rdx, 8
cmovae rax, qword [rbp - 0x31]
mov dword [rax + rcx*2], 0x2d
jmp 0x1400020b2
mov r9d, 0x2d
lea rcx, [rbp - 0x31]
call fcn.1400055d0
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x140002304
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 0x140002103
lea rdx, str.SystemFunction036
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.1400146a0
mov qword [rbp - 0x51], rbx
test rbx, rbx
jne 0x140002146
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 0x140002146
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_CryptAcquireContext_failed:__u
call fcn.1400146a0
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x59]
call fcn.140014c90
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140002162
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140004e70
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rbp - 0x21]
movups xmmword [rbp - 1], xmm1
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r14w
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400021d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000231d
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], r14w
cmp byte [rbp - 0x49], 0
je 0x1400021f4
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 - 0x19]
cmp rdx, 8
jb 0x14000223f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000223a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002323
call fcn.140017530
movdqa xmm0, xmmword [0x14003aba0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r14w
mov rcx, rsi
call fcn.14000ccc0
mov rbx, rax
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
movzx r8d, dil
movzx ecx, dil
xor ecx, 1
shl ecx, 8
mov r9d, r8d
shl r9d, 0xd
inc r8d
mov dword [rsp + 0x20], ecx
mov rcx, rax
call fcn.14000ed70
test dil, dil
jne 0x1400022a5
test byte [rbx + 0x48], 1
je 0x140002329
mov qword [rbx + 0x50], 0x10000
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400022e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400022fe
call fcn.140017530
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400174d0
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14001bb5c
nop
lea r8, str.m_module___NULL
mov edx, 0x28
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_sharedosmodule.h
call fcn.140017100
nop
call fcn.14001bb5c
nop
call fcn.14001bb5c
int3
lea r8, str.m_openMode__OpenMode::Reading
mov edx, 0x13a
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
int3