Function at 0x180004940
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 + 0xf0], eax
call fcn.18002d8c0
test esi, esi
je 0x1800049a3
mov rdx, rbx
mov r8d, esi
nop
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 0x180004980
cmp edi, 0x10
je 0x180004cd0
cmp edi, 0x18
je 0x180004b7b
cmp edi, 0x20
je 0x1800049c4
mov eax, 0xffffff53
jmp 0x180005061
mov edx, dword [rbx + 0x1c]
lea r10, [0x180000000]
lea rsi, [rbx + 8]
mov eax, edx
lea r9, [rbx + 0x30]
lea r11, [0x18008724c]
shr eax, 0x10
mov edi, 6
movzx ecx, al
mov eax, edx
mov r8d, dword [r10 + rcx*4 + 0x87a70]
shr eax, 0x18
movzx ecx, al
btc r8d, 0x18
movzx eax, byte [r10 + rcx*4 + 0x87670]
and r8d, 0xff000000
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87e70]
and eax, 0xff0000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x87270]
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 dword [rax + rax]
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 + 0x87e70]
shr eax, 0x18
movzx ecx, al
and r8d, 0xff0000
mov eax, dword [r10 + rcx*4 + 0x87a70]
and eax, 0xff000000
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87270]
mov ecx, dword [r9 - 0x38]
and eax, 0xff00
xor r8d, eax
movzx eax, dl
movzx eax, byte [r10 + rax*4 + 0x87670]
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 + 0x87670]
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87e70]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87a70]
and eax, 0xff000000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x87270]
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 0x180004a60
jmp 0x180004df2
mov edx, dword [rbx + 0x14]
lea r10, [0x180000000]
lea rsi, [rbx + 8]
mov eax, edx
lea r9, [rbx + 0x28]
lea r11, [0x18008724c]
shr eax, 0x10
mov edi, 7
movzx ecx, al
mov eax, edx
mov r8d, dword [r10 + rcx*4 + 0x87a70]
shr eax, 0x18
movzx ecx, al
btc r8d, 0x18
movzx eax, byte [r10 + rcx*4 + 0x87670]
and r8d, 0xff000000
xor r8d, eax
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87e70]
and eax, 0xff0000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x87270]
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 + 0x87670]
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87e70]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87a70]
and eax, 0xff000000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x87270]
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 0x180004c20
jmp 0x180004df2
mov r8d, dword [rbx + 0xc]
lea r10, [0x180000000]
lea r9, [rbx + 4]
mov eax, r8d
lea rsi, [rbx + 8]
lea r11, [0x18008724c]
shr eax, 0x10
mov edi, 9
movzx ecx, al
mov eax, r8d
mov edx, dword [r10 + rcx*4 + 0x87a70]
shr eax, 0x18
btc edx, 0x18
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x87670]
and edx, 0xff000000
xor edx, eax
mov eax, r8d
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87e70]
and eax, 0xff0000
xor edx, eax
movzx eax, r8b
mov ecx, dword [r10 + rax*4 + 0x87270]
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 + 0x87670]
shr eax, 8
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87e70]
and eax, 0xff0000
xor r8d, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x87a70]
and eax, 0xff000000
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x87270]
and ecx, 0xff00
xor r8d, ecx
xor r8d, dword [r9 - 4]
xor r8d, dword [r11 - 4]
mov dword [r9 + 0xc], r8d
mov eax, dword [r9]
xor eax, r8d
mov dword [r9 + 0x10], eax
mov ecx, dword [r9 + 4]
xor ecx, eax
mov dword [r9 + 0x14], ecx
xor ecx, dword [r9 + 8]
dec rdi
mov dword [r9 + 0x18], ecx
jne 0x180004d60
cmp dword [rsp + 0x50], 1
jne 0x180005039
mov r9d, dword [rbx + 0xf0]
xor r11d, r11d
shl r9d, 2
movsxd rax, r9d
test r9d, r9d
je 0x180004e69
lea rdx, [rbx + rax*4 + 8]
mov r8, rsi
nop dword [rax + 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 0x180004e20
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jbe 0x180005039
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 + 0x87670]
shr eax, 0x10
mov r8d, dword [r10 + rdx*4 + 0x88270]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x87670]
xor r8d, dword [r10 + rax*4 + 0x88670]
movzx eax, r9b
mov r9d, dword [rsi - 4]
movzx ecx, byte [r10 + rax*4 + 0x87670]
movzx eax, byte [rsi - 8]
xor r8d, dword [r10 + rcx*4 + 0x88a70]
movzx ecx, byte [r10 + rax*4 + 0x87670]
mov eax, r9d
xor r8d, dword [r10 + rcx*4 + 0x88e70]
shr eax, 0x18
mov dword [rsi - 8], r8d
movzx ecx, al
mov eax, r9d
movzx edx, byte [r10 + rcx*4 + 0x87670]
shr eax, 0x10
shr r9d, 8
mov r8d, dword [r10 + rdx*4 + 0x88270]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x87670]
xor r8d, dword [r10 + rax*4 + 0x88670]
movzx eax, r9b
mov r9d, dword [rsi]
movzx ecx, byte [r10 + rax*4 + 0x87670]
movzx eax, byte [rsi - 4]
xor r8d, dword [r10 + rcx*4 + 0x88a70]
movzx ecx, byte [r10 + rax*4 + 0x87670]
mov eax, r9d
xor r8d, dword [r10 + rcx*4 + 0x88e70]
shr eax, 0x18
mov dword [rsi - 4], r8d
movzx ecx, al
mov eax, r9d
movzx edx, byte [r10 + rcx*4 + 0x87670]
shr eax, 0x10
shr r9d, 8
mov r8d, dword [r10 + rdx*4 + 0x88270]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x87670]
xor r8d, dword [r10 + rax*4 + 0x88670]
movzx eax, r9b
mov r9d, dword [rsi + 4]
movzx ecx, byte [r10 + rax*4 + 0x87670]
movzx eax, byte [rsi]
xor r8d, dword [r10 + rcx*4 + 0x88a70]
movzx ecx, byte [r10 + rax*4 + 0x87670]
mov eax, r9d
xor r8d, dword [r10 + rcx*4 + 0x88e70]
shr eax, 0x18
mov dword [rsi], r8d
movzx ecx, al
mov eax, r9d
movzx edx, byte [r10 + rcx*4 + 0x87670]
shr eax, 0x10
shr r9d, 8
mov r8d, dword [r10 + rdx*4 + 0x88270]
movzx ecx, al
movzx eax, byte [r10 + rcx*4 + 0x87670]
xor r8d, dword [r10 + rax*4 + 0x88670]
movzx eax, r9b
movzx ecx, byte [r10 + rax*4 + 0x87670]
movzx eax, byte [rsi + 4]
xor r8d, dword [r10 + rcx*4 + 0x88a70]
movzx ecx, byte [r10 + rax*4 + 0x87670]
xor r8d, dword [r10 + rcx*4 + 0x88e70]
mov dword [rsi + 4], r8d
cmp r11d, dword [rbx + 0xf0]
jb 0x180004e80
test rbp, rbp
je 0x18000504f
mov rax, qword [rbp]
mov qword [rbx + 0xf4], rax
mov rax, qword [rbp + 8]
jmp 0x180005058
xor eax, eax
mov qword [rbx + 0xf4], rax
mov qword [rbx + 0xfc], 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