Function at 0x140047640
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 [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0xa8], 0
mov ebx, dword [rbp]
mov r10d, dword [rbp + 4]
je 0x1400477c6
cmp r14, 8
jb 0x1400476e4
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.140046320
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 0x1400476a0
test r14, r14
je 0x1400478e0
xor eax, eax
lea rcx, [r14 - 1]
cmp rcx, 6
ja case.default.0x140047715
add r12, r14
lea rdx, [0x1402e4ed0]
movsxd r9, dword [rdx + rcx*4]
add r9, rdx
xor ecx, ecx
xor r8d, r8d
xor edx, edx
jmp r9
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
mov r8d, ecx
movzx ecx, byte [r12 - 1]
dec r12
shl ecx, 8
or eax, ecx
mov edx, r8d
movzx ecx, byte [r12 - 1]
or eax, ecx
xor eax, ebx
mov dword [rsp + 0x28], eax
xor edx, r10d
mov dword [rsp + 0x2c], edx
lea rcx, [rsp + 0x28]
mov rdx, rdi
mov r8d, 1
call fcn.140046320
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
jmp 0x1400478fd
cmp r14, 8
jb 0x140047847
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.140046320
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 0x1400477d0
mov rbp, qword [rsp + 0xa0]
test r14, r14
je 0x140047921
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.140046320
lea rax, [r14 - 1]
cmp rax, 6
ja case.default.0x1400478a0
xor ebx, dword [rsp + 0x28]
mov edx, r15d
xor edx, dword [rsp + 0x2c]
add rsi, r14
lea rcx, [0x1402e4eec]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov eax, edx
shr eax, 0x10
mov byte [rsi - 1], al
dec rsi
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 byte [rsi - 1], bh
dec rsi
mov byte [rsi - 1], bl
mov ecx, r12d
mov ebx, r13d
jmp 0x140047924
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
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 0x140047949
mov ecx, r10d
mov byte [rbp], bl
mov byte [rbp + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [rbp + 2], al
shr ebx, 0x18
mov byte [rbp + 3], bl
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.140263800
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
jmp 0x140047775