Function at 0x401a40
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 0x401df0
cmp dword [rsp + 0x58], 0x18
je 0x401d25
cmp dword [rsp + 0x58], 0x20
jne 0x401e8c
mov r10d, dword [rdx + 0x10]
lea r13, [0x00416b00]
mov r14d, 0x1000000
lea r12, [0x004146e0]
lea rbp, [0x004142e0]
lea rdi, [0x00414ee0]
mov qword [rsp + 0x48], rcx
bswap r10d
mov dword [rcx + 0x10], r10d
mov r10d, dword [rdx + 0x14]
lea rsi, [0x00414ae0]
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 0x401b69
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, [0x00416b1c]
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 0x401b10
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 0x401cfa
mov esi, 1
lea rbx, [0x004152e0]
lea r11, [0x00415ee0]
mov r14, rcx
lea r10, [0x004156e0]
lea r9, [0x00415ae0]
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 0x401c30
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, [0x00416b00]
mov r14d, 0x1000000
lea r12, [0x004146e0]
lea rbp, [0x004142e0]
lea rdi, [0x00414ee0]
mov qword [rsp + 0x48], rcx
bswap r10d
mov dword [rcx + 0x10], r10d
mov r11d, dword [rdx + 0x14]
lea r10, [rcx + 0x18]
lea rsi, [0x00414ae0]
bswap r11d
mov dword [rcx + 0x14], r11d
mov edx, r11d
mov r11d, eax
jmp 0x401d8d
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, [0x00416b20]
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 0x401d75
jmp 0x401bc2
lea r11, [0x00416b04]
lea r10, [rcx + 0x10]
mov edx, eax
mov r13d, 0x1000000
lea r14, [r11 + 0x24]
lea r12, [0x004146e0]
mov qword [rsp + 0x48], rcx
lea rbp, [0x004142e0]
lea rdi, [0x00414ee0]
lea rsi, [0x00414ae0]
jmp 0x401e3b
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 0x401e30
jmp 0x401bc2
mov eax, 0xffffffff
jmp 0x401d18