Function at 0x1800047a0
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.180033ff0
test esi, esi
je 0x180004807
mov rdx, rbx
mov r8d, esi
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
dec r8
mov dword [rdx - 4], ecx
jne 0x1800047e4
cmp edi, 0x10
je 0x180004b30
cmp edi, 0x18
je 0x1800049db
cmp edi, 0x20
je 0x180004828
mov eax, 0xffffff53
jmp 0x180004ec1
mov edx, dword [rbx + 0x1c]
lea r10, [0x180000000]
lea rsi, [rbx + 8]
mov eax, edx
lea r9, [rbx + 0x30]
lea r11, [0x18009bb7c]
shr eax, 0x10
mov edi, 6
movzx ecx, al
mov eax, edx
mov r8d, dword [r10 + rcx*4 + 0x9c3a0]
shr eax, 0x18
movzx ecx, al
btc r8d, 0x18
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
and r8d, 0xff000000
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c7a0]
and eax, 0xff0000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x9bba0]
mov eax, dword [rbx + 0xc]
and ecx, 0xff00
xor r8d, ecx
mov ecx, dword [rbx + 4]
xor r8d, dword [rbx]
xor ecx, r8d
mov dword [rbx + 0x20], r8d
mov dword [rbx + 0x24], ecx
xor ecx, dword [rsi]
xor eax, ecx
mov dword [rbx + 0x28], ecx
mov dword [rbx + 0x2c], eax
nop
mov edx, dword [r9 - 4]
add r9, 0x20
add r11, 4
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
mov r8d, dword [r10 + rcx*4 + 0x9c7a0]
shr eax, 0x18
movzx ecx, al
and r8d, 0xff0000
mov eax, dword [r10 + rcx*4 + 0x9c3a0]
and eax, 0xff000000
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9bba0]
mov ecx, dword [r9 - 0x38]
and eax, 0xff00
xor r8d, eax
movzx eax, dl
movzx eax, byte [r10 + rax*4 + 0x9bfa0]
xor r8d, eax
mov eax, dword [r9 - 0x3c]
xor r8d, dword [r9 - 0x40]
xor eax, r8d
mov dword [r9 - 0x20], r8d
mov dword [r9 - 0x1c], eax
xor ecx, eax
mov eax, dword [r9 - 0x34]
xor eax, ecx
mov dword [r9 - 0x18], ecx
mov dword [r9 - 0x14], eax
mov edx, dword [r9 - 0x14]
mov eax, edx
shr eax, 0x18
movzx ecx, al
mov eax, edx
movzx r8d, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c7a0]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c3a0]
and eax, 0xff000000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x9bba0]
and ecx, 0xff00
xor r8d, ecx
xor r8d, dword [r9 - 0x30]
xor r8d, dword [r11 - 4]
mov dword [r9 - 0x10], r8d
mov eax, dword [r9 - 0x2c]
xor eax, r8d
mov dword [r9 - 0xc], eax
mov ecx, dword [r9 - 0x28]
xor ecx, eax
mov dword [r9 - 8], ecx
mov eax, dword [r9 - 0x24]
xor eax, ecx
dec rdi
mov dword [r9 - 4], eax
jne 0x1800048c0
jmp 0x180004c50
mov edx, dword [rbx + 0x14]
lea r10, [0x180000000]
lea rsi, [rbx + 8]
mov eax, edx
lea r9, [rbx + 0x28]
lea r11, [0x18009bb7c]
shr eax, 0x10
mov edi, 7
movzx ecx, al
mov eax, edx
mov r8d, dword [r10 + rcx*4 + 0x9c3a0]
shr eax, 0x18
movzx ecx, al
btc r8d, 0x18
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
and r8d, 0xff000000
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c7a0]
and eax, 0xff0000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x9bba0]
mov eax, dword [rbx + 0xc]
and ecx, 0xff00
xor r8d, ecx
mov ecx, dword [rbx + 4]
xor r8d, dword [rbx]
xor ecx, r8d
mov dword [rbx + 0x18], r8d
mov dword [rbx + 0x1c], ecx
xor ecx, dword [rsi]
xor eax, ecx
mov dword [rbx + 0x20], ecx
mov dword [rbx + 0x24], eax
nop word [rax + rax]
mov ecx, dword [r9 - 0x18]
mov eax, dword [r9 - 0x14]
add r9, 0x18
xor ecx, dword [r9 - 0x1c]
add r11, 4
xor eax, ecx
mov dword [r9 - 0x18], ecx
mov dword [r9 - 0x14], eax
mov edx, dword [r9 - 0x14]
mov eax, edx
shr eax, 0x18
movzx ecx, al
mov eax, edx
movzx r8d, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c7a0]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c3a0]
and eax, 0xff000000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x9bba0]
and ecx, 0xff00
xor r8d, ecx
xor r8d, dword [r9 - 0x28]
xor r8d, dword [r11 - 4]
mov dword [r9 - 0x10], r8d
mov eax, dword [r9 - 0x24]
xor eax, r8d
mov dword [r9 - 0xc], eax
mov ecx, dword [r9 - 0x20]
xor ecx, eax
mov dword [r9 - 8], ecx
mov eax, dword [r9 - 0x1c]
xor eax, ecx
dec rdi
mov dword [r9 - 4], eax
jne 0x180004a80
jmp 0x180004c50
mov r8d, dword [rbx + 0xc]
lea r10, [0x180000000]
lea r9, [rbx + 4]
mov eax, r8d
lea rsi, [rbx + 8]
lea r11, [0x18009bb7c]
shr eax, 0x10
mov edi, 9
movzx ecx, al
mov eax, r8d
mov edx, dword [r10 + rcx*4 + 0x9c3a0]
shr eax, 0x18
btc edx, 0x18
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
and edx, 0xff000000
xor edx, eax
mov eax, r8d
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c7a0]
and eax, 0xff0000
xor edx, eax
movzx eax, r8b
mov ecx, dword [r10 + rax*4 + 0x9bba0]
and ecx, 0xff00
xor edx, ecx
xor edx, dword [rbx]
mov dword [rbx + 0x10], edx
xor edx, dword [r9]
mov dword [rbx + 0x14], edx
xor edx, dword [rsi]
mov dword [rbx + 0x18], edx
xor edx, r8d
mov dword [rbx + 0x1c], edx
mov edx, dword [r9 + 0x18]
add r9, 0x10
add r11, 4
mov eax, edx
shr eax, 0x18
movzx ecx, al
mov eax, edx
movzx r8d, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c7a0]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x9c3a0]
and eax, 0xff000000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x9bba0]
and ecx, 0xff00
xor r8d, ecx
xor r8d, dword [r9 - 4]
xor r8d, dword [r11 - 4]
mov dword [r9 + 0xc], r8d
xor r8d, dword [r9]
mov dword [r9 + 0x10], r8d
mov eax, dword [r9 + 4]
xor eax, r8d
mov dword [r9 + 0x14], eax
xor eax, dword [r9 + 8]
dec rdi
mov dword [r9 + 0x18], eax
jne 0x180004bc0
cmp dword [rsp + 0x50], 1
jne 0x180004e99
mov r9d, dword [rbx + 0xf0]
xor r11d, r11d
shl r9d, 2
movsxd rax, r9d
test r9d, r9d
je 0x180004cc9
lea rdx, [rbx + rax*4 + 8]
mov r8, rsi
nop dword [rax]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r11d, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
add r9d, 0xfffffffc
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r11d, r9d
jb 0x180004c80
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jbe 0x180004e99
nop dword [rax]
mov r9d, dword [rsi + 8]
add rsi, 0x10
inc r11d
mov eax, r9d
shr eax, 0x18
movzx ecx, al
mov eax, r9d
shr r9d, 8
movzx edx, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 0x10
mov r8d, dword [r10 + rdx*4 + 0x9cba0]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
xor r8d, dword [r10 + rax*4 + 0x9cfa0]
movzx eax, r9b
mov r9d, dword [rsi - 4]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
movzx eax, byte [rsi - 8]
xor r8d, dword [r10 + rcx*4 + 0x9d3a0]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
mov eax, r9d
xor r8d, dword [r10 + rcx*4 + 0x9d7a0]
shr eax, 0x18
mov dword [rsi - 8], r8d
movzx ecx, al
mov eax, r9d
movzx edx, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 0x10
shr r9d, 8
mov r8d, dword [r10 + rdx*4 + 0x9cba0]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
xor r8d, dword [r10 + rax*4 + 0x9cfa0]
movzx eax, r9b
mov r9d, dword [rsi]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
movzx eax, byte [rsi - 4]
xor r8d, dword [r10 + rcx*4 + 0x9d3a0]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
mov eax, r9d
xor r8d, dword [r10 + rcx*4 + 0x9d7a0]
shr eax, 0x18
mov dword [rsi - 4], r8d
movzx ecx, al
mov eax, r9d
movzx edx, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 0x10
shr r9d, 8
mov r8d, dword [r10 + rdx*4 + 0x9cba0]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
xor r8d, dword [r10 + rax*4 + 0x9cfa0]
movzx eax, r9b
mov r9d, dword [rsi + 4]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
movzx eax, byte [rsi]
xor r8d, dword [r10 + rcx*4 + 0x9d3a0]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
mov eax, r9d
xor r8d, dword [r10 + rcx*4 + 0x9d7a0]
shr eax, 0x18
mov dword [rsi], r8d
movzx ecx, al
mov eax, r9d
movzx edx, byte [r10 + rcx*4 + 0x9bfa0]
shr eax, 0x10
shr r9d, 8
mov r8d, dword [r10 + rdx*4 + 0x9cba0]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x9bfa0]
xor r8d, dword [r10 + rax*4 + 0x9cfa0]
movzx eax, r9b
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
movzx eax, byte [rsi + 4]
xor r8d, dword [r10 + rcx*4 + 0x9d3a0]
movzx ecx, byte [r10 + rax*4 + 0x9bfa0]
xor r8d, dword [r10 + rcx*4 + 0x9d7a0]
mov dword [rsi + 4], r8d
cmp r11d, dword [rbx + 0xf0]
jb 0x180004ce0
test rbp, rbp
je 0x180004eaf
mov rax, qword [rbp]
mov qword [rbx + 0xf8], rax
mov rax, qword [rbp + 8]
jmp 0x180004eb8
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