Function at 0x402670
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571750
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5ddf64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0xe8]
sub esp, 8
mov dword [ebp - 0xf0], ebx
push 0x40
push str.wWinMain
push 0x5e96e0
push dword [0x5e93ec]
call fcn.00409e79
mov eax, dword [0x5e93dc]
test eax, eax
jne 0x4026da
call fcn.0040a518
mov eax, dword [0x5e93dc]
cmp eax, 2
jne 0x402702
cmp dword [0x5e93e0], 0
jne 0x4026f2
call fcn.0040a518
mov eax, dword [0x5e93dc]
cmp dword [0x5e93e0], 0x258
je 0x402a44
test eax, eax
jne 0x402710
call fcn.0040a518
mov eax, dword [0x5e93dc]
cmp eax, 2
jne 0x402769
cmp dword [0x5e93e0], 0
jne 0x402723
call fcn.0040a518
cmp dword [0x5e93e0], 0x258
jne 0x402769
mov ax, word [0x5e93d8]
test ax, ax
jne 0x402745
call fcn.0040a518
mov ax, word [0x5e93d8]
cmp ax, 3
je 0x402a44
test ax, ax
jne 0x40275f
call fcn.0040a518
mov ax, word [0x5e93d8]
cmp ax, 2
je 0x402a44
cmp dword [0x5e93e0], 0
jne 0x402777
call fcn.0040a518
mov eax, dword [0x5e93e0]
test eax, eax
je 0x40278b
cmp eax, 0x258
jb 0x402a44
call fcn.0040a4cd
test eax, eax
jne 0x402a44
mov eax, dword [0x5e93e0]
test eax, eax
jne 0x4027af
call fcn.0040a518
mov eax, dword [0x5e93e0]
test eax, eax
je 0x4027ba
cmp eax, 0x1f5
jb 0x402a44
lea eax, [ebp - 0xec]
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x402851
push 0x5b8714
lea ecx, [ebp - 0x70]
call fcn.00402e70
push str.FromHTA
lea ecx, [ebp - 0x40]
call fcn.00402e70
xor esi, esi
cmp dword [ebp - 0xec], esi
jle 0x402832
nop word [eax + eax]
push dword [edi + esi*4]
lea ecx, [ebp - 0x70]
call fcn.00402cc0
test eax, eax
jne 0x402829
push dword [edi + esi*4 + 4]
inc esi
lea ecx, [ebp - 0x40]
call fcn.00402cc0
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
inc esi
cmp esi, dword [ebp - 0xec]
jl 0x402800
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x40]
call fcn.00402db0
lea ecx, [ebp - 0x70]
call fcn.00402db0
test bl, bl
jne 0x4029d9
lea ecx, [ebp - 0x28]
call fcn.0040a98e
push str.launcher
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.00402df0
lea ecx, [ebp - 0x40]
call fcn.00402db0
mov dword [ebp - 4], 0xa0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00402e70
lea ecx, [ebp - 0x40]
call fcn.0040aacc
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00402db0
test bl, bl
je 0x4029d1
mov dword [ebp - 4], 0xa3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00402e70
push str.launcher.hta
lea ecx, [ebp - 0x40]
call fcn.00402d60
push 0x3c
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00548ef0
add esp, 0xc
mov dword [ebp - 0x12c], 0x3c
mov dword [ebp - 0x128], 0x40
mov dword [ebp - 0x120], str.open
mov dword [ebp - 0x11c], str.mshta.exe
mov dword [ebp - 4], 0xa6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 5
mov dword [ebp - 4], 0xa9
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
lea eax, [ebp - 0xe8]
je 0x4029b1
push str.HTA_application_launched_successfully
push 0x81
push 0x80
push eax
call fcn.0040a155
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402db0
lea ecx, [ebp - 0x28]
call fcn.00402db0
xor esi, esi
jmp 0x402c78
push str.Failed_to_launch_HTA_application
push 0x87
push 0x80
push eax
call fcn.0040a155
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402db0
lea ecx, [ebp - 0x28]
call fcn.00402db0
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x70]
call fcn.00402e70
push str.HP_DQEX5.exe
lea ecx, [ebp - 0x40]
call fcn.00402e70
sub esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040a98e
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040a66f
add esp, 0xc
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.0040c6eb
add esp, 4
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00402db0
lea ecx, [ebp - 0x58]
call fcn.00402db0
lea ecx, [ebp - 0x40]
call fcn.00402db0
lea ecx, [ebp - 0x70]
call fcn.00402db0
jmp 0x402c78
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0x19
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
cmp word [ebx], cx
je 0x402aa5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a96
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403080
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44], 7
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 4], 0x33
mov word [eax], cx
lea ecx, [ebp - 0x58]
push 0xc
push str.HP_DQEX5.exe
mov dword [ebp - 4], 0xffffffff
call fcn.00403080
sub esp, 0xc
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a98e
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.0040a66f
add esp, 0xc
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.0040c6eb
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0x34
cmp dword [ebp - 0x5c], 8
jb 0x402b57
mov byte [ebp - 4], 0x34
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 0x34
mov eax, dword [ebp - 0x5c]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00403310
mov byte [ebp - 4], 0x34
mov dword [ebp - 0x5c], 7
mov byte [ebp - 4], 0x34
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x60], 0
cmovae eax, dword [ebp - 0x70]
xor ecx, ecx
mov byte [ebp - 4], 0x4e
mov word [eax], cx
mov dword [ebp - 4], 0x4f
cmp dword [ebp - 0x2c], 8
jb 0x402ba7
mov byte [ebp - 4], 0x4f
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 0x4f
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00403310
mov byte [ebp - 4], 0x4f
mov dword [ebp - 0x2c], 7
mov byte [ebp - 4], 0x4f
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov byte [ebp - 4], 0x69
mov word [eax], cx
mov dword [ebp - 4], 0x6a
cmp dword [ebp - 0x44], 8
jb 0x402bf7
mov byte [ebp - 4], 0x6a
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 4], 0x6a
mov eax, dword [ebp - 0x44]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00403310
mov byte [ebp - 4], 0x6a
mov dword [ebp - 0x44], 7
mov byte [ebp - 4], 0x6a
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x58]
xor ecx, ecx
mov byte [ebp - 4], 0x84
mov word [eax], cx
mov dword [ebp - 4], 0x85
cmp dword [ebp - 0x14], 8
jb 0x402c47
mov byte [ebp - 4], 0x85
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x85
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403310
mov byte [ebp - 4], 0x85
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], 0x85
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x9f
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00409ee2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054569e
mov esp, ebp
pop ebp
ret 0x10