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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800d5100]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rdx
mov rsi, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
lea eax, [r8 - 0x10]
test eax, 0xffffffe7
jne 0x18000c03a
cmp r8d, 0x28
je 0x18000c03a
xor ecx, ecx
mov dword [rbp - 0x60], ecx
mov dword [rbp - 0x5c], 1
mov dword [rbp - 0x58], 2
mov dword [rbp - 0x54], 4
mov dword [rbp - 0x50], 8
mov dword [rbp - 0x4c], reloc.WS2_32.dll_recv
mov dword [rbp - 0x48], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbp - 0x44], 0x40
mov dword [rbp - 0x40], pe_nt_image_headers64
mov dword [rbp - 0x3c], reloc.WLDAP32.dll_Ordinal_27
mov dword [rbp - 0x38], gethostname
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rdi, eax
cmp r8d, 0x10
je 0x18000be09
cmp r8d, 0x18
je 0x18000bdfb
cmp r8d, 0x20
jne 0x18000c05b
lea r14d, [rcx + 0x3c]
mov r15d, 0xf0
jmp 0x18000be15
mov r14d, gethostname
mov r15d, Ordinal_211
jmp 0x18000be15
mov r14d, Ordinal_45
mov r15d, 0xb0
mov r13, r15
xorps xmm0, xmm0
mov ebx, r14d
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rcx
mov edx, r14d
call fcn.180012e50
mov qword [rbp - 0x20], rax
lea r8, [rbx*4]
lea rbx, [r8 + rax]
mov qword [rbp - 0x10], rbx
xor edx, edx
mov rcx, rax
call fcn.180074680
mov qword [rbp - 0x18], rbx
test edi, edi
jle 0x18000be73
xor edx, edx
nop word [rax + rax]
mov ecx, dword [r12 + rdx*4]
mov rax, qword [rbp - 0x20]
mov dword [rax + rdx*4], ecx
inc rdx
cmp rdx, rdi
jl 0x18000be60
mov r10d, edi
cmp edi, r14d
jge 0x18000bf6f
xor r9d, r9d
lea rbx, [rdi*4]
lea rsi, [0x1800c6f10]
nop dword [rax]
nop word [rax + rax]
lea rax, [rbx + r9]
mov r11, qword [rbp - 0x20]
mov ecx, dword [rax + r11 - 4]
mov eax, r10d
cdq
idiv edi
movsxd r12, eax
test edx, edx
jne 0x18000bf04
ror ecx, 8
mov r8d, ecx
mov eax, ecx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + rsi]
mov eax, r8d
shr rax, 0x18
movzx eax, byte [rax + rsi]
shl eax, 8
or ecx, eax
shl ecx, 8
mov eax, r8d
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + rsi]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + rsi]
or ecx, edx
xor ecx, dword [rbp + r12*4 - 0x60]
jmp 0x18000bf4f
cmp edi, 6
jle 0x18000bf4f
cmp edx, 4
jne 0x18000bf4f
mov r8, rcx
mov rax, rcx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + rsi]
mov rax, r8
shr rax, 0x18
movzx eax, byte [rax + rsi]
shl eax, 8
or ecx, eax
shl ecx, 8
mov rax, r8
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + rsi]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + rsi]
or ecx, edx
xor ecx, dword [r9 + r11]
lea rax, [rbx + r9]
mov dword [rax + r11], ecx
inc r10d
add r9, 4
cmp r10d, r14d
jl 0x18000bea0
mov rsi, qword [rbp - 0x30]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov rcx, r15
call fcn.180071e48
mov qword [rsi], rax
mov qword [rsi + 8], rax
add rax, r15
mov qword [rsi + 0x10], rax
mov rbx, qword [rsi]
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.180074680
lea rax, [rbx + r15]
mov qword [rsi + 8], rax
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
sub r8, rdx
sar r8, 2
lea r8, [r8*4]
mov rcx, qword [rsi]
call fcn.180073fd0
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18000c00a
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c005
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c034
call fcn.180071ba8
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180071b80
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18007a274
int3
lea rdx, [0x1800c7c08]
lea rcx, [rbp - 0x60]
call fcn.18000a080
lea rdx, [0x1800d3210]
lea rcx, [rbp - 0x60]
call fcn.180074ca0
int3
lea rdx, [0x1800c7c08]
lea rcx, [rbp - 0x60]
call fcn.18000a080
lea rdx, [0x1800d3210]
lea rcx, [rbp - 0x60]
call fcn.180074ca0
int3