Function at 0x140077360
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov rax, rsp
push rsi
push r14
sub rsp, 0x98
mov qword [rax + 8], rbx
xor sil, sil
mov qword [rax - 0x18], rbp
mov rbx, r8
mov qword [rax - 0x20], rdi
mov r9d, 0xa
mov qword [rax - 0x28], r12
xor bpl, bpl
mov qword [rax - 0x30], r13
mov r12, rcx
xor ecx, ecx
mov qword [rax - 0x38], r15
mov rax, qword [0x1401609f8]
xor r13b, r13b
mov qword [rsp + 0x48], rax
mov r15, rdx
movzx eax, word [rbx]
movzx r8d, r9w
mov qword [rsp + 0x38], rcx
lea r14d, [rcx + 1]
mov qword [0x1401609f8], rcx
mov dword [rsp + 0x40], 0xffffffff
mov word [rsp + 0x30], r9w
mov byte [0x140160866], cl
mov byte [0x140160863], cl
mov byte [0x140160862], cl
mov dword [0x1401609f4], ecx
mov byte [rsp + 0xc8], cl
mov byte [rsp + 0x32], sil
mov byte [rsp + 0x34], cl
mov byte [rsp + 0xc0], r13b
mov byte [rsp + 0x33], cl
test ax, ax
je 0x140077633
lea rdi, [0x140000000]
lea esi, [rcx + 0x20]
movzx ecx, ax
call fcn.140102c88
movzx eax, ax
add eax, 0xffffffbd
cmp eax, 0x19
ja case.0x140077442.76
cdqe
movzx eax, byte [rdi + rax + 0x77cc0]
mov ecx, dword [rdi + rax*4 + 0x77c98]
add rcx, rdi
jmp rcx
movzx edi, word [rbx + 2]
lea rsi, [rbx + 2]
test edi, 0xffffff80
je 0x140077458
xor eax, eax
jmp 0x140077464
mov edx, 2
mov ecx, edi
call fcn.1400fc354
movzx ecx, di
mov edx, 0xffdf
and cx, dx
test eax, eax
cmove cx, di
lea rdi, [0x140000000]
cmp cx, 0x4c
sete al
inc al
cmp cx, 0x4c
mov byte [0x140160866], al
cmovne rsi, rbx
mov rbx, rsi
mov esi, SafeArrayAllocDescriptor
jmp case.0x140077442.76
movzx ecx, word [rbx + 2]
test cx, cx
je case.0x140077442.76
add rbx, 2
mov word [rsp + 0x30], cx
movzx r8d, cx
jmp 0x140077619
movzx edx, word [rbx + 2]
add rbx, 2
cmp dx, 0x20
je case.0x140077442.69
cmp dx, 9
je case.0x140077442.69
mov rdi, rbx
test dx, dx
je 0x14007750f
nop dword [rax + rax]
lea rcx, [0x1401373a0]
movzx eax, si
nop word [rax + rax]
cmp dx, ax
je 0x140077530
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400774f0
movzx edx, word [rdi + 2]
add rdi, 2
test dx, dx
jne 0x1400774e0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140077520
lea rdi, [rbx + rax*2]
mov r8, rdi
lea rcx, [0x140163cc0]
sub r8, rbx
xor r9d, r9d
sar r8, 1
mov rdx, rbx
call fcn.14004e340
mov qword [0x1401609f8], rax
mov rcx, rax
test rax, rax
je 0x140077c26
cmp byte [rax + 0x79], 0
jne 0x140077c26
mov eax, dword [rax + 0x20]
sub eax, 2
cmp eax, r14d
ja 0x140077c26
mov rax, qword [rcx + 0x18]
cmp word [rax + 8], 0
jne 0x140077c26
cmp word [rax + 0x20], 0
jne 0x140077c26
lea rbx, [rdi - 2]
lea rdi, [0x140000000]
jmp case.0x140077442.76
mov byte [0x140160863], r14b
jmp case.0x140077442.76
lea rcx, [rbx + 2]
call fcn.1400f73ac
cmp eax, r14d
cmovl eax, r14d
dec eax
mov dword [0x1401609f4], eax
jmp case.0x140077442.76
mov r8d, 6
lea rdx, str.Random
mov rcx, rbx
call fcn.1400f7630
movzx r8d, word [rsp + 0x30]
test eax, eax
jne 0x1400775f2
movzx r13d, r14b
mov byte [rsp + 0xc0], r14b
add rbx, 0xa
jmp 0x140077619
mov byte [0x140160862], r14b
jmp 0x140077619
xor eax, eax
mov byte [rsp + 0x33], r14b
mov dword [rsp + 0x40], eax
jmp case.0x140077442.76
movzx ebp, r14b
jmp case.0x140077442.76
mov byte [rsp + 0x34], r14b
movzx r8d, word [rsp + 0x30]
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140077417
xor sil, sil
mov r9d, 0xa
movzx edx, word [r15]
test dx, dx
je 0x140077c26
mov r14, qword [0x140162ac0]
mov qword [rsp + 0x50], r14
movzx eax, byte [r14 + 0x23]
test al, al
jne 0x14007765d
mov rax, qword [r14 + 0x10]
movzx eax, byte [rax + 0x23]
cmp al, 2
ja 0x140077c20
mov ebx, 1
mov rcx, r15
nop dword [rax]
cmp dx, r8w
lea rax, [rbx + 1]
movzx edx, word [rcx + 2]
cmovne rax, rbx
add rcx, 2
mov rbx, rax
test dx, dx
jne 0x140077670
mov rdi, rcx
sub rdi, r15
sar rdi, 1
test bpl, bpl
jne 0x1400776b3
cmp rcx, r15
jbe 0x1400776b3
cmp word [rcx - 2], r8w
jne 0x1400776b3
mov byte [rsp + 0xc8], 1
dec rbx
jmp 0x1400776e6
cmp r8w, 0xa
jne 0x1400776e6
mov edx, r9d
mov rcx, r15
call fcn.1400f0a4c
test rax, rax
je 0x1400776e6
cmp rax, r15
jbe 0x1400776e6
cmp word [rax - 2], 0xd
jne 0x1400776e6
mov sil, 1
mov byte [rsp + 0x32], sil
mov byte [rsp + 0xc8], sil
cmp rbx, 1
jne 0x140077709
xor r9d, r9d
mov byte [rsp + 0x20], bl
mov r8, rdi
mov rdx, r15
mov rcx, r14
call fcn.1400d5e90
mov r14d, eax
jmp 0x140077c26
cmp qword [0x1401609f8], 0
jne 0x140077718
test sil, sil
je 0x140077789
lea rcx, [rdi*2 + 6]
call fcn.1400f75c0
mov qword [rsp + 0x38], rax
mov rsi, rax
test rax, rax
jne 0x140077753
lea r9, [0x14012046c]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.140062de0
mov r14d, eax
jmp 0x140077c2b
lea r8, [rdi*2 + 2]
mov rdx, r15
mov rcx, rsi
call fcn.1400f1320
cmp byte [rsp + 0x32], 0
mov r15, rsi
je 0x140077789
mov eax, dword [0x140141798]
mov dword [rsi + rdi*2], eax
movzx eax, word [0x14014179c]
mov word [rsi + rdi*2 + 4], ax
add rdi, 2
mov eax, reloc.WSOCK32.dll_recv
lea rcx, [rbx + 1]
test r13b, r13b
mov esi, 8
cmovne esi, eax
imul rcx, rsi
call fcn.1400f75c0
mov qword [rsp + 0x58], rax
mov rbp, rax
test rax, rax
jne 0x1400777d4
lea r9, [0x14012046c]
xor r8d, r8d
lea rdx, str.Out_of_memory.
mov rcx, r12
call fcn.140062de0
mov r14d, eax
jmp 0x140077c26
mov r8, qword [0x140165600]
xor edx, edx
mov qword [rax], r15
mov rbx, rbp
movzx eax, word [r15]
mov r13d, edx
test ax, ax
je 0x140077889
movzx r12d, byte [rsp + 0xc0]
movzx ecx, word [rsp + 0x30]
cmp ax, cx
jne 0x140077877
inc r13
mov word [r15], dx
test r12b, r12b
je 0x14007786d
sub dword [0x14015e438], 1
jne 0x140077827
call fcn.140031cc0
mov r8, qword [0x140165600]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140165600], r8
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr rcx, 0x12
mov eax, edx
xor rcx, rax
shr rcx, 1
mov qword [rbx + 8], rcx
xor edx, edx
movzx ecx, word [rsp + 0x30]
add rbx, rsi
lea rax, [r15 + 2]
mov qword [rbx], rax
movzx eax, word [r15 + 2]
add r15, 2
test ax, ax
jne 0x140077801
cmp byte [rsp + 0xc8], 0
movzx eax, byte [rsp + 0xc0]
jne 0x1400778fe
inc r13
test al, al
je 0x1400778fe
sub dword [0x14015e438], 1
jne 0x1400778b7
call fcn.140031cc0
mov r8, qword [0x140165600]
mov edx, dword [r8]
mov eax, edx
shr eax, 0xb
add r8, 4
xor edx, eax
mov qword [0x140165600], r8
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
mov ecx, edx
shr rcx, 0x12
xor rcx, rax
movzx eax, byte [rsp + 0xc0]
shr rcx, 1
mov qword [rbx + 8], rcx
cmp qword [0x1401609f8], 0
je 0x140077911
lea r9, [0x140077190]
jmp 0x140077935
test al, al
je 0x14007791e
lea r9, [0x140077180]
jmp 0x140077935
cmp byte [rsp + 0x34], 0
lea r9, [0x140076fa0]
lea rax, [0x1400770d0]
cmovne r9, rax
mov r8, rsi
mov rdx, r13
mov rcx, rbp
call fcn.140101300
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r8, rdi
xor edx, edx
mov rcx, r14
call fcn.1400d5e90
cmp eax, 1
je 0x140077967
xor eax, eax
mov r14d, eax
jmp 0x140077c26
xor eax, eax
lea r15, [r13 - 1]
xor r8d, r8d
mov rcx, r14
mov r12d, eax
mov edi, eax
mov rsi, rbp
lea edx, [rax + 1]
call fcn.140001770
xor r8d, r8d
mov rbx, rax
mov ebp, r8d
test r13, r13
je 0x140077a61
cmp byte [rsp + 0xc0], dil
mov eax, 8
movzx r14d, word [rsp + 0x30]
mov ecx, reloc.WSOCK32.dll_recv
cmovne eax, ecx
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0xc0], rax
nop dword [rax]
cmp byte [rsp + 0x33], 0
je 0x140077a05
test rdi, rdi
je 0x140077a05
cmp byte [0x140160863], 0
je 0x140077aa0
cmp dword [0x1401609f4], 0
jne 0x140077aa0
mov rcx, qword [rsi]
call fcn.1400320e0
mov rcx, rdi
movaps xmm6, xmm0
call fcn.1400320e0
ucomisd xmm6, xmm0
jp 0x140077a05
je 0x140077af4
mov rax, qword [rsi]
movzx ecx, word [rax]
test cx, cx
je 0x140077a23
mov word [rbx], cx
lea rax, [rax + 2]
movzx ecx, word [rax]
add rbx, 2
test cx, cx
jne 0x140077a10
cmp rbp, r15
jb 0x140077a32
cmp byte [rsp + 0xc8], 0
je 0x140077a3a
mov word [rbx], r14w
add rbx, 2
mov rdi, qword [rsi]
add rsi, qword [rsp + 0xc0]
inc rbp
mov r8d, 0
cmp rbp, r13
jb 0x1400779c0
mov r14, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.1400f75c8
xor eax, eax
lea rdi, [0x1401662d0]
cmp byte [rsp + 0x32], al
je 0x140077b7b
cmp word [rbx - 4], 0xd
jne 0x140077b41
mov word [rbx - 4], ax
cmp byte [r14 + 0x23], al
jne 0x140077b17
mov rbx, qword [r14 + 0x10]
jmp 0x140077b1a
cmp byte [0x140160866], 0
mov rdx, rdi
mov rax, qword [rsi]
jne 0x140077ab9
mov rcx, rax
call fcn.1400f55a0
jmp 0x140077aec
cmp byte [0x140160866], 2
jne 0x140077acd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x140077aec
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140077ae7
add rax, 2
test cx, cx
jne 0x140077ad0
mov eax, r8d
jmp 0x140077aec
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140077a05
inc r12d
cmp rbp, r15
jne 0x140077a3d
cmp byte [rsp + 0xc8], 0
jne 0x140077a3d
sub rbx, 2
jmp 0x140077a3d
mov rbx, r14
cmp byte [rbx + 0x23], 1
jne 0x140077b38
test byte [rbx + 0x21], 8
je 0x140077b2e
mov rcx, rbx
call fcn.140001610
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffc
jmp 0x140077b7e
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffc
jmp 0x140077b7e
mov word [rbx - 2], ax
cmp byte [r14 + 0x23], al
jne 0x140077b51
mov rbx, qword [r14 + 0x10]
jmp 0x140077b54
mov rbx, r14
cmp byte [rbx + 0x23], 1
jne 0x140077b72
test byte [rbx + 0x21], 8
je 0x140077b68
mov rcx, rbx
call fcn.140001610
add rbx, 0x10
add qword [rbx], 0xfffffffffffffffe
jmp 0x140077b7e
mov rbx, rdi
add qword [rbx], 0xfffffffffffffffe
jmp 0x140077b7e
mov word [rbx], ax
cmp byte [rsp + 0x33], 0
je 0x140077bee
test r12d, r12d
je 0x140077bee
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 1]
call fcn.140001770
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140077ba0
cmp byte [r14 + 0x23], 0
mov qword [rsp + 0xc0], rcx
jne 0x140077bbf
mov rbx, qword [r14 + 0x10]
jmp 0x140077bc2
mov rbx, r14
cmp byte [rbx + 0x23], 1
jne 0x140077be2
test byte [rbx + 0x21], 8
je 0x140077bde
mov rcx, rbx
call fcn.140001610
mov rcx, qword [rsp + 0xc0]
lea rdi, [rbx + 0x10]
lea rax, [rcx + rcx]
mov dword [rsp + 0x40], r12d
mov qword [rdi], rax
cmp byte [r14 + 0x23], 0
jne 0x140077bf9
mov r14, qword [r14 + 0x10]
cmp byte [r14 + 0x23], 2
jne 0x140077c1b
cmp qword [0x140164960], 0
je 0x140077c1b
lea rcx, [0x140164948]
call fcn.140007590
mov r14d, eax
jmp 0x140077c26
and byte [r14 + 0x21], 0x86
mov r14d, 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsp + 0x40]
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
cmp eax, 0xffffffff
je 0x140077c6f
mov rcx, qword [0x140160738]
mov edx, eax
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001570
test rsi, rsi
je 0x140077c7c
mov rcx, rsi
call fcn.1400f75c8
mov rax, qword [rsp + 0x48]
mov qword [0x1401609f8], rax
mov eax, r14d
add rsp, 0x98
pop r14
pop rsi
ret