Function at 0x40a200
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
xor r9d, r9d
lea r10, [rsp + 0x80]
mov qword [rsp + 0x110], rcx
nop word cs:[rax + rax]
movzx eax, byte [rdx + r9]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [rdx + r9 + 1]
shl eax, 0x10
or eax, ecx
movzx ecx, byte [rdx + r9 + 3]
or eax, ecx
movzx ecx, byte [rdx + r9 + 2]
shl ecx, 8
or eax, ecx
mov dword [r10 + r9], eax
add r9, 4
cmp r9, 0x40
jne 0x40a230
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
xor eax, eax
mov qword [rsp + 0x38], r8
nop word [rax + rax]
mov edx, dword [rcx + rax]
mov dword [r8 + rax], edx
add rax, 4
cmp rax, 0x20
jne 0x40a280
mov rax, qword [rsp + 0x110]
mov dword [rsp + 0x70], 0xa4093822
mov dword [rsp + 0x74], 0x299f31d0
mov dword [rsp + 0x78], 0x82efa98
mov dword [rsp + 0x7c], 0xec4e6c89
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x34], eax
xor eax, 0x243f6a88
mov edi, eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x24]
mov r13d, eax
mov rax, qword [rsp + 0x110]
xor r13d, 0x85a308d3
mov dword [rsp + 0x64], r13d
mov eax, dword [rax + 0x28]
mov ebx, eax
mov rax, qword [rsp + 0x110]
xor ebx, 0x13198a2e
mov dword [rsp + 0x68], ebx
mov eax, dword [rax + 0x2c]
mov dword [rsp + 4], eax
xor eax, 0x3707344
mov r11d, eax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x3c]
test edx, edx
jne 0x40a750
mov r12d, dword [rax + 0x34]
mov r8d, dword [rax + 0x30]
mov eax, r12d
mov edx, r8d
xor r12d, 0xec4e6c89
xor r8d, 0x299f31d0
xor eax, 0x82efa98
xor edx, 0xa4093822
mov dword [rsp + 0x10], r8d
mov dword [rsp + 8], eax
mov dword [rsp + 0x18], r12d
nop
mov esi, dword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
lea r9, [0x00465500]
mov r14d, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x44]
lea r15, [0x004654c0]
mov ecx, dword [rsp + 0x54]
mov ebp, dword [rsp + 0x58]
mov r10d, edi
mov dword [rsp + 0xc], esi
mov esi, dword [rsp + 0x4c]
mov dword [rsp + 4], esi
mov esi, dword [rsp + 0x5c]
mov dword [rsp + 0x14], esi
nop
movzx edi, byte [r9 + 1]
movzx r12d, byte [r9]
mov esi, dword [r15 + rdi*4]
xor esi, dword [rsp + r12*4 + 0x80]
add esi, r14d
add eax, esi
mov esi, dword [r15 + r12*4]
xor esi, dword [rsp + rdi*4 + 0x80]
xor edx, eax
mov r12d, dword [rsp + 8]
rol edx, 0x10
add r10d, edx
xor r14d, r10d
add esi, eax
ror r14d, 0xc
lea eax, [rsi + r14]
xor edx, eax
mov dword [rsp + 0x1c], eax
ror edx, 8
add r10d, edx
mov dword [rsp + 0x20], edx
movzx edx, byte [r9 + 3]
xor r14d, r10d
mov dword [rsp + 0x24], r10d
movzx r10d, byte [r9 + 2]
ror r14d, 7
mov eax, dword [r15 + rdx*4]
xor eax, dword [rsp + r10*4 + 0x80]
mov esi, dword [r15 + r10*4]
xor esi, dword [rsp + rdx*4 + 0x80]
movzx edx, byte [r9 + 4]
add eax, ecx
add eax, r8d
mov r8d, dword [rsp + 0x10]
mov r10d, dword [r15 + rdx*4]
add esi, eax
xor r8d, eax
movzx eax, byte [r9 + 5]
rol r8d, 0x10
add r13d, r8d
xor ecx, r13d
ror ecx, 0xc
mov edi, dword [r15 + rax*4]
xor edi, dword [rsp + rdx*4 + 0x80]
add esi, ecx
xor r8d, esi
mov dword [rsp + 0x28], esi
ror r8d, 8
add r13d, r8d
add edi, ebp
xor ecx, r13d
ror ecx, 7
add edi, dword [rsp + 0xc]
xor r10d, dword [rsp + rax*4 + 0x80]
mov dword [rsp + 0x2c], ecx
mov eax, dword [rsp + 0x14]
xor r12d, edi
add r10d, edi
mov ecx, r12d
movzx r12d, byte [r9 + 6]
rol ecx, 0x10
add ebx, ecx
xor ebp, ebx
ror ebp, 0xc
add r10d, ebp
xor ecx, r10d
ror ecx, 8
add ebx, ecx
xor ebp, ebx
ror ebp, 7
mov dword [rsp + 0x30], ebp
movzx ebp, byte [r9 + 7]
mov edi, dword [r15 + rbp*4]
xor edi, dword [rsp + r12*4 + 0x80]
add edi, eax
add edi, dword [rsp + 4]
mov esi, dword [rsp + 0x18]
xor esi, edi
mov edx, esi
mov esi, dword [r15 + r12*4]
xor esi, dword [rsp + rbp*4 + 0x80]
movzx ebp, byte [r9 + 0xe]
rol edx, 0x10
add r11d, edx
xor eax, r11d
add esi, edi
movzx edi, byte [r9 + 0xf]
ror eax, 0xc
add esi, eax
xor edx, esi
ror edx, 8
mov r12d, dword [r15 + rdi*4]
xor r12d, dword [rsp + rbp*4 + 0x80]
add r11d, edx
xor eax, r11d
mov ebp, dword [r15 + rbp*4]
ror eax, 7
add esi, r12d
movzx r12d, byte [r9 + 0xa]
add esi, r14d
xor ecx, esi
xor ebp, dword [rsp + rdi*4 + 0x80]
rol ecx, 0x10
add r13d, ecx
xor r14d, r13d
add ebp, esi
ror r14d, 0xc
movzx esi, byte [r9 + 0xc]
lea edi, [rbp + r14]
xor ecx, edi
mov dword [rsp + 4], edi
mov edi, ecx
movzx ecx, byte [r9 + 0xd]
ror edi, 8
add r13d, edi
mov dword [rsp + 8], edi
xor r14d, r13d
mov edi, dword [r15 + rcx*4]
xor edi, dword [rsp + rsi*4 + 0x80]
ror r14d, 7
mov esi, dword [r15 + rsi*4]
xor esi, dword [rsp + rcx*4 + 0x80]
mov ecx, dword [rsp + 0x2c]
add edi, r10d
mov r10d, dword [rsp + 0x24]
add edi, eax
xor r8d, edi
add edi, esi
rol r8d, 0x10
add r10d, r8d
xor eax, r10d
ror eax, 0xc
add edi, eax
xor r8d, edi
mov dword [rsp + 0xc], edi
ror r8d, 8
add r10d, r8d
mov dword [rsp + 0x10], r8d
movzx r8d, byte [r9 + 9]
xor eax, r10d
mov edi, eax
ror edi, 7
mov dword [rsp + 0x14], edi
movzx edi, byte [r9 + 8]
mov esi, dword [r15 + r8*4]
xor esi, dword [rsp + rdi*4 + 0x80]
mov eax, dword [r15 + rdi*4]
add esi, dword [rsp + 0x1c]
add esi, ecx
xor edx, esi
rol edx, 0x10
add ebx, edx
xor eax, dword [rsp + r8*4 + 0x80]
add r9, 0x10
xor ecx, ebx
ror ecx, 0xc
add eax, esi
add eax, ecx
xor edx, eax
mov edi, edx
ror edi, 8
add ebx, edi
mov dword [rsp + 0x18], edi
movzx edi, byte [r9 - 5]
xor ecx, ebx
ror ecx, 7
mov esi, dword [r15 + rdi*4]
xor esi, dword [rsp + r12*4 + 0x80]
add esi, dword [rsp + 0x28]
mov ebp, dword [rsp + 0x30]
mov edx, dword [rsp + 0x20]
mov r8d, dword [r15 + r12*4]
xor r8d, dword [rsp + rdi*4 + 0x80]
add esi, ebp
xor edx, esi
rol edx, 0x10
add r8d, esi
lea rsi, [0x004655e0]
add r11d, edx
xor ebp, r11d
ror ebp, 0xc
add r8d, ebp
xor edx, r8d
ror edx, 8
add r11d, edx
xor ebp, r11d
ror ebp, 7
cmp r9, rsi
jne 0x40a3a0
mov esi, dword [rsp + 4]
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x70], edx
mov dword [rsp + 0x64], r13d
xor edx, edx
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x4c], esi
mov esi, dword [rsp + 8]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x6c], r11d
mov dword [rsp + 0x78], esi
mov esi, dword [rsp + 0xc]
mov dword [rsp + 0x58], ebp
mov r8, qword [rsp + 0x110]
mov r9, qword [rsp + 0x38]
mov dword [rsp + 0x48], esi
mov esi, dword [rsp + 0x10]
mov dword [rsp + 0x74], esi
mov esi, dword [rsp + 0x14]
mov dword [rsp + 0x5c], esi
mov esi, dword [rsp + 0x18]
mov dword [rsp + 0x7c], esi
jmp 0x40a6e0
mov eax, dword [r9 + rdx*4]
nop word cs:[rax + rax]
mov rcx, rdx
add rdx, 1
and ecx, 7
xor dword [r8 + rcx*4], eax
cmp rdx, 0x10
jne 0x40a6d0
mov rax, qword [rsp + 0x110]
xor edx, edx
mov ecx, dword [rsp + 0x34]
mov r8, rax
jmp 0x40a720
mov ecx, edx
and ecx, 3
mov ecx, dword [r8 + rcx*4 + 0x20]
nop word [rax + rax]
add edx, 1
xor dword [rax], ecx
add rax, 4
cmp edx, 8
jne 0x40a710
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x18], 0xec4e6c89
mov edx, 0xa4093822
mov dword [rsp + 0x10], 0x299f31d0
mov dword [rsp + 8], 0x82efa98
jmp 0x40a360