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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r15, rdx
mov rbx, rcx
xor r14d, r14d
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x180019dd9
cmp r8d, 0x20
jne 0x18001a03c
mov dword [rbp - 0x30], r14d
mov dword [rbp - 0x2c], 1
mov dword [rbp - 0x28], 2
mov dword [rbp - 0x24], 4
mov dword [rbp - 0x20], 8
mov dword [rbp - 0x1c], reloc.WS2_32.dll_recv
mov dword [rbp - 0x18], 0x20
mov dword [rbp - 0x14], 0x40
mov dword [rbp - 0x10], 0x80
mov dword [rbp - 0xc], 0x1b
mov dword [rbp - 8], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rdi, eax
cmp r8d, 0x10
je 0x180019e5d
cmp r8d, 0x18
je 0x180019e52
cmp r8d, 0x20
jne 0x18001a05d
lea esi, [r8 + 0x1c]
lea r12d, [r8 - 0x11]
jmp 0x180019e66
mov esi, 0x34
lea r12d, [rsi - 0x27]
jmp 0x180019e66
mov esi, 0x2c
lea r12d, [rsi - 0x21]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
mov edx, esi
lea rcx, [rbp - 0x48]
call fcn.1800183c4
nop
test edi, edi
jle 0x180019ea8
mov r13d, edi
mov rcx, qword [rbp - 0x48]
add rcx, r14
mov r8d, 4
mov rdx, r15
call fcn.1800e3e40
add r14, 4
add r15, 4
sub r13, 1
jne 0x180019e85
mov r11d, edi
cmp edi, esi
jge 0x180019fab
mov r10, rdi
lea r8, [0x1800ea450]
mov r14, qword [rbp - 0x48]
mov r9d, dword [r14 + r10*4 - 4]
mov eax, r11d
cdq
idiv edi
movsxd r13, eax
test edx, edx
jne 0x180019f3b
ror r9d, 8
mov r8d, r9d
mov ecx, r9d
shr rcx, 0x10
movzx edx, cl
lea rcx, [0x1800ea450]
movzx r9d, byte [rdx + rcx]
mov eax, r8d
shr rax, 0x18
movzx eax, byte [rax + rcx]
shl eax, 8
or r9d, eax
shl r9d, 8
mov eax, r8d
shr rax, 8
movzx ecx, al
lea rax, [0x1800ea450]
movzx eax, byte [rcx + rax]
or r9d, eax
shl r9d, 8
movzx eax, r8b
lea r8, [0x1800ea450]
movzx ecx, byte [rax + r8]
or r9d, ecx
xor r9d, dword [rbp + r13*4 - 0x30]
jmp 0x180019f8e
cmp edi, 6
jle 0x180019f8e
cmp edx, 4
jne 0x180019f8e
mov rdx, r9
mov rax, r9
shr rax, 0x10
movzx ecx, al
movzx r9d, byte [rcx + r8]
mov rax, rdx
shr rax, 0x18
movzx eax, byte [rax + r8]
shl eax, 8
or r9d, eax
shl r9d, 8
mov rax, rdx
shr rax, 8
movzx ecx, al
movzx eax, byte [rcx + r8]
or r9d, eax
shl r9d, 8
movzx eax, dl
movzx ecx, byte [rax + r8]
or r9d, ecx
mov rax, r10
sub rax, rdi
xor r9d, dword [r14 + rax*4]
mov dword [r14 + r10*4], r9d
inc r11d
inc r10
cmp r11d, esi
jl 0x180019ebd
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rdx, r12
mov rcx, rbx
call fcn.180018458
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
sub r8, rdx
and r8, 0xfffffffffffffffc
mov rcx, qword [rbx]
call fcn.1800e3e40
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18001a015
mov rdx, qword [rbp - 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001a010
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001a036
call fcn.1800af2ac
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800b698c
int3
lea rdx, [0x1800ea650]
lea rcx, [rbp - 0x30]
call fcn.180018710
lea rdx, [0x180372638]
lea rcx, [rbp - 0x30]
call fcn.1800b0698
int3
lea rdx, [0x1800ea650]
lea rcx, [rbp - 0x30]
call fcn.180018710
lea rdx, [0x180372638]
lea rcx, [rbp - 0x30]
call fcn.1800b0698
int3