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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rdx
mov rbx, rcx
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], rcx
xor r13d, r13d
lea eax, [r8 - 0x10]
test eax, 0xffffffe7
jne 0x18001a33d
cmp r8d, 0x28
je 0x18001a33d
mov dword [rbp - 0x19], r13d
mov dword [rbp - 0x15], 1
mov dword [rbp - 0x11], 2
mov dword [rbp - 0xd], 4
mov dword [rbp - 9], 8
mov dword [rbp - 5], reloc.WS2_32.dll_recv
mov dword [rbp - 1], 0x20
mov dword [rbp + 3], 0x40
mov dword [rbp + 7], 0x80
mov dword [rbp + 0xb], 0x1b
mov dword [rbp + 0xf], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rdi, eax
cmp r8d, 0x10
je 0x18001a16c
cmp r8d, 0x18
je 0x18001a161
cmp r8d, 0x20
jne 0x18001a35e
lea esi, [r13 + 0x3c]
lea r12d, [r13 + 0xf]
jmp 0x18001a175
mov esi, 0x34
lea r12d, [rsi - 0x27]
jmp 0x18001a175
mov esi, 0x2c
lea r12d, [rsi - 0x21]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r13
mov edx, esi
lea rcx, [rbp - 0x49]
call fcn.180018a88
nop
test edi, edi
jle 0x18001a1ba
mov r14, r13
mov r13d, edi
mov rcx, qword [rbp - 0x49]
add rcx, r14
mov r8d, 4
mov rdx, r15
call fcn.1800ad7c0
add r14, 4
add r15, 4
sub r13, 1
jne 0x18001a197
mov r10d, edi
cmp edi, esi
jge 0x18001a2a5
mov r9, rdi
lea rbx, [0x1800e8470]
mov r11, qword [rbp - 0x49]
mov r8d, dword [r11 + r9*4 - 4]
mov eax, r10d
cdq
idiv edi
movsxd r15, eax
test edx, edx
jne 0x18001a234
ror r8d, 8
mov edx, r8d
mov eax, r8d
shr rax, 0x10
movzx ecx, al
movzx r8d, byte [rcx + rbx]
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + rbx]
shl eax, 8
or r8d, eax
shl r8d, 8
mov eax, edx
shr rax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx]
or r8d, eax
shl r8d, 8
movzx eax, dl
movzx ecx, byte [rax + rbx]
or r8d, ecx
xor r8d, dword [rbp + r15*4 - 0x19]
jmp 0x18001a284
cmp edi, 6
jle 0x18001a284
cmp edx, 4
jne 0x18001a284
mov rdx, r8
mov rax, r8
shr rax, 0x10
movzx ecx, al
movzx r8d, byte [rcx + rbx]
mov rax, rdx
shr rax, 0x18
movzx eax, byte [rax + rbx]
shl eax, 8
or r8d, eax
shl r8d, 8
mov rax, rdx
shr rax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx]
or r8d, eax
shl r8d, 8
movzx eax, dl
movzx ecx, byte [rax + rbx]
or r8d, ecx
mov rax, r9
sub rax, rdi
xor r8d, dword [r11 + rax*4]
mov dword [r11 + r9*4], r8d
inc r10d
inc r9
cmp r10d, esi
jl 0x18001a1cf
mov rbx, qword [rbp - 0x29]
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rdx, r12
mov rcx, rbx
call fcn.180018b1c
mov r8, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x49]
sub r8, rdx
and r8, 0xfffffffffffffffc
mov rcx, qword [rbx]
call fcn.1800ad7c0
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x18001a30d
mov rdx, qword [rbp - 0x39]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a308
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001a337
call fcn.1800ac2c0
mov rax, rbx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800ac760
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800b36a4
int3
lea rdx, [0x1800e8670]
lea rcx, [rbp - 0x19]
call fcn.180018dcc
lea rdx, [0x180361868]
lea rcx, [rbp - 0x19]
call fcn.1800ae2b0
int3
lea rdx, [0x1800e8670]
lea rcx, [rbp - 0x19]
call fcn.180018dcc
lea rdx, [0x180361868]
lea rcx, [rbp - 0x19]
call fcn.1800ae2b0
int3