Function at 0x52e4d0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb40
lea rsi, [rsp + 0x8f]
mov r13, rdx
movsxd rdi, r8d
and rsi, 0xffffffffffffffc0
mov r8d, 0x640
xor edx, edx
lea r12, [rsi + 0x640]
mov rbx, rcx
mov rcx, rsi
call sub.msvcrt.dll_memset
lea rbp, [rsi + 0x40]
mov rcx, r12
shl rdi, 7
call fcn.00437dd0
mov r8d, 0x50
mov rdx, r13
mov rcx, r12
call fcn.00437e30
mov rdx, rsi
mov rcx, r12
call fcn.00437f40
lea r13, [rsi + 0x80]
mov rcx, r12
call fcn.00443ad0
mov r8d, 0x40
mov rdx, rsi
mov rcx, r12
call fcn.00443b70
mov rdx, rbp
mov rcx, r12
call fcn.00443cb0
mov edx, 0x40
mov rcx, r12
call fcn.00452370
mov r8, rbp
mov rdx, r13
mov rcx, r12
mov r9d, 0x200
call fcn.00452ac0
mov rcx, r12
call fcn.00513050
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.005130a0
lea r13, [rsi + 0xc0]
mov rcx, r12
mov rdx, r13
call fcn.005130b0
mov rcx, r12
call fcn.004a28c0
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004a2950
lea r13, [rsi + 0x100]
mov rcx, r12
mov rdx, r13
call fcn.004a2960
mov rcx, r12
call fcn.004a5fc0
mov rdx, r13
mov r8d, 0x40
mov rcx, r12
call fcn.004a6030
lea r13, [rsi + 0x140]
mov rcx, r12
mov rdx, r13
call fcn.004a6040
mov rbp, qword [0x005fdfa0]
mov rax, qword [rbp]
add rax, rdi
movzx eax, byte [rax]
test al, al
je 0x52e62f
xor eax, eax
add rsp, 0xb40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r14, [rsi + 0x180]
mov edx, 0x200
mov rcx, r12
call fcn.004bc180
mov r8, r13
mov rdx, r14
mov rcx, r12
lea r13, [rsi + 0x1c0]
mov r9d, 0x40
call fcn.004bc4f0
mov r9d, 0x20
mov edx, 0x200
mov rcx, r12
mov r8d, 0x10
call fcn.0044b620
mov r8, r14
mov rdx, r13
mov rcx, r12
lea r14, [rsi + 0x200]
mov r9d, 0x40
call fcn.0044b8f0
mov rcx, r12
call fcn.00509880
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.005098e0
mov rdx, r14
mov rcx, r12
call fcn.005099a0
lea r13, [rsi + 0x240]
mov edx, 0x200
mov rcx, r12
call fcn.0050a930
mov r8, r14
mov rdx, r13
mov rcx, r12
lea r14, [rsi + 0x280]
mov r9d, 0x200
call fcn.0050b390
mov edx, 0x200
mov rcx, r12
call fcn.0044e1f0
mov r8, r13
mov rdx, r14
mov rcx, r12
mov r9d, 0x200
call fcn.0044e740
mov rax, qword [rbp]
add rax, rdi
movzx eax, byte [rax]
test al, al
jne 0x52e61b
lea r13, [rsi + 0x300]
mov rcx, r12
call fcn.0046fd80
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.0046fdd0
lea r14, [rsi + 0x2c0]
mov rcx, r12
mov rdx, r14
call fcn.0046fe90
mov r8, r14
mov rdx, r13
mov rcx, r12
lea r14, [rsi + 0x340]
mov r9d, 0x40
call fcn.004638b0
mov rcx, r12
call fcn.00501b60
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00501c20
mov rdx, r14
mov rcx, r12
call fcn.00501c30
mov rcx, r12
call fcn.0051df20
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.0051df70
lea r14, [rsi + 0x380]
mov rcx, r12
mov rdx, r14
call fcn.0051e5a0
mov rcx, r12
call fcn.004e49b0
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.004e4a00
lea r14, [rsi + 0x400]
mov rcx, r12
lea rdx, [rsi + 0x3c0]
call fcn.004e4ff0
mov rdx, r14
mov rcx, r13
call fcn.00516210
lea r13, [rsi + 0x440]
mov rcx, r12
call fcn.00489830
mov r8d, 0x40
mov rdx, r14
mov rcx, r12
call fcn.00489870
mov rdx, r13
mov rcx, r12
call fcn.00489880
add rdi, qword [rbp]
movzx eax, byte [rdi]
test al, al
jne 0x52e61b
lea rdi, [rsi + 0x480]
mov rcx, r12
call fcn.00517640
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00517660
mov rdx, rdi
mov rcx, r12
call fcn.00517860
mov r9d, 0x20
mov r8, rdi
mov edx, 0x20
lea r13, [rsi + 0x4c0]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x40], 4
mov rcx, r13
mov qword [rsp + 0x38], 4
lea r14, [rsi + 0x500]
mov qword [rsp + 0x30], 1
lea rdi, [rsi + 0x5fe]
mov qword [rsp + 0x28], 0x20
call fcn.004bd1f0
mov rcx, r12
call fcn.00450080
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.00450090
lea r13, [rsi + 0x540]
mov rdx, r14
mov rcx, r12
call fcn.00450100
mov r8d, 0x40
mov rdx, r14
mov rcx, r13
call fcn.004dbf00
mov rcx, r12
call fcn.004c7a40
mov r8d, 0x40
mov rdx, r13
mov rcx, r12
call fcn.004c7ae0
lea r13, [rsi + 0x580]
mov rcx, r12
mov rdx, r13
call fcn.004c81a0
lea r9, [rsi + 0x5c0]
mov r8d, 0x200
mov rdx, r13
mov ecx, 0x200
call fcn.004ba160
lea r11, [0x005f89c0]
lea rbp, [r11 + 0x18]
movzx r10d, word [r11]
mov r9, rdi
mov r8, rsi
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 [rsi + rax*2]
xor word [r8], cx
add r8, 2
cmp edx, 0x300
jne 0x52e940
add r11, 2
cmp rbp, r11
jne 0x52e933
lea rdi, [rsi + 0x600]
mov rdx, rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x600
mov r9d, 0x20
mov rcx, rdi
call fcn.0043a6e0
mov rax, qword [rsi + 0x600]
mov rdx, qword [rsi + 0x608]
mov qword [rbx], rax
mov rax, qword [rsi + 0x610]
mov qword [rbx + 8], rdx
mov rdx, qword [rsi + 0x618]
mov qword [rbx + 0x10], rax
mov eax, 1
mov qword [rbx + 0x18], rdx
jmp 0x52e61d