Function at 0x140047d40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rbp, qword [rsp + 0xa0]
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0xa8], 0
mov ebx, dword [rbp]
mov r10d, dword [rbp + 4]
je 0x140047e17
cmp r14, 8
jb 0x140047de4
lea r15, [rsp + 0x28]
nop word cs:[rax + rax]
xor ebx, dword [r12]
xor r10d, dword [r12 + 4]
add r12, 8
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x2c], r10d
mov rcx, r15
mov rdx, rdi
mov r8d, 1
call fcn.1400468f0
mov ebx, dword [rsp + 0x28]
mov dword [rsi], ebx
mov r10d, dword [rsp + 0x2c]
mov dword [rsi + 4], r10d
add rsi, 8
add r14, 0xfffffffffffffff8
cmp r14, 7
ja 0x140047da0
test r14, r14
je 0x140047f11
xor eax, eax
lea rcx, [r14 - 1]
cmp rcx, 6
ja case.default.0x140047e0e
add r12, r14
lea rdx, [0x1402b3a80]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
xor ecx, ecx
jmp 0x140047f98
cmp r14, 8
jb 0x140047ea7
nop word cs:[rax + rax]
mov r15d, r10d
mov r13d, dword [r12]
mov dword [rsp + 0x28], r13d
mov ebp, dword [r12 + 4]
add r12, 8
mov dword [rsp + 0x2c], ebp
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.1400468f0
mov r10d, ebp
xor ebx, dword [rsp + 0x28]
mov ecx, r15d
xor ecx, dword [rsp + 0x2c]
mov byte [rsi], bl
mov byte [rsi + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [rsi + 2], al
shr ebx, 0x18
mov byte [rsi + 3], bl
mov ebx, r13d
mov byte [rsi + 4], cl
mov byte [rsi + 5], ch
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 6], al
shr ecx, 0x18
mov byte [rsi + 7], cl
add rsi, 8
add r14, 0xfffffffffffffff8
cmp r14, 7
ja 0x140047e30
mov rbp, qword [rsp + 0xa0]
test r14, r14
je 0x140047f33
mov r15d, r10d
mov eax, dword [r12]
mov r13d, eax
mov dword [rsp + 0x28], eax
mov eax, dword [r12 + 4]
mov r12d, eax
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.1400468f0
lea rax, [r14 - 1]
cmp rax, 6
ja case.default.0x140047f04
xor ebx, dword [rsp + 0x28]
mov edx, r15d
xor edx, dword [rsp + 0x2c]
add rsi, r14
lea rcx, [0x1402b3a9c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov ecx, r12d
mov edx, r13d
jmp 0x140048065
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov r8d, r10d
shr r8d, 8
mov r9d, r10d
shr r9d, 0x10
jmp 0x140047fec
mov edx, ebx
mov ecx, r10d
jmp 0x140048068
xor ecx, ecx
jmp 0x140047f7c
xor ecx, ecx
jmp 0x140047fa0
xor ecx, ecx
jmp 0x140047f8a
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x10
movzx ecx, byte [r12 - 1]
dec r12
shl ecx, 8
or eax, ecx
movzx ecx, byte [r12 - 1]
dec r12
or eax, ecx
mov ecx, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x18
movzx edx, byte [r12 - 1]
dec r12
shl edx, 0x10
or eax, edx
movzx edx, byte [r12 - 1]
dec r12
shl edx, 8
or eax, edx
movzx edx, byte [r12 - 1]
or eax, edx
xor eax, ebx
mov dword [rsp + 0x28], eax
xor ecx, r10d
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
mov rdx, rdi
mov r8d, 1
call fcn.1400468f0
mov ebx, dword [rsp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov dword [rsi], ebx
mov edx, ebx
shr edx, 0x18
mov r10d, dword [rsp + 0x2c]
mov r8d, r10d
shr r8d, 8
mov r9d, r10d
shr r9d, 0x10
mov dword [rsi + 4], r10d
mov r11d, r10d
shr r11d, 0x18
mov byte [rbp], bl
mov byte [rbp + 1], al
mov byte [rbp + 2], cl
mov byte [rbp + 3], dl
mov byte [rbp + 4], r10b
mov byte [rbp + 5], r8b
mov byte [rbp + 6], r9b
mov ecx, r11d
jmp 0x14004808d
mov ecx, r12d
jmp 0x140048040
mov ecx, r12d
jmp 0x140048051
mov ecx, r12d
jmp 0x140048046
mov ecx, r12d
mov edx, r13d
jmp 0x140048068
mov ecx, r12d
jmp 0x14004805c
mov eax, edx
shr eax, 0x10
mov byte [rsi - 1], al
dec rsi
mov ecx, r12d
mov byte [rsi - 1], dh
dec rsi
mov byte [rsi - 1], dl
dec rsi
mov eax, ebx
shr eax, 0x18
mov byte [rsi - 1], al
dec rsi
mov eax, ebx
shr eax, 0x10
mov byte [rsi - 1], al
dec rsi
mov edx, r13d
mov byte [rsi - 1], bh
dec rsi
mov byte [rsi - 1], bl
mov byte [rbp], dl
mov byte [rbp + 1], dh
mov eax, edx
shr eax, 0x10
mov byte [rbp + 2], al
shr edx, 0x18
mov byte [rbp + 3], dl
mov byte [rbp + 4], cl
mov byte [rbp + 5], ch
mov eax, ecx
shr eax, 0x10
mov byte [rbp + 6], al
shr ecx, 0x18
mov byte [rbp + 7], cl
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140265f80
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret