Function at 0x58b400
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb40
xor eax, eax
lea rbp, [rsp + 0x8f]
mov rbx, rcx
mov ecx, 0xc8
mov r13, rdx
and rbp, 0xffffffffffffffc0
movsxd rsi, r8d
lea r12, [rbp + 0x640]
mov rdi, rbp
shl rsi, 7
rep stosq qword [rdi], rax
mov rcx, r12
call fcn.00435620
mov r8d, 0x50
mov rdx, r13
mov rcx, r12
call fcn.00435680
mov rdx, rbp
mov rcx, r12
lea r13, [rbp + 0x40]
call fcn.00435790
mov rcx, r12
call fcn.0044c7a0
mov r8d, 0x40
mov rdx, rbp
mov rcx, r12
call fcn.0044c830
mov rdx, r13
mov rcx, r12
call fcn.0044c970
mov rcx, r12
call fcn.0046cba0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0046cc00
lea r13, [rbp + 0x80]
mov rcx, r12
mov rdx, r13
call fcn.0046cc10
mov rcx, r12
call fcn.0054f1a0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0054f1e0
lea r13, [rbp + 0xc0]
mov rcx, r12
mov rdx, r13
call fcn.0054f1f0
mov rcx, r12
call fcn.004ab700
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004ab780
lea r13, [rbp + 0x100]
mov rcx, r12
mov rdx, r13
call fcn.004ab790
mov rcx, r12
call fcn.004bb0f0
mov rdx, r13
mov r8d, 0x40
mov rcx, r12
call fcn.004bb170
lea r13, [rbp + 0x140]
mov rcx, r12
mov rdx, r13
call fcn.004bb180
mov rdi, qword [0x0063edf0]
mov rax, qword [rdi]
add rax, rsi
movzx eax, byte [rax]
test al, al
je 0x58b55e
xor eax, eax
add rsp, 0xb40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rsp + 0x20], 0x40
lea r14, [rbp + 0x180]
mov r9, r13
mov rcx, r12
mov rdx, r14
mov r8d, 0x200
lea r13, [rbp + 0x1c0]
call fcn.004d7b80
mov r9, r14
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], 0x40
mov r8d, 0x200
lea r14, [rbp + 0x200]
call fcn.00456a20
mov rcx, r12
call fcn.005349a0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00534a00
lea r13, [rbp + 0x240]
mov rdx, r14
mov rcx, r12
call fcn.00534ac0
mov rdx, r13
mov r8, r14
mov rcx, r12
mov r9d, 0x40
call fcn.0054c730
mov rcx, r12
call fcn.00464240
mov rdx, r13
mov r8d, 0x40
mov rcx, r12
call fcn.004642a0
lea r13, [rbp + 0x280]
mov rcx, r12
mov rdx, r13
call fcn.004642b0
mov rax, qword [rdi]
add rax, rsi
movzx eax, byte [rax]
test al, al
jne 0x58b54a
mov rcx, r12
lea r14, [rbp + 0x340]
call fcn.00482780
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004827d0
lea r13, [rbp + 0x2c0]
mov rcx, r12
mov rdx, r13
call fcn.00482890
mov rcx, r12
call fcn.004764b0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00476550
lea r13, [rbp + 0x300]
mov rcx, r12
mov rdx, r13
call fcn.00476560
mov rcx, r12
call fcn.00522a70
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00522b30
mov rdx, r14
mov rcx, r12
call fcn.00522b40
mov rcx, r12
call fcn.00575530
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.00575580
lea r14, [rbp + 0x380]
mov rcx, r12
mov rdx, r14
call fcn.00575be0
mov rcx, r12
call fcn.00509ee0
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.00509f30
lea r14, [rbp + 0x400]
lea rdx, [rbp + 0x3c0]
mov rcx, r12
call fcn.0050a5d0
mov rdx, r14
mov rcx, r13
lea r13, [rbp + 0x440]
call fcn.0056d200
mov rcx, r12
call fcn.0049c1a0
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.0049c1e0
mov rdx, r13
mov rcx, r12
call fcn.0049c1f0
add rsi, qword [rdi]
movzx eax, byte [rsi]
test al, al
jne 0x58b54a
mov rcx, r12
lea rsi, [rbp + 0x480]
lea r14, [rbp + 0x500]
call fcn.0056ebc0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0056ebe0
mov rdx, rsi
mov rcx, r12
lea r13, [rbp + 0x4c0]
call fcn.0056edf0
mov qword [rsp + 0x20], rsi
mov r8, rsi
mov rcx, r13
mov qword [rsp + 0x40], 4
mov r9d, 0x20
mov edx, 0x20
lea rsi, [rbp + 0x5fe]
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], 0x20
call fcn.004defe0
mov rcx, r12
call fcn.00465870
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00465880
lea r13, [rbp + 0x540]
mov rdx, r14
mov rcx, r12
call fcn.004658f0
mov r8d, 0x40
mov rdx, r14
mov rcx, r13
call fcn.005096a0
mov rcx, r12
call fcn.004eb880
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004eb930
lea r13, [rbp + 0x580]
mov rcx, r12
mov rdx, r13
call fcn.004ebff0
lea r9, [rbp + 0x5c0]
mov r8d, 0x200
mov rdx, r13
mov ecx, 0x200
call fcn.004d4c80
lea r11, [0x006398f0]
lea rdi, [r11 + 0x18]
movzx r10d, word [r11]
mov r9, rsi
mov r8, rbp
xor edx, edx
nop
movzx eax, word [r9]
mov r14d, r10d
sub r9, 2
mov ecx, eax
imul eax, eax, 0xaaab
shr eax, 0x19
lea eax, [rax + rax*2]
shl eax, 8
sub ecx, eax
movzx eax, cx
mov ecx, edx
add edx, 1
and ecx, 0xf
shl r14d, cl
mov ecx, r14d
add cx, word [rbp + rax*2]
xor word [r8], cx
add r8, 2
cmp edx, 0x300
jne 0x58b860
add r11, 2
cmp rdi, r11
jne 0x58b852
mov dword [rsp + 0x28], 0
lea rsi, [rbp + 0x600]
mov rdx, rbp
xor r8d, r8d
mov qword [rsp + 0x20], 0x600
mov r9d, 0x20
mov rcx, rsi
call fcn.00442870
mov rax, qword [rbp + 0x600]
mov rdx, qword [rbp + 0x608]
mov qword [rbx], rax
mov rax, qword [rbp + 0x610]
mov qword [rbx + 8], rdx
mov rdx, qword [rbp + 0x618]
mov qword [rbx + 0x10], rax
mov eax, 1
mov qword [rbx + 0x18], rdx
jmp 0x58b54c