Function at 0x1400540f0
Capabilities:
Access peb ldr_data
Generate random numbers via rtlgenrandom
Generate random numbers via winapi
Get number of processors

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
lea rsi, [rsp + 0x90]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x14005414f
mov edi, eax
lea rcx, [rsp + 0x90]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140054408
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [0x141d0ba20]
test rax, rax
je 0x1400543fe
and eax, 0x4000
xor ecx, ecx
lea rdi, [rsp + 0x30]
or rax, rcx
je 0x1400541a0
lea r8, [0x141cfd9f8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140025260
jmp 0x1400541bc
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movaps xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x80], xmm2
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x48], xmm2
movzx eax, byte [0x141d0ba30]
mov edx, 0x170
xor ecx, ecx
call fcn.14003b500
test rax, rax
je 0x140054420
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
movaps xmmword [rax + 0xc0], xmm0
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
movaps xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x141d0ba34]
mov rdx, qword gs:[0x58]
mov rdx, qword [rdx + rcx*8]
mov rcx, qword [rdx + 0x18]
mov r8, qword [rdx + 0x20]
mov qword [rdx + 0x18], 1
mov qword [rdx + 0x20], rax
cmp rcx, 1
je 0x14005438d
test rcx, rcx
jne 0x1400543f4
mov eax, dword [0x141d0ba34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x40], 0
jne 0x14005442c
mov eax, dword [0x141d0ba34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x40], 0xffffffffffffffff
mov rcx, qword [0x141d07aa0]
mov rsi, qword [rax + 0x58]
cmp rsi, qword [rax + 0x48]
jne 0x1400543a9
call fcn.14002c3a0
mov eax, dword [0x141d0ba34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x40]
inc rax
jmp 0x1400543ab
dec qword [r8]
jne 0x1400543f4
dec qword [r8 + 8]
jne 0x1400543f4
mov rcx, qword [0x141d0ba00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400543f4
xor eax, eax
mov ecx, dword [0x141d0ba34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov rdx, qword [rcx + 0x50]
mov r8, rsi
shl r8, 4
lea r9, [rcx + 0x18]
mov qword [rdx + r8], r9
lea r9, [0x140025230]
mov qword [rdx + r8 + 8], r9
inc rsi
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x40], rax
add rsp, 0xb8
pop rdi
pop rsi
ret
call fcn.1400555b0
jmp 0x140054179
movzx eax, byte [0x141d0ba30]
mov edx, 4
xor ecx, ecx
call fcn.14003b500
test rax, rax
jne 0x140054422
ud2
and edi, 0x7fffffff
mov dword [rax], edi
ud2
mov dword [rsp + 0x60], 0
mov byte [rsp + 0x64], 0
lea rax, [0x141cfe238]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x30], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x20]
call fcn.14002be40
mov rcx, rax
call fcn.140030a60
mov ecx, 7
int 0x29
ud2