Function at 0x421580
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a83df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 3
mov byte [ebp - 0xd], 0
push 0x5b3a88
push 0x5b3a8c
lea ecx, [ebp + 0xc]
call fcn.004230d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe0], esp
push str._app__:___ws__:__exec_program_result__:__status__:__d
call fcn.00415e60
lea eax, [ebp - 0x40]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 4
push 0x104
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0041afc0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x421af7
cmp dword [ebp - 0x1c], 0x104
ja 0x421af7
push 5
push 0
lea ecx, [ebp + 0x10]
call fcn.0041afc0
push eax
lea edx, [ebp - 0x344]
push edx
push 0x5b3b14
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x44], 0x20
ja 0x4216a6
lea ecx, [ebp + 0x14]
call fcn.00422920
movzx eax, al
test eax, eax
jne 0x4216a0
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.0045f0a0
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c]
call fcn.0042b180
push eax
call fcn.00492400
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x13c]
call fcn.00419220
mov byte [ebp - 0xd], 0
jmp 0x4216aa
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x18]
call fcn.00414580
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
push ecx
mov ecx, esp
mov dword [ebp - 0xe8], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00414330
lea eax, [ebp - 0x60]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x54]
call fcn.0041afc0
mov dword [ebp - 0x5c], eax
movzx edx, byte [ebp - 0xd]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00422410
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.004185c0
lea eax, [ebp + 8]
push eax
mov ecx, 0x5faad8
call fcn.0042acc0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.0043b8b0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push str.exec_cmd
call fcn.00415e60
lea eax, [ebp - 0x3c]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xf4], esp
push str.wnd_name_sstate_wsexec_code_dcmd_ws
call fcn.00415e60
lea ecx, [ebp - 0x38]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0xf8], eax
mov byte [ebp - 4], 9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xfc], esp
push 0x5b3b90
call fcn.00415e60
lea edx, [ebp - 0x34]
push edx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x104], esp
push 0x5b3ba0
call fcn.00415e60
lea eax, [ebp - 0x30]
push eax
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 0xb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10c], esp
push 0x5b3bac
call fcn.00415e60
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00462850
add esp, 0x1c
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x14]
call fcn.00414580
mov byte [ebp - 4], 0xd
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x114], esp
lea eax, [ebp + 0xc]
push eax
push edx
call fcn.0045f0a0
add esp, 8
lea ecx, [ebp - 0xbc]
push ecx
call fcn.0045ffd0
add esp, 0x1c
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xa4], ecx
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x42187b
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], eax
jmp 0x421881
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x7c], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x118], esp
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00414330
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xac], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x11c], esp
lea edx, [ebp - 0x38]
push edx
call fcn.00414330
lea eax, [ebp - 0xb4]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x9c]
call fcn.0041afc0
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00422410
add esp, 0x18
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb4]
call fcn.004185c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xb8]
call fcn.004185c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xbc]
call fcn.004185c0
push 0x5b3bbc
lea ecx, [ebp - 0x28]
call fcn.00414470
mov byte [ebp - 4], 0x11
push 0x5b3bc0
lea ecx, [ebp - 0x24]
call fcn.00414470
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
lea edx, [ebp - 0x3c]
push edx
call fcn.00414330
lea eax, [ebp - 0xdc]
push eax
call fcn.00462060
add esp, 8
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xd0], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.00414330
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00462060
add esp, 8
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004845b0
add esp, 0x14
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xd8]
call fcn.004185c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xdc]
call fcn.004185c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x24]
call fcn.004185c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x14]
call fcn.004185c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004185c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x30]
call fcn.004185c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.004185c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.004185c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004185c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.004185c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10