Function at 0x4093f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4a4314]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x49ef70]
xor edx, edx
movq xmm0, qword [str._8K:]
mov word [ebp - 8], ax
mov al, byte [0x49ef72]
push esi
push edi
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], al
mov dword [ebp - 0x54], edx
nop dword [eax]
mov eax, 0x446f8657
mul edx
mov eax, dword [ebp - 0x54]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x54]
shr eax, 6
mov cl, dl
movsx eax, al
imul eax, eax, 0x65
sub cl, al
add cl, 0x63
xor byte [ebp + edx - 0x10], cl
inc edx
mov dword [ebp - 0x54], edx
cmp edx, 0xb
jl 0x409440
movq xmm0, qword [str._8K:_e_]
lea eax, [ebp - 0x10]
mov edi, dword [0x4a5684]
xor edx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [0x49f154]
mov dword [ebp - 0x18], eax
mov al, byte [0x49f158]
lea ecx, [edx + 0x1f]
mov byte [ebp - 0x14], al
lea eax, [edx + 4]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x54], edx
cmp edi, 2
jl 0x4095b0
movaps xmm2, xmmword [0x49f2f0]
mov edx, 8
movaps xmm3, xmmword [0x49f330]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
psrad xmm1, xmm4
movd xmm5, ecx
movaps xmm0, xmm1
mov dword [ebp - 0x54], edx
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x49f310]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x49f300]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x49f320]
movd xmm0, dword [str._8K:_e_]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x49f340]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x20], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x49f310]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x49f320]
movd xmm0, dword [ebp - 0x1c]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x49f340]
pxor xmm1, xmm0
movd dword [ebp - 0x1c], xmm1
nop word [eax + eax]
mov eax, 0x288df0cb
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x54]
movsx eax, al
mov cl, dl
imul eax, eax, 0x65
sub cl, al
add cl, 0x63
xor byte [ebp + edx - 0x20], cl
inc edx
mov dword [ebp - 0x54], edx
cmp edx, 0xd
jl 0x4095b0
lea eax, [ebp - 0x20]
xor esi, esi
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + esi*4 - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4097a0
movups xmm0, xmmword [0x49f08c]
mov al, byte [0x49f0ac]
xor ecx, ecx
mov byte [ebp - 0x30], al
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [0x49f09c]
movups xmmword [ebp - 0x40], xmm0
cmp edi, 2
jl 0x409770
movaps xmm0, xmmword [0x49f340]
mov eax, 4
movaps xmm4, xmmword [0x49f2f0]
movaps xmm3, xmmword [0x49f330]
movaps xmm6, xmmword [0x49f310]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x20]
movd xmm7, eax
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x49f320]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x50]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x50], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x49f320]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x4c]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x4c], xmm1
add ecx, 8
cmp ecx, 0x20
jl 0x409670
cmp ecx, 0x21
jge 0x409798
nop dword [eax]
mov eax, 0x288df0cb
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x65
sub dl, al
add dl, 0x63
xor byte [ebp + ecx - 0x50], dl
inc ecx
cmp ecx, 0x21
jl 0x409770
lea ecx, [ebp - 0x50]
call fcn.004031d0
inc esi
cmp esi, 2
jl 0x4095e6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046a386
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret