Function at 0x4053d0
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.00401dee
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406802
cmp dword [ebp - 0x254], 2
jne 0x406802
cmp dword [ebp - 0x260], 5
jb 0x406802
call fcn.00404d5e
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], 0x41607c
mov byte [ebp + 0x65], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x63], 0
mov byte [ebp + 0x64], 0
call fcn.004015ee
lea ecx, [ebp - 0xbc]
call fcn.004015ee
lea ecx, [ebp - 0xc]
call fcn.00404093
push 0x20
lea ecx, [ebp - 0x5c]
call fcn.00404161
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040448e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004023d5
lea eax, [ebp - 0x5c]
push eax
call fcn.004029f5
mov ebx, dword [ebp - 0x5c]
add ebx, 2
mov dword [esp], str.sfxversion
push ebx
call fcn.00404010
test eax, eax
pop ecx
pop ecx
je 0x405541
lea ecx, [ebp - 0x150]
mov dword [0x41a270], 8
call fcn.0040407c
push 1
call fcn.00403cb6
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.00402384
xor esi, esi
cmp dword [0x41a778], esi
jbe 0x405510
test esi, esi
je 0x4054f5
push 0x4162e4
lea ecx, [ebp + 0x14]
call fcn.004023d5
mov eax, dword [esi*4 + 0x41a678]
push dword [eax + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004023d5
inc esi
cmp esi, dword [0x41a778]
jb 0x4054e4
push 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x150]
push dword [0x41a5e0]
push 0x11
call fcn.0040752c
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x150]
call fcn.0040408e
jmp 0x4067d6
mov esi, 0x208
cmp dword [0x41a63c], esi
mov edi, 0x41a634
jg 0x40555b
push esi
mov ecx, edi
call fcn.004013d6
push esi
push dword [0x41a634]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405580
xor esi, esi
inc esi
push 6
push esi
call fcn.00407845
pop ecx
pop ecx
jmp 0x4067d8
mov ecx, edi
call fcn.004023bd
push str.sfxtest
push ebx
call fcn.00404010
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4056f7
cmp word [esi], 0x3a
je 0x4055ac
push 0x64
pop esi
jmp 0x4067d8
mov cx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x40567d
sub eax, ebx
je 0x405669
dec eax
je 0x4055ea
sub eax, ebx
je 0x4055e0
sub eax, 0x10
jne 0x4055a4
mov esi, 0x45dd
jmp 0x4067d8
mov esi, 0x2033
jmp 0x4067d8
cmp cx, 0x44
jne 0x405628
cmp word [esi + 4], 0x3a
jne 0x4055a4
add esi, 6
jmp 0x40560f
cmp ax, 0x3a
je 0x40561a
push eax
mov ecx, 0x41a664
call fcn.00401606
add esi, ebx
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
ja 0x4055fc
cmp dword [0x41a668], 0
jne 0x40562b
jmp 0x4055a4
add esi, 4
and dword [0x41a65c], 0
cmp word [esi], 0x3a
jne 0x405653
lea eax, [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a65c], eax
ja 0x405653
test eax, eax
jne 0x40565d
mov dword [0x41a65c], 0xa
mov dword [0x41a660], 1
jmp 0x405687
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a660], eax
jmp 0x405687
mov dword [0x41a660], ebx
jmp 0x405687
add esi, ebx
cmp word [esi], 0x20
ja 0x405685
jmp 0x405697
cmp ax, 0x20
ja 0x40569f
add esi, ebx
mov ax, word [esi]
test ax, ax
jne 0x40568f
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404010
test eax, eax
pop ecx
pop ecx
je 0x4056f7
cmp word [eax], 0x3a
jne 0x4056c2
jmp 0x4056c0
cmp cx, 0x20
ja 0x4056ca
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x4056ba
mov ecx, dword [ebp - 0x50]
and word [ecx], 0
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.0040448e
cmp dword [0x41a660], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4056f7
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.0040153f
mov edi, 0x41a634
push edi
mov ecx, 0x41a604
call fcn.0040153f
mov esi, 0x41a610
push edi
mov ecx, esi
call fcn.0040153f
push edi
call fcn.00402d2a
test eax, eax
pop ecx
jl 0x4057af
mov ecx, dword [0x41a604]
lea edi, [eax + eax]
and word [edi + ecx], 0
mov dword [0x41a608], eax
mov eax, dword [0x41a634]
lea eax, [edi + eax + 2]
push eax
mov ecx, esi
call fcn.00401506
mov eax, dword [0x41a634]
lea eax, [edi + eax + 2]
mov edi, 0x41a628
push eax
mov ecx, edi
call fcn.00401506
push 0x2e
mov ecx, edi
call fcn.0040240b
test eax, eax
jle 0x40577a
mov ecx, dword [0x41a628]
and word [ecx + eax*2], 0
mov dword [0x41a62c], eax
mov esi, 0x41a61c
push 0x41a628
mov ecx, esi
call fcn.0040153f
push 4
call fcn.00403cb6
pop ecx
push eax
mov ecx, esi
call fcn.004023d5
mov eax, dword [0x41a628]
mov dword [0x41a5e0], eax
mov eax, dword [0x41a61c]
mov dword [0x41a5e4], eax
push 0x10
xor esi, esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4057c8
mov ecx, eax
call fcn.00404e92
mov edi, eax
jmp 0x4057ca
xor edi, edi
push edi
lea ecx, [ebp + 0x5c]
call fcn.0040138d
push dword [0x41a634]
mov ecx, edi
call fcn.0040e7a9
test al, al
jne 0x405811
sub esp, 0xc
mov edi, esp
mov esi, 0x41a634
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.00407845
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x40580a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4055a6
lea ecx, [ebp + 0x44]
call fcn.00402436
lea ecx, [ebp + 0x2c]
call fcn.00402436
lea ecx, [ebp + 0x38]
call fcn.00402436
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.0040530d
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.00402776
add esp, 0x1c
test al, al
jne 0x405905
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.0040530d
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.00402776
add esp, 0x1c
test al, al
jne 0x405905
call fcn.00401daf
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.0040530d
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.00402776
add esp, 0x1c
test al, al
jne 0x405905
lea eax, [ebp + 0x44]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.00402776
add esp, 0x10
test al, al
jne 0x405905
push 9
push esi
call fcn.00407845
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 0x4058fe
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x4055a6
cmp dword [0x41a660], esi
jne 0x405980
push str.sfxconfig
push ebx
call fcn.00404010
cmp eax, esi
pop ecx
pop ecx
je 0x405980
cmp word [eax], 0x3a
jne 0x405926
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
je 0x4059d7
cmp cx, 0x20
ja 0x405942
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
jne 0x405932
cmp word [eax], si
je 0x4059d7
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.00404f83
test al, al
pop ecx
pop ecx
jne 0x4059d7
push 0xa
push esi
call fcn.00407845
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 0x4059bd
lea ecx, [ebp - 0xc]
call fcn.0040f4ae
cmp dword [ebp + 0x48], esi
je 0x4059ce
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004030d1
add esp, 0xc
test al, al
jne 0x4059ce
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 0x4059c7
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x4055a6
cmp dword [0x41a660], 4
jne 0x4059f9
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 0x4067ce
lea eax, [ebp - 0xc]
push eax
call fcn.00404613
pop ecx
dec ebx
push 0x30
dec ebx
pop esi
mov dword [ebp + 0x54], ebx
push 0x20
pop ecx
cmp word [ebx], cx
jbe 0x405a26
inc ebx
inc ebx
cmp word [ebx], cx
ja 0x405a13
jmp 0x405a23
cmp ax, cx
ja 0x405a2e
inc ebx
inc ebx
mov dword [ebp + 0x54], ebx
mov ax, word [ebx]
test ax, ax
jne 0x405a1c
mov ax, word [ebx]
cmp ax, 0x2f
je 0x405a41
cmp ax, 0x2d
jne 0x405c52
lea edi, [ebx + 2]
cmp word [edi], 0x21
jne 0x405a54
cmp word [ebx + 4], cx
jbe 0x405c3b
push 0x4162b8
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405ab1
lea ecx, [ebx + 6]
mov ax, word [ecx]
cmp ax, si
jb 0x405a76
cmp ax, 0x39
jbe 0x405a8e
cmp ax, 0x61
jb 0x405a82
cmp ax, 0x7a
jbe 0x405a8e
cmp ax, 0x41
jb 0x405a93
cmp ax, 0x5a
ja 0x405a93
mov dword [ebp + 0x50], ecx
jmp 0x405aa4
cmp ax, 0x20
ja 0x405c52
mov dword [ebp + 0x50], 0x41607c
mov byte [ebp + 0x65], 1
mov byte [ebp + 0x67], 1
jmp 0x405a0b
push 0x4162b0
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405adc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
call fcn.004047ca
add esp, 0xc
jmp 0x405a0b
push 0x4162a8
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405b1d
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c52
cmp cx, 0x32
ja 0x405c52
cmp word [ebx + 8], 0x20
ja 0x405c52
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.GUIMode
jmp 0x405acf
push 0x4162a0
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405b3d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405acf
push 0x416298
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405b7d
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
je 0x405b63
cmp cx, 0x31
jne 0x405c52
cmp word [ebx + 8], 0x20
ja 0x405c52
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.SelfDelete
jmp 0x405acf
push 0x416290
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405ba2
cmp word [ebx + 6], 0x20
ja 0x405c52
mov byte [ebp + 0x63], 1
jmp 0x405a0b
push 0x416288
push edi
call fcn.00403e39
test eax, eax
pop ecx
pop ecx
je 0x405bde
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c52
cmp cx, 0x39
ja 0x405c52
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
jmp 0x405a0b
mov ax, word [edi]
cmp ax, 0x79
je 0x405bed
cmp ax, 0x59
jne 0x405bfd
cmp word [ebx + 4], 0x20
ja 0x405bfd
mov byte [ebp + 0x65], 1
jmp 0x405a0b
cmp ax, 0x3f
je 0x405c0f
cmp ax, 0x68
je 0x405c0f
cmp ax, 0x48
jne 0x405c1f
cmp word [ebx + 4], 0x20
ja 0x405c1f
mov byte [ebp + 0x64], 1
jmp 0x405a0b
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00404503
test eax, eax
pop ecx
pop ecx
je 0x405c52
cmp eax, 1
je 0x405c69
mov ebx, eax
jmp 0x405a08
add ebx, 4
jmp 0x405c47
cmp ax, cx
ja 0x405c52
inc ebx
inc ebx
mov ax, word [ebx]
test ax, ax
mov dword [ebp + 0x54], ebx
jne 0x405c40
lea eax, [ebp - 0xc]
push eax
call fcn.00404613
and dword [ebp - 0x1c], 0
mov ebx, str.SetEnvironment
jmp 0x405d01
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 0x405c91
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x4055a6
push esi
lea ecx, [ebp - 0x18]
call fcn.00402384
push 0
push 0x3d
lea ecx, [ebp - 0x18]
call fcn.0040252d
test eax, eax
jle 0x405d1a
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.00402334
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040153f
lea eax, [edi + esi + 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401506
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x41a640
call fcn.00402f8d
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.00401ca7
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.00402365
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x405c98
jmp 0x405d23
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.004043c7
xor edi, edi
cmp dword [0x41a270], 0xffffffff
jne 0x405d39
mov dword [0x41a270], edi
cmp byte [ebp + 0x64], 0
je 0x405dbd
push edi
lea eax, [ebp - 0xc]
push str.HelpText
push eax
call fcn.00402365
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x405d61
push 0x18
call fcn.00403cb6
pop ecx
mov esi, eax
lea ecx, [ebp - 0x108]
call fcn.00403de5
push edi
push esi
push dword [0x41a5e0]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.0040752c
lea ecx, [ebp - 0x108]
call fcn.0040408e
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 0x4067d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067d6
cmp byte [ebp + 0x65], 0
je 0x405dca
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.00402365
add esp, 0xc
cmp eax, edi
je 0x405df2
push eax
mov ecx, 0x41a5f8
call fcn.00401506
push 0x41a5f8
call fcn.00403dfe
cmp dword [0x41a668], edi
pop ecx
je 0x405e41
lea eax, [ebp - 0xc]
push eax
call fcn.004084cf
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 0x4067d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067d8
cmp dword [0x41a660], 3
jne 0x405e55
lea eax, [ebp - 0xc]
push eax
call fcn.0040841f
jmp 0x405e0e
mov edi, str.ExecuteFile
mov ebx, str.RunProgram
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push str.BeginPrompt
push eax
call fcn.00402365
add esp, 0xc
cmp eax, esi
je 0x405ea3
cmp byte [ebp + 0x65], 0
jne 0x405ea3
push eax
push dword [0x41a5e0]
call fcn.00407782
test eax, eax
pop ecx
pop ecx
je 0x405fcd
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x405ea3
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x20]
call fcn.004015ee
cmp byte [ebp + 0x67], 0
je 0x405f2f
mov esi, dword [ebp + 0x50]
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.00401506
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.00401606
push 0
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.00402365
add esp, 0xc
test eax, eax
je 0x405fea
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405ef9
cmp ax, 0x39
jbe 0x405eb4
cmp ax, 0x61
jb 0x405f05
cmp ax, 0x7a
jbe 0x405eb4
cmp ax, 0x41
jb 0x405f11
cmp ax, 0x5a
jbe 0x405eb4
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.00401506
mov eax, dword [ebp + 0x50]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x20]
call fcn.00401606
xor esi, esi
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 0
jne 0x405f77
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00402365
add esp, 0xc
test eax, eax
je 0x405f5c
push edi
lea ecx, [ebp + 0x20]
call fcn.00401506
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 1
jne 0x405f77
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402365
add esp, 0xc
test eax, eax
je 0x405f77
push ebx
lea ecx, [ebp + 0x20]
call fcn.00401506
cmp byte [ebp + 0x67], 0
jne 0x406061
cmp byte [ebp + 0x65], 0
jne 0x406061
mov eax, dword [0x41a270]
and ax, 0xc0
cmp al, 0x80
jne 0x406061
push dword [0x41a5d4]
push dword [0x41a5d8]
call fcn.004077fe
test eax, eax
pop ecx
pop ecx
jne 0x406061
cmp byte [0x41a5f4], al
push dword [ebp + 0x20]
je 0x40602d
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405e61
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 0x40604d
push dword [ebp + 0x20]
push 0xe
push 0
call fcn.00407845
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 0x406026
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4055a6
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 0x40605a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4055a6
cmp dword [0x41a5fc], esi
jne 0x406092
lea eax, [ebp + 0x14]
push str.7ZipSfx._03x
push eax
call fcn.004042f0
pop ecx
pop ecx
push eax
mov ecx, 0x41a5f8
call fcn.0040153f
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov byte [ebp + 0x66], 0
jmp 0x4060c8
push 0x41a5f8
lea ecx, [ebp + 0x14]
call fcn.004014d4
lea eax, [ebp + 0x14]
push eax
call fcn.00403dfe
cmp dword [ebp + 0x18], esi
pop ecx
jne 0x4060bc
lea eax, [ebp + 0x14]
push eax
mov ecx, 0x41a5f8
call fcn.0040153f
push dword [ebp + 0x14]
mov byte [ebp + 0x66], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41a5f8]
pop ecx
mov ecx, dword [0x41a5fc]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4060e5
cmp dx, 0x2f
jne 0x4060f0
dec ecx
mov word [eax + ecx*2], si
mov dword [0x41a5fc], ecx
cmp dword [0x41a65c], esi
jne 0x40610a
mov edi, dword [ebp + 0x5c]
push 0x41a5f8
push edi
call fcn.00405216
pop ecx
pop ecx
jmp 0x40611b
call fcn.00407971
test eax, eax
mov edi, dword [ebp + 0x5c]
jne 0x406165
mov eax, 0x80004005
cmp eax, esi
je 0x406165
cmp byte [ebp + 0x66], 0
jne 0x406131
push dword [0x41a5f8]
call fcn.00402c54
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 0x40615e
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 8
jmp 0x4055a6
call fcn.004043c7
cmp byte [ebp + 0x63], 0
je 0x40617a
cmp byte [ebp + 0x66], 0
jne 0x4066eb
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.004015ee
cmp byte [ebp + 0x67], 0
jne 0x40619a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404438
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 + 0x67], 0
mov byte [ebp + 0x5b], 0
call fcn.004015ee
lea ecx, [ebp - 0x30]
call fcn.004015ee
cmp dword [ebp + 0x24], esi
jne 0x406266
cmp byte [ebp + 0x66], 0
jne 0x406545
mov esi, str.setup.exe
push esi
push 0x41543c
lea eax, [ebp - 0x68]
push 0x41a5f8
push eax
call fcn.0040423c
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040423c
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.0040153f
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 0x40655c
mov byte [ebp + 0x5a], 1
push esi
lea ecx, [ebp - 0x30]
call fcn.00401506
lea eax, [ebp - 0x30]
push eax
call fcn.00403e24
mov edi, dword [ebp - 0x30]
pop ecx
xor ebx, ebx
push ebx
push str.hidcon
push edi
call fcn.00403e73
add esp, 0xc
cmp eax, ebx
je 0x4062ec
mov edi, eax
mov byte [ebp + 0x67], 1
jmp 0x406247
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.00402365
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40622f
mov esi, dword [ebp - 0x40]
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x40], esi
jb 0x406296
cmp ax, 0x39
jbe 0x4062b6
cmp ax, 0x61
jb 0x4062a2
cmp ax, 0x7a
jbe 0x4062b6
cmp ax, 0x41
jb 0x4065bc
cmp ax, 0x5a
ja 0x4065bc
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.00401506
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.00401606
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 0x40653e
push ebx
push 0x416208
push edi
call fcn.00403e73
add esp, 0xc
cmp eax, ebx
je 0x40630c
mov edi, eax
mov al, byte [ebp + 0x66]
mov byte [ebp + 0x5b], al
jmp 0x406247
push 2
push 0x416288
push edi
call fcn.00403e73
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x406342
cmp dword [0x41a27c], 0xffffffff
jne 0x40633b
add edi, 4
push edi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
mov edi, esi
jmp 0x406247
push 3
push 0x416200
push edi
call fcn.00403e73
add esp, 0xc
cmp eax, ebx
je 0x406367
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
mov edi, eax
jmp 0x406247
push 3
push 0x4161f8
push edi
call fcn.00403e73
add esp, 0xc
cmp eax, ebx
je 0x406387
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x24], ecx
jmp 0x406360
cmp byte [ebp + 0x64], 0
lea ecx, [ebp + 8]
je 0x4063e3
cmp word [edi], 0x22
je 0x4063b5
mov esi, 0x416070
push esi
call fcn.00401506
push edi
lea ecx, [ebp + 8]
call fcn.004023d5
push esi
lea ecx, [ebp + 8]
call fcn.004023d5
jmp 0x4063bb
push edi
call fcn.00401506
push ebx
lea eax, [ebp - 0xc]
push str.ExecuteParameters
push eax
call fcn.00402365
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4063f5
push 0x4161f4
lea ecx, [ebp + 8]
call fcn.004023d5
push esi
jmp 0x4063ed
lea eax, [ebp - 0x18]
push eax
call fcn.0040153f
push edi
lea ecx, [ebp + 8]
call fcn.004023d5
lea ecx, [ebp + 0x14]
call fcn.004015ee
lea ecx, [ebp - 0x3c]
call fcn.004015ee
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xb0]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x41a5f8]
add esp, 0xc
cmp byte [ebp + 0x67], 0
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], 0x740
mov dword [ebp - 0x94], 1
je 0x406454
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.0040448e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401506
mov edi, dword [ebp + 0x54]
xor esi, esi
cmp word [edi], si
je 0x406498
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.00401606
push edi
lea ecx, [ebp - 0x3c]
call fcn.004023d5
cmp word [edi], si
je 0x406498
inc edi
inc edi
cmp word [edi], si
jne 0x40648e
mov dword [ebp + 0x54], edi
lea eax, [ebp + 0x14]
push eax
call fcn.00403e24
lea eax, [ebp - 0x3c]
push eax
call fcn.00403e24
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
je 0x4064c3
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
cmp dword [0x41a660], esi
jne 0x4064fa
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4065d3
cmp byte [ebp + 0x5b], 0
jne 0x4064f1
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 0x406659
cmp byte [ebp + 0x5a], 0
jne 0x406659
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 0x4061a4
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 0x40667f
push dword [0x41a5f8]
call fcn.00402c54
push 0xf
push 0
call fcn.00407845
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 0x4065b5
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 7
jmp 0x4055a6
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 0x40667d
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.00407845
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4065fc
push dword [0x41a5f8]
call fcn.00402c54
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 0x406652
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4055a6
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 [0x41a660], esi
jne 0x4066e2
call fcn.004043c7
push dword [ebp - 0x44]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Shortcut
push eax
push 0x40512a
call fcn.00404888
add esp, 0x14
push dword [0x41a604]
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 0x404840
call fcn.00404888
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4066e2
push dword [0x41a5f8]
call fcn.00402c54
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41a27c], 0xffffffff
jne 0x406704
cmp byte [ebp + 0x65], 0
jne 0x406763
mov dword [0x41a27c], 1
cmp dword [0x41a27c], esi
jle 0x406763
push 0
lea eax, [ebp - 0xc]
push str.FinishMessage
push eax
call fcn.00402365
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406763
mov eax, 0x3e7
cmp dword [0x41a27c], eax
jle 0x406737
mov dword [0x41a27c], eax
lea ecx, [ebp - 0x110]
call fcn.00404296
push 0
push esi
push dword [0x41a5e0]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.0040752c
lea ecx, [ebp - 0x110]
call fcn.0040410f
cmp byte [ebp + 0x63], 0
jne 0x4067a9
cmp dword [0x41a660], 0
jne 0x4067a9
push 0
lea eax, [ebp - 0xc]
push str.SelfDelete
push eax
call fcn.00402365
add esp, 0xc
test eax, eax
je 0x4067a9
cmp word [eax], 0x31
jne 0x4067a9
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x41a634
call fcn.004014d4
call fcn.004049e3
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 0x4067d6
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.004040ae
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 0x406819
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
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