Function at 0x53f360
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.0043e6e0
mov r8d, 0x50
mov rdx, r13
mov rcx, r12
call fcn.0043e740
mov rdx, rbp
mov rcx, r12
lea r13, [rbp + 0x40]
call fcn.0043e850
mov rcx, r12
call fcn.0044bbe0
mov r8d, 0x40
mov rdx, rbp
mov rcx, r12
call fcn.0044bc70
mov rdx, r13
mov rcx, r12
call fcn.0044bdb0
mov rcx, r12
call fcn.00464bc0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00464c20
lea r13, [rbp + 0x80]
mov rcx, r12
mov rdx, r13
call fcn.00464c30
mov rcx, r12
call fcn.00521860
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.005218a0
lea r13, [rbp + 0xc0]
mov rcx, r12
mov rdx, r13
call fcn.005218b0
mov rcx, r12
call fcn.004a4030
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004a40b0
lea r13, [rbp + 0x100]
mov rcx, r12
mov rdx, r13
call fcn.004a40c0
mov rcx, r12
call fcn.004a77c0
mov rdx, r13
mov r8d, 0x40
mov rcx, r12
call fcn.004a7840
lea r13, [rbp + 0x140]
mov rcx, r12
mov rdx, r13
call fcn.004a7850
mov rdi, qword [0x00614fb0]
mov rax, qword [rdi]
add rax, rsi
movzx eax, byte [rax]
test al, al
je 0x53f4be
xor eax, eax
add rsp, 0xb40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r14, [rbp + 0x180]
mov edx, 0x200
mov rcx, r12
call fcn.004be510
mov r8, r13
mov rdx, r14
mov rcx, r12
mov r9d, 0x40
lea r13, [rbp + 0x1c0]
call fcn.004be900
mov r9d, 0x20
mov edx, 0x200
mov rcx, r12
mov r8d, 0x10
call fcn.00455610
mov r8, r14
mov rdx, r13
mov rcx, r12
mov r9d, 0x40
lea r14, [rbp + 0x200]
call fcn.004558c0
mov rcx, r12
call fcn.00516d90
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00516df0
mov rdx, r14
mov rcx, r12
lea r13, [rbp + 0x240]
call fcn.00516eb0
mov edx, 0x200
mov rcx, r12
call fcn.00517fb0
mov rdx, r13
mov r8, r14
mov rcx, r12
mov r9d, 0x200
call fcn.00518aa0
mov rcx, r12
call fcn.0045c260
mov rdx, r13
mov r8d, 0x40
mov rcx, r12
call fcn.0045c2c0
lea r13, [rbp + 0x280]
mov rcx, r12
mov rdx, r13
call fcn.0045c2d0
mov rax, qword [rdi]
add rax, rsi
movzx eax, byte [rax]
test al, al
jne 0x53f4aa
mov rcx, r12
lea r14, [rbp + 0x340]
call fcn.0047a7a0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0047a7f0
lea r13, [rbp + 0x2c0]
mov rcx, r12
mov rdx, r13
call fcn.0047a8b0
mov rcx, r12
call fcn.0046e4d0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0046e570
lea r13, [rbp + 0x300]
mov rcx, r12
mov rdx, r13
call fcn.0046e580
mov rcx, r12
call fcn.0050dda0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0050de60
mov rdx, r14
mov rcx, r12
call fcn.0050de70
mov rcx, r12
call fcn.0052e170
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.0052e1c0
lea r14, [rbp + 0x380]
mov rcx, r12
mov rdx, r14
call fcn.0052e820
mov rcx, r12
call fcn.004e8b90
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.004e8be0
lea r14, [rbp + 0x400]
lea rdx, [rbp + 0x3c0]
mov rcx, r12
call fcn.004e9280
mov rdx, r14
mov rcx, r13
lea r13, [rbp + 0x440]
call fcn.00525de0
mov rcx, r12
call fcn.004941c0
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.00494200
mov rdx, r13
mov rcx, r12
call fcn.00494210
add rsi, qword [rdi]
movzx eax, byte [rsi]
test al, al
jne 0x53f4aa
mov rcx, r12
lea rsi, [rbp + 0x480]
lea r14, [rbp + 0x500]
call fcn.005277a0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.005277c0
mov rdx, rsi
mov rcx, r12
lea r13, [rbp + 0x4c0]
call fcn.005279d0
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.004bf5e0
mov rcx, r12
call fcn.0045d890
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.0045d8a0
lea r13, [rbp + 0x540]
mov rdx, r14
mov rcx, r12
call fcn.0045d910
mov r8d, 0x40
mov rdx, r14
mov rcx, r13
call fcn.004dff80
mov rcx, r12
call fcn.004cc040
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004cc0f0
lea r13, [rbp + 0x580]
mov rcx, r12
mov rdx, r13
call fcn.004cc7b0
lea r9, [rbp + 0x5c0]
mov r8d, 0x200
mov rdx, r13
mov ecx, 0x200
call fcn.004bbae0
lea r11, [0x0060fa10]
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 0x53f7e0
add r11, 2
cmp rdi, r11
jne 0x53f7d3
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.00441720
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 0x53f4ac