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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xaf8]
sub rsp, 0xbf8
movaps xmmword [rsp + 0xbe0], xmm6
mov r14, rdx
mov r13, rcx
mov rax, qword [rcx + 0x10]
mov r12, rax
sub r12, qword [rcx + 8]
sar r12, 3
mov qword [rsp + 0x48], r12
xor esi, esi
mov edi, dword [rdx + 8]
test edi, edi
je 0x14004df00
nop dword [rax + rax]
mov ebx, dword [r14 + 4]
mov eax, esi
add rbx, rax
add rbx, qword [r13]
sub edi, esi
xor r9d, r9d
lea r8, [rbp + 0xb40]
xor edx, edx
lea rcx, [0x14013ae80]
call qword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
je 0x14004e283
cmp dword [rbp + 0xb40], 0
je 0x14004dda5
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [0x14013e618]
call fcn.1400789d0
xor r8d, r8d
xor edx, edx
lea rcx, [0x14013ae80]
call qword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x14004e283
mov r8d, edi
lea r9, [rsp + 0x58]
mov rdx, rbx
lea rcx, [0x14013e618]
call fcn.1400788f0
lea rcx, [rbp + 0x520]
lea rdx, [rsp + 0x58]
mov r8d, 0x5c0
call fcn.140081640
movzx ecx, byte [rsp + 0x60]
mov eax, dword [r14 + 0xc]
add eax, esi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ecx
test byte [rbp + 0x388], 0x80
je 0x14004de0c
lea r9, [rbp + 0x520]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14004b510
jmp 0x14004dee7
cmp dword [rsp + 0x5c], 0x126
jne 0x14004de6d
mov rdi, qword [r13 + 0x10]
mov rbx, qword [r13 + 8]
cmp rbx, rdi
je 0x14004de42
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
jne 0x14004de35
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x20]
add rbx, 8
cmp rbx, rdi
jne 0x14004de23
mov rdi, qword [r13 + 0x10]
mov rbx, qword [r13 + 8]
cmp rbx, rdi
je 0x14004dee7
nop
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x14004de62
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x20]
add rbx, 8
cmp rbx, rdi
jne 0x14004de50
jmp 0x14004dee7
mov ecx, 0x38
call fcn.1400753a0
movaps xmm0, xmmword [rsp + 0x30]
movzx ecx, byte [rbp + 0x528]
xor r8d, r8d
mov qword [rax + 0x18], r8
mov byte [rax + 0x20], r8b
lea rdx, vtable.DefaultTranslation.0
mov qword [rax], rdx
mov qword [rax + 0x28], rbx
mov dword [rax + 0x30], ecx
movups xmmword [rax + 8], xmm0
mov qword [rbp + 0xb48], rax
mov rdx, qword [r13 + 0x10]
cmp rdx, qword [r13 + 0x18]
je 0x14004dec1
mov ecx, r8d
mov qword [rdx], rax
add qword [r13 + 0x10], 8
jmp 0x14004ded8
lea r8, [rbp + 0xb48]
lea rcx, [r13 + 8]
call fcn.14004eb80
mov rcx, qword [rbp + 0xb48]
test rcx, rcx
je 0x14004dee7
mov edx, 0x28
call fcn.14007562c
movzx eax, byte [rbp + 0x528]
add esi, eax
mov edi, dword [r14 + 8]
cmp esi, edi
jb 0x14004dd40
mov rax, qword [r13 + 0x10]
mov ebx, r12d
sub rax, qword [r13 + 8]
sar rax, 3
movsxd r8, r12d
mov qword [rsp + 0x28], r8
cmp r8, rax
jae 0x14004df48
nop dword [rax + rax]
mov r8d, r12d
mov edx, ebx
mov rcx, r13
call fcn.14004c990
inc ebx
mov rcx, qword [r13 + 0x10]
sub rcx, qword [r13 + 8]
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jb 0x14004df20
mov r8, qword [rsp + 0x28]
xor ecx, ecx
mov dword [rbp + 0xb48], ecx
mov edx, 4
lea rsi, [0x14013d040]
lea r14, vtable.ModifiedTranslation.0
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r13 + 0x10]
sub rax, qword [r13 + 8]
sar rax, 3
cmp r8, rax
jae 0x14004e232
mov rax, qword gs:[0x58]
mov rax, qword [rax]
add rax, rdx
mov qword [rsp + 0x40], rax
lea rdi, [r8*8]
mov qword [rsp + 0x20], rdi
mov eax, dword [rax]
cmp dword [0x14013d03c], eax
jle 0x14004e024
lea rcx, [0x14013d03c]
call fcn.1400758c8
cmp dword [0x14013d03c], 0xffffffff
jne 0x14004e024
mov dword [0x14013e3c4], 0xffffffff
mov dword [0x14013d044], 0x1571
mov edx, 0x1571
mov eax, 1
nop dword [rax]
nop word [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsi + rax*4 + 4], edx
inc rax
cmp rax, 0x270
jb 0x14004dff0
mov dword [0x14013d040], 0x270
lea rcx, [0x14013d03c]
call fcn.140075868
call fcn.140074154
mov rbx, rax
call fcn.140074138
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add r8, rax
mov dword [0x14013d044], r8d
mov edx, 1
nop dword [rax + rax]
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [rsi + rdx*4 + 4], ecx
mov r8d, ecx
inc rdx
cmp rdx, 0x270
jb 0x14004e060
mov dword [0x14013d040], 0x270
mov rcx, rsi
call fcn.14004e350
mov r8d, eax
mov eax, 0x446f8657
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
imul ecx, ecx, 0x65
sub r8d, ecx
cmp r8d, 7
jae 0x14004e1f9
mov rax, qword [r13 + 8]
mov rbx, qword [rdi + rax]
test rbx, rbx
je 0x14004e1f9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test al, al
je 0x14004e1f9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
cmp byte [rax], 0x90
jne 0x14004e0fe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
cmp eax, 1
je 0x14004e1f9
movups xmm6, xmmword [rbx + 8]
mov ecx, 0x38
call fcn.1400753a0
mov rsi, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
mov qword [rsi + 0x18], rax
mov byte [rsi + 0x20], al
mov qword [rsi], r14
lea r14, [rsi + 0x28]
mov qword [r14], rax
mov dword [rsi + 0x30], eax
mov qword [rbp + 0xb58], rax
mov dword [rbp + 0xb40], eax
lea r8, [0x14010b72c]
xor edx, edx
xor ecx, ecx
call fcn.140013e40
movsxd rbx, eax
test eax, eax
je 0x14004e265
lea rcx, [rbx + 1]
call fcn.140075634
mov rdi, rax
lea r8, [0x14010b72c]
lea rdx, [rbx + 1]
mov rcx, rax
call fcn.14004a880
lea r8, [rbp + 0xb40]
lea rdx, [rbp + 0xb58]
mov rcx, rdi
call fcn.140056240
movzx ebx, al
mov rcx, rdi
call fcn.14007562c
test bl, bl
je 0x14004e265
movups xmmword [rsi + 8], xmm6
lea rax, [rsp + 0x30]
cmp r14, rax
je 0x14004e1be
mov rcx, qword [r14]
mov rax, qword [rbp + 0xb58]
mov qword [r14], rax
jmp 0x14004e1c5
mov rcx, qword [rbp + 0xb58]
test rcx, rcx
je 0x14004e1cf
call fcn.14007562c
mov eax, dword [rbp + 0xb40]
mov dword [rsi + 0x30], eax
movsxd rdx, r12d
mov r8, rsi
mov rcx, r13
call fcn.14004a930
mov rdi, qword [rsp + 0x20]
lea rsi, [0x14013d040]
lea r14, vtable.ModifiedTranslation.0
inc r12d
add rdi, 8
mov qword [rsp + 0x20], rdi
mov rcx, qword [r13 + 0x10]
sub rcx, qword [r13 + 8]
sar rcx, 3
movsxd rax, r12d
cmp rax, rcx
mov rax, qword [rsp + 0x40]
jb 0x14004dfa6
mov ecx, dword [rbp + 0xb48]
mov r8, qword [rsp + 0x28]
mov edx, 4
inc ecx
mov dword [rbp + 0xb48], ecx
cmp ecx, 5
jge 0x14004e249
mov r12, qword [rsp + 0x48]
jmp 0x14004df70
movaps xmm6, xmmword [rsp + 0xbe0]
add rsp, 0xbf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rbp + 0xb50], 1
lea rdx, [0x14012e258]
lea rcx, [rbp + 0xb50]
call fcn.140081564
nop
call fcn.14008806c
int3