Function at 0x1400146f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x140], rax
test r8, r8
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x58], r8
setne r14b
mov qword [rsp + 0x60], rdx
xor r15d, r15d
mov qword [rsp + 0x50], rcx
mov qword [r9], r15
test r8, r8
je 0x140014744
movzx ebx, word [r8 + 0x1a]
jmp 0x1400147ac
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumberEx]
movzx ecx, word [rsp + 0x58]
xor edx, edx
movzx eax, byte [rsp + 0x5a]
shl rcx, 4
add rcx, qword [0x1400f8b18]
div dword [rcx + 8]
add dx, word [rcx + 0xc]
mov rcx, qword [0x1400f75a0]
test rcx, rcx
je 0x14001479b
mov r8d, dword [rcx + 8]
test r8d, r8d
je 0x14001479b
mov ebx, r15d
mov eax, ebx
cmp dx, word [rcx + rax*2 + 0xc]
jbe 0x1400147ac
inc ebx
cmp ebx, r8d
jb 0x140014785
lea ebx, [r8 - 1]
jmp 0x1400147ac
movzx ecx, word [0x1400f7576]
movzx eax, dx
xor edx, edx
div ecx
movzx ebx, dx
mov r9d, 2
lea rdx, [rbp - 0x60]
mov r8d, r9d
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
movzx esi, word [0x1400f7578]
not si
and si, word [rbp - 0x60]
or si, bx
call fcn.140001640
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
jne 0x140014801
mov edx, dword [rbx + 0x14]
mov r8, rbx
mov ecx, dword [rbx + 0x10]
mov rax, qword [rbx + 0x20]
call qword [case.0x1400639e1.0]
mov rdi, rax
mov qword [rsp + 0x250], r13
test rdi, rdi
jne 0x140014874
test byte [0x1400f8b38], 2
je 0x14001486a
lea rax, str.connection
mov qword [rbp - 0x58], 0xfa0
mov qword [rbp + 0xa0], rax
lea r9d, [rdi + 3]
lea rax, [rbp - 0x58]
mov qword [rbp + 0xa8], SafeArrayLock
mov qword [rbp + 0xb0], rax
lea rdx, [0x1400d0050]
lea rax, [rbp + 0x90]
mov qword [rbp + 0xb8], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov eax, 0x8007000e
jmp 0x1400151d4
xor edx, edx
mov qword [rsp + 0x298], r12
mov r8d, 0xfa0
mov rcx, rdi
call fcn.1400819f0
call fcn.140001640
lock inc qword [rax + 0xd8]
call fcn.140001640
lock inc qword [rax + 0xf8]
mov eax, 1
lock xadd qword [0x1400f7580], rax
mov qword [rdi + 0xe40], rax
test byte [0x1400f8b39], 0x40
je 0x140014920
mov qword [rbp - 0x40], rax
lea rdx, [0x1400d0878]
movzx eax, r14b
mov r9d, 4
mov dword [rbp - 0x50], eax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x40]
mov qword [rbp], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
mov qword [rbp - 0x18], 8
mov qword [rbp - 8], 4
mov qword [rbp + 8], 8
call fcn.140001460
movzx eax, byte [rdi + 0xf3]
lea rcx, [rbp - 0x38]
or byte [rdi + 0xf0], 1
and al, 0xfe
or byte [rdi + 0xf4], 2
or al, r14b
mov byte [rdi + 0xf3], al
mov dword [rdi + 0xe8], 1
mov word [rdi + 0x102], si
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1400f8b08]
xor edx, edx
mov rcx, qword [rbp - 0x38]
mov r13d, 3
mov rax, rcx
mov byte [rdi + 0x106], 4
shr rax, 0x20
imul r9, rax, 0xf4240
mov ecx, ecx
mov rax, r9
mov word [rdi + 0x10b], 0x208
div r8
mov byte [rdi + 0x10d], 2
mov rax, rdx
mov qword [rdi + 0x6b8], r13
shl rax, 0x20
imul rdx, rcx, 0xf4240
add rax, rdx
xor edx, edx
div r8
xor edx, edx
mov rcx, rax
mov rax, r9
div r8
lea rdx, [0x1400f7490]
shl rax, 0x20
add rcx, rax
lea rax, [rdi + 0x558]
mov qword [rdi + 0xe50], rcx
lea rcx, [rdi + 0x58]
mov qword [rdi + 0x560], rax
call fcn.1400284d0
lea rcx, [rdi + 0x568]
mov qword [rdi + 0x58], r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rdi + 0x870]
mov qword [rdi + 0xdd8], 0x20000
lea r14, [rdi + 0x4f8]
mov qword [rax + 8], rax
lea rcx, [rdi + 0x598]
mov qword [rax], rax
mov qword [r14 + 8], r14
mov qword [r14], r14
mov byte [rdi + 0x590], r15b
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rdi + 0x5c0]
mov qword [rax + 8], rax
lea rcx, [rdi + 0x880]
mov qword [rax], rax
lea rdx, [rdi + 0x58]
mov qword [rdi + 0x5d0], rax
lea rax, [rdi + 0xda8]
mov qword [rax + 8], rax
mov qword [rax], rax
mov eax, dword [rdi + 0xa4]
mov qword [rdi + 0xd78], rax
call fcn.140050330
lea rax, [rdi + 0xaa8]
mov dword [rdi + 0xa50], r15d
mov qword [rax], r15
mov qword [rdi + 0xab0], rax
lea rax, [rdi + 0xab8]
mov qword [rax], r15
mov qword [rdi + 0xac0], rax
mov qword [rdi + 0xa68], r15
mov qword [rdi + 0xa88], r15
mov qword [rdi + 0xa90], r15
mov qword [rdi + 0xa98], r15
mov qword [rdi + 0xa70], r15
mov qword [rdi + 0xa78], r15
mov qword [rdi + 0xa80], r15
lea rcx, [rdi + 0xde0]
mov word [rdi + 0xac8], r15w
or byte [rcx + 0x4a], 1
mov eax, 0xffff
mov word [rcx + 0x48], ax
mov qword [rcx + 8], rcx
mov qword [rcx + 0x10], rcx
add rcx, 0x20
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rdi + 0x778], r15d
lea rax, [rdi + 0x788]
mov r12d, r15d
mov qword [rdi + 0x770], rax
lea r15, [rdi + 0xad0]
mov dword [rdi + 0x77c], 8
mov qword [rsp + 0x40], r15
mov dword [rdi + 0x780], 0x1000
nop dword [rax + rax]
call fcn.140001640
mov rsi, rax
lea rcx, [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rbx, rax
test rax, rax
jne 0x140014b74
mov edx, dword [rsi + 0x74]
lea r8, [rsi + 0x60]
mov ecx, dword [rsi + 0x70]
mov rax, qword [rsi + 0x80]
call qword [case.0x1400639e1.0]
mov rbx, rax
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x1400150d1
xor edx, edx
mov r8d, 0x1b0
mov rcx, rbx
call fcn.1400819f0
mov dword [rbx], r12d
lea rax, [rbx + 0x48]
mov qword [rbx + 0x20], rdi
xor ecx, ecx
mov qword [rbx + 0x30], rax
inc r12d
mov dword [rbx + 0x38], ecx
lea rax, [rbx + 0xe0]
mov dword [rbx + 0x3c], 8
mov dword [rbx + 0x40], 0x1000
mov qword [rbx + 0xc8], rax
mov rax, qword [rsp + 0x40]
mov dword [rbx + 0xd0], ecx
mov dword [rbx + 0xd4], 8
mov dword [rbx + 0xd8], 0x800
mov qword [rax], rbx
add rax, 8
mov qword [rsp + 0x40], rax
cmp r12d, r13d
jb 0x140014b40
lea rbx, [rdi + 0x130]
mov rcx, rdi
mov rdx, rbx
call fcn.1400412e0
or byte [rbx + 1], 2
mov r12, qword [rbp - 0x58]
mov byte [rdi + 0x107], 1
mov qword [rdi + 0x548], rsi
mov qword [rdi + 0x518], rsi
mov qword [rdi + 0x520], rsi
mov qword [rdi + 0x528], rsi
mov qword [rdi + 0x530], rsi
mov qword [rdi + 0x538], rsi
mov qword [rdi + 0x540], rsi
test r12, r12
je 0x140014f36
mov dword [rdi], 4
movzx eax, word [0x1400f750e]
cmp ax, 1
jne 0x140014ca2
lea rdx, [rdi + 0xfc]
xor ecx, ecx
lea r9d, [rsi + 3]
lea r8d, [rsi + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rax, qword [r12 + 8]
cmp word [rax + 0x24], 2
jne 0x140014c97
mov ecx, dword [rax + 0x28]
mov dword [rdi + 0xfd], ecx
jmp 0x140014ccb
mov ecx, dword [rax + 0x38]
mov dword [rdi + 0xfd], ecx
jmp 0x140014ccb
cmp ax, 2
jne 0x140014ccb
xor ecx, ecx
lea rdx, [rdi + 0xfc]
lea r9d, [rcx + 2]
lea r8d, [rcx + 1]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, dword [0x1400f7504]
mov dword [rdi + 0xfd], eax
mov rax, qword [r12 + 0x38]
mov ecx, dword [rax + 1]
mov dword [rdi + 0xe4c], ecx
mov rcx, rdi
call fcn.140017d30
mov rdx, qword [r12 + 8]
lea rcx, [rbx + 0x30]
call fcn.1400588c0
or byte [rdi + 0xf2], 0xc
movzx eax, byte [0x1400f8b39]
test al, 0x40
je 0x140014dc0
lea rax, [rsp + 0x70]
mov byte [rbp - 0x70], 0x1c
mov qword [rbp + 0x20], rax
lea rdx, [0x1400d0858]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x70], rdi
mov qword [rbp + 0x30], rax
mov r9d, 4
lea rax, [rbx + 0x54]
mov qword [rbp + 0x28], 8
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x38], 1
mov qword [rbp + 0x48], 0x1c
call fcn.140001460
movzx eax, byte [0x1400f8b39]
test al, 0x40
je 0x140014dc0
lea rax, [rsp + 0x78]
mov byte [rbp - 0x68], 0x1c
mov qword [rbp + 0x60], rax
lea rdx, [0x1400d0180]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x78], rdi
mov qword [rbp + 0x70], rax
mov r9d, 4
lea rax, [rbx + 0x38]
mov qword [rbp + 0x68], 8
mov qword [rbp + 0x80], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x78], 1
mov qword [rbp + 0x88], 0x1c
call fcn.140001460
mov rax, qword [r12 + 0x48]
xor edx, edx
mov rcx, qword [0x1400f8a70]
mov qword [rsp + 0x48], rax
movzx eax, byte [r12 + 0x57]
mov byte [rsp + 0x30], al
mov qword [rsp + 0x40], rax
lea r8, [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140014e2a
movzx ecx, byte [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rax + 0x20], xmm0
mov byte [rax + 0x21], cl
test cl, cl
je 0x140014e2a
mov r8, qword [rsp + 0x40]
lea rcx, [rax + 0x30]
mov rdx, qword [rsp + 0x48]
call fcn.140081340
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x90], rax
jmp 0x140014e3a
mov qword [rbx + 0x90], rax
test rax, rax
je 0x140015130
or byte [rax + 0x20], 8
mov rcx, qword [rbx + 0x90]
mov rax, qword [r14 + 8]
mov qword [rcx], r14
mov qword [rcx + 8], rax
mov qword [rax], rcx
mov qword [r14 + 8], rcx
test byte [0x1400f8b3a], 0x80
je 0x140014e8c
mov r9, qword [rbx + 0x90]
lea rdx, [0x1400d00c0]
mov r8, rdi
lea rax, [r9 + 0x30]
mov qword [rsp + 0x28], rax
movzx eax, byte [r9 + 0x21]
mov r9, qword [r9 + 0x28]
mov byte [rsp + 0x20], al
call fcn.140013a30
mov rax, qword [r12 + 0x40]
xor edx, edx
mov rcx, qword [0x1400f8a70]
mov qword [rsp + 0x38], rax
movzx eax, byte [r12 + 0x56]
mov byte [rsp + 0x30], al
lea r8, [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140015130
mov qword [rax + 0x20], rdi
xorps xmm0, xmm0
movups xmmword [rax + 0x28], xmm0
movzx eax, byte [rsp + 0x30]
mov byte [rbx + 0x29], al
test al, al
je 0x140014ee7
mov rdx, qword [rsp + 0x38]
lea rcx, [rbx + 0x38]
mov r8d, eax
call fcn.140081340
or byte [rbx + 0x28], 0x11
lea rcx, [rbx + 0x18]
mov rax, qword [rdi + 0x4f0]
mov qword [rcx], rax
mov qword [rdi + 0x4f0], rcx
test byte [0x1400f8b3a], 0x80
je 0x14001503a
mov r9, qword [rbx + 0x30]
lea rax, [rbx + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400d06a8]
movzx eax, byte [rbx + 0x29]
mov r8, rdi
mov byte [rsp + 0x20], al
call fcn.140013a30
jmp 0x14001503a
or byte [rdi + 0xf1], 0x10
xor edx, edx
mov rcx, qword [0x1400f8a70]
mov dword [rdi], r13d
or byte [rbx + 1], 0x20
lea r8d, [rdx + 0x38]
mov dword [rbx + 0xd0], 0xffffffff
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400150c8
xor ecx, ecx
lea rdx, [rax + 0x30]
xorps xmm0, xmm0
movups xmmword [rax + 0x20], xmm0
mov byte [rax + 0x21], 8
lea r9d, [rcx + 2]
lea r8d, [rcx + 8]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x90], rax
or byte [rax + 0x20], 8
inc byte [rdi + 0x104]
mov rcx, qword [rbx + 0x90]
mov rax, qword [r14 + 8]
mov qword [rcx], r14
mov qword [rcx + 8], rax
mov qword [rax], rcx
mov qword [r14 + 8], rcx
test byte [0x1400f8b3a], 0x80
je 0x140014ff2
mov r9, qword [rbx + 0x90]
lea rdx, [0x1400d00c0]
mov r8, rdi
lea rax, [r9 + 0x30]
mov qword [rsp + 0x28], rax
movzx eax, byte [r9 + 0x21]
mov r9, qword [r9 + 0x28]
mov byte [rsp + 0x20], al
call fcn.140013a30
or byte [rdi + 0xf0], 2
test byte [0x1400f8b3a], 4
je 0x14001503a
lea rax, [rbp - 0x80]
mov qword [rbp - 0x80], rdi
mov qword [rbp + 0x130], rax
lea rdx, [0x1400d0140]
lea rax, [rbp + 0x120]
mov qword [rbp + 0x138], 8
mov r9d, 2
mov qword [rsp + 0x20], rax
call fcn.140001460
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400150a2
mov qword [rdi + 0x40], rax
test byte [0x1400f8b3a], 2
je 0x1400150a2
mov qword [rbp - 0x78], rax
lea rdx, [0x1400d0838]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
mov qword [rbp + 0xd0], rax
mov r9d, r13d
lea rax, [rbp - 0x78]
mov qword [rbp + 0xd8], 8
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0xe8], 8
call fcn.140001460
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1400158b0
test al, al
jne 0x1400150ba
mov ebx, 0x8007139f
jmp 0x140015135
mov rax, qword [rbp - 0x48]
mov qword [rax], rdi
xor eax, eax
jmp 0x1400151cc
mov qword [rbx + 0x90], rax
jmp 0x140015130
test byte [0x1400f8b38], 2
je 0x14001512c
lea rax, str.packet_space
mov qword [rbp - 0x48], 0x1b0
mov qword [rbp + 0x100], rax
lea rdx, [0x1400d0050]
lea rax, [rbp - 0x48]
mov qword [rbp + 0x108], SafeArrayLock
mov qword [rbp + 0x110], rax
mov r9d, r13d
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x118], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov r12, qword [rbp - 0x58]
mov ebx, 0x8007000e
or byte [rdi + 0xf1], 1
nop dword [rax]
mov rcx, qword [r15]
test rcx, rcx
je 0x140015154
call fcn.14004c4c0
mov qword [r15], 0
add r15, 8
sub r13, 1
jne 0x140015140
test r12, r12
je 0x140015189
mov r8, qword [rdi + 0x4f0]
test r8, r8
je 0x140015189
mov rcx, qword [0x1400f8a70]
add r8, 0xffffffffffffffe8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi + 0x4f0], r13
mov rcx, qword [r14]
cmp rcx, r14
je 0x1400151b5
mov rax, qword [rcx]
mov r8, rcx
mov rcx, qword [0x1400f8a70]
xor edx, edx
mov qword [r14], rax
mov qword [rax + 8], r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [r14]
cmp rcx, r14
jne 0x140015191
lock xadd dword [rdi + 0xe8], esi
cmp esi, 1
jne 0x1400151ca
mov rcx, rdi
call fcn.140015200
mov eax, ebx
mov r12, qword [rsp + 0x298]
mov r13, qword [rsp + 0x250]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x258
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret