Function at 0x4053cd
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Create process on windows
Get file attributes
Identify system language via api
Log keystrokes via polling
Self delete
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2cc
push ebx
push esi
push edi
call fcn.00401e07
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40681d
cmp dword [ebp - 0x254], 2
jne 0x40681d
cmp dword [ebp - 0x260], 5
jb 0x40681d
call fcn.00404e46
or dword [ebp - 0x44], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
lea ecx, [ebp - 0x50]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x50], 0x416094
mov byte [ebp + 0x65], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x63], 0
mov byte [ebp + 0x64], 0
call fcn.004015e5
lea ecx, [ebp - 0xbc]
call fcn.004015e5
lea ecx, [ebp - 0xc]
call fcn.004040ac
push 0x20
lea ecx, [ebp - 0x5c]
call fcn.0040416d
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040449a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004023ee
lea eax, [ebp - 0x5c]
push eax
call fcn.00402a0e
mov ebx, dword [ebp - 0x5c]
add ebx, 2
mov dword [esp], str.sfxversion
push ebx
call fcn.00404029
test eax, eax
pop ecx
pop ecx
je 0x40553e
lea ecx, [ebp - 0x150]
mov dword [0x41a270], 8
call fcn.00404095
push 1
call fcn.00403ccf
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.0040239d
xor esi, esi
cmp dword [0x41a790], esi
jbe 0x40550d
test esi, esi
je 0x4054f2
push 0x416314
lea ecx, [ebp + 0x14]
call fcn.004023ee
mov eax, dword [esi*4 + 0x41a690]
push dword [eax + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004023ee
inc esi
cmp esi, dword [0x41a790]
jb 0x4054e1
push 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x150]
push dword [0x41a600]
push 0x11
call fcn.00407547
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x150]
call fcn.004040a7
jmp 0x4067f1
mov esi, 0x208
cmp dword [0x41a65c], esi
mov edi, 0x41a654
jg 0x405558
push esi
mov ecx, edi
call fcn.004013cd
push esi
push dword [0x41a654]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40557d
xor esi, esi
inc esi
push 6
push esi
call fcn.00407860
pop ecx
pop ecx
jmp 0x4067f3
mov ecx, edi
call fcn.004023d6
push str.sfxtest
push ebx
call fcn.00404029
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4056f4
cmp word [esi], 0x3a
je 0x4055a9
push 0x64
pop esi
jmp 0x4067f3
mov cx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x40567a
sub eax, ebx
je 0x405666
dec eax
je 0x4055e7
sub eax, ebx
je 0x4055dd
sub eax, 0x10
jne 0x4055a1
mov esi, 0x45dd
jmp 0x4067f3
mov esi, 0x2033
jmp 0x4067f3
cmp cx, 0x44
jne 0x405625
cmp word [esi + 4], 0x3a
jne 0x4055a1
add esi, 6
jmp 0x40560c
cmp ax, 0x3a
je 0x405617
push eax
mov ecx, 0x41a684
call fcn.004015fd
add esi, ebx
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
ja 0x4055f9
cmp dword [0x41a688], 0
jne 0x405628
jmp 0x4055a1
add esi, 4
and dword [0x41a67c], 0
cmp word [esi], 0x3a
jne 0x405650
lea eax, [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a67c], eax
ja 0x405650
test eax, eax
jne 0x40565a
mov dword [0x41a67c], 0xa
mov dword [0x41a680], 1
jmp 0x405684
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a680], eax
jmp 0x405684
mov dword [0x41a680], ebx
jmp 0x405684
add esi, ebx
cmp word [esi], 0x20
ja 0x405682
jmp 0x405694
cmp ax, 0x20
ja 0x40569c
add esi, ebx
mov ax, word [esi]
test ax, ax
jne 0x40568c
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404029
test eax, eax
pop ecx
pop ecx
je 0x4056f4
cmp word [eax], 0x3a
jne 0x4056bf
jmp 0x4056bd
cmp cx, 0x20
ja 0x4056c7
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x4056b7
mov ecx, dword [ebp - 0x50]
and word [ecx], 0
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.0040449a
cmp dword [0x41a680], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4056f4
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.00401536
mov edi, 0x41a654
push edi
mov ecx, 0x41a624
call fcn.00401536
mov esi, 0x41a630
push edi
mov ecx, esi
call fcn.00401536
push edi
call fcn.00402d43
test eax, eax
pop ecx
jl 0x4057ac
mov ecx, dword [0x41a624]
lea edi, [eax + eax]
and word [edi + ecx], 0
mov dword [0x41a628], eax
mov eax, dword [0x41a654]
lea eax, [edi + eax + 2]
push eax
mov ecx, esi
call fcn.004014fd
mov eax, dword [0x41a654]
lea eax, [edi + eax + 2]
mov edi, 0x41a648
push eax
mov ecx, edi
call fcn.004014fd
push 0x2e
mov ecx, edi
call fcn.00402424
test eax, eax
jle 0x405777
mov ecx, dword [0x41a648]
and word [ecx + eax*2], 0
mov dword [0x41a64c], eax
mov esi, 0x41a63c
push 0x41a648
mov ecx, esi
call fcn.00401536
push 4
call fcn.00403ccf
pop ecx
push eax
mov ecx, esi
call fcn.004023ee
mov eax, dword [0x41a648]
mov dword [0x41a600], eax
mov eax, dword [0x41a63c]
mov dword [0x41a604], eax
push 0x10
xor esi, esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4057c5
mov ecx, eax
call fcn.00404998
mov edi, eax
jmp 0x4057c7
xor edi, edi
push edi
lea ecx, [ebp + 0x5c]
call fcn.004087c6
push dword [0x41a654]
mov ecx, edi
call fcn.0040e77c
test al, al
jne 0x40580e
sub esp, 0xc
mov edi, esp
mov esi, 0x41a654
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.00407860
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x405807
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4055a3
lea ecx, [ebp + 0x44]
call fcn.0040244f
lea ecx, [ebp + 0x2c]
call fcn.0040244f
lea ecx, [ebp + 0x38]
call fcn.0040244f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.0040530a
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040278f
add esp, 0x1c
test al, al
jne 0x405902
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.0040530a
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040278f
add esp, 0x1c
test al, al
jne 0x405902
call fcn.00401dc8
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.0040530a
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040278f
add esp, 0x1c
test al, al
jne 0x405902
lea eax, [ebp + 0x44]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.0040278f
add esp, 0x10
test al, al
jne 0x405902
push 9
push esi
call fcn.00407860
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp edi, esi
je 0x4058fb
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x4055a3
cmp dword [0x41a680], esi
jne 0x40597d
push str.sfxconfig
push ebx
call fcn.00404029
cmp eax, esi
pop ecx
pop ecx
je 0x40597d
cmp word [eax], 0x3a
jne 0x405923
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
je 0x4059d4
cmp cx, 0x20
ja 0x40593f
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
jne 0x40592f
cmp word [eax], si
je 0x4059d4
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.004051d3
test al, al
pop ecx
pop ecx
jne 0x4059d4
push 0xa
push esi
call fcn.00407860
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x4059ba
lea ecx, [ebp - 0xc]
call fcn.0040f4bb
cmp dword [ebp + 0x48], esi
je 0x4059cb
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004030ea
add esp, 0xc
test al, al
jne 0x4059cb
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4059c4
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x4055a3
cmp dword [0x41a680], 4
jne 0x4059f6
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
jmp 0x4067e9
lea eax, [ebp - 0xc]
push eax
call fcn.0040461f
pop ecx
dec ebx
push 0x30
dec ebx
pop esi
mov dword [ebp + 0x54], ebx
push 0x20
pop ecx
cmp word [ebx], cx
jbe 0x405a23
inc ebx
inc ebx
cmp word [ebx], cx
ja 0x405a10
jmp 0x405a20
cmp ax, cx
ja 0x405a2b
inc ebx
inc ebx
mov dword [ebp + 0x54], ebx
mov ax, word [ebx]
test ax, ax
jne 0x405a19
mov ax, word [ebx]
cmp ax, 0x2f
je 0x405a3e
cmp ax, 0x2d
jne 0x405c4f
lea edi, [ebx + 2]
cmp word [edi], 0x21
jne 0x405a51
cmp word [ebx + 4], cx
jbe 0x405c38
push 0x4162e8
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405aae
lea ecx, [ebx + 6]
mov ax, word [ecx]
cmp ax, si
jb 0x405a73
cmp ax, 0x39
jbe 0x405a8b
cmp ax, 0x61
jb 0x405a7f
cmp ax, 0x7a
jbe 0x405a8b
cmp ax, 0x41
jb 0x405a90
cmp ax, 0x5a
ja 0x405a90
mov dword [ebp + 0x50], ecx
jmp 0x405aa1
cmp ax, 0x20
ja 0x405c4f
mov dword [ebp + 0x50], 0x416094
mov byte [ebp + 0x65], 1
mov byte [ebp + 0x67], 1
jmp 0x405a08
push 0x4162e0
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405ad9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
call fcn.004047d6
add esp, 0xc
jmp 0x405a08
push 0x4162d8
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405b1a
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c4f
cmp cx, 0x32
ja 0x405c4f
cmp word [ebx + 8], 0x20
ja 0x405c4f
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.GUIMode
jmp 0x405acc
push 0x4162d0
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405b3a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405acc
push 0x4162c8
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405b7a
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
je 0x405b60
cmp cx, 0x31
jne 0x405c4f
cmp word [ebx + 8], 0x20
ja 0x405c4f
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.SelfDelete
jmp 0x405acc
push 0x4162c0
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405b9f
cmp word [ebx + 6], 0x20
ja 0x405c4f
mov byte [ebp + 0x63], 1
jmp 0x405a08
push 0x4162b8
push edi
call fcn.00403e52
test eax, eax
pop ecx
pop ecx
je 0x405bdb
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c4f
cmp cx, 0x39
ja 0x405c4f
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
jmp 0x405a08
mov ax, word [edi]
cmp ax, 0x79
je 0x405bea
cmp ax, 0x59
jne 0x405bfa
cmp word [ebx + 4], 0x20
ja 0x405bfa
mov byte [ebp + 0x65], 1
jmp 0x405a08
cmp ax, 0x3f
je 0x405c0c
cmp ax, 0x68
je 0x405c0c
cmp ax, 0x48
jne 0x405c1c
cmp word [ebx + 4], 0x20
ja 0x405c1c
mov byte [ebp + 0x64], 1
jmp 0x405a08
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040450f
test eax, eax
pop ecx
pop ecx
je 0x405c4f
cmp eax, 1
je 0x405c66
mov ebx, eax
jmp 0x405a05
add ebx, 4
jmp 0x405c44
cmp ax, cx
ja 0x405c4f
inc ebx
inc ebx
mov ax, word [ebx]
test ax, ax
mov dword [ebp + 0x54], ebx
jne 0x405c3d
lea eax, [ebp - 0xc]
push eax
call fcn.0040461f
and dword [ebp - 0x1c], 0
mov ebx, str.SetEnvironment
jmp 0x405cfe
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0xc
test eax, eax
je 0x405c8e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x4055a3
push esi
lea ecx, [ebp - 0x18]
call fcn.0040239d
push 0
push 0x3d
lea ecx, [ebp - 0x18]
call fcn.00402546
test eax, eax
jle 0x405d17
mov ecx, dword [ebp - 0x18]
lea edi, [eax + eax]
and word [edi + ecx], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x14], eax
call fcn.0040234d
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x74]
call fcn.00401536
lea eax, [edi + esi + 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.004014fd
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x41a660
call fcn.00402fa6
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.00401c9e
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040237e
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x405c95
jmp 0x405d20
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.004043d3
xor edi, edi
cmp dword [0x41a270], 0xffffffff
jne 0x405d36
mov dword [0x41a270], edi
cmp byte [ebp + 0x64], 0
je 0x405dba
push edi
lea eax, [ebp - 0xc]
push str.HelpText
push eax
call fcn.0040237e
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x405d5e
push 0x18
call fcn.00403ccf
pop ecx
mov esi, eax
lea ecx, [ebp - 0x108]
call fcn.00403dfe
push edi
push esi
push dword [0x41a600]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.00407547
lea ecx, [ebp - 0x108]
call fcn.004040a7
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, edi
je 0x4067f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067f1
cmp byte [ebp + 0x65], 0
je 0x405dc7
and byte [0x41a271], 0xfe
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
lea eax, [ebp - 0xc]
push str.InstallPath
push eax
call fcn.0040237e
add esp, 0xc
cmp eax, edi
je 0x405def
push eax
mov ecx, 0x41a618
call fcn.004014fd
push 0x41a618
call fcn.00403e17
cmp dword [0x41a688], edi
pop ecx
je 0x405e3e
lea eax, [ebp - 0xc]
push eax
call fcn.004084ea
push dword [ebp + 0x38]
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, edi
je 0x4067f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067f3
cmp dword [0x41a680], 3
jne 0x405e52
lea eax, [ebp - 0xc]
push eax
call fcn.0040843a
jmp 0x405e0b
mov edi, str.ExecuteFile
mov ebx, str.RunProgram
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push str.BeginPrompt
push eax
call fcn.0040237e
add esp, 0xc
cmp eax, esi
je 0x405ea0
cmp byte [ebp + 0x65], 0
jne 0x405ea0
push eax
push dword [0x41a600]
call fcn.0040779d
test eax, eax
pop ecx
pop ecx
je 0x405fca
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x405ea0
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x20]
call fcn.004015e5
cmp byte [ebp + 0x67], 0
je 0x405f2c
mov esi, dword [ebp + 0x50]
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.004014fd
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.004015fd
push 0
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0040237e
add esp, 0xc
test eax, eax
je 0x405fe7
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405ef6
cmp ax, 0x39
jbe 0x405eb1
cmp ax, 0x61
jb 0x405f02
cmp ax, 0x7a
jbe 0x405eb1
cmp ax, 0x41
jb 0x405f0e
cmp ax, 0x5a
jbe 0x405eb1
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.004014fd
mov eax, dword [ebp + 0x50]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x20]
call fcn.004015fd
xor esi, esi
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 0
jne 0x405f74
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040237e
add esp, 0xc
test eax, eax
je 0x405f59
push edi
lea ecx, [ebp + 0x20]
call fcn.004014fd
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 1
jne 0x405f74
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040237e
add esp, 0xc
test eax, eax
je 0x405f74
push ebx
lea ecx, [ebp + 0x20]
call fcn.004014fd
cmp byte [ebp + 0x67], 0
jne 0x40605e
cmp byte [ebp + 0x65], 0
jne 0x40605e
mov eax, dword [0x41a270]
and ax, 0xc0
cmp al, 0x80
jne 0x40605e
push dword [0x41a5f4]
push dword [0x41a5f8]
call fcn.00407819
test eax, eax
pop ecx
pop ecx
jne 0x40605e
cmp byte [0x41a614], al
push dword [ebp + 0x20]
je 0x40602a
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405e5e
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x40604a
push dword [ebp + 0x20]
push 0xe
push 0
call fcn.00407860
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x1c
test eax, eax
je 0x406023
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4055a3
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, dword [ebp + 0x5c]
cmp eax, esi
je 0x406057
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4055a3
cmp dword [0x41a61c], esi
jne 0x40608f
lea eax, [ebp + 0x14]
push str.7ZipSfx._03x
push eax
call fcn.004042fc
pop ecx
pop ecx
push eax
mov ecx, 0x41a618
call fcn.00401536
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov byte [ebp + 0x66], 0
jmp 0x4060c5
push 0x41a618
lea ecx, [ebp + 0x14]
call fcn.004014cb
lea eax, [ebp + 0x14]
push eax
call fcn.00403e17
cmp dword [ebp + 0x18], esi
pop ecx
jne 0x4060b9
lea eax, [ebp + 0x14]
push eax
mov ecx, 0x41a618
call fcn.00401536
push dword [ebp + 0x14]
mov byte [ebp + 0x66], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41a618]
pop ecx
mov ecx, dword [0x41a61c]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4060e2
cmp dx, 0x2f
jne 0x4060ed
dec ecx
mov word [eax + ecx*2], si
mov dword [0x41a61c], ecx
cmp dword [0x41a67c], esi
jne 0x406107
mov edi, dword [ebp + 0x5c]
push 0x41a618
push edi
call fcn.004050dc
pop ecx
pop ecx
jmp 0x406118
call fcn.0040798c
test eax, eax
mov edi, dword [ebp + 0x5c]
jne 0x406162
mov eax, 0x80004005
cmp eax, esi
je 0x406162
cmp byte [ebp + 0x66], 0
jne 0x40612e
push dword [0x41a618]
call fcn.00402c6d
pop ecx
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp edi, esi
je 0x40615b
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 8
jmp 0x4055a3
call fcn.004043d3
cmp byte [ebp + 0x63], 0
je 0x406177
cmp byte [ebp + 0x66], 0
jne 0x406706
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.004015e5
cmp byte [ebp + 0x67], 0
jne 0x406197
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404444
pop ecx
pop ecx
mov eax, dword [ebp + 0x50]
mov byte [ebp + 0x5a], 0
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 8]
mov byte [ebp + 0x5b], 0
mov byte [ebp + 0x67], 0
call fcn.004015e5
lea ecx, [ebp - 0x30]
call fcn.004015e5
cmp dword [ebp + 0x24], esi
jne 0x406263
cmp byte [ebp + 0x66], 0
jne 0x406560
mov esi, str.setup.exe
push esi
push 0x415444
lea eax, [ebp - 0x68]
push 0x41a618
push eax
call fcn.00404248
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00404248
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.00401536
push dword [ebp - 0xc8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x68]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406577
mov byte [ebp + 0x5a], 1
push esi
lea ecx, [ebp - 0x30]
call fcn.004014fd
lea eax, [ebp - 0x30]
push eax
call fcn.00403e3d
mov edi, dword [ebp - 0x30]
pop ecx
xor ebx, ebx
push ebx
push str.hidcon
push edi
call fcn.00403e8c
add esp, 0xc
cmp eax, ebx
je 0x4062e9
mov edi, eax
mov byte [ebp + 0x5b], 1
jmp 0x406244
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0040237e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40622c
mov esi, dword [ebp - 0x40]
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x40], esi
jb 0x406293
cmp ax, 0x39
jbe 0x4062b3
cmp ax, 0x61
jb 0x40629f
cmp ax, 0x7a
jbe 0x4062b3
cmp ax, 0x41
jb 0x4065d7
cmp ax, 0x5a
ja 0x4065d7
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.004014fd
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.004015fd
push dword [ebp - 0x30]
and dword [ebp - 0x20], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406559
push ebx
push str.nowait
push edi
call fcn.00403e8c
add esp, 0xc
cmp eax, ebx
je 0x406309
mov edi, eax
mov al, byte [ebp + 0x66]
mov byte [ebp + 0x67], al
jmp 0x406244
push ebx
push 0x416220
push edi
call fcn.00403e8c
add esp, 0xc
cmp eax, ebx
je 0x406327
mov edi, eax
mov byte [ebp + 0x67], 1
jmp 0x406244
push 2
push 0x4162b8
push edi
call fcn.00403e8c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40635d
cmp dword [0x41a27c], 0xffffffff
jne 0x406356
add edi, 4
push edi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
mov edi, esi
jmp 0x406244
push 3
push 0x416218
push edi
call fcn.00403e8c
add esp, 0xc
cmp eax, ebx
je 0x406382
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
mov edi, eax
jmp 0x406244
push 3
push 0x416210
push edi
call fcn.00403e8c
add esp, 0xc
cmp eax, ebx
je 0x4063a2
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x24], ecx
jmp 0x40637b
cmp byte [ebp + 0x64], 0
lea ecx, [ebp + 8]
je 0x4063fe
cmp word [edi], 0x22
je 0x4063d0
mov esi, 0x416088
push esi
call fcn.004014fd
push edi
lea ecx, [ebp + 8]
call fcn.004023ee
push esi
lea ecx, [ebp + 8]
call fcn.004023ee
jmp 0x4063d6
push edi
call fcn.004014fd
push ebx
lea eax, [ebp - 0xc]
push str.ExecuteParameters
push eax
call fcn.0040237e
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x406410
push 0x41620c
lea ecx, [ebp + 8]
call fcn.004023ee
push esi
jmp 0x406408
lea eax, [ebp - 0x18]
push eax
call fcn.00401536
push edi
lea ecx, [ebp + 8]
call fcn.004023ee
lea ecx, [ebp + 0x14]
call fcn.004015e5
lea ecx, [ebp - 0x3c]
call fcn.004015e5
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xb0]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x41a618]
add esp, 0xc
cmp byte [ebp + 0x5b], 0
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], 0x740
mov dword [ebp - 0x94], 1
je 0x40646f
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xac], 0x8740
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push ebx
call fcn.0040449a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004014fd
mov edi, dword [ebp + 0x54]
xor esi, esi
cmp word [edi], si
je 0x4064b3
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.004015fd
push edi
lea ecx, [ebp - 0x3c]
call fcn.004023ee
cmp word [edi], si
je 0x4064b3
inc edi
inc edi
cmp word [edi], si
jne 0x4064a9
mov dword [ebp + 0x54], edi
lea eax, [ebp + 0x14]
push eax
call fcn.00403e3d
lea eax, [ebp - 0x3c]
push eax
call fcn.00403e3d
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
je 0x4064de
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
cmp dword [0x41a680], esi
jne 0x406515
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4065ee
cmp byte [ebp + 0x67], 0
jne 0x40650c
push 0xffffffffffffffff
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x64], 0
jne 0x406674
cmp byte [ebp + 0x5a], 0
jne 0x406674
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax], si
push dword [ebp - 0x3c]
inc dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x5c]
add esp, 0x10
xor esi, esi
jmp 0x4061a1
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x40669a
push dword [0x41a618]
call fcn.00402c6d
push 0xf
push 0
call fcn.00407860
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x28
test edi, edi
je 0x4065d0
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 7
jmp 0x4055a3
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406698
sub esp, 0xc
mov edi, esp
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 1
movsd dword es:[edi], dword [esi]
call fcn.00407860
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x406617
push dword [0x41a618]
call fcn.00402c6d
pop ecx
push dword [ebp - 0x3c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x24
test eax, eax
je 0x40666d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4055a3
push dword [ebp - 0x3c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x5c]
add esp, 0x10
xor esi, esi
cmp dword [0x41a680], esi
jne 0x4066fd
call fcn.004043d3
push dword [ebp - 0x44]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Shortcut
push eax
push 0x404ff0
call fcn.00404894
add esp, 0x14
push dword [0x41a624]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Delete
push eax
push 0x40484c
call fcn.00404894
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4066fd
push dword [0x41a618]
call fcn.00402c6d
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41a27c], 0xffffffff
jne 0x40671f
cmp byte [ebp + 0x65], 0
jne 0x40677e
mov dword [0x41a27c], 1
cmp dword [0x41a27c], esi
jle 0x40677e
push 0
lea eax, [ebp - 0xc]
push str.FinishMessage
push eax
call fcn.0040237e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40677e
mov eax, 0x3e7
cmp dword [0x41a27c], eax
jle 0x406752
mov dword [0x41a27c], eax
lea ecx, [ebp - 0x110]
call fcn.004042a2
push 0
push esi
push dword [0x41a600]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.00407547
lea ecx, [ebp - 0x110]
call fcn.0040411b
cmp byte [ebp + 0x63], 0
jne 0x4067c4
cmp dword [0x41a680], 0
jne 0x4067c4
push 0
lea eax, [ebp - 0xc]
push str.SelfDelete
push eax
call fcn.0040237e
add esp, 0xc
test eax, eax
je 0x4067c4
cmp word [eax], 0x31
jne 0x4067c4
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x41a654
call fcn.004014cb
call fcn.00404acb
add esp, 0xc
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
test edi, edi
je 0x4067f1
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor esi, esi
push dword [ebp - 0x5c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.004040c7
push dword [ebp - 0xbc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x406834
push 0x10
push str.7_Zip_SFX
push 0x41619c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x14
pop eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10