Function at 0x537f40
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5384dd
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x88], r9
cmp r10, 0xf
jbe 0x5384cf
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x88], r9
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
mov rax, r9
mov ebx, 4
mov rcx, r11
call fcn.00481b60
mov dword [rsp + 0x34], eax
mov rdx, qword [rsp + 0x88]
lea rsi, [rdx + 4]
mov rcx, qword [rsp + 0x98]
lea rdi, [rcx - 4]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
call fcn.00481b60
mov dword [rsp + 0x30], eax
mov rdx, qword [rsp + 0x88]
lea rsi, [rdx + 8]
mov rcx, qword [rsp + 0x98]
lea rdi, [rcx - 8]
mov ebx, 4
mov rax, rsi
mov rcx, rdi
nop dword [rax]
call fcn.00481b60
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x88]
add rdx, 0xc
mov rcx, qword [rsp + 0x98]
add rcx, 0xfffffffffffffff4
mov ebx, 4
mov rax, rdx
call fcn.00481b60
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jbe 0x5384c5
mov edx, dword [rsp + 0x34]
mov rsi, qword [rsp + 0x58]
xor edx, dword [rsi]
cmp rcx, 1
jbe 0x5384b7
mov r8d, dword [rsp + 0x30]
xor r8d, dword [rsi + 4]
nop word [rax + rax]
cmp rcx, 2
jbe 0x5384aa
mov r9d, dword [rsp + 0x2c]
xor r9d, dword [rsi + 8]
cmp rcx, 3
jbe 0x53849d
mov r10, rcx
shr r10, 2
xor eax, dword [rsi + 0xc]
add r10, 0xfffffffffffffffe
xor ebx, ebx
xor edi, edi
xor r11d, r11d
xor r12d, r12d
mov r13d, 4
jmp 0x53810b
shr r8d, 0x18
movzx ebx, r8b
mov ebx, dword [r12 + rbx*4]
xor ebx, dword [rsi + r13*4 + 0xc]
shr r11d, 0x10
movzx r8d, r11b
xor ebx, dword [r10 + r8*4]
shr edi, 8
movzx edi, dil
xor ebx, dword [rdx + rdi*4]
mov r15d, dword [rsp + 0x38]
movzx r15d, r15b
mov rdi, r15
mov r15, qword [rsp + 0x40]
dec r15
mov r8, r15
lea r15, [0x00887ee0]
xor ebx, dword [r15 + rdi*4]
add r13, 4
mov edi, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov r10, r8
mov edx, r9d
mov r9d, eax
mov r8d, edi
mov edi, ebx
mov r11d, r9d
mov r12d, r8d
mov eax, edi
mov ebx, edx
test r10, r10
jle 0x53822e
cmp rcx, r13
jbe 0x538495
mov qword [rsp + 0x40], r10
mov r11d, edx
shr edx, 0x18
movzx edx, dl
lea r12, [0x008872e0]
mov edx, dword [r12 + rdx*4]
xor edx, dword [rsi + r13*4]
mov r15d, eax
shr eax, 0x10
movzx eax, al
lea r10, [0x008876e0]
xor edx, dword [r10 + rax*4]
mov eax, r9d
shr r9d, 8
movzx r9d, r9b
mov edi, r15d
lea r15, [0x00887ae0]
xor edx, dword [r15 + r9*4]
movzx r9d, r8b
lea rbx, [r13 + 1]
lea r15, [0x00887ee0]
xor edx, dword [r15 + r9*4]
nop word [rax + rax]
cmp rcx, rbx
jbe 0x53848d
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x3c], edi
mov r9d, r8d
shr r8d, 0x18
movzx r8d, r8b
mov r8d, dword [r12 + r8*4]
xor r8d, dword [rsi + r13*4 + 4]
mov ebx, r11d
shr r11d, 0x10
movzx r11d, r11b
xor r8d, dword [r10 + r11*4]
shr edi, 8
movzx edi, dil
lea rdx, [0x00887ae0]
xor r8d, dword [rdx + rdi*4]
movzx edi, al
lea r11, [r13 + 2]
xor r8d, dword [r15 + rdi*4]
cmp rcx, r11
jbe 0x538485
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x38], ebx
mov r11d, eax
shr eax, 0x18
movzx eax, al
mov eax, dword [r12 + rax*4]
xor eax, dword [rsi + r13*4 + 8]
mov edi, r9d
shr r9d, 0x10
movzx r9d, r9b
xor eax, dword [r10 + r9*4]
shr ebx, 8
movzx ebx, bl
xor eax, dword [rdx + rbx*4]
mov r8d, dword [rsp + 0x3c]
movzx ebx, r8b
lea r9, [r13 + 3]
xor eax, dword [r15 + rbx*4]
nop
cmp rcx, r9
ja 0x53809d
jmp 0x53847d
mov dword [rsp + 0x24], r12d
mov edx, ebx
shr ebx, 0x18
lea r8, [0x00884000]
movzx r9d, byte [rbx + r8]
shl r9d, 0x18
mov r10d, edi
shr edi, 0x10
movzx r15d, dil
movzx edi, byte [r15 + r8]
shl edi, 0x10
or edi, r9d
mov r9d, r11d
shr r11d, 8
movzx r11d, r11b
movzx r11d, byte [r11 + r8]
shl r11d, 8
or edi, r11d
movzx r11d, r12b
movzx r11d, byte [r11 + r8]
mov r15d, r12d
shr r12d, 0x18
movzx r12d, byte [r12 + r8]
shl r12d, 0x18
mov eax, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [rdx + r8]
shl edx, 0x10
or edx, r12d
mov r12d, r10d
shr r10d, 8
movzx r10d, r10b
movzx r10d, byte [r10 + r8]
shl r10d, 8
or edx, r10d
movzx r10d, r9b
movzx r10d, byte [r10 + r8]
mov ebx, r9d
shr r9d, 0x18
movzx r9d, byte [r8 + r9]
shl r9d, 0x18
shr r15d, 0x10
movzx r15d, r15b
movzx r15d, byte [r15 + r8]
shl r15d, 0x10
or r9d, r15d
mov r15d, eax
shr eax, 8
movzx eax, al
movzx eax, byte [rax + r8]
shl eax, 8
or r9d, eax
movzx eax, r12b
movzx eax, byte [rax + r8]
shr r12d, 0x18
movzx r12d, byte [r8 + r12]
shl r12d, 0x18
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [rbx + r8]
shl ebx, 0x10
or ebx, r12d
mov r12d, dword [rsp + 0x24]
shr r12d, 8
movzx r12d, r12b
movzx r12d, byte [r12 + r8]
shl r12d, 8
or ebx, r12d
movzx r12d, r15b
movzx r8d, byte [r12 + r8]
or edi, r11d
or r10d, edx
or eax, r9d
or r8d, ebx
cmp rcx, r13
jbe 0x538475
lea rdx, [r13 + 1]
xor edi, dword [rsi + r13*4]
nop
cmp rcx, rdx
jbe 0x53846d
lea rdx, [r13 + 2]
xor r10d, dword [rsi + r13*4 + 4]
cmp rcx, rdx
jbe 0x538465
lea rdx, [r13 + 3]
xor eax, dword [rsi + r13*4 + 8]
cmp rcx, rdx
jbe 0x538458
xor r8d, dword [rsi + r13*4 + 0xc]
mov rcx, qword [rsp + 0x78]
nop word [rax + rax]
cmp rcx, 0xf
jbe 0x53844e
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], r8d
mov rax, qword [rsp + 0x70]
mov ebx, 4
mov rcx, qword [rsp + 0x80]
call fcn.00481ba0
mov rax, qword [rsp + 0x70]
lea rdx, [rax + 4]
mov rcx, qword [rsp + 0x80]
lea rsi, [rcx - 4]
mov ebx, 4
mov edi, dword [rsp + 0x30]
mov rax, rdx
mov rcx, rsi
call fcn.00481ba0
mov rax, qword [rsp + 0x70]
lea rdx, [rax + 8]
mov rcx, qword [rsp + 0x80]
lea rsi, [rcx - 8]
mov ebx, 4
mov edi, dword [rsp + 0x2c]
mov rax, rdx
mov rcx, rsi
nop dword [rax]
call fcn.00481ba0
mov rax, qword [rsp + 0x70]
add rax, 0xc
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
mov ebx, 4
mov edi, dword [rsp + 0x28]
call fcn.00481ba0
add rsp, 0x48
pop rbp
ret
mov eax, 0xf
call fcn.0047a380
mov rax, rdx
nop dword [rax + rax]
call fcn.0047a380
mov rax, rdx
call fcn.0047a380
mov rax, rdx
call fcn.0047a380
mov rax, r13
call fcn.0047a380
mov rax, r9
call fcn.0047a380
mov rax, r11
call fcn.0047a380
mov rax, rbx
call fcn.0047a380
mov rax, r13
call fcn.0047a380
mov eax, 3
mov rcx, rax
call fcn.0047a380
mov eax, 2
mov rcx, rax
call fcn.0047a380
mov eax, 1
mov rcx, rax
nop
call fcn.0047a380
xor eax, eax
mov rcx, rax
call fcn.0047a380
mov eax, 0xf
mov rcx, r10
call fcn.0047a380
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]
nop dword [rax]
jmp fcn.00537f40