Function at 0x140004600
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 - 0x1330]
mov eax, 0x1430
call fcn.140012150
sub rsp, rax
mov rax, qword [0x14004d080]
xor rax, rsp
mov qword [rbp + 0x1320], rax
mov rsi, rcx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov dword [rsp + 0x60], edi
movdqa xmm0, xmmword [0x140046200]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x140046220]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [0x140046210]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [str.gfihk_______]
movdqa xmmword [rsp + 0x50], xmm1
mov ecx, edi
nop word [rax + rax]
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x21], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x22], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x23], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x24], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x25], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x26], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x27], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x28], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x29], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x2a], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x2b], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x2c], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x2d], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x2e], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x2f], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x30], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x31], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x32], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x33], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x34], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x35], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x36], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x37], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x38], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x39], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x3a], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x3b], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x3c], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x3d], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x3e], al
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x3f], al
add rcx, 0x1f
cmp rcx, 0x3e
jb 0x140004690
mov byte [rsp + 0x5f], dil
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
lea rax, [rsp + 0x21]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x1400047d6
lea rdx, [rsp + 0x21]
lea rcx, [rsp + 0x70]
call fcn.140001ce0
nop
call fcn.140011144
mov edx, eax
mov dword [rbp + 0x1314], 0xffffffff
mov dword [rbp - 0x6c], eax
mov ecx, 1
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x6c], edx
inc rcx
cmp rcx, 0x270
jb 0x140004810
mov ebx, 0x270
mov dword [rbp - 0x70], ebx
mov r14d, dword [rbp - 0x80]
dec r14d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov dword [rsp + 0x60], 1
mov r12d, 0x20
mov r13, qword [rbp - 0x78]
mov r15, qword [rsp + 0x70]
nop word [rax + rax]
cmp r14d, 0xffffffff
jne 0x1400049e4
cmp ebx, 0x270
jne 0x1400048d1
lea r8, [rbp - 0x68]
mov r9d, ebx
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140004890
mov ebx, dword [rbp - 0x70]
jmp 0x1400049ab
cmp ebx, 0x4e0
jb 0x1400049ab
mov r8, rdi
mov eax, dword [rbp + r8*4 + 0x954]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x958]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 + 0xf88]
shr edx, 1
xor ecx, edx
mov dword [rbp + r8*4 - 0x6c], ecx
inc r8
cmp r8, 0xe3
jb 0x1400048e0
mov r8d, 0xe3
nop dword [rax]
mov eax, dword [rbp + r8*4 + 0x954]
mov edx, eax
xor edx, dword [rbp + r8*4 + 0x958]
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 [rbp + r8*4 - 0x3f8]
mov dword [rbp + r8*4 - 0x6c], ecx
inc r8
cmp r8, 0x26f
jb 0x140004930
mov edx, dword [rbp + 0x1310]
and edx, 0x80000000
mov eax, dword [rbp - 0x6c]
btr eax, 0x1f
or 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 [rbp + 0x5c4]
mov dword [rbp + 0x950], ecx
mov ebx, edi
mov dword [rbp - 0x70], ebx
mov eax, ebx
mov edx, dword [rbp + rax*4 - 0x6c]
inc ebx
mov dword [rbp - 0x70], ebx
mov eax, edx
shr eax, 0xb
and eax, dword [rbp + 0x1314]
xor edx, eax
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 ecx, 0x12
xor ecx, edx
jmp 0x140004a2c
lea ebx, [r14 + 1]
lea rcx, [rbp - 0x70]
call fcn.14000ed50
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x140004a23
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140004a23
nop dword [rax + rax]
lea rcx, [rbp - 0x70]
call fcn.14000ed50
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140004a10
shr rcx, 0x20
mov ebx, dword [rbp - 0x70]
xor edi, edi
lea rdx, [rsp + 0x70]
cmp r13, 0xf
cmova rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140004a6d
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140004a62
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140004a7c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.14000d820
sub r12, 1
jne 0x140004870
cmp r13, 0xf
jbe 0x140004ab9
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140004ab1
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004aec
mov rcx, r15
call fcn.140011b5c
mov rax, rsi
mov rcx, qword [rbp + 0x1320]
xor rcx, rsp
call fcn.140011b00
lea r11, [rsp + 0x1430]
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.14001899c
int3