Function at 0x14017c350
Capabilities:
Encrypt data using aes

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
mov eax, gethostbyaddr
call fcn.14028b850
sub rsp, rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x14017c384
cmp qword [rsp + 0x50], 0
jne 0x14017c38e
mov eax, 0xffffffff
jmp 0x14017ca9d
cmp dword [rsp + 0x48], 0x80
je 0x14017c3b6
cmp dword [rsp + 0x48], 0xc0
je 0x14017c3b6
cmp dword [rsp + 0x48], 0x100
je 0x14017c3b6
mov eax, 0xfffffffe
jmp 0x14017ca9d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x48], 0x80
jne 0x14017c3db
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xf0], 0xa
jmp 0x14017c405
cmp dword [rsp + 0x48], 0xc0
jne 0x14017c3f6
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xf0], reloc.WS2_32.dll_inet_ntoa
jmp 0x14017c405
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xf0], send
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax], ecx
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 4], ecx
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 8]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 8]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 8], ecx
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0xc], ecx
cmp dword [rsp + 0x48], 0x80
jne 0x14017c62a
xor eax, eax
cmp eax, 1
je 0x14017c62a
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e15b0]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 0x28]
mov edx, dword [rax]
xor edx, ecx
mov eax, dword [rsp + 0x24]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e19b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 0x24]
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e0db0]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 0x24]
shr eax, 0x18
mov ecx, eax
lea rax, [0x1402e11b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
movsxd rdx, dword [rsp + 0x20]
lea rax, [0x1402e2eb0]
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov ecx, dword [rcx + 4]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x14], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x1c], ecx
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xa
jne 0x14017c617
xor eax, eax
jmp 0x14017ca9d
mov rax, qword [rsp + 0x28]
add rax, 0x10
mov qword [rsp + 0x28], rax
jmp 0x14017c504
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x10]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x10]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x14]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x14]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x14], ecx
cmp dword [rsp + 0x48], 0xc0
jne 0x14017c80c
xor eax, eax
cmp eax, 1
je 0x14017c80c
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e15b0]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 0x28]
mov edx, dword [rax]
xor edx, ecx
mov eax, dword [rsp + 0x24]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e19b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 0x24]
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e0db0]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 0x24]
shr eax, 0x18
mov ecx, eax
lea rax, [0x1402e11b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
movsxd rdx, dword [rsp + 0x20]
lea rax, [0x1402e2eb0]
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
mov ecx, dword [rcx + 4]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x1c], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], ecx
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 8
jne 0x14017c7c5
xor eax, eax
jmp 0x14017ca9d
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rcx + 0x10]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x28]
mov ecx, dword [rcx + 0x14]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov qword [rsp + 0x28], rax
jmp 0x14017c6b2
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x18]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x18]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x18], ecx
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x1c]
call sub.MSVCR90.dll__lrotl
mov ebx, eax
and ebx, 0xff00ff
mov edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x1c]
call sub.MSVCR90.dll__lrotr
and eax, 0xff00ff00
mov ecx, ebx
or ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x1c], ecx
cmp dword [rsp + 0x48], 0x100
jne 0x14017ca9b
xor eax, eax
cmp eax, 1
je 0x14017ca9b
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e15b0]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 0x28]
mov edx, dword [rax]
xor edx, ecx
mov eax, dword [rsp + 0x24]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e19b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 0x24]
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e0db0]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 0x24]
shr eax, 0x18
mov ecx, eax
lea rax, [0x1402e11b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
movsxd rdx, dword [rsp + 0x20]
lea rax, [0x1402e2eb0]
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov ecx, dword [rcx + 4]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x24], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x28]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x2c], ecx
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 7
jne 0x14017c9a7
xor eax, eax
jmp 0x14017ca9d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
shr eax, 0x18
mov ecx, eax
lea rax, [0x1402e15b0]
mov ecx, dword [rax + rcx*4]
and ecx, 0xff000000
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x10]
xor edx, ecx
mov eax, dword [rsp + 0x24]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e19b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff0000
xor edx, eax
mov eax, dword [rsp + 0x24]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e0db0]
mov eax, dword [rax + rcx*4]
and eax, 0xff00
xor edx, eax
mov eax, dword [rsp + 0x24]
and eax, 0xff
mov ecx, eax
lea rax, [0x1402e11b0]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, edx
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x30]
mov ecx, dword [rcx + 0x14]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x34], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x34]
mov ecx, dword [rcx + 0x18]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x38], ecx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x38]
mov ecx, dword [rcx + 0x1c]
xor ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x3c], ecx
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x28], rax
jmp 0x14017c894
xor eax, eax
add rsp, 0x30
pop rbx
ret