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

Disassembly:
mov qword [rsp + 0x18], r8
push r12
push r13
push r14
sub rsp, 0x10
mov r13d, dword [rcx + 0xf0]
mov r12, r8
shr r13d, 1
mov r14, rcx
lea eax, [r13 - 1]
cmp eax, 6
ja 0x14009df6e
mov r9d, dword [rdx]
lea r8, [0x140110e20]
mov r10d, dword [rdx + 4]
mov eax, r9d
mov r11d, dword [rdx + 8]
ror eax, 8
mov qword [rsp + 0x30], rbx
mov ebx, dword [rdx + 0xc]
rol r9d, 8
xor r9d, eax
mov qword [rsp + 0x38], rbp
and r9d, 0xff00ff
mov qword [rsp + 0x48], rsi
xor r9d, dword [rcx]
lea rsi, [0x140111e20]
xor r9d, eax
mov qword [rsp + 8], rdi
mov eax, r10d
mov qword [rsp], r15
ror eax, 8
rol r10d, 8
xor r10d, eax
and r10d, 0xff00ff
xor r10d, dword [rcx + 4]
xor r10d, eax
mov eax, r11d
ror eax, 8
rol r11d, 8
xor r11d, eax
and r11d, 0xff00ff
xor r11d, dword [rcx + 8]
xor r11d, eax
mov eax, ebx
rol ebx, 8
ror eax, 8
xor ebx, eax
and ebx, 0xff00ff
xor ebx, dword [rcx + 0xc]
xor ebx, eax
mov rax, r8
xor edi, edi
mov edx, edi
nop dword [rax]
mov ecx, reloc.WS2_32.dll_recv
nop word [rax + rax]
and edx, dword [rax]
add rax, 0x40
sub rcx, 1
jne 0x14009daa0
cmp rax, rsi
jl 0x14009da90
or r9d, edx
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, r11d
shr eax, 8
movzx ecx, al
mov eax, r9d
mov r15d, dword [r8 + rdx*4 + 0x400]
shr rax, 0x18
xor r15d, dword [r8 + rcx*4 + 0x800]
mov edx, r11d
shr rdx, 0x18
xor r15d, dword [r8 + rax*4]
movzx eax, r10b
mov ebp, dword [r8 + rdx*4]
xor r15d, dword [r8 + rax*4 + 0xc00]
mov eax, ebx
xor r15d, dword [r14 + 0x10]
shr eax, 8
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov esi, dword [r8 + rcx*4 + 0x800]
xor esi, dword [r8 + rax*4]
mov eax, r9d
shr eax, 0x10
movzx ecx, al
movzx eax, r11b
shr r11d, 0x10
xor esi, dword [r8 + rcx*4 + 0x400]
xor esi, dword [r8 + rax*4 + 0xc00]
mov eax, r10d
xor esi, dword [r14 + 0x14]
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
shr r10d, 8
xor ebp, dword [r8 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, bl
xor ebp, dword [r8 + rcx*4 + 0x800]
xor ebp, dword [r8 + rax*4 + 0xc00]
xor ebp, dword [r14 + 0x18]
mov ecx, ebx
shr rcx, 0x18
movzx eax, r11b
mov ebx, dword [r8 + rcx*4]
xor ebx, dword [r8 + rax*4 + 0x400]
movzx eax, r10b
xor ebx, dword [r8 + rax*4 + 0x800]
movzx eax, r9b
xor ebx, dword [r8 + rax*4 + 0xc00]
xor ebx, dword [r14 + 0x1c]
add r14, 0x20
add r13d, 0xffffffff
je 0x14009ddac
lea r12, [0x140110e20]
nop word [rax + rax]
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebp
shr eax, 8
movzx ecx, al
mov eax, r15d
mov r11d, dword [r12 + rdx*4 + 0x400]
shr rax, 0x18
xor r11d, dword [r12 + rcx*4 + 0x800]
mov edx, ebp
shr rdx, 0x18
xor r11d, dword [r12 + rax*4]
movzx eax, sil
mov r9d, dword [r12 + rdx*4]
xor r11d, dword [r12 + rax*4 + 0xc00]
mov eax, ebx
xor r11d, dword [r14]
shr eax, 8
movzx ecx, al
mov eax, esi
shr rax, 0x18
mov r10d, dword [r12 + rcx*4 + 0x800]
xor r10d, dword [r12 + rax*4]
mov eax, r15d
shr eax, 0x10
movzx ecx, al
movzx eax, bpl
shr ebp, 0x10
xor r10d, dword [r12 + rcx*4 + 0x400]
xor r10d, dword [r12 + rax*4 + 0xc00]
mov eax, esi
xor r10d, dword [r14 + 4]
shr eax, 0x10
movzx ecx, al
mov eax, r15d
shr eax, 8
shr esi, 8
xor r9d, dword [r12 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, bl
xor r9d, dword [r12 + rcx*4 + 0x800]
xor r9d, dword [r12 + rax*4 + 0xc00]
xor r9d, dword [r14 + 8]
movzx eax, bpl
mov ecx, ebx
shr rcx, 0x18
mov r8d, dword [r12 + rcx*4]
xor r8d, dword [r12 + rax*4 + 0x400]
movzx eax, sil
xor r8d, dword [r12 + rax*4 + 0x800]
movzx eax, r15b
xor r8d, dword [r12 + rax*4 + 0xc00]
xor r8d, dword [r14 + 0xc]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, r11d
mov r15d, dword [r12 + rdx*4 + 0x400]
shr rax, 0x18
xor r15d, dword [r12 + rcx*4 + 0x800]
xor r15d, dword [r12 + rax*4]
movzx eax, r10b
xor r15d, dword [r12 + rax*4 + 0xc00]
mov eax, r8d
xor r15d, dword [r14 + 0x10]
shr eax, 8
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov esi, dword [r12 + rcx*4 + 0x800]
xor esi, dword [r12 + rax*4]
mov eax, r11d
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor esi, dword [r12 + rcx*4 + 0x400]
xor esi, dword [r12 + rax*4 + 0xc00]
xor esi, dword [r14 + 0x14]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
mov edx, r9d
shr rdx, 0x18
shr r9d, 0x10
shr r10d, 8
mov ebp, dword [r12 + rdx*4]
xor ebp, dword [r12 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor ebp, dword [r12 + rcx*4 + 0x800]
xor ebp, dword [r12 + rax*4 + 0xc00]
xor ebp, dword [r14 + 0x18]
movzx eax, r9b
mov ecx, r8d
shr rcx, 0x18
mov ebx, dword [r12 + rcx*4]
xor ebx, dword [r12 + rax*4 + 0x400]
movzx eax, r10b
xor ebx, dword [r12 + rax*4 + 0x800]
movzx eax, r11b
xor ebx, dword [r12 + rax*4 + 0xc00]
xor ebx, dword [r14 + 0x1c]
add r14, 0x20
add r13d, 0xffffffff
jne 0x14009dbc0
mov r12, qword [rsp + 0x40]
mov rcx, rdi
lea r11, [0x140110cf0]
nop word [rax + rax]
movzx eax, byte [rcx + r11]
add rcx, 0x40
and edi, eax
cmp rcx, 0x100
jl 0x14009ddc0
or r15d, edi
mov eax, r15d
shr rax, 0x18
movzx r10d, byte [rax + r11]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + r11]
xor r10d, eax
mov eax, ebp
shr eax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + r11]
xor r10d, eax
movzx eax, sil
shl r10d, 8
movzx ecx, byte [rax + r11]
xor r10d, ecx
mov eax, esi
xor r10d, dword [r14]
shr rax, 0x18
movzx r9d, byte [rax + r11]
mov eax, r15d
shr eax, 0x10
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + r11]
xor r9d, eax
mov eax, ebx
shr eax, 8
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + r11]
xor r9d, eax
movzx eax, bpl
shl r9d, 8
movzx ecx, byte [rax + r11]
xor r9d, ecx
mov eax, ebp
xor r9d, dword [r14 + 4]
shr rax, 0x18
shr ebp, 0x10
movzx r8d, byte [rax + r11]
mov eax, esi
shr eax, 0x10
movzx ecx, al
shl r8d, 8
shr esi, 8
movzx eax, byte [rcx + r11]
xor r8d, eax
mov eax, r15d
shr eax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r11]
xor r8d, eax
movzx eax, bl
shl r8d, 8
movzx ecx, byte [rax + r11]
xor r8d, ecx
mov eax, ebx
xor r8d, dword [r14 + 8]
shr rax, 0x18
movzx edx, byte [rax + r11]
shl edx, 8
movzx eax, bpl
movzx ecx, byte [rax + r11]
xor edx, ecx
movzx eax, sil
shl edx, 8
movzx ecx, byte [rax + r11]
xor edx, ecx
movzx eax, r15b
shl edx, 8
movzx ecx, byte [rax + r11]
mov eax, r10d
xor edx, ecx
xor edx, dword [r14 + 0xc]
ror eax, 8
mov r15, qword [rsp]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
rol r10d, 8
xor r10d, eax
and r10d, 0xff00ff
xor r10d, eax
mov eax, r9d
ror eax, 8
rol r9d, 8
xor r9d, eax
mov dword [r12], r10d
and r9d, 0xff00ff
xor r9d, eax
mov eax, r8d
ror eax, 8
rol r8d, 8
xor r8d, eax
mov dword [r12 + 4], r9d
and r8d, 0xff00ff
xor r8d, eax
mov eax, edx
rol edx, 8
ror eax, 8
xor edx, eax
mov dword [r12 + 8], r8d
and edx, 0xff00ff
xor edx, eax
mov dword [r12 + 0xc], edx
add rsp, 0x10
pop r14
pop r13
pop r12
ret