Function at 0x401340
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x148
call dword [sym.imp.msvcrt.dll___p___argc]
mov edi, dword [eax]
call dword [sym.imp.msvcrt.dll___p___argv]
mov esi, dword [eax]
call fcn.00401a20
mov ebx, eax
push 0x9a2504
call sub.msvcrt.dll_srand
add esp, 4
test bl, bl
je 0x4013e6
xor ebx, ebx
mov ebp, 0xa95f60
movsd xmm0, qword [0x438068]
movsd qword [esp + 8], xmm0
nop word [eax + eax]
call sub.msvcrt.dll_rand
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [0x438050]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call sub.msvcrt.dll_rand
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, qword [0x438050]
mulsd xmm0, xmm0
movsd xmm1, qword [esp]
mulsd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x438058]
ucomisd xmm0, xmm1
sbb ebx, 0xffffffff
dec ebp
jne 0x401390
jmp 0x401454
xor ebx, ebx
mov ebp, 0x186a0
movsd xmm0, qword [0x438060]
movsd qword [esp + 8], xmm0
nop dword [eax + eax]
call sub.msvcrt.dll_rand
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [0x438050]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call sub.msvcrt.dll_rand
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, qword [0x438050]
mulsd xmm0, xmm0
movsd xmm1, qword [esp]
mulsd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x438058]
ucomisd xmm0, xmm1
sbb ebx, 0xffffffff
dec ebp
jne 0x401400
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
divsd xmm0, qword [esp + 8]
mulsd xmm0, qword [0x438070]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], str.PI_is__g_n
call fcn.004019f0
add esp, 0xc
call fcn.00401a20
mov ebx, eax
push 0x9a2504
call sub.msvcrt.dll_srand
add esp, 4
test bl, bl
je 0x401506
xor ebx, ebx
mov ebp, 0xa95f60
movsd xmm0, qword [0x438068]
movsd qword [esp + 8], xmm0
nop
call sub.msvcrt.dll_rand
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [0x438050]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call sub.msvcrt.dll_rand
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, qword [0x438050]
mulsd xmm0, xmm0
movsd xmm1, qword [esp]
mulsd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x438058]
ucomisd xmm0, xmm1
sbb ebx, 0xffffffff
dec ebp
jne 0x4014b0
jmp 0x401574
xor ebx, ebx
mov ebp, 0x186a0
movsd xmm0, qword [0x438060]
movsd qword [esp + 8], xmm0
nop dword [eax + eax]
call sub.msvcrt.dll_rand
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [0x438050]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call sub.msvcrt.dll_rand
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, qword [0x438050]
mulsd xmm0, xmm0
movsd xmm1, qword [esp]
mulsd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x438058]
ucomisd xmm0, xmm1
sbb ebx, 0xffffffff
dec ebp
jne 0x401520
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
divsd xmm0, qword [esp + 8]
mulsd xmm0, qword [0x438070]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], str.PI_is__g_n
call fcn.004019f0
add esp, 0xc
cmp edi, 1
jg 0x401648
push 0x9a2504
call sub.msvcrt.dll_srand
add esp, 4
xor esi, esi
mov edi, 0x186a0
nop
call sub.msvcrt.dll_rand
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
movsd xmm0, qword [0x438050]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call sub.msvcrt.dll_rand
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
divsd xmm0, qword [0x438050]
mulsd xmm0, xmm0
movsd xmm1, qword [esp]
mulsd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x438058]
ucomisd xmm0, xmm1
sbb esi, 0xffffffff
dec edi
jne 0x4015c0
xorps xmm0, xmm0
cvtsi2sd xmm0, esi
divsd xmm0, qword [0x438060]
mulsd xmm0, qword [0x438070]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], str.PI_is__g_n
call fcn.004019f0
add esp, 0xc
jmp 0x4019d2
cmp edi, 2
je 0x40166c
push str.failrestart
push dword [esi + 8]
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
jne 0x40166c
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
push section..uniques
push str.Publishers_String:__s_n
call fcn.004019f0
add esp, 8
push dword [esi + 4]
call fcn.00403430
add esp, 4
mov esi, dword [esi + 4]
call fcn.00405f60
push 0x406030
push eax
call fcn.00405440
add esp, 8
call fcn.00405f60
push 1
push eax
call fcn.00405450
add esp, 8
push esi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0x152
ja 0x4019d2
xorpd xmm0, xmm0
movupd xmmword [esp + 0x136], xmm0
movupd xmmword [esp + 0x12c], xmm0
movupd xmmword [esp + 0x11c], xmm0
movupd xmmword [esp + 0x10c], xmm0
movupd xmmword [esp + 0xfc], xmm0
movupd xmmword [esp + 0xec], xmm0
movupd xmmword [esp + 0xdc], xmm0
movupd xmmword [esp + 0xcc], xmm0
movupd xmmword [esp + 0xbc], xmm0
movupd xmmword [esp + 0xac], xmm0
movupd xmmword [esp + 0x9c], xmm0
movupd xmmword [esp + 0x8c], xmm0
movupd xmmword [esp + 0x7c], xmm0
movupd xmmword [esp + 0x6c], xmm0
movupd xmmword [esp + 0x5c], xmm0
movupd xmmword [esp + 0x4c], xmm0
lea ecx, [esp + 0x4c]
push ecx
push eax
push esi
call fcn.0040a430
add esp, 0xc
movzx eax, al
cmp eax, 0xf
jb 0x4019d2
add eax, 0xfffffffb
mov dword [esp + 8], eax
and eax, 0xfffffffe
mov dword [esp], eax
xor ebx, ebx
mov eax, 5
mov esi, 6
mov ebp, 0xcccccccd
nop word cs:[eax + eax]
mov ecx, eax
mul ebp
shr edx, 2
lea eax, [edx + edx*4]
lea edi, [esp + 0x51]
sub edi, eax
mov eax, esi
mul ebp
shr edx, 2
lea eax, [edx + edx*4]
lea edx, [esp + 0x52]
sub edx, eax
mov eax, ebx
movzx ebx, byte [esp + ebx + 0x51]
xor bl, byte [edi + eax]
mov bh, al
add bh, 5
xor bh, bl
mov bl, byte [esp + eax + 0x52]
mov byte [esp + eax + 0x51], bh
xor bl, byte [edx + eax]
mov edx, eax
add dl, 6
xor dl, bl
mov byte [esp + eax + 0x52], dl
lea ebx, [eax + 2]
add esi, 2
add eax, 7
cmp ebx, dword [esp]
jne 0x401790
test byte [esp + 8], 1
je 0x401817
add ecx, 2
mov edx, 0xcccccccd
mov eax, ecx
mul edx
lea eax, [esp + ebx]
add eax, 0x51
movzx ecx, byte [esp + ebx + 0x51]
shr edx, 2
lea edx, [edx + edx*4]
sub eax, edx
xor cl, byte [eax]
mov eax, ebx
add al, 5
xor al, cl
mov byte [esp + ebx + 0x51], al
push str._____________________
call fcn.004046c0
add esp, 4
mov edi, eax
push eax
call fcn.00403f40
add esp, 4
mov esi, eax
push edi
call fcn.00404730
add esp, 4
xorpd xmm0, xmm0
movupd xmmword [esp + 0x30], xmm0
movupd xmmword [esp + 0x20], xmm0
movupd xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push 0xc
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x5d]
push eax
push esi
call fcn.00404e10
add esp, 0x14
test eax, eax
jle 0x4019d2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
cmp ecx, 0x95
mov edx, 0x95
cmovge ecx, edx
push ecx
push eax
push 0x440e90
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, ebx
cmp eax, 9
mov ebp, 9
cmovl ebp, eax
lea eax, [ebp - 0xa]
neg eax
xor ecx, ecx
cmp ebp, 0xa
cmovb ecx, eax
lea eax, [esp + ebp + 0x42]
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [esp + 0x42]
push ebp
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call sub.msvcrt.dll_atoi
add esp, 4
mov dword [0x440f50], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, eax
cmp ecx, 0x95
mov edx, 0x95
cmovge ecx, edx
push ecx
push eax
push 0x440f55
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub eax, ecx
cmp eax, 0xa
mov edx, 0xa
cmovge eax, edx
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
sub edi, ebx
cmp edi, 0xa
cmovge edi, edx
push ebx
push edi
push 0x43819d
push ecx
push eax
push str._client_version_:__.s._s._.s_
push 0x440e58
call fcn.00401af0
add esp, 0x1c
test eax, eax
jle 0x4019d2
push esi
call fcn.00404030
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word cs:[eax + eax]
push 2
call fcn.004075d0
add esp, 4
mov dword [0x43fd30], eax
push 0x401bb0
push 0x401b10
push 0x1bb
push str.1.1.1.1
push eax
call fcn.00408650
add esp, 0x14
push 0
push eax
call fcn.00406bb0
add esp, 8
push dword [0x43fd30]
call fcn.004079b0
add esp, 4
mov dword [0x440e8c], 0
mov dword [0x43fd30], 0
push 0x3a98
call esi
jmp 0x401970
xor eax, eax
add esp, 0x148
pop esi
pop edi
pop ebx
pop ebp
ret 0x10