Function at 0x140020f8b
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov r12, rdx
mov ebp, ecx
mov eax, 0xb8d18b4c
mov qword [rsp + 0x53], rax
mov word [rsp + 0x5b], 0xbb49
and qword [rsp + 0x5d], 0
mov dword [rsp + 0x48], ecx
mov word [rsp + 0x65], 0xff41
mov byte [rsp + 0x67], 0xe3
xor eax, eax
cmp rax, 4
je 0x140020fdf
mov cl, byte [rsp + rax + 0x48]
mov byte [rsp + rax + 0x57], cl
inc rax
jmp 0x140020fcc
lea rdx, [0x140197894]
lea r14, [rsp + 0xa0]
mov r8d, 9
mov rcx, r14
call fcn.14001ef67
mov rcx, qword [r14 + 8]
mov rdx, qword [r14 + 0x10]
call fcn.14001edf2
mov qword [rsp + 0x70], rax
mov rcx, r14
call fcn.1400231ae
mov rax, qword [r12]
mov rcx, qword [r12 + 8]
xor edx, edx
test rax, rax
setne dl
mov r13, qword [r12 + 0x10]
mov r8, r13
cmove r8, rax
mov qword [r14], rdx
and qword [r14 + 8], 0
mov esi, ebp
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rcx
mov qword [rsp + 0x88], rdx
mov qword [r14 + 0x20], rdx
and qword [r14 + 0x28], 0
mov qword [rsp + 0x98], rax
mov qword [r14 + 0x30], rax
mov qword [rsp + 0x90], rcx
mov qword [r14 + 0x38], rcx
mov qword [rsp + 0x80], r8
mov qword [r14 + 0x40], r8
mov qword [r14 + 0x48], rsi
test ebp, ebp
je 0x1400210a9
lea r15, [rsp + 0xa0]
and qword [r15 + 0x48], 0
inc rsi
xor r14d, r14d
dec rsi
je 0x1400210a9
mov rcx, r15
call fcn.14001d6c5
test rax, rax
jne 0x140021095
jmp 0x1400210b9
lea rcx, [rsp + 0xa0]
call fcn.14001d6c5
mov r14, rax
test r14, r14
je 0x140021475
mov rax, qword [rdx + 8]
mov r8, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x70]
mov rdx, rax
call fcn.14001f0f9
test rax, rax
je 0x14002144a
mov rcx, rax
call fcn.140021519
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400212a9
xor eax, eax
cmp rax, 8
je 0x14002110b
mov cl, byte [rsp + rax + 0x78]
mov byte [rsp + rax + 0x5d], cl
inc rax
jmp 0x1400210f8
call sub.kernel32.dll_GetCurrentProcess
mov rdi, rax
and qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0x15
and dword [rsp + 0x4c], 0
lea rdx, [0x140197894]
lea rbx, [rsp + 0xa0]
mov r8d, 9
mov rcx, rbx
call fcn.14001ef67
mov rcx, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
call fcn.14001edf2
mov r14, rax
mov rcx, rbx
call fcn.1400231ae
lea rdx, [0x140197a95]
lea r15, [rsp + 0xa0]
mov r8d, 0x17
mov rcx, r15
call fcn.14001ef67
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.14001f0f9
mov rbx, rax
mov rcx, r15
call fcn.1400231ae
test rbx, rbx
je 0x14002144a
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov rcx, rdi
xor r8d, r8d
call rbx
test eax, eax
jne 0x14002144a
lea rax, [rsp + 0xf0]
and qword [rax], 0
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x53]
mov r9d, 0x15
mov rcx, rdi
call fcn.14002153e
test eax, eax
jne 0x14002144a
lea rdx, [0x140197894]
lea rbx, [rsp + 0xa0]
mov r8d, 9
mov rcx, rbx
call fcn.14001ef67
mov rcx, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
call fcn.14001edf2
mov r14, rax
mov rcx, rbx
call fcn.1400231ae
lea rdx, [0x140197a70]
lea r15, [rsp + 0xa0]
mov r8d, 0x16
mov rcx, r15
call fcn.14001ef67
mov rdx, qword [r15 + 8]
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.14001f0f9
mov rbx, rax
mov rcx, r15
call fcn.1400231ae
test rbx, rbx
je 0x14002146b
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x20
call rbx
mov ebx, eax
mov rcx, rdi
call fcn.14002036a
test ebx, ebx
jne 0x14002144a
mov rdi, qword [rsp + 0x30]
jmp 0x14002144c
mov qword [rsp + 0x68], r12
lea rsi, [rsp + 0xf0]
and qword [rsi], 0
mov qword [rsi + 8], 1
and qword [rsi + 0x10], 0
lea r14, [rsp + 0xa0]
and qword [r14], 0
mov edx, 8
mov rcx, r14
call sub.ADVAPI32.dll_SystemFunction036
mov rax, qword [r14]
lea r15, [rsp + 0x40]
mov qword [r15], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov ecx, 5
mov rax, r13
xor edx, edx
div rcx
mov r12, rax
inc r13
mov rbx, 0xffffffffffffffff
cmovne rbx, r13
mov rdi, rbx
neg rdi
cmp dword [rsp + 0x38], 5
je 0x140021438
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0xa0], rdx
and qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xc0], rdx
and qword [rsp + 0xc8], 0
mov rdx, qword [rsp + 0x38]
inc edx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rcx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xe0], rax
mov rcx, r14
call fcn.14001d6c5
mov r13, rdx
test rax, rax
cmove r13, rax
test r13, r13
je 0x1400213ee
mov rcx, r15
call fcn.14001e42a
mul rbx
mov rcx, rdx
cmp rbx, rax
jbe 0x1400213e7
mov r8, rax
mov rax, rdi
xor edx, edx
div rbx
mov rbp, rdx
cmp r8, rbp
jae 0x1400213e7
mov rcx, r15
call fcn.14001e42a
mul rbx
mov rcx, rdx
mov r8, rax
jmp 0x1400213cf
cmp rcx, r12
jae 0x140021397
jmp 0x1400213f1
mov r13, rsi
mov rdx, qword [r13 + 8]
mov r8, qword [r13 + 0x10]
mov rcx, qword [rsp + 0x70]
call fcn.14001f0f9
test rax, rax
je 0x140021438
mov rcx, rax
call fcn.140021519
mov rsi, r13
test rax, rax
je 0x140021316
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xf0]
call fcn.1400231ae
mov r12, qword [rsp + 0x68]
jmp 0x1400210f6
lea rcx, [rsp + 0xf0]
call fcn.1400231ae
mov r12, qword [rsp + 0x68]
xor edi, edi
mov rcx, r12
call fcn.14001e634
mov rax, rdi
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14002036a
jmp 0x14002144a
lea rcx, str.dinvoke_src_lib.rs
call fcn.1400192a0
int3