Function at 0x140057a20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1ec0]
mov eax, 0x1fc0
call fcn.1400a9120
sub rsp, rax
mov rax, qword [0x1400d8180]
xor rax, rsp
mov qword [rbp + 0x1eb0], rax
mov r13, rcx
mov qword [rsp + 0x78], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
lea rcx, str.nidavellir::auth::hwid::get
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
lea rcx, [rbp + 0x9c0]
call fcn.1400568a0
nop
lea rcx, [rbp + 0x9a0]
call fcn.140056c30
nop
lea rcx, [rbp + 0xa00]
call fcn.140057060
nop
lea rcx, [rbp + 0x9e0]
call fcn.1400573a0
nop
lea rcx, [rbp + 0x980]
call fcn.1400576c0
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x9d0]
sub rax, rcx
mov rdx, qword [rbp + 0x9b0]
cmp rax, rdx
jb 0x140058399
lea r9, [rbp + 0x9c0]
cmp qword [rbp + 0x9d8], 0xf
cmova r9, qword [rbp + 0x9c0]
lea rax, [rbp + 0x9a0]
cmp qword [rbp + 0x9b8], 0xf
cmova rax, qword [rbp + 0x9a0]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x9c0]
movzx edx, byte [rsp + 0x44]
lea rcx, [rbp - 0x80]
call fcn.140009c00
mov dword [rsp + 0x40], 2
lea rdx, [rbp + 0xa00]
cmp qword [rbp + 0xa18], 0xf
cmova rdx, qword [rbp + 0xa00]
mov r8, qword [rbp + 0xa10]
lea rcx, [rbp - 0x80]
call fcn.140007f90
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x40], 6
lea rdx, [rbp + 0x9e0]
cmp qword [rbp + 0x9f8], 0xf
cmova rdx, qword [rbp + 0x9e0]
mov r8, qword [rbp + 0x9f0]
lea rcx, [rsp + 0x58]
call fcn.140007f90
xorps xmm0, xmm0
movups xmmword [rbp + 0x960], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x970], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x960], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x970], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x40], recv
lea rdx, [rbp + 0x980]
cmp qword [rbp + 0x998], 0xf
cmova rdx, qword [rbp + 0x980]
mov r8, qword [rbp + 0x990]
lea rcx, [rbp + 0x960]
call fcn.140007f90
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
mov dword [rsp + 0x40], 0x1f
mov rdx, qword [rbp + 0x978]
cmp rdx, 0xf
jbe 0x140057ca7
inc rdx
mov rcx, qword [rbp + 0x960]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057ca2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057ca2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
movdqa xmm0, xmmword [0x1400bd200]
movdqu xmmword [rbp + 0x970], xmm0
mov byte [rbp + 0x960], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140057cfe
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057cf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057cf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
movdqa xmm0, xmmword [0x1400bd200]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140057d4f
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057d4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057d4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x960], xmm0
mov qword [rbp + 0x970], rax
mov rdx, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0xf
jbe 0x140057d77
add rdx, qword [r13]
mov rbx, qword [r13]
jmp 0x140057d7d
add rdx, r13
mov rbx, r13
mov rdi, rdx
movdqu xmmword [rbp + 0x960], xmm0
mov rcx, rsi
mov qword [rbp + 0x970], rcx
cmp rbx, rdx
je 0x140057de2
mov rdx, qword [rbp + 0x968]
nop
movsx eax, byte [rbx]
mov dword [rsp + 0x48], eax
cmp rdx, rcx
je 0x140057dbb
mov dword [rdx], eax
add rdx, 4
mov qword [rbp + 0x968], rdx
jmp 0x140057dda
lea r8, [rsp + 0x48]
lea rcx, [rbp + 0x960]
call fcn.140059250
mov rcx, qword [rbp + 0x970]
mov rdx, qword [rbp + 0x968]
inc rbx
cmp rbx, rdi
jne 0x140057da0
mov edi, 0xffffffff
mov dword [rbp + 0x1da4], edi
mov edx, 0x1571
mov dword [rbp + 0xa24], edx
mov r15d, 1
mov ecx, r15d
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 + 0xa24], edx
inc rcx
cmp rcx, 0x270
jb 0x140057e01
lea r8, [rbp + 0x960]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x960]
call fcn.140059060
xor edx, edx
xor r8d, r8d
nop
mov eax, dword [rbp + r8*4 - 0x60]
mov dword [rbp + r8*4 + 0xa24], eax
mov ecx, eax
or ecx, edx
mov edx, eax
shr edx, 0x1f
test r8, r8
cmovne edx, ecx
inc r8
cmp r8, 0x270
jb 0x140057e40
mov eax, dword [rbp + 0xa24]
mov ecx, 0x80000000
test edx, edx
cmove eax, ecx
mov dword [rbp + 0xa24], eax
mov r8d, 0x270
mov dword [rbp + 0xa20], r8d
cmp qword [r13 + 0x18], 0xf
jbe 0x140057e9f
mov rdx, qword [r13]
mov r9, rdx
add rdx, qword [r13 + 0x10]
jmp 0x140057ea9
mov rdx, qword [r13 + 0x10]
add rdx, r13
mov r9, r13
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], rdx
mov ecx, 0x40
mov rbx, 0xffffffffffffffff
mov rsi, rbx
lea rcx, [rcx - 1]
shr rsi, 1
cmp rsi, rdi
ja 0x140057ec2
cmp r9, rdx
je 0x140058153
lea rax, [r9 + 1]
cmp rax, rdx
je 0x140058153
lea r14, [rcx - 1]
nop dword [rax + rax]
lea r12, [r15 + 1]
nop dword [rax]
nop dword [rax + rax]
xor edi, edi
xor ebx, ebx
test r15, r15
je 0x1400580ed
nop dword [rax]
mov rcx, r14
shl rdi, cl
add rdi, rdi
nop dword [rax]
cmp r8d, 0x270
jne 0x140057f88
lea rax, [rbp + 0xa28]
mov r9d, r8d
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
btr r8d, 0x1f
xor r8d, dword [rax - 4]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [rax + 0x630]
shr r8d, 1
xor edx, r8d
mov dword [rax + 0x9bc], edx
lea rax, [rax + 4]
sub r9, 1
jne 0x140057f40
mov r8d, dword [rbp + 0xa20]
jmp 0x14005808c
cmp r8d, 0x4e0
jb 0x14005808c
lea r9, [rbp + 0x13e4]
mov r11d, 0xe3
mov r10d, dword [rbp + 0x13e4]
nop dword [rax]
mov eax, r10d
mov r8, r9
add r9, 4
mov r10d, dword [r9]
mov edx, r10d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [r8 + 0x634]
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x140057fb0
lea r9, [rbp + 0x1770]
mov r11d, 0x18c
mov r10d, dword [rbp + 0x1770]
nop dword [rax]
nop word [rax + rax]
mov eax, r10d
mov r8, r9
add r9, 4
mov r10d, dword [r9]
mov edx, r10d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x140058010
mov edx, dword [rbp + 0xa24]
xor edx, dword [rbp + 0x1da0]
btr edx, 0x1f
xor edx, dword [rbp + 0x1da0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x1054]
mov dword [rbp + 0x13e0], ecx
xor r8d, r8d
mov dword [rbp + 0xa20], r8d
mov eax, r8d
mov ecx, dword [rbp + rax*4 + 0xa24]
inc r8d
mov dword [rbp + 0xa20], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x1da4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cmp rax, rsi
ja 0x140057f20
or rdi, rax
mov rcx, r14
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x140057f10
xor edx, edx
mov rax, rbx
div r12
mov rcx, rax
xor edx, edx
mov rax, rdi
div r12
cmp rax, rcx
jb 0x140058116
xor edx, edx
mov rax, rbx
div r12
cmp rdx, r15
jne 0x140057f00
xor edx, edx
mov rax, rdi
div r12
mov r9, qword [rsp + 0x48]
cmp rdx, r15
je 0x14005813a
movzx ecx, byte [r15 + r9]
movzx eax, byte [rdx + r9]
mov byte [r15 + r9], al
mov byte [rdx + r9], cl
inc r15
lea rax, [r15 + r9]
cmp rax, qword [rsp + 0x50]
jne 0x140057ef0
mov rbx, 0xffffffffffffffff
mov edx, 0x100
lea rcx, [rbp + 0x1db0]
call qword [sym.imp.VMProtectSDK64.dll_VMProtectGetCurrentHWID]
lea rax, [rbp + 0x1db0]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140058170
mov r8, rbx
lea rdx, [rbp + 0x1db0]
mov rcx, r13
call fcn.140007f90
nop
mov rcx, qword [rbp + 0x960]
test rcx, rcx
je 0x1400581dc
mov rax, qword [rbp + 0x970]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400581d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400581d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
nop
mov rdx, qword [rbp + 0x998]
cmp rdx, 0xf
jbe 0x140058220
inc rdx
mov rcx, qword [rbp + 0x980]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005821b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005821b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
xor esi, esi
mov qword [rbp + 0x990], rsi
mov qword [rbp + 0x998], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x980], sil
mov rdx, qword [rbp + 0x9f8]
cmp rdx, 0xf
jbe 0x140058280
inc rdx
mov rcx, qword [rbp + 0x9e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005827a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005827a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
nop
mov rdx, qword [rbp + 0xa18]
cmp rdx, 0xf
jbe 0x1400582c5
inc rdx
mov rcx, qword [rbp + 0xa00]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400582bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400582bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
nop
mov rdx, qword [rbp + 0x9b8]
cmp rdx, 0xf
jbe 0x140058309
inc rdx
mov rcx, qword [rbp + 0x9a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058304
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058304
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
mov qword [rbp + 0x9b0], rsi
mov qword [rbp + 0x9b8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x9a0], 0
mov rdx, qword [rbp + 0x9d8]
cmp rdx, 0xf
jbe 0x140058366
inc rdx
mov rcx, qword [rbp + 0x9c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058361
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058361
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
mov rax, r13
mov rcx, qword [rbp + 0x1eb0]
xor rcx, rsp
call fcn.1400a86f0
lea r11, [rsp + 0x1fc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400018d0
int3