Function at 0x180002cc0
Capabilities:
Encrypt data using aes

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0x60], 0
je 0x180002cea
cmp qword [rsp + 0x70], 0
jne 0x180002cf4
mov eax, 0xffffffff
jmp 0x180003678
cmp dword [rsp + 0x68], 0x80
je 0x180002d1c
cmp dword [rsp + 0x68], 0xc0
je 0x180002d1c
cmp dword [rsp + 0x68], 0x100
je 0x180002d1c
mov eax, 0xfffffffe
jmp 0x180003678
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x68], 0x80
jne 0x180002d41
mov rax, qword [rsp + 0x70]
mov dword [rax + 0xf0], 0xa
jmp 0x180002d6b
cmp dword [rsp + 0x68], 0xc0
jne 0x180002d5c
mov rax, qword [rsp + 0x70]
mov dword [rax + 0xf0], reloc.WS2_32.dll_inet_ntoa
jmp 0x180002d6b
mov rax, qword [rsp + 0x70]
mov dword [rax + 0xf0], reloc.WS2_32.dll_ntohl
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x48], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x48]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 4]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x4c], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 4]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x4c]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 8]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x38], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 8]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0xc]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x30], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0xc]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x68], 0x80
jne 0x18000303c
xor eax, eax
cmp eax, 1
je 0x18000303c
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x28]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c65f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff000000
mov rdx, qword [rsp + 0x20]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c69f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c5df0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 0x18
mov ecx, ecx
lea rdx, [0x1800c61f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
movsxd rcx, dword [rsp + 0x2c]
lea rdx, [0x1800c7ef0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xa
jne 0x180003029
xor eax, eax
jmp 0x180003678
mov rax, qword [rsp + 0x20]
add rax, 0x10
mov qword [rsp + 0x20], rax
jmp 0x180002ea3
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x10]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x40], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x10]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x40]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x14]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x34], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x14]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x34]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x68], 0xc0
jne 0x1800032e5
xor eax, eax
cmp eax, 1
je 0x1800032e5
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x28]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c65f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff000000
mov rdx, qword [rsp + 0x20]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c69f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c5df0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 0x18
mov ecx, ecx
lea rdx, [0x1800c61f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
movsxd rcx, dword [rsp + 0x2c]
lea rdx, [0x1800c7ef0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
mov ecx, 4
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 8
jne 0x180003266
xor eax, eax
jmp 0x180003678
mov eax, 4
imul rax, rax, 4
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 5
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xb
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov qword [rsp + 0x20], rax
jmp 0x1800030e0
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x18]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x3c], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x18]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x3c]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov edx, 8
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x1c]
call fcn.18007d9b0
and eax, 0xff00ff
mov dword [rsp + 0x44], eax
mov edx, 8
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1c]
call fcn.18007d9bc
and eax, 0xff00ff00
mov ecx, dword [rsp + 0x44]
or ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x68], 0x100
jne 0x180003676
xor eax, eax
cmp eax, 1
je 0x180003676
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x28]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c65f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff000000
mov rdx, qword [rsp + 0x20]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c69f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c5df0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 0x18
mov ecx, ecx
lea rdx, [0x1800c61f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
movsxd rcx, dword [rsp + 0x2c]
lea rdx, [0x1800c7ef0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 8
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 3
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xb
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 7
jne 0x18000350f
xor eax, eax
jmp 0x180003678
mov eax, 4
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 4
mov ecx, dword [rsp + 0x28]
shr ecx, 0x18
mov ecx, ecx
lea rdx, [0x1800c65f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff000000
mov rdx, qword [rsp + 0x20]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 0x10
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c69f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff0000
xor eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c5df0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff00
xor eax, ecx
mov ecx, dword [rsp + 0x28]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x1800c61f0]
mov ecx, dword [rdx + rcx*4]
and ecx, 0xff
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 5
mov ecx, 4
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xd
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 6
mov ecx, 4
imul rcx, rcx, 0xd
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xe
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 7
mov ecx, 4
imul rcx, rcx, 0xe
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx]
mov eax, dword [rdx + rax]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x20]
add rax, 0x20
mov qword [rsp + 0x20], rax
jmp 0x180003389
xor eax, eax
add rsp, 0x58
ret