Function at 0x5385c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5388f3
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x78], r10
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov rdx, rbx
shr rdx, 2
mov qword [rsp + 0x28], rdx
xor r8d, r8d
jmp 0x538638
mov rdi, qword [rsp + 0x58]
mov dword [rdi + rdx*4], eax
lea r8, [rdx + 1]
mov rbx, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
mov rcx, r11
mov rsi, qword [rsp + 0x60]
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
cmp r8, rdx
jge 0x5386a1
mov r11, r8
shl r8, 2
cmp rbx, r8
jb 0x5388e7
mov qword [rsp + 0x20], r11
mov rdx, rcx
sub rdx, r8
mov rsi, rbx
sub rsi, r8
mov rdi, rdx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
mov rax, rdx
mov rbx, rsi
mov rcx, rdi
call fcn.00481b60
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
cmp rcx, rdx
ja 0x538606
jmp 0x5388df
mov dword [rdi + r8*4], ebx
inc r8
mov rdx, r11
cmp rsi, r8
jle 0x5387ae
lea rax, [r8 - 1]
cmp rsi, rax
jbe 0x5388d7
mov ebx, dword [rdi + r8*4 - 4]
nop dword [rax]
test rdx, rdx
je 0x5388d2
mov qword [rsp + 0x18], r8
mov rax, r8
mov r11, rdx
cmp r11, 0xffffffffffffffff
jne 0x5386e2
neg rax
xor edx, edx
nop
jmp 0x5386e7
cqo
idiv r11
test rdx, rdx
je 0x538733
cmp r11, 6
jle 0x538787
nop word [rax + rax]
nop
cmp rdx, 4
jne 0x538787
mov eax, ebx
call fcn.00538560
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0x28]
mov ebx, eax
jmp 0x538787
mov qword [rsp + 0x20], rax
mov eax, ebx
call fcn.005385a0
nop
call fcn.00538560
mov rcx, qword [rsp + 0x20]
lea rdx, [rcx - 1]
cmp rdx, 0x10
jae 0x5388c5
lea rdx, [0x00881710]
movzx ebx, byte [rcx + rdx - 1]
shl ebx, 0x18
xor ebx, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
mov r11, qword [rsp + 0x28]
mov rax, r8
sub rax, r11
cmp rsi, rax
jbe 0x5388b9
xor ebx, dword [rdi + rax*4]
nop dword [rax]
cmp rsi, r8
ja 0x538697
jmp 0x5388ae
test r9, r9
je 0x5387b7
xor eax, eax
jmp 0x5387c4
add rsp, 0x30
pop rbp
ret
add rax, 4
mov rsi, rcx
cmp rsi, rax
jle 0x5387d3
mov rcx, rsi
sub rsi, rax
xor edx, edx
jmp 0x5387e0
add rsp, 0x30
pop rbp
ret
mov dword [r9 + r8*4], ebx
inc rdx
cmp rdx, 4
jge 0x5387bd
lea rbx, [rdx + rsi]
lea rbx, [rbx - 4]
cmp rcx, rbx
jbe 0x5388a6
mov ebx, dword [rdi + rbx*4]
test rax, rax
jle 0x538872
lea r8, [rax + 4]
cmp rcx, r8
jle 0x538872
mov r8d, ebx
shr ebx, 0x18
lea r11, str.cw
movzx r12d, byte [r11 + rbx]
lea r13, [0x008872e0]
mov ebx, dword [r13 + r12*4]
mov r12d, r8d
shr r8d, 0x10
movzx r8d, r8b
movzx r8d, byte [r8 + r11]
lea r15, [0x008876e0]
xor ebx, dword [r15 + r8*4]
mov r8d, r12d
shr r12d, 8
movzx r12d, r12b
movzx r12d, byte [r12 + r11]
lea r15, [0x00887ae0]
xor ebx, dword [r15 + r12*4]
movzx r8d, r8b
movzx r8d, byte [r8 + r11]
lea r12, [0x00887ee0]
xor ebx, dword [r12 + r8*4]
jmp 0x53888e
lea r11, str.cw
lea r12, [0x00887ee0]
lea r13, [0x008872e0]
lea r15, [0x00887ae0]
lea r8, [rdx + rax]
cmp r10, r8
ja 0x5387d9
mov rax, r8
mov rcx, r10
call fcn.0047a380
mov rax, rbx
call fcn.0047a380
mov rax, r8
mov rcx, rsi
call fcn.0047a380
mov rcx, rsi
nop dword [rax]
call fcn.0047a380
mov rax, rdx
mov ecx, 0x10
call fcn.0047a380
call fcn.0043ba00
mov rcx, rsi
call fcn.0047a380
mov rax, rdx
call fcn.0047a380
mov rax, r8
mov rcx, rbx
call fcn.0047a440
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], r11
call fcn.004780a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
jmp fcn.005385c0