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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5716e0
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.00409e49
mov eax, dword [0x5e93dc]
test eax, eax
jne 0x4026aa
call fcn.0040a4e8
mov eax, dword [0x5e93dc]
cmp eax, 2
jne 0x4026d2
cmp dword [0x5e93e0], 0
jne 0x4026c2
call fcn.0040a4e8
mov eax, dword [0x5e93dc]
cmp dword [0x5e93e0], 0x258
je 0x402a14
test eax, eax
jne 0x4026e0
call fcn.0040a4e8
mov eax, dword [0x5e93dc]
cmp eax, 2
jne 0x402739
cmp dword [0x5e93e0], 0
jne 0x4026f3
call fcn.0040a4e8
cmp dword [0x5e93e0], 0x258
jne 0x402739
mov ax, word [0x5e93d8]
test ax, ax
jne 0x402715
call fcn.0040a4e8
mov ax, word [0x5e93d8]
cmp ax, 3
je 0x402a14
test ax, ax
jne 0x40272f
call fcn.0040a4e8
mov ax, word [0x5e93d8]
cmp ax, 2
je 0x402a14
cmp dword [0x5e93e0], 0
jne 0x402747
call fcn.0040a4e8
mov eax, dword [0x5e93e0]
test eax, eax
je 0x40275b
cmp eax, 0x258
jb 0x402a14
call fcn.0040a49d
test eax, eax
jne 0x402a14
mov eax, dword [0x5e93e0]
test eax, eax
jne 0x40277f
call fcn.0040a4e8
mov eax, dword [0x5e93e0]
test eax, eax
je 0x40278a
cmp eax, 0x1f5
jb 0x402a14
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 0x402821
push 0x5b8704
lea ecx, [ebp - 0x70]
call fcn.00402e40
push str.FromHTA
lea ecx, [ebp - 0x40]
call fcn.00402e40
xor esi, esi
cmp dword [ebp - 0xec], esi
jle 0x402802
nop word [eax + eax]
push dword [edi + esi*4]
lea ecx, [ebp - 0x70]
call fcn.00402c90
test eax, eax
jne 0x4027f9
push dword [edi + esi*4 + 4]
inc esi
lea ecx, [ebp - 0x40]
call fcn.00402c90
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
inc esi
cmp esi, dword [ebp - 0xec]
jl 0x4027d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x40]
call fcn.00402d80
lea ecx, [ebp - 0x70]
call fcn.00402d80
test bl, bl
jne 0x4029a9
lea ecx, [ebp - 0x28]
call fcn.0040a95e
push str.launcher
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00403930
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.00402dc0
lea ecx, [ebp - 0x40]
call fcn.00402d80
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.00402e40
lea ecx, [ebp - 0x40]
call fcn.0040aa9c
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00402d80
test bl, bl
je 0x4029a1
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.00402e40
push str.launcher.hta
lea ecx, [ebp - 0x40]
call fcn.00402d30
push 0x3c
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00548eb0
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 0x402981
push str.HTA_application_launched_successfully
push 0x81
push 0x80
push eax
call fcn.0040a125
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402d80
lea ecx, [ebp - 0x28]
call fcn.00402d80
xor esi, esi
jmp 0x402c48
push str.Failed_to_launch_HTA_application
push 0x87
push 0x80
push eax
call fcn.0040a125
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402d80
lea ecx, [ebp - 0x28]
call fcn.00402d80
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x70]
call fcn.00402e40
push str.HP_DQEX5.exe
lea ecx, [ebp - 0x40]
call fcn.00402e40
sub esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040a95e
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040a63f
add esp, 0xc
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.0040c6bb
add esp, 4
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00402d80
lea ecx, [ebp - 0x58]
call fcn.00402d80
lea ecx, [ebp - 0x40]
call fcn.00402d80
lea ecx, [ebp - 0x70]
call fcn.00402d80
jmp 0x402c48
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 0x402a75
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a66
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403050
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.00403050
sub esp, 0xc
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a95e
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.0040a63f
add esp, 0xc
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.0040c6bb
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0x34
cmp dword [ebp - 0x5c], 8
jb 0x402b27
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.004032e0
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 0x402b77
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.004032e0
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 0x402bc7
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.004032e0
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 0x402c17
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.004032e0
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.00409eb2
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.00545662
mov esp, ebp
pop ebp
ret 0x10