Function at 0x4037b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, r8d
push r15
shr eax, 3
push r14
lea eax, [rax + rax + 6]
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov dword [rcx + 0x1e0], eax
mov eax, dword [rdx]
mov dword [rsp + 0x58], r8d
bswap eax
cmp dword [rsp + 0x58], 0x10
mov dword [rcx], eax
mov r8d, dword [rdx + 4]
bswap r8d
mov dword [rcx + 4], r8d
mov r9d, dword [rdx + 8]
bswap r9d
mov dword [rcx + 8], r9d
mov ebx, dword [rdx + 0xc]
bswap ebx
mov dword [rcx + 0xc], ebx
je 0x403b60
cmp dword [rsp + 0x58], 0x18
je 0x403a95
cmp dword [rsp + 0x58], 0x20
jne 0x403bfc
mov r10d, dword [rdx + 0x10]
lea r13, [0x004160a0]
mov r14d, 0x1000000
lea r12, [0x00413f00]
lea rbp, [0x00413b00]
lea rdi, [0x00414700]
mov qword [rsp + 0x48], rcx
bswap r10d
mov dword [rcx + 0x10], r10d
mov r10d, dword [rdx + 0x14]
lea rsi, [0x00414300]
bswap r10d
mov dword [rcx + 0x14], r10d
mov r10d, dword [rdx + 0x18]
bswap r10d
mov dword [rcx + 0x18], r10d
mov r11d, dword [rdx + 0x1c]
lea r10, [rcx + 0x20]
bswap r11d
mov edx, r11d
mov dword [rcx + 0x1c], r11d
mov r11d, ebx
mov ebx, edx
jmp 0x4038d9
mov r14d, r11d
add r10, 0x20
ror r14d, 8
mov r15d, r14d
movzx edx, r14b
mov ecx, r14d
shr r15d, 0x18
mov edx, dword [r12 + rdx*4]
movzx ecx, ch
xor edx, dword [rbp + r15*4]
mov r15d, r14d
xor edx, dword [r10 - 0x30]
shr r15d, 0x10
movzx r15d, r15b
xor edx, dword [rdi + r15*4]
xor edx, dword [rsi + rcx*4]
mov dword [r10 - 0x10], edx
xor edx, dword [r10 - 0x2c]
mov dword [r10 - 0xc], edx
xor edx, dword [r10 - 0x28]
xor ebx, edx
mov dword [r10 - 8], edx
mov dword [r10 - 4], ebx
mov r14d, dword [r13]
mov r15d, ebx
movzx edx, bl
movzx ecx, bh
add r13, 4
shr r15d, 0x18
mov edx, dword [r12 + rdx*4]
xor edx, dword [rbp + r15*4]
mov r15d, ebx
shr r15d, 0x10
movzx r15d, r15b
xor edx, dword [rdi + r15*4]
xor edx, dword [rsi + rcx*4]
lea rcx, [0x004160bc]
xor eax, edx
xor eax, r14d
xor r8d, eax
mov dword [r10], eax
xor r9d, r8d
mov dword [r10 + 4], r8d
xor r11d, r9d
mov dword [r10 + 8], r9d
mov dword [r10 + 0xc], r11d
cmp r13, rcx
jne 0x403880
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
add eax, 0x1c
cmp dword [rcx + 0x1e0], 1
lea r8, [rcx + 0xf0]
lea rdx, [rcx + rax*4 - 0x10]
mov eax, dword [rdx]
mov dword [rcx + 0xf0], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0xf4], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0xf8], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0xfc], eax
jbe 0x403a6a
mov esi, 1
lea rbx, [0x00414b00]
lea r11, [0x00415700]
mov r14, rcx
lea r10, [0x00414f00]
lea r9, [0x00415300]
nop
sub rdx, 0x10
mov edi, dword [rdx]
add r8, 0x10
add esi, 1
mov eax, edi
movzx ebp, dil
mov ecx, edi
shr eax, 0x18
mov eax, dword [rbx + rax*4]
xor eax, dword [r11 + rbp*4]
mov ebp, edi
movzx edi, ch
shr ebp, 0x10
movzx ebp, bpl
xor eax, dword [r10 + rbp*4]
xor eax, dword [r9 + rdi*4]
mov dword [r8], eax
mov edi, dword [rdx + 4]
mov eax, edi
movzx ebp, dil
mov ecx, edi
shr eax, 0x18
mov eax, dword [rbx + rax*4]
xor eax, dword [r11 + rbp*4]
mov ebp, edi
movzx edi, ch
shr ebp, 0x10
movzx ebp, bpl
xor eax, dword [r10 + rbp*4]
xor eax, dword [r9 + rdi*4]
mov dword [r8 + 4], eax
mov edi, dword [rdx + 8]
mov eax, edi
movzx ebp, dil
mov ecx, edi
shr eax, 0x18
mov eax, dword [rbx + rax*4]
xor eax, dword [r11 + rbp*4]
mov ebp, edi
movzx edi, ch
shr ebp, 0x10
movzx ebp, bpl
xor eax, dword [r10 + rbp*4]
xor eax, dword [r9 + rdi*4]
mov dword [r8 + 8], eax
mov edi, dword [rdx + 0xc]
mov eax, edi
movzx ebp, dil
mov ecx, edi
shr eax, 0x18
mov eax, dword [rbx + rax*4]
xor eax, dword [r11 + rbp*4]
mov ebp, edi
movzx edi, ch
shr ebp, 0x10
movzx ebp, bpl
xor eax, dword [r10 + rbp*4]
xor eax, dword [r9 + rdi*4]
mov dword [r8 + 0xc], eax
cmp dword [r14 + 0x1e0], esi
ja 0x4039a0
mov eax, dword [rdx - 0x10]
mov dword [r8 + 0x10], eax
mov eax, dword [rdx - 0xc]
mov dword [r8 + 0x14], eax
mov eax, dword [rdx - 8]
mov dword [r8 + 0x18], eax
mov eax, dword [rdx - 4]
mov dword [r8 + 0x1c], eax
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10d, dword [rdx + 0x10]
lea r13, [0x004160a0]
mov r14d, 0x1000000
lea r12, [0x00413f00]
lea rbp, [0x00413b00]
lea rdi, [0x00414700]
mov qword [rsp + 0x48], rcx
bswap r10d
mov dword [rcx + 0x10], r10d
mov r11d, dword [rdx + 0x14]
lea r10, [rcx + 0x18]
lea rsi, [0x00414300]
bswap r11d
mov dword [rcx + 0x14], r11d
mov edx, r11d
mov r11d, eax
jmp 0x403afd
mov eax, dword [r10 - 8]
add r10, 0x18
xor eax, ebx
xor edx, eax
mov dword [r10 - 8], eax
mov dword [r10 - 4], edx
mov r14d, dword [r13]
mov r15d, edx
movzx eax, dl
movzx ecx, dh
add r13, 4
shr r15d, 0x18
mov eax, dword [r12 + rax*4]
xor eax, dword [rbp + r15*4]
mov r15d, edx
shr r15d, 0x10
movzx r15d, r15b
xor eax, dword [rdi + r15*4]
xor eax, dword [rsi + rcx*4]
xor eax, r11d
xor eax, r14d
xor r8d, eax
mov r11d, eax
mov dword [r10], eax
lea rax, [0x004160c0]
xor r9d, r8d
mov dword [r10 + 4], r8d
xor ebx, r9d
mov dword [r10 + 8], r9d
mov dword [r10 + 0xc], ebx
cmp r13, rax
jne 0x403ae5
jmp 0x403932
lea r11, [0x004160a4]
lea r10, [rcx + 0x10]
mov edx, eax
mov r13d, 0x1000000
lea r14, [r11 + 0x24]
lea r12, [0x00413f00]
mov qword [rsp + 0x48], rcx
lea rbp, [0x00413b00]
lea rdi, [0x00414700]
lea rsi, [0x00414300]
jmp 0x403bab
mov r13d, dword [r11]
add r10, 0x10
add r11, 4
mov r15d, ebx
movzx eax, bl
movzx ecx, bh
shr r15d, 0x18
mov eax, dword [r12 + rax*4]
xor eax, dword [rbp + r15*4]
mov r15d, ebx
shr r15d, 0x10
movzx r15d, r15b
xor eax, dword [rdi + r15*4]
xor eax, dword [rsi + rcx*4]
xor eax, edx
xor eax, r13d
xor r8d, eax
mov edx, eax
mov dword [r10], eax
xor r9d, r8d
mov dword [r10 + 4], r8d
xor ebx, r9d
mov dword [r10 + 8], r9d
mov dword [r10 + 0xc], ebx
cmp r14, r11
jne 0x403ba0
jmp 0x403932
mov eax, 0xffffffff
jmp 0x403a88