Function at 0x140059670
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r10d, ecx
mov ebx, r8d
mov r11, rdx
lea rsi, [0x140107150]
not r10d
test r8d, r8d
je 0x140059394
nop
test r11b, 3
je 0x140059394
movzx ecx, byte [r11]
mov eax, r10d
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r10d, dword [rsi + rdx*4]
xor r10d, eax
dec ebx
jne 0x140059370
cmp ebx, 0x20
jb 0x1400595ce
mov qword [rsp + 0x10], rdi
mov edi, ebx
shr rdi, 5
nop dword [rax + rax]
xor r10d, dword [r11]
mov eax, r10d
shr rax, 0x10
movzx edx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r10d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 + 4]
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 + 8]
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 + 0xc]
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 + 0x10]
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 + 0x14]
mov eax, r8d
mov r9d, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
mov r8d, dword [rsi + rdx*4 + 0x400]
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
add r11, 0x20
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
add ebx, 0xffffffe0
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 - 8]
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r11 - 4]
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
mov r10d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r8d
xor r10d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r10d, dword [rsi + rax*4]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0xc00]
dec rdi
jne 0x1400593b0
mov rdi, qword [rsp + 0x10]
cmp ebx, 4
jb 0x14005962d
mov r9d, ebx
shr r9, 2
nop word [rax + rax]
xor r10d, dword [r11]
add r11, 4
add ebx, 0xfffffffc
mov r8d, r10d
mov eax, r10d
shr rax, 0x10
movzx edx, al
mov eax, r10d
mov r10d, dword [rsi + rdx*4 + 0x400]
shr rax, 8
movzx ecx, al
mov eax, r8d
xor r10d, dword [rsi + rcx*4 + 0x800]
shr rax, 0x18
xor r10d, dword [rsi + rax*4]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0xc00]
dec r9
jne 0x1400595e0
test ebx, ebx
je 0x14005965e
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, r10d
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r10d, dword [rsi + rdx*4]
xor r10d, eax
dec ebx
jne 0x140059640
mov rbx, qword [rsp + 0x18]
not r10d
mov eax, r10d
pop rsi
ret
test rdx, rdx
jne 0x140059678
xor eax, eax
ret
jmp 0x140059350