Function at 0x4065c0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x794
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00401830
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x5a4]
push 0x200
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5a8]
mov dword [esp + 0x7b0], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1a4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1a4]
push ecx
push 0xff
stosb byte es:[edi], al
call ebp
mov edi, str.update.txt
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40c918
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1a8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40685d
lea edi, [esp + 0x5a4]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x5ac]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x5b8]
add esp, 0x14
xor ecx, ecx
lea esi, [esp + 0x5a4]
test al, al
je 0x4066f6
cmp al, 0x5c
jne 0x4066e9
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
xor ecx, ecx
jmp 0x4066ee
mov byte [esp + ecx + 0x24], al
inc ecx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4066d4
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xa4]
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0xff
stosb byte es:[edi], al
call ebp
mov edi, str.srun3_update.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x3a4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x544]
lea ecx, [esp + 0x3a4]
push eax
push str.http:___s_files_srun3_update.exe
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0xa4]
lea eax, [esp + 0x3a4]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00401db0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2a4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x2a4]
push ecx
push 0xff
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x4a4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebx + 0x544]
lea edx, [esp + 0x4a4]
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push ecx
push str.http:___s_files__s
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x2a4]
lea ecx, [esp + 0x4a4]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401db0
mov eax, dword [ebx + 0x20]
push 1
push 0
lea edx, [esp + 0xac]
push 0
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x7ac], 0xffffffff
call fcn.004018e0
mov ecx, dword [esp + 0x7a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7a0
ret