Function at 0x140022254
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
push r15
mov r10d, dword [rdx]
lea r15, sym.MZ__z____L_h__Btd_qo_Tab_1tg9cSS_bQ__yRTw3S
mov r9d, dword [rdx + 4]
mov rbx, rcx
bswap r10d
mov eax, r10d
mov edi, 8
shr eax, 4
mov rsi, r8
bswap r9d
xor eax, r9d
mov ebp, edi
and eax, 0xf0f0f0f
lea r14d, [rdi + 0x37]
xor r9d, eax
shl eax, 4
xor r10d, eax
mov eax, r10d
shr eax, 0x10
xor eax, r9d
movzx ecx, ax
xor r9d, ecx
shl ecx, 0x10
xor r10d, ecx
mov eax, r9d
shr eax, 2
xor eax, r10d
and eax, 0x33333333
xor r10d, eax
shl eax, 2
xor r9d, eax
mov eax, r9d
shr eax, 8
xor eax, r10d
and eax, 0xff00ff
xor r10d, eax
shl eax, 8
xor r9d, eax
mov r11d, r9d
shr r11d, 0x1f
lea eax, [r9 + r9]
or r11d, eax
mov eax, r11d
xor eax, r10d
and eax, 0xaaaaaaaa
xor r11d, eax
xor r10d, eax
ror r10d, 0x1f
mov r9d, r11d
mov eax, r11d
xor r9d, dword [rbx]
ror eax, 4
xor eax, dword [rbx + 4]
mov ecx, eax
mov r8d, eax
shr rax, 0x10
and rax, r14
shr rcx, 0x18
and rcx, r14
mov edx, dword [r15 + rcx*4 + 0x183040]
xor edx, dword [r15 + rax*4 + 0x183690]
mov eax, r8d
shr rax, 8
and r8, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182e00]
mov eax, r9d
shr rax, 0x18
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182f40]
mov eax, r9d
shr rax, 0x10
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183590]
mov eax, r9d
shr rax, 8
and r9, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183260]
xor edx, dword [r15 + r8*4 + 0x183470]
xor edx, dword [r15 + r9*4 + 0x183370]
xor r10d, edx
mov r9d, r10d
mov eax, r10d
xor r9d, dword [rbx + 8]
ror eax, 4
xor eax, dword [rbx + 0xc]
add rbx, 0x10
mov ecx, eax
mov r8d, eax
shr rax, 0x10
and rax, r14
shr rcx, 0x18
and rcx, r14
mov edx, dword [r15 + rcx*4 + 0x183040]
xor edx, dword [r15 + rax*4 + 0x183690]
mov eax, r8d
shr rax, 8
and r8, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182e00]
mov eax, r9d
shr rax, 0x18
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182f40]
mov eax, r9d
shr rax, 0x10
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183590]
mov eax, r9d
shr rax, 8
and r9, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183260]
xor edx, dword [r15 + r8*4 + 0x183470]
xor edx, dword [r15 + r9*4 + 0x183370]
xor r11d, edx
sub rbp, 1
jne 0x14002230d
mov rbp, rdi
mov r9d, r10d
mov eax, r10d
xor r9d, dword [rbx]
ror eax, 4
xor eax, dword [rbx + 4]
mov ecx, eax
mov r8d, eax
shr rax, 0x10
and rax, r14
shr rcx, 0x18
and rcx, r14
mov edx, dword [r15 + rcx*4 + 0x183040]
xor edx, dword [r15 + rax*4 + 0x183690]
mov eax, r8d
shr rax, 8
and r8, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182e00]
mov eax, r9d
shr rax, 0x18
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182f40]
mov eax, r9d
shr rax, 0x10
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183590]
mov eax, r9d
shr rax, 8
and r9, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183260]
xor edx, dword [r15 + r8*4 + 0x183470]
xor edx, dword [r15 + r9*4 + 0x183370]
xor r11d, edx
mov r9d, r11d
mov eax, r11d
xor r9d, dword [rbx + 8]
ror eax, 4
xor eax, dword [rbx + 0xc]
add rbx, 0x10
mov ecx, eax
mov r8d, eax
shr rax, 0x10
and rax, r14
shr rcx, 0x18
and rcx, r14
mov edx, dword [r15 + rcx*4 + 0x183040]
xor edx, dword [r15 + rax*4 + 0x183690]
mov eax, r8d
shr rax, 8
and r8, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182e00]
mov eax, r9d
shr rax, 0x18
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182f40]
mov eax, r9d
shr rax, 0x10
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183590]
mov eax, r9d
shr rax, 8
and r9, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183260]
xor edx, dword [r15 + r8*4 + 0x183470]
xor edx, dword [r15 + r9*4 + 0x183370]
xor r10d, edx
sub rbp, 1
jne 0x140022445
mov r9d, r11d
mov eax, r11d
xor r9d, dword [rbx]
lea rbx, [rbx + 0x10]
ror eax, 4
xor eax, dword [rbx - 0xc]
mov ecx, eax
mov r8d, eax
shr rax, 0x10
and rax, r14
shr rcx, 0x18
and rcx, r14
mov edx, dword [r15 + rcx*4 + 0x183040]
xor edx, dword [r15 + rax*4 + 0x183690]
mov eax, r8d
shr rax, 8
and r8, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182e00]
mov eax, r9d
shr rax, 0x18
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182f40]
mov eax, r9d
shr rax, 0x10
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183590]
mov eax, r9d
shr rax, 8
and r9, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183260]
xor edx, dword [r15 + r8*4 + 0x183470]
xor edx, dword [r15 + r9*4 + 0x183370]
xor r10d, edx
mov r9d, r10d
mov eax, r10d
xor r9d, dword [rbx - 8]
ror eax, 4
xor eax, dword [rbx - 4]
mov ecx, eax
mov r8d, eax
shr rax, 0x10
and rax, r14
shr rcx, 0x18
and rcx, r14
mov edx, dword [r15 + rcx*4 + 0x183040]
xor edx, dword [r15 + rax*4 + 0x183690]
mov eax, r8d
shr rax, 8
and r8, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182e00]
mov eax, r9d
shr rax, 0x18
and rax, r14
xor edx, dword [r15 + rax*4 + 0x182f40]
mov eax, r9d
shr rax, 0x10
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183590]
mov eax, r9d
shr rax, 8
and r9, r14
and rax, r14
xor edx, dword [r15 + rax*4 + 0x183260]
xor edx, dword [r15 + r8*4 + 0x183470]
xor edx, dword [r15 + r9*4 + 0x183370]
xor r11d, edx
sub rdi, 1
jne 0x14002257a
mov rbx, qword [rsp + 0x18]
mov r8d, r11d
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
shl r8d, 0x1f
shr r11d, 1
or r8d, r11d
mov eax, r8d
xor eax, r10d
and eax, 0xaaaaaaaa
xor r8d, eax
xor r10d, eax
mov edx, r10d
shr r10d, 1
shl edx, 0x1f
or edx, r10d
mov eax, edx
shr eax, 8
xor eax, r8d
and eax, 0xff00ff
xor r8d, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, r8d
and eax, 0x33333333
xor r8d, eax
shl eax, 2
xor edx, eax
mov eax, r8d
shr eax, 0x10
xor eax, edx
movzx ecx, ax
xor edx, ecx
shl ecx, 0x10
xor r8d, ecx
mov eax, r8d
shr eax, 4
xor eax, edx
and eax, 0xf0f0f0f
xor edx, eax
shl eax, 4
xor r8d, eax
bswap r8d
bswap edx
mov dword [rsi], r8d
xor eax, eax
mov dword [rsi + 4], edx
mov rsi, qword [rsp + 0x28]
pop r15
pop r14
ret