Function at 0x1401da880
Capabilities:
Acquire debug privileges
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1310]
mov eax, 0x1410
call fcn.140242000
sub rsp, rax
mov rax, qword [0x140284028]
xor rax, rsp
mov qword [rbp + 0x1300], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, [rbp + 0x1338]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov rax, qword [rdx]
xor rax, rcx
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov qword [rdx], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [r13 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1401da931
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1401da975
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdx, qword [rsp + 0x40]
xor rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdx
mov rcx, qword [rbp + 0x1300]
xor rcx, rsp
call fcn.140240c60
lea r11, [rsp + 0x1410]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
nop
mov dword [rbp + 0x12f4], 0xffffffff
mov dword [rsp + 0x74], eax
mov r12d, 1
mov edx, r12d
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x74], eax
inc rdx
cmp rdx, 0x270
jb 0x1401da9a0
mov dword [rsp + 0x70], 0x270
mov dword [rsp + 0x30], r13d
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1401da9ea
imul rax, rax, 0x64
jmp 0x1401daa05
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
lea r14, [rax + 0x5f5e100]
mov r15d, 0x80000000
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1401daa30
imul rax, rax, 0x64
jmp 0x1401daa4b
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, r14
jge 0x1401dac00
mov esi, 0x186a0
nop dword [rax]
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1401daa98
nop dword [rax + rax]
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1401daa80
shr rax, 0x20
lea ecx, [rax + 0x7fffff9c]
lea eax, [rcx + r15]
lea ebx, [rcx - 0x80000000]
cmp ecx, r15d
cmovae ebx, eax
test ebx, ebx
cmove ebx, r12d
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
mov edi, ebx
cmp eax, 0xc9
jae 0x1401daaf8
cmp eax, 0x64
jae 0x1401daaf8
nop dword [rax]
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1401daae0
shr rax, 0x20
lea ecx, [rax + 0x7fffff9c]
lea eax, [rcx + r15]
lea edx, [rcx - 0x80000000]
cmp ecx, r15d
cmovae edx, eax
mov eax, dword [rsp + 0x30]
add edx, eax
mov dword [rsp + 0x30], edx
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
mov ebx, edi
cmp eax, 0xc9
jae 0x1401dab58
cmp eax, 0x64
jae 0x1401dab58
nop dword [rax]
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1401dab40
shr rax, 0x20
lea ecx, [rax + 0x7fffff9c]
lea eax, [rcx + r15]
lea edx, [rcx - 0x80000000]
cmp ecx, r15d
cmovae edx, eax
mov eax, dword [rsp + 0x30]
imul edx, eax
mov dword [rsp + 0x30], edx
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
mov edi, ebx
cmp eax, 0xc9
jae 0x1401dabb8
cmp eax, 0x64
jae 0x1401dabb8
nop
lea rcx, [rsp + 0x70]
call fcn.140226f00
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1401daba0
shr rax, 0x20
lea edx, [rax + 0x7fffff9c]
lea eax, [rdx + r15]
lea ecx, [rdx - 0x80000000]
cmp edx, r15d
cmovae ecx, eax
mov eax, dword [rsp + 0x30]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cdq
idiv edi
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cdq
idiv edi
mov dword [rsp + 0x30], edx
sub rsi, r12
jne 0x1401daa60
jmp 0x1401daa12
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x60], r12d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x6c], 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1401da926
movzx eax, r12b
jmp 0x1401da933