Function at 0x1800a5664
Capabilities:
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
sub rsp, 0x20
mov r11, r9
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x1800a5d8d
test r9, r9
je 0x1800a5da7
lea eax, [rdx - 0x10]
test eax, 0xffffffe7
jne 0x1800a5d6d
cmp edx, 0x28
je 0x1800a5d6d
test r8d, r8d
je 0x1800a56d4
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [rax*2 + 6]
cmp r8d, eax
je 0x1800a56d4
mov eax, 4
jmp 0x1800a5d72
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [rax*2 + 6]
mov dword [r9 + 0x1e0], eax
movzx eax, byte [rcx + 1]
movzx esi, byte [rcx]
shl esi, 8
or esi, eax
movzx eax, byte [rcx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [rcx + 3]
shl esi, 8
or esi, eax
mov dword [r9], esi
movzx eax, byte [rcx + 5]
movzx r10d, byte [rcx + 4]
shl r10d, 8
or r10d, eax
movzx eax, byte [rcx + 6]
shl r10d, 8
or r10d, eax
movzx eax, byte [rcx + 7]
shl r10d, 8
or r10d, eax
mov dword [r9 + 4], r10d
movzx eax, byte [rcx + 9]
movzx r14d, byte [rcx + 8]
shl r14d, 8
or r14d, eax
movzx eax, byte [rcx + 0xa]
shl r14d, 8
or r14d, eax
movzx eax, byte [rcx + 0xb]
shl r14d, 8
or r14d, eax
mov dword [r9 + 8], r14d
movzx eax, byte [rcx + 0xd]
movzx edi, byte [rcx + 0xc]
shl edi, 8
or edi, eax
movzx eax, byte [rcx + 0xe]
shl edi, 8
or edi, eax
movzx eax, byte [rcx + 0xf]
shl edi, 8
or edi, eax
mov dword [r9 + 0xc], edi
cmp ebp, 0x10
jne 0x1800a5877
mov eax, edi
mov edx, edi
shr eax, 0x10
lea rbx, [0x180000000]
movzx ecx, al
mov eax, edi
shr eax, 8
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13e3d0]
xor r8d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, dil
xor r8d, dword [rbx + rcx*4 + 0x13c6e0]
xor r8d, dword [rbx + rax*4 + 0x13d710]
xor r8d, esi
lea rsi, [r9 + 0x10]
btc r8d, 0x18
xor r10d, r8d
mov dword [rsi], r8d
mov dword [r9 + 0x14], r10d
xor r10d, r14d
xor edi, r10d
mov dword [r9 + 0x18], r10d
mov dword [r9 + 0x1c], edi
lea r14, [0x18013cf08]
lea rdi, [0x18013cee4]
mov r10d, dword [rsi + 0xc]
mov r9, rsi
add rsi, 0x10
mov eax, r10d
shr eax, 0x10
mov edx, r10d
movzx ecx, al
mov eax, r10d
shr eax, 8
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13e3d0]
xor r8d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, r10b
xor r8d, dword [rbx + rcx*4 + 0x13c6e0]
xor r8d, dword [rbx + rax*4 + 0x13d710]
xor r8d, dword [rdi]
add rdi, 4
xor r8d, dword [r9]
mov dword [rsi], r8d
xor r8d, dword [rsi - 0xc]
mov dword [rsi + 4], r8d
xor r8d, dword [rsi - 8]
mov dword [rsi + 8], r8d
xor r8d, r10d
mov dword [rsi + 0xc], r8d
cmp rdi, r14
jne 0x1800a5801
jmp 0x1800a5be3
cmp ebp, 0x18
jne 0x1800a59e4
movzx ecx, byte [rcx + 0x10]
movzx eax, byte [rbx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x13]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x10], ecx
movzx eax, byte [rbx + 0x15]
movzx r9d, byte [rbx + 0x14]
shl r9d, 8
or r9d, eax
movzx eax, byte [rbx + 0x16]
shl r9d, 8
or r9d, eax
movzx eax, byte [rbx + 0x17]
lea rbx, [0x180000000]
shl r9d, 8
or r9d, eax
mov dword [r11 + 0x14], r9d
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
mov edx, r9d
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13e3d0]
xor r8d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbx + rcx*4 + 0x13c6e0]
xor r8d, dword [rbx + rax*4 + 0x13d710]
xor r8d, esi
mov rsi, 0xffffffffffffffd8
btc r8d, 0x18
xor r10d, r8d
mov dword [r11 + 0x18], r8d
mov dword [r11 + 0x1c], r10d
xor r10d, r14d
mov dword [r11 + 0x20], r10d
lea r14, [0x18013cf00]
xor r10d, edi
lea rdi, [0x18013cee4]
mov dword [r11 + 0x24], r10d
sub rsi, r11
lea r10, [r11 + 0x28]
mov eax, dword [r10 - 0x18]
xor eax, dword [r10 - 4]
mov dword [r10], eax
xor eax, dword [r10 - 0x14]
mov dword [r10 + 4], eax
lea r10, [r10 + 0x18]
lea rax, [rsi + r10]
sar rax, 2
mov r8d, dword [r11 + rax*4 + 0x14]
mov eax, r8d
mov edx, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
shr rdx, 0x18
mov r9d, dword [rbx + rdx*4 + 0x13e3d0]
xor r9d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, r8b
xor r9d, dword [rbx + rcx*4 + 0x13c6e0]
xor r9d, dword [rbx + rax*4 + 0x13d710]
xor r9d, dword [r10 - 0x28]
xor r9d, dword [rdi]
add rdi, 4
mov dword [r10 - 0x10], r9d
xor r9d, dword [r10 - 0x24]
mov dword [r10 - 0xc], r9d
xor r9d, dword [r10 - 0x20]
mov dword [r10 - 8], r9d
xor r9d, dword [r10 - 0x1c]
mov dword [r10 - 4], r9d
cmp rdi, r14
jne 0x1800a594e
jmp 0x1800a5be3
cmp ebp, 0x20
jne 0x1800a5d66
movzx ecx, byte [rcx + 0x10]
movzx eax, byte [rbx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x13]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x10], ecx
movzx eax, byte [rbx + 0x15]
movzx ecx, byte [rbx + 0x14]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x17]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x14], ecx
movzx eax, byte [rbx + 0x19]
movzx ecx, byte [rbx + 0x18]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0x1b]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x18], ecx
movzx eax, byte [rbx + 0x1d]
movzx r9d, byte [rbx + 0x1c]
shl r9d, 8
or r9d, eax
movzx eax, byte [rbx + 0x1e]
shl r9d, 8
or r9d, eax
movzx eax, byte [rbx + 0x1f]
lea rbx, [0x180000000]
shl r9d, 8
or r9d, eax
mov dword [r11 + 0x1c], r9d
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
mov edx, r9d
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13e3d0]
xor r8d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbx + rcx*4 + 0x13c6e0]
xor r8d, dword [rbx + rax*4 + 0x13d710]
xor r8d, esi
mov rsi, 0xffffffffffffffd0
btc r8d, 0x18
xor r10d, r8d
mov dword [r11 + 0x20], r8d
mov dword [r11 + 0x24], r10d
xor r10d, r14d
mov dword [r11 + 0x28], r10d
lea r14, [0x18013cefc]
xor r10d, edi
lea rdi, [0x18013cee4]
mov dword [r11 + 0x2c], r10d
sub rsi, r11
lea r10, [r11 + 0x30]
mov r8d, dword [r10 - 4]
ror r8d, 8
mov eax, r8d
mov edx, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
shr rdx, 0x18
mov r9d, dword [rbx + rdx*4 + 0x13e3d0]
xor r9d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, r8b
xor r9d, dword [rbx + rcx*4 + 0x13c6e0]
xor r9d, dword [rbx + rax*4 + 0x13d710]
xor r9d, dword [r10 - 0x20]
mov dword [r10], r9d
xor r9d, dword [r10 - 0x1c]
mov dword [r10 + 4], r9d
xor r9d, dword [r10 - 0x18]
mov dword [r10 + 8], r9d
xor r9d, dword [r10 - 0x14]
mov dword [r10 + 0xc], r9d
lea r10, [r10 + 0x20]
lea rax, [rsi + r10]
sar rax, 2
mov r8d, dword [r11 + rax*4 + 0x1c]
mov eax, r8d
mov edx, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
shr rdx, 0x18
mov r9d, dword [rbx + rdx*4 + 0x13e3d0]
xor r9d, dword [rbx + rcx*4 + 0x13f4a0]
movzx ecx, al
movzx eax, r8b
xor r9d, dword [rbx + rcx*4 + 0x13c6e0]
xor r9d, dword [rbx + rax*4 + 0x13d710]
xor r9d, dword [r10 - 0x30]
xor r9d, dword [rdi]
add rdi, 4
mov dword [r10 - 0x10], r9d
xor r9d, dword [r10 - 0x2c]
mov dword [r10 - 0xc], r9d
xor r9d, dword [r10 - 0x28]
mov dword [r10 - 8], r9d
xor r9d, dword [r10 - 0x24]
mov dword [r10 - 4], r9d
cmp rdi, r14
jne 0x1800a5b01
lea r10, [r11 + 0xf0]
mov esi, 1
lea eax, [rbp + 0x1c]
movsxd rdi, eax
add rdi, 0xfffffffffffffffc
lea rdi, [r11 + rdi*4]
mov eax, dword [rdi]
mov dword [r10], eax
mov eax, dword [rdi + 4]
mov dword [r10 + 4], eax
mov eax, dword [rdi + 8]
mov dword [r10 + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [r10 + 0xc], eax
cmp dword [r11 + 0x1e0], esi
jle 0x1800a5d46
sub rdi, 0x10
add r10, 0x10
inc esi
mov eax, dword [rdi]
mov edx, dword [rdi]
shr eax, 0x10
movzx ecx, al
mov eax, dword [rdi]
shr eax, 8
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13c2e0]
xor r8d, dword [rbx + rcx*4 + 0x13cf10]
movzx ecx, al
movzx eax, byte [rdi]
xor r8d, dword [rbx + rcx*4 + 0x13f0a0]
xor r8d, dword [rbx + rax*4 + 0x13dfd0]
mov dword [r10], r8d
mov r9d, dword [rdi + 4]
mov eax, r9d
mov edx, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13c2e0]
xor r8d, dword [rbx + rcx*4 + 0x13cf10]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbx + rcx*4 + 0x13f0a0]
xor r8d, dword [rbx + rax*4 + 0x13dfd0]
mov dword [r10 + 4], r8d
mov r9d, dword [rdi + 8]
mov eax, r9d
mov edx, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13c2e0]
xor r8d, dword [rbx + rcx*4 + 0x13cf10]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbx + rcx*4 + 0x13f0a0]
xor r8d, dword [rbx + rax*4 + 0x13dfd0]
mov dword [r10 + 8], r8d
mov r9d, dword [rdi + 0xc]
mov eax, r9d
mov edx, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
shr rdx, 0x18
mov r8d, dword [rbx + rdx*4 + 0x13c2e0]
xor r8d, dword [rbx + rcx*4 + 0x13cf10]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rbx + rcx*4 + 0x13f0a0]
xor r8d, dword [rbx + rax*4 + 0x13dfd0]
mov dword [r10 + 0xc], r8d
cmp esi, dword [r11 + 0x1e0]
jl 0x1800a5c24
mov eax, dword [rdi - 0x10]
mov dword [r10 + 0x10], eax
mov eax, dword [rdi - 0xc]
mov dword [r10 + 0x14], eax
mov eax, dword [rdi - 8]
mov dword [r10 + 0x18], eax
mov eax, dword [rdi - 4]
mov dword [r10 + 0x1c], eax
xor eax, eax
jmp 0x1800a5d72
mov eax, 1
jmp 0x1800a5d72
mov eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r8d, 0x79
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srcciphers_aes_aes.c
lea rcx, str.key___NULL
call fcn.1800a7440
int3
mov r8d, 0x7a
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srcciphers_aes_aes.c
lea rcx, str.skey___NULL
call fcn.1800a7440
int3