Function at 0x180024590
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov edi, r8d
mov r8d, r8d
shr esi, 2
mov rbp, r9
mov rbx, rcx
lea eax, [rsi + 6]
mov dword [rcx + 0xf4], edi
mov dword [rcx + 0xf0], eax
call fcn.18002efa0
test esi, esi
je 0x180024603
mov rdx, rbx
mov r8d, esi
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rdx]
lea rdx, [rdx + 4]
mov ecx, eax
rol eax, 8
and eax, 0xff00ff
ror ecx, 8
and ecx, 0xff00ff00
or ecx, eax
mov dword [rdx - 4], ecx
dec r8
jne 0x1800245e0
cmp edi, 0x10
je 0x180024933
cmp edi, 0x18
je 0x1800247e1
cmp edi, 0x20
je 0x180024624
mov eax, 0xffffff53
jmp 0x180024cf1
mov r8d, dword [rbx + 0x1c]
lea rsi, [rbx + 8]
lea r10, [rbx + 0x30]
mov eax, r8d
lea r11, [0x1800449d4]
mov edi, 6
shr eax, 0x10
movzx ecx, al
lea rax, [0x180000000]
mov r9d, dword [rax + rcx*4 + 0x46300]
mov ecx, r8d
shr ecx, 0x18
btc r9d, 0x18
movzx edx, cl
and r9d, 0xff000000
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r9d, ecx
mov ecx, r8d
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46700]
and ecx, 0xff0000
xor r9d, ecx
movzx ecx, r8b
mov edx, dword [rax + rcx*4 + 0x45b00]
mov ecx, dword [rbx + 0xc]
and edx, 0xff00
xor r9d, edx
mov edx, dword [rbx + 4]
xor r9d, dword [rbx]
xor edx, r9d
mov dword [rbx + 0x20], r9d
mov dword [rbx + 0x24], edx
xor edx, dword [rsi]
xor ecx, edx
mov dword [rbx + 0x28], edx
mov dword [rbx + 0x2c], ecx
nop
mov r8d, dword [r10 - 4]
lea r10, [r10 + 0x20]
lea r11, [r11 + 4]
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
mov r9d, dword [rax + rdx*4 + 0x46700]
shr ecx, 0x18
movzx edx, cl
and r9d, 0xff0000
mov ecx, dword [rax + rdx*4 + 0x46300]
and ecx, 0xff000000
xor r9d, ecx
mov ecx, r8d
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x45b00]
mov edx, dword [r10 - 0x38]
and ecx, 0xff00
xor r9d, ecx
movzx ecx, r8b
movzx ecx, byte [rax + rcx*4 + 0x45f00]
xor r9d, ecx
mov ecx, dword [r10 - 0x3c]
xor r9d, dword [r10 - 0x40]
xor ecx, r9d
mov dword [r10 - 0x20], r9d
xor edx, ecx
mov dword [r10 - 0x1c], ecx
mov ecx, dword [r10 - 0x34]
xor ecx, edx
mov dword [r10 - 0x18], edx
mov dword [r10 - 0x14], ecx
mov r8d, dword [r10 - 0x14]
mov ecx, r8d
shr ecx, 0x18
movzx edx, cl
mov ecx, r8d
movzx r9d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46700]
and ecx, 0xff0000
xor r9d, ecx
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46300]
and ecx, 0xff000000
xor r9d, ecx
movzx ecx, r8b
mov edx, dword [rax + rcx*4 + 0x45b00]
and edx, 0xff00
xor r9d, edx
xor r9d, dword [r10 - 0x30]
xor r9d, dword [r11 - 4]
mov dword [r10 - 0x10], r9d
mov ecx, dword [r10 - 0x2c]
xor ecx, r9d
mov dword [r10 - 0xc], ecx
mov edx, dword [r10 - 0x28]
xor edx, ecx
mov dword [r10 - 8], edx
mov ecx, dword [r10 - 0x24]
xor ecx, edx
mov dword [r10 - 4], ecx
dec rdi
jne 0x1800246c0
jmp 0x180024a63
mov r8d, dword [rbx + 0x14]
lea rsi, [rbx + 8]
lea r10, [rbx + 0x28]
mov eax, r8d
lea r11, [0x1800449d4]
mov edi, 7
shr eax, 0x10
movzx ecx, al
lea rax, [0x180000000]
mov r9d, dword [rax + rcx*4 + 0x46300]
mov ecx, r8d
shr ecx, 0x18
btc r9d, 0x18
movzx edx, cl
and r9d, 0xff000000
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r9d, ecx
mov ecx, r8d
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46700]
and ecx, 0xff0000
xor r9d, ecx
movzx ecx, r8b
mov edx, dword [rax + rcx*4 + 0x45b00]
mov ecx, dword [rbx + 0xc]
and edx, 0xff00
xor r9d, edx
mov edx, dword [rbx + 4]
xor r9d, dword [rbx]
xor edx, r9d
mov dword [rbx + 0x18], r9d
mov dword [rbx + 0x1c], edx
xor edx, dword [rsi]
xor ecx, edx
mov dword [rbx + 0x20], edx
mov dword [rbx + 0x24], ecx
nop dword [rax + rax]
mov edx, dword [r10 - 0x18]
mov ecx, dword [r10 - 0x14]
lea r10, [r10 + 0x18]
xor edx, dword [r10 - 0x1c]
lea r11, [r11 + 4]
xor ecx, edx
mov dword [r10 - 0x18], edx
mov dword [r10 - 0x14], ecx
mov r8d, dword [r10 - 0x14]
mov ecx, r8d
shr ecx, 0x18
movzx edx, cl
mov ecx, r8d
movzx r9d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46700]
and ecx, 0xff0000
xor r9d, ecx
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46300]
and ecx, 0xff000000
xor r9d, ecx
movzx ecx, r8b
mov edx, dword [rax + rcx*4 + 0x45b00]
and edx, 0xff00
xor r9d, edx
xor r9d, dword [r10 - 0x28]
xor r9d, dword [r11 - 4]
mov dword [r10 - 0x10], r9d
mov ecx, dword [r10 - 0x24]
xor ecx, r9d
mov dword [r10 - 0xc], ecx
mov edx, dword [r10 - 0x20]
xor edx, ecx
mov dword [r10 - 8], edx
mov ecx, dword [r10 - 0x1c]
xor ecx, edx
mov dword [r10 - 4], ecx
dec rdi
jne 0x180024880
jmp 0x180024a63
mov r9d, dword [rbx + 0xc]
lea r10, [rbx + 4]
lea rsi, [rbx + 8]
mov eax, r9d
lea r11, [0x1800449d4]
mov edi, 9
shr eax, 0x10
movzx ecx, al
lea rax, [0x180000000]
mov r8d, dword [rax + rcx*4 + 0x46300]
mov ecx, r9d
shr ecx, 0x18
btc r8d, 0x18
movzx edx, cl
and r8d, 0xff000000
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r8d, ecx
mov ecx, r9d
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46700]
and ecx, 0xff0000
xor r8d, ecx
movzx ecx, r9b
mov edx, dword [rax + rcx*4 + 0x45b00]
mov ecx, dword [r10]
and edx, 0xff00
xor r8d, edx
xor r8d, dword [rbx]
xor ecx, r8d
mov dword [rbx + 0x10], r8d
mov dword [rbx + 0x14], ecx
xor ecx, dword [rsi]
mov dword [rbx + 0x18], ecx
xor ecx, r9d
mov dword [rbx + 0x1c], ecx
nop dword [rax + rax]
mov r8d, dword [r10 + 0x18]
lea r10, [r10 + 0x10]
lea r11, [r11 + 4]
mov ecx, r8d
shr ecx, 0x18
movzx edx, cl
mov ecx, r8d
movzx r9d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 8
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46700]
and ecx, 0xff0000
xor r9d, ecx
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [rax + rdx*4 + 0x46300]
and ecx, 0xff000000
xor r9d, ecx
movzx ecx, r8b
mov edx, dword [rax + rcx*4 + 0x45b00]
and edx, 0xff00
xor r9d, edx
xor r9d, dword [r10 - 4]
xor r9d, dword [r11 - 4]
mov dword [r10 + 0xc], r9d
xor r9d, dword [r10]
mov dword [r10 + 0x10], r9d
mov ecx, dword [r10 + 4]
xor ecx, r9d
mov dword [r10 + 0x14], ecx
xor ecx, dword [r10 + 8]
mov dword [r10 + 0x18], ecx
dec rdi
jne 0x1800249d0
cmp dword [rsp + 0x50], 1
jne 0x180024ccd
mov r11d, dword [rbx + 0xf0]
shl r11d, 2
test r11d, r11d
je 0x180024b09
lea edi, [r11 + 2]
mov r10d, 2
nop dword [rax]
lea ecx, [r10 - 2]
lea rdx, [rbx + r11*4]
add r11d, 0xfffffffc
mov r9d, dword [rbx + rcx*4]
lea r8, [rbx + rcx*4]
mov ecx, dword [rdx]
mov dword [r8], ecx
mov dword [rdx], r9d
lea ecx, [r10 - 1]
mov r9d, dword [rbx + rcx*4]
lea r8, [rbx + rcx*4]
lea ecx, [rdi - 1]
mov edx, ecx
mov ecx, dword [rbx + rcx*4]
mov dword [r8], ecx
mov dword [rbx + rdx*4], r9d
mov ecx, r10d
mov r9d, dword [rbx + rcx*4]
lea r8, [rbx + rcx*4]
mov ecx, dword [rbx + rdi*4]
mov dword [r8], ecx
lea rdx, [rbx + rdi*4]
lea ecx, [r10 + 1]
lea r8, [rbx + rcx*4]
lea ecx, [rdi + 1]
mov dword [rdx], r9d
mov r9d, dword [r8]
mov edx, ecx
mov ecx, dword [rbx + rcx*4]
add r10d, 4
mov dword [r8], ecx
lea edi, [rdi - 4]
lea ecx, [r10 - 2]
mov dword [rbx + rdx*4], r9d
cmp ecx, r11d
jb 0x180024a90
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jbe 0x180024ccd
nop dword [rax]
mov r10d, dword [rsi + 8]
lea rsi, [rsi + 0x10]
inc r11d
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr r10d, 8
movzx r8d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 0x18
mov r9d, dword [rax + r8*4 + 0x44f00]
movzx edx, cl
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r9d, dword [rax + rcx*4 + 0x44b00]
movzx ecx, r10b
mov r10d, dword [rsi - 4]
movzx edx, byte [rax + rcx*4 + 0x45f00]
movzx ecx, byte [rsi - 8]
xor r9d, dword [rax + rdx*4 + 0x45300]
movzx edx, byte [rax + rcx*4 + 0x45f00]
mov ecx, r10d
xor r9d, dword [rax + rdx*4 + 0x45700]
shr ecx, 0x10
movzx edx, cl
mov dword [rsi - 8], r9d
mov ecx, r10d
movzx r8d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 0x18
shr r10d, 8
mov r9d, dword [rax + r8*4 + 0x44f00]
movzx edx, cl
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r9d, dword [rax + rcx*4 + 0x44b00]
movzx ecx, r10b
mov r10d, dword [rsi]
movzx edx, byte [rax + rcx*4 + 0x45f00]
movzx ecx, byte [rsi - 4]
xor r9d, dword [rax + rdx*4 + 0x45300]
movzx edx, byte [rax + rcx*4 + 0x45f00]
mov ecx, r10d
xor r9d, dword [rax + rdx*4 + 0x45700]
shr ecx, 0x10
movzx edx, cl
mov dword [rsi - 4], r9d
mov ecx, r10d
movzx r8d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 0x18
shr r10d, 8
mov r9d, dword [rax + r8*4 + 0x44f00]
movzx edx, cl
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r9d, dword [rax + rcx*4 + 0x44b00]
movzx ecx, r10b
mov r10d, dword [rsi + 4]
movzx edx, byte [rax + rcx*4 + 0x45f00]
movzx ecx, byte [rsi]
xor r9d, dword [rax + rdx*4 + 0x45300]
movzx edx, byte [rax + rcx*4 + 0x45f00]
mov ecx, r10d
xor r9d, dword [rax + rdx*4 + 0x45700]
shr ecx, 0x10
movzx edx, cl
mov dword [rsi], r9d
mov ecx, r10d
movzx r8d, byte [rax + rdx*4 + 0x45f00]
shr ecx, 0x18
shr r10d, 8
mov r9d, dword [rax + r8*4 + 0x44f00]
movzx edx, cl
movzx ecx, byte [rax + rdx*4 + 0x45f00]
xor r9d, dword [rax + rcx*4 + 0x44b00]
movzx ecx, r10b
movzx edx, byte [rax + rcx*4 + 0x45f00]
movzx ecx, byte [rsi + 4]
xor r9d, dword [rax + rdx*4 + 0x45300]
movzx edx, byte [rax + rcx*4 + 0x45f00]
xor r9d, dword [rax + rdx*4 + 0x45700]
mov dword [rsi + 4], r9d
cmp r11d, dword [rbx + 0xf0]
jb 0x180024b20
test rbp, rbp
je 0x180024cdf
movups xmm0, xmmword [rbp]
movups xmmword [rbx + 0xf8], xmm0
jmp 0x180024cef
xor eax, eax
mov qword [rbx + 0xf8], rax
mov qword [rbx + 0x100], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret