Function at 0x180029180
Capabilities:
Encrypt data using aes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, ntohs
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x1e0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
and ecx, 0xff
or eax, ecx
mov dword [rsp], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 4]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 4]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 4]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 4]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 8]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 8]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 8]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 8]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 8], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 0xc]
and eax, 0xff
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0xc]
and ecx, 0xff
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0xc]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0xc]
and ecx, 0xff
or eax, ecx
mov dword [rsp + 0xc], eax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0xc]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x28]
sar eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 4]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 8]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0xc]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 4]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 8]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0xc]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 8]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 0xc]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 4]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 4]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 8]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x20]
add rax, 0x20
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jne 0x1800295d0
jmp 0x180029774
mov eax, dword [rsp + 0x10]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 0x14]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x18]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x1c]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp], eax
mov eax, dword [rsp + 0x14]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 0x18]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x1c]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x10]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x18]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 0x1c]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x10]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x14]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x1c]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180034c10]
mov edx, dword [rsp + 0x10]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180035c10]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x14]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036010]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x18]
shr ecx, 0
movzx ecx, cl
lea rdx, [0x180036410]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0xc], eax
jmp 0x180029410
mov eax, dword [rsp + 0x10]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180037410]
mov edx, dword [rsp + 0x14]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180037010]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x18]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036c10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x1c]
shr ecx, 0
movzx ecx, cl
lea rdx, str.cwko0
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp], eax
mov eax, dword [rsp]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x14]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180037410]
mov edx, dword [rsp + 0x18]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180037010]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x1c]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036c10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x10]
shr ecx, 0
movzx ecx, cl
lea rdx, str.cwko0
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 4]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 4]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 4], al
mov eax, dword [rsp + 0x18]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180037410]
mov edx, dword [rsp + 0x1c]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180037010]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x10]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036c10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x14]
shr ecx, 0
movzx ecx, cl
lea rdx, str.cwko0
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 8]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 8]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 8]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 8], al
mov eax, dword [rsp + 0x1c]
shr eax, 0x18
movzx eax, al
lea rcx, [0x180037410]
mov edx, dword [rsp + 0x10]
shr edx, 0x10
movzx edx, dl
lea r8, [0x180037010]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x14]
shr ecx, 8
movzx ecx, cl
lea rdx, [0x180036c10]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x18]
shr ecx, 0
movzx ecx, cl
lea rdx, str.cwko0
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0xc]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
mov eax, dword [rsp + 0xc]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx + 0xc], al
xor eax, eax
add rsp, 0x30
pop rdi
ret