Function at 0x140007b80
Capabilities:
Encrypt data using aes
Inspect section memory permissions
Reference aes constants

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400374d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp], 0x1000000
mov rbx, rdx
mov dword [rsp + 4], 0x2000000
mov dword [rsp + 8], 0x4000000
mov dword [rsp + 0xc], 0x8000000
mov dword [rsp + 0x10], 0x10000000
mov dword [rsp + 0x14], 0x20000000
mov dword [rsp + 0x18], 0x40000000
mov dword [rsp + 0x1c], 0x80000000
mov dword [rsp + 0x20], 0x1b000000
mov dword [rsp + 0x24], 0x36000000
mov dword [rsp + 0x28], 0x6c000000
mov dword [rsp + 0x2c], 0xd8000000
mov dword [rsp + 0x30], 0xab000000
mov dword [rsp + 0x34], 0x4d000000
mov dword [rsp + 0x38], 0x9a000000
sub r8d, 0x80
je 0x140007c3e
sub r8d, 0x40
je 0x140007c32
cmp r8d, 0x40
jne 0x140007e3a
lea r10d, [r8 - 0x32]
lea r11d, [r8 - 0x38]
jmp 0x140007c4a
mov r10d, 0xc
lea r11d, [r10 - 6]
jmp 0x140007c4a
mov r10d, 0xa
mov r11d, 4
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov edi, r11d
test r11d, r11d
je 0x140007c9e
mov r9, rbx
lea rax, [rcx + 2]
sub r9, rcx
mov r8d, edi
nop
movzx ecx, byte [rax - 1]
movzx edx, byte [rax - 2]
lea rax, [rax + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rax - 3]
shl edx, 8
or edx, ecx
mov dword [r9 + rax - 6], edx
sub r8, 1
jne 0x140007c70
lea esi, [r10*4 + 4]
mov r9d, r11d
mov r10, rdi
lea rbp, str.cw
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx + r10*4 - 4]
mov eax, r9d
cdq
idiv r11d
test edx, edx
jne 0x140007d70
rol r8d, 8
mov edx, r8d
mov ecx, r8d
shr rcx, 0xc
and ecx, 0xf
mov eax, r8d
shr rax, 8
and eax, 0xf
shl rcx, 4
add rcx, rax
mov eax, edx
shr rax, 0x10
and eax, 0xf
movzx r8d, byte [rcx + rbp]
mov ecx, edx
shr rcx, 0x14
and ecx, 0xf
shl r8d, 8
shl rcx, 4
add rcx, rax
movzx eax, byte [rcx + rbp]
mov ecx, edx
shl eax, 0x10
add r8d, eax
shr rcx, 0x1c
mov eax, edx
shl rcx, 4
shr rax, 0x18
and eax, 0xf
add rcx, rax
movzx eax, byte [rcx + rbp]
shl eax, 0x18
add r8d, eax
mov eax, edx
shr rax, 4
and edx, 0xf
and eax, 0xf
shl rax, 4
add rax, rdx
movzx eax, byte [rax + rbp]
add r8d, eax
lea eax, [r9 - 1]
cdq
idiv r11d
movsxd rcx, eax
xor r8d, dword [rsp + rcx*4]
jmp 0x140007e0c
cmp r11d, 6
jbe 0x140007e0c
cmp edx, 4
jne 0x140007e0c
mov rdx, r8
mov rcx, r8
shr rcx, 0x14
mov rax, r8
shr rax, 0x10
and ecx, 0xf
and eax, 0xf
shl rcx, 4
add rcx, rax
mov rax, rdx
shr rax, 8
and eax, 0xf
movzx r8d, byte [rcx + rbp]
mov rcx, rdx
shr rcx, 0xc
and ecx, 0xf
shl r8d, 0x10
shl rcx, 4
add rcx, rax
movzx eax, byte [rcx + rbp]
mov rcx, rdx
shl eax, 8
add r8d, eax
shr rcx, 0x1c
mov rax, rdx
shl rcx, 4
shr rax, 0x18
and eax, 0xf
add rcx, rax
movzx eax, byte [rcx + rbp]
shl eax, 0x18
add r8d, eax
mov rax, rdx
shr rax, 4
and edx, 0xf
and eax, 0xf
shl rax, 4
add rax, rdx
movzx eax, byte [rax + rbp]
add r8d, eax
mov rax, r10
inc r9d
sub rax, rdi
mov ecx, dword [rbx + rax*4]
xor ecx, r8d
mov dword [rbx + r10*4], ecx
inc r10
cmp r9d, esi
jl 0x140007cc0
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400083a0
add rsp, 0x50
pop rbx
ret