Function at 0x18001f964
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x12f0]
mov eax, 0x13f0
call fcn.180003e40
sub rsp, rax
mov rax, qword [0x1800620b0]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
xor r15d, r15d
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], r15d
mov r13, r9
mov ebx, r15d
mov esi, r15d
mov edi, r15d
test r8, r8
je 0x18001fc36
xor eax, eax
mov qword [r8], rax
test ecx, 0xffffff7f
je 0x18001fc31
lea r9d, [r15 + 2]
xor ecx, ecx
lea r8d, [r15 + 4]
lea rdx, [rsp + 0x20]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
test eax, eax
je 0x18001fa37
mov rax, qword [section..data]
lea rcx, section..data
cmp rax, rcx
je 0x18001fc87
cmp byte [rax + 0x69], 1
jb 0x18001fc87
test byte [rax + 0x6c], 2
je 0x18001fc87
lea edx, [r15 + 0x17]
mov r9d, ebx
mov rcx, qword [rax + 0x60]
lea r8, [0x180053ab8]
call fcn.1800064c0
jmp 0x18001fc87
mov ecx, dword [rsp + 0x20]
mov edx, 1
or dword [rbp + 0x12d4], 0xffffffff
mov r8d, edx
mov dword [rsp + 0x54], ecx
mov r9d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rsp + rdx*4 + 0x54], ecx
inc rdx
cmp rdx, r9
jl 0x18001fa54
mov ecx, 0x20
mov dword [rsp + 0x50], r9d
call sym.wlanapi.dll_WlanAllocateMemory
mov rsi, rax
test rax, rax
jne 0x18001fac4
lea r9d, [rax + 0xe]
mov ebx, r9d
mov rax, qword [section..data]
lea rcx, section..data
cmp rax, rcx
je 0x18001fc87
cmp byte [rax + 0x69], 1
jb 0x18001fc87
test byte [rax + 0x6c], 2
je 0x18001fc87
lea edx, [rsi + 0x18]
jmp 0x18001fa22
mov ecx, 0x12
call sym.wlanapi.dll_WlanAllocateMemory
mov rdi, rax
test rax, rax
jne 0x18001fb20
lea r9d, [rax + 0xe]
mov ebx, r9d
mov rax, qword [section..data]
lea rcx, section..data
cmp rax, rcx
je 0x18001fc6d
cmp byte [rax + 0x69], 1
jb 0x18001fc6d
test byte [rax + 0x6c], 2
je 0x18001fc6d
lea edx, [rdi + 0x19]
mov rcx, qword [rax + 0x60]
lea r8, [0x180053ab8]
call fcn.1800064c0
jmp 0x18001fc6d
mov r14d, r15d
mov ebx, r15d
mov r15, rsi
mov r12d, 0x80000000
or dword [rsp + 0x40], 0xffffffff
lea rax, [rsp + 0x50]
mov edx, 0xa
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], 0x20
call fcn.18001d93c
lea ecx, [rax + r12]
cmp ecx, r12d
lea edx, [rcx - 0x80000000]
cmovae edx, eax
add r14d, edx
mov dword [r15], edx
test bl, 1
jne 0x18001fb75
lea r14d, [r14 + rdx*2]
inc ebx
add r15, 4
cmp ebx, 7
jb 0x18001fb2f
mov r12, qword [rsp + 0x28]
mov r9d, 0x66666667
mov eax, r9d
mov r10, rsi
imul r14d
mov eax, r9d
sar edx, 2
mov ecx, edx
inc edx
shr ecx, 0x1f
add ecx, edx
lea r8d, [rcx + rcx*4]
mov rcx, rdi
add r8d, r8d
sub r8d, r14d
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
mov edx, 8
add eax, eax
sub r8d, eax
mov dword [rsi + 0x1c], r8d
mov r8d, edx
movzx eax, word [r10]
lea r10, [r10 + 4]
add ax, 0x30
mov word [rcx], ax
lea rcx, [rcx + 2]
sub r8, 1
jne 0x18001fbd1
xor r15d, r15d
mov r9, r13
mov r8, r12
mov word [rdi + 0x10], r15w
mov rcx, rdi
call fcn.18001e3f0
mov ebx, eax
test eax, eax
je 0x18001fc6d
mov rax, qword [section..data]
lea rcx, section..data
cmp rax, rcx
je 0x18001fc6d
cmp byte [rax + 0x69], 1
jb 0x18001fc6d
test byte [rax + 0x6c], 2
je 0x18001fc6d
lea edx, [r15 + 0x1a]
mov r9d, ebx
jmp 0x18001fb0b
mov dword [r9], r15d
jmp 0x18001fc6d
mov ebx, 0x57
mov rax, qword [section..data]
lea rcx, section..data
cmp rax, rcx
je 0x18001fc87
cmp byte [rax + 0x69], 1
jb 0x18001fc87
test byte [rax + 0x6c], 2
je 0x18001fc87
mov rcx, qword [rax + 0x60]
lea edx, [rbx - 0x41]
lea r8, [0x180053ab8]
call fcn.18000649c
test rsi, rsi
je 0x18001fc7a
mov rcx, rsi
call fcn.1800244d4
test rdi, rdi
je 0x18001fc87
mov rcx, rdi
call fcn.1800244d4
mov eax, ebx
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.180002270
mov rbx, qword [rsp + 0x1430]
add rsp, 0x13f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret