Function at 0x497000
Capabilities:
Encode data using xor

Disassembly:
push r12
push r15
sub rsp, 0x18
mov r12, rcx
xor r15d, r15d
mov ecx, r8d
add ecx, 0xffffff80
mov r9d, r8d
mov dword [0x004b9ba0], r15d
je 0x497053
sub ecx, 0x40
je 0x497045
cmp ecx, 0x40
je 0x497037
lea eax, [r15 + 1]
add rsp, 0x18
pop r15
pop r12
ret
mov dword [r12 + 0x200], 0xe
jmp 0x49705f
mov dword [r12 + 0x200], 0xc
jmp 0x49705f
mov dword [r12 + 0x200], 0xa
mov qword [rsp + 0x38], rbp
mov eax, r8d
mov qword [rsp], r14
sar eax, 5
mov rbp, r12
test eax, eax
jle 0x4970b1
mov r8, r12
add rdx, 2
mov r10d, eax
nop
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx - 2]
add r8, 4
shl ecx, 8
add rdx, 4
or ecx, eax
movzx eax, byte [rdx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 3]
shl ecx, 8
or ecx, eax
sub r10, 1
mov dword [r8 - 4], ecx
jne 0x497080
add r9d, 0xffffff80
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r13
lea r14, [0x00496000]
je 0x497409
sub r9d, 0x40
je 0x4971ea
cmp r9d, 0x40
jne 0x49763e
lea r11, [0x004b0da0]
lea rbx, [0x004b0dbc]
nop
nop
nop
nop
mov r10d, dword [rbp + 0x1c]
add r11, 4
add rbp, 0x20
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
mov edx, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
movzx ecx, al
shl edx, 8
movzx eax, r10b
xor edx, dword [r14 + rcx*4 + 0x185a0]
shl edx, 8
xor edx, dword [r14 + rax*4 + 0x185a0]
mov eax, r10d
shr eax, 0x18
shl edx, 8
movzx ecx, al
mov eax, dword [rbp - 0x1c]
xor edx, dword [r14 + rcx*4 + 0x185a0]
mov ecx, dword [rbp - 0x18]
xor edx, dword [r11 - 4]
xor edx, dword [rbp - 0x20]
xor eax, edx
mov dword [rbp], edx
mov edx, dword [rbp - 0x14]
xor ecx, eax
mov dword [rbp + 4], eax
xor edx, ecx
mov dword [rbp + 8], ecx
mov dword [rbp + 0xc], edx
mov eax, edx
shr eax, 0x18
movzx ecx, al
mov eax, edx
shr edx, 8
mov r8d, dword [r14 + rcx*4 + 0x185a0]
shr eax, 0x10
shl r8d, 8
movzx ecx, al
movzx eax, dl
xor r8d, dword [r14 + rcx*4 + 0x185a0]
mov ecx, dword [rbp - 8]
shl r8d, 8
xor r8d, dword [r14 + rax*4 + 0x185a0]
movzx eax, byte [rbp + 0xc]
shl r8d, 8
xor r8d, dword [r14 + rax*4 + 0x185a0]
mov eax, dword [rbp - 0xc]
xor r8d, dword [rbp - 0x10]
xor eax, r8d
mov dword [rbp + 0x10], r8d
xor ecx, eax
mov dword [rbp + 0x14], eax
xor r10d, ecx
cmp r11, rbx
mov dword [rbp + 0x18], ecx
mov dword [rbp + 0x1c], r10d
jl 0x497100
jmp 0x49763e
mov qword [rsp + 0x40], rsi
lea r13, [0x004b0da4]
lea r15, [0x004b0dc4]
nop
mov edi, dword [rbp + 0x14]
mov esi, dword [rbp + 4]
mov edx, dword [rbp + 8]
mov r8d, dword [rbp + 0xc]
mov r9d, dword [rbp + 0x10]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
mov r10d, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
movzx ecx, al
shl r10d, 8
movzx eax, dil
xor r10d, dword [r14 + rcx*4 + 0x185a0]
shl r10d, 8
xor r10d, dword [r14 + rax*4 + 0x185a0]
mov eax, edi
shr eax, 0x18
shl r10d, 8
movzx ecx, al
xor r10d, dword [r14 + rcx*4 + 0x185a0]
xor r10d, dword [r13 - 4]
xor r10d, dword [rbp]
mov dword [rbp + 0x18], r10d
xor esi, r10d
mov dword [rbp + 0x1c], esi
xor edx, esi
mov dword [rbp + 0x20], edx
xor r8d, edx
mov dword [rbp + 0x24], r8d
xor r9d, r8d
xor edi, r9d
mov dword [rbp + 0x28], r9d
mov dword [rbp + 0x2c], edi
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov eax, edi
mov r11d, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
movzx ecx, al
shl r11d, 8
movzx eax, dil
xor r11d, dword [r14 + rcx*4 + 0x185a0]
shl r11d, 8
xor r11d, dword [r14 + rax*4 + 0x185a0]
mov eax, edi
shr eax, 0x18
shl r11d, 8
movzx ecx, al
xor r11d, dword [r14 + rcx*4 + 0x185a0]
xor r11d, dword [r13]
xor r11d, r10d
xor esi, r11d
mov dword [rbp + 0x30], r11d
mov dword [rbp + 0x34], esi
mov r10d, esi
xor r10d, edx
mov dword [rbp + 0x38], r10d
mov edx, r10d
xor edx, r8d
mov dword [rbp + 0x3c], edx
mov r8d, edx
xor r8d, r9d
mov dword [rbp + 0x40], r8d
mov ebx, r8d
xor ebx, edi
mov dword [rbp + 0x44], ebx
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov edi, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
shl edi, 8
movzx ecx, al
movzx eax, bl
xor edi, dword [r14 + rcx*4 + 0x185a0]
shl edi, 8
xor edi, dword [r14 + rax*4 + 0x185a0]
shl edi, 8
mov eax, ebx
add r13, 0x10
shr eax, 0x18
add rbp, 0x60
movzx ecx, al
xor edi, dword [r14 + rcx*4 + 0x185a0]
xor edi, dword [r13 - 0xc]
xor edi, r11d
xor esi, edi
mov dword [rbp - 0x18], edi
mov dword [rbp - 0x14], esi
mov r11d, esi
xor r11d, r10d
mov dword [rbp - 0x10], r11d
mov r10d, r11d
xor r10d, edx
mov dword [rbp - 0xc], r10d
mov r9d, r10d
xor r9d, r8d
mov dword [rbp - 8], r9d
mov r8d, r9d
xor r8d, ebx
mov dword [rbp - 4], r8d
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
mov edx, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
shl edx, 8
movzx ecx, al
movzx eax, r8b
xor edx, dword [r14 + rcx*4 + 0x185a0]
shl edx, 8
xor edx, dword [r14 + rax*4 + 0x185a0]
mov eax, r8d
shl edx, 8
shr eax, 0x18
movzx ecx, al
xor edx, dword [r14 + rcx*4 + 0x185a0]
xor edx, dword [r13 - 8]
xor edx, edi
xor esi, edx
mov dword [rbp], edx
mov dword [rbp + 4], esi
xor esi, r11d
mov dword [rbp + 8], esi
xor esi, r10d
mov dword [rbp + 0xc], esi
xor esi, r9d
mov dword [rbp + 0x10], esi
xor esi, r8d
cmp r13, r15
mov dword [rbp + 0x14], esi
jl 0x497200
mov rsi, qword [rsp + 0x40]
xor r15d, r15d
jmp 0x49763e
lea r13, [0x004b0da4]
lea rdi, [0x004b0dcc]
nop
nop
nop
mov edx, dword [rbp + 0xc]
mov r8d, dword [rbp + 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
mov r10d, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
movzx ecx, al
movzx eax, dl
shl r10d, 8
xor r10d, dword [r14 + rcx*4 + 0x185a0]
shl r10d, 8
xor r10d, dword [r14 + rax*4 + 0x185a0]
mov eax, edx
shr eax, 0x18
shl r10d, 8
movzx ecx, al
xor r10d, dword [r14 + rcx*4 + 0x185a0]
xor r10d, dword [r13 - 4]
xor r10d, dword [rbp]
xor r8d, r10d
mov dword [rbp + 0x10], r10d
mov dword [rbp + 0x14], r8d
mov r9d, r8d
xor r9d, dword [rbp + 8]
mov dword [rbp + 0x18], r9d
mov ebx, r9d
xor ebx, edx
mov dword [rbp + 0x1c], ebx
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov edx, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
movzx ecx, al
shl edx, 8
movzx eax, bl
xor edx, dword [r14 + rcx*4 + 0x185a0]
shl edx, 8
xor edx, dword [r14 + rax*4 + 0x185a0]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx ecx, al
xor edx, dword [r14 + rcx*4 + 0x185a0]
xor edx, dword [r13]
xor edx, r10d
mov dword [rbp + 0x20], edx
mov r10d, edx
xor r10d, r8d
mov dword [rbp + 0x24], r10d
mov r11d, r10d
xor r11d, r9d
xor ebx, r11d
mov dword [rbp + 0x28], r11d
mov dword [rbp + 0x2c], ebx
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov r8d, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
shl r8d, 8
movzx ecx, al
movzx eax, bl
xor r8d, dword [r14 + rcx*4 + 0x185a0]
shl r8d, 8
xor r8d, dword [r14 + rax*4 + 0x185a0]
mov eax, ebx
shl r8d, 8
shr eax, 0x18
movzx ecx, al
xor r8d, dword [r14 + rcx*4 + 0x185a0]
xor r8d, dword [r13 + 4]
xor r8d, edx
xor r10d, r8d
mov dword [rbp + 0x30], r8d
mov dword [rbp + 0x34], r10d
xor r11d, r10d
mov dword [rbp + 0x38], r11d
xor ebx, r11d
add r13, 0x14
mov dword [rbp + 0x3c], ebx
mov eax, ebx
add rbp, 0x50
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov r9d, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
movzx ecx, al
shl r9d, 8
movzx eax, bl
xor r9d, dword [r14 + rcx*4 + 0x185a0]
shl r9d, 8
xor r9d, dword [r14 + rax*4 + 0x185a0]
mov eax, ebx
shr eax, 0x18
shl r9d, 8
movzx ecx, al
xor r9d, dword [r14 + rcx*4 + 0x185a0]
xor r9d, dword [r13 - 0xc]
xor r9d, r8d
mov dword [rbp - 0x10], r9d
mov r8d, r9d
xor r8d, r10d
mov dword [rbp - 0xc], r8d
xor r11d, r8d
xor ebx, r11d
mov dword [rbp - 8], r11d
mov dword [rbp - 4], ebx
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov edx, dword [r14 + rcx*4 + 0x185a0]
shr eax, 8
shl edx, 8
movzx ecx, al
movzx eax, bl
xor edx, dword [r14 + rcx*4 + 0x185a0]
shl edx, 8
xor edx, dword [r14 + rax*4 + 0x185a0]
mov eax, ebx
shl edx, 8
shr eax, 0x18
movzx ecx, al
xor edx, dword [r14 + rcx*4 + 0x185a0]
xor edx, dword [r13 - 8]
xor edx, r9d
xor r8d, edx
mov dword [rbp], edx
xor r11d, r8d
mov dword [rbp + 4], r8d
xor ebx, r11d
cmp r13, rdi
mov dword [rbp + 8], r11d
mov dword [rbp + 0xc], ebx
jl 0x497420
cmp dword [0x004b6000], 0
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x30]
je 0x497798
mov rdx, r15
nop
mov ecx, dword [rdx + r14 + 0x185a0]
add rdx, 0x10
cmp rdx, 0x400
mov eax, dword [r14 + rcx*4 + 0x19da0]
mov dword [rdx + r14 + 0x23790], eax
mov eax, dword [r14 + rcx*4 + 0x1a1a0]
mov dword [rdx + r14 + 0x23390], eax
mov eax, dword [r14 + rcx*4 + 0x1a5a0]
mov dword [rdx + r14 + 0x22f90], eax
mov eax, dword [r14 + rcx*4 + 0x1a9a0]
mov ecx, dword [rdx + r14 + 0x18594]
mov dword [rdx + r14 + 0x22b90], eax
mov eax, dword [r14 + rcx*4 + 0x19da0]
mov dword [rdx + r14 + 0x23794], eax
mov eax, dword [r14 + rcx*4 + 0x1a1a0]
mov dword [rdx + r14 + 0x23394], eax
mov eax, dword [r14 + rcx*4 + 0x1a5a0]
mov dword [rdx + r14 + 0x22f94], eax
mov eax, dword [r14 + rcx*4 + 0x1a9a0]
mov ecx, dword [rdx + r14 + 0x18598]
mov dword [rdx + r14 + 0x22b94], eax
mov eax, dword [r14 + rcx*4 + 0x19da0]
mov dword [rdx + r14 + 0x23798], eax
mov eax, dword [r14 + rcx*4 + 0x1a1a0]
mov dword [rdx + r14 + 0x23398], eax
mov eax, dword [r14 + rcx*4 + 0x1a5a0]
mov dword [rdx + r14 + 0x22f98], eax
mov eax, dword [r14 + rcx*4 + 0x1a9a0]
mov ecx, dword [rdx + r14 + 0x1859c]
mov dword [rdx + r14 + 0x22b98], eax
mov eax, dword [r14 + rcx*4 + 0x19da0]
mov dword [rdx + r14 + 0x2379c], eax
mov eax, dword [r14 + rcx*4 + 0x1a1a0]
mov dword [rdx + r14 + 0x2339c], eax
mov eax, dword [r14 + rcx*4 + 0x1a5a0]
mov dword [rdx + r14 + 0x22f9c], eax
mov eax, dword [r14 + rcx*4 + 0x1a9a0]
mov dword [rdx + r14 + 0x22b9c], eax
jl 0x497660
mov dword [0x004b6000], r15d
mov eax, dword [rbp]
lea r10, [r12 + 0x100]
mov r11d, 1
mov dword [r10], eax
mov eax, dword [rbp + 4]
add r10, 0x10
mov dword [r10 - 0xc], eax
mov eax, dword [rbp + 8]
add rbp, 0x10
mov dword [r10 - 8], eax
mov eax, dword [rbp - 4]
mov dword [r10 - 4], eax
cmp dword [r12 + 0x200], r11d
jle 0x497912
nop
nop
nop
mov r9d, dword [rbp - 0x20]
add r11d, 1
add r10, 0x10
mov eax, r9d
add rbp, 0xfffffffffffffff0
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr r9d, 8
mov r8d, dword [r14 + rdx*4 + 0x237a0]
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r14 + rcx*4 + 0x233a0]
xor r8d, dword [r14 + rax*4 + 0x22fa0]
movzx eax, byte [rbp - 0x10]
xor r8d, dword [r14 + rax*4 + 0x22ba0]
mov dword [r10 - 0x10], r8d
mov r9d, dword [rbp - 0xc]
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr r9d, 8
mov r8d, dword [r14 + rdx*4 + 0x237a0]
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r14 + rcx*4 + 0x233a0]
xor r8d, dword [r14 + rax*4 + 0x22fa0]
movzx eax, byte [rbp - 0xc]
xor r8d, dword [r14 + rax*4 + 0x22ba0]
mov dword [r10 - 0xc], r8d
mov r9d, dword [rbp - 8]
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr r9d, 8
mov r8d, dword [r14 + rdx*4 + 0x237a0]
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r14 + rcx*4 + 0x233a0]
xor r8d, dword [r14 + rax*4 + 0x22fa0]
movzx eax, byte [rbp - 8]
xor r8d, dword [r14 + rax*4 + 0x22ba0]
mov dword [r10 - 8], r8d
mov r9d, dword [rbp - 4]
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr r9d, 8
mov r8d, dword [r14 + rdx*4 + 0x237a0]
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r14 + rcx*4 + 0x233a0]
xor r8d, dword [r14 + rax*4 + 0x22fa0]
movzx eax, byte [rbp - 4]
xor r8d, dword [r14 + rax*4 + 0x22ba0]
mov dword [r10 - 4], r8d
cmp r11d, dword [r12 + 0x200]
jl 0x4977e0
mov eax, dword [rbp - 0x20]
mov r14, qword [rsp]
mov dword [r10], eax
mov eax, dword [rbp - 0x1c]
mov dword [r10 + 4], eax
mov eax, dword [rbp - 0x18]
mov dword [r10 + 8], eax
mov eax, dword [rbp - 0x14]
mov rbp, qword [rsp + 0x38]
mov dword [r10 + 0xc], eax
xor eax, eax
add rsp, 0x18
pop r15
pop r12
ret