Function at 0x4053ab
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 0x4067fb
cmp dword [ebp - 0x254], 2
jne 0x4067fb
cmp dword [ebp - 0x260], 5
jb 0x4067fb
call fcn.00404e24
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.004015ee
lea ecx, [ebp - 0xbc]
call fcn.004015ee
lea ecx, [ebp - 0xc]
call fcn.0040408a
push 0x20
lea ecx, [ebp - 0x5c]
call fcn.0040414b
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404478
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004023cc
lea eax, [ebp - 0x5c]
push eax
call fcn.004029ec
mov ebx, dword [ebp - 0x5c]
add ebx, 2
mov dword [esp], str.sfxversion
push ebx
call fcn.0040400c
test eax, eax
pop ecx
pop ecx
je 0x40551c
lea ecx, [ebp - 0x150]
mov dword [0x41a270], 8
call fcn.00404078
push 1
call fcn.00403cad
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.0040237b
xor esi, esi
cmp dword [0x41a770], esi
jbe 0x4054eb
test esi, esi
je 0x4054d0
push 0x416314
lea ecx, [ebp + 0x14]
call fcn.004023cc
mov eax, dword [esi*4 + 0x41a670]
push dword [eax + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004023cc
inc esi
cmp esi, dword [0x41a770]
jb 0x4054bf
push 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x150]
push dword [0x41a5e0]
push 0x11
call fcn.00407525
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x150]
call fcn.00403ddc
jmp 0x4067cf
mov esi, 0x208
cmp dword [0x41a63c], esi
mov edi, 0x41a634
jg 0x405536
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 0x40555b
xor esi, esi
inc esi
push 6
push esi
call fcn.0040783e
pop ecx
pop ecx
jmp 0x4067d1
mov ecx, edi
call fcn.004023b4
push str.sfxtest
push ebx
call fcn.0040400c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4056d2
cmp word [esi], 0x3a
je 0x405587
push 0x64
pop esi
jmp 0x4067d1
mov cx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405658
sub eax, ebx
je 0x405644
dec eax
je 0x4055c5
sub eax, ebx
je 0x4055bb
sub eax, 0x10
jne 0x40557f
mov esi, 0x45dd
jmp 0x4067d1
mov esi, 0x2033
jmp 0x4067d1
cmp cx, 0x44
jne 0x405603
cmp word [esi + 4], 0x3a
jne 0x40557f
add esi, 6
jmp 0x4055ea
cmp ax, 0x3a
je 0x4055f5
push eax
mov ecx, 0x41a664
call fcn.00401606
add esi, ebx
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
ja 0x4055d7
cmp dword [0x41a668], 0
jne 0x405606
jmp 0x40557f
add esi, 4
and dword [0x41a65c], 0
cmp word [esi], 0x3a
jne 0x40562e
lea eax, [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a65c], eax
ja 0x40562e
test eax, eax
jne 0x405638
mov dword [0x41a65c], 0xa
mov dword [0x41a660], 1
jmp 0x405662
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a660], eax
jmp 0x405662
mov dword [0x41a660], ebx
jmp 0x405662
add esi, ebx
cmp word [esi], 0x20
ja 0x405660
jmp 0x405672
cmp ax, 0x20
ja 0x40567a
add esi, ebx
mov ax, word [esi]
test ax, ax
jne 0x40566a
push str.sfxconfig
push esi
mov ebx, esi
call fcn.0040400c
test eax, eax
pop ecx
pop ecx
je 0x4056d2
cmp word [eax], 0x3a
jne 0x40569d
jmp 0x40569b
cmp cx, 0x20
ja 0x4056a5
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x405695
mov ecx, dword [ebp - 0x50]
and word [ecx], 0
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00404478
cmp dword [0x41a660], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4056d2
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.00402d21
test eax, eax
pop ecx
jl 0x40578a
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.00402402
test eax, eax
jle 0x405755
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.00403cad
pop ecx
push eax
mov ecx, esi
call fcn.004023cc
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 0x4057a3
mov ecx, eax
call fcn.00404976
mov edi, eax
jmp 0x4057a5
xor edi, edi
push edi
lea ecx, [ebp + 0x5c]
call fcn.0040986c
push dword [0x41a634]
mov ecx, edi
call fcn.0040e7af
test al, al
jne 0x4057ec
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.0040783e
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x4057e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405581
lea ecx, [ebp + 0x44]
call fcn.0040242d
lea ecx, [ebp + 0x2c]
call fcn.0040242d
lea ecx, [ebp + 0x38]
call fcn.0040242d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.004052e8
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040276d
add esp, 0x1c
test al, al
jne 0x4058e0
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.004052e8
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040276d
add esp, 0x1c
test al, al
jne 0x4058e0
call fcn.00401daf
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.004052e8
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040276d
add esp, 0x1c
test al, al
jne 0x4058e0
lea eax, [ebp + 0x44]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.0040276d
add esp, 0x10
test al, al
jne 0x4058e0
push 9
push esi
call fcn.0040783e
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 0x4058d9
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405581
cmp dword [0x41a660], esi
jne 0x40595b
push str.sfxconfig
push ebx
call fcn.0040400c
cmp eax, esi
pop ecx
pop ecx
je 0x40595b
cmp word [eax], 0x3a
jne 0x405901
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
je 0x4059b2
cmp cx, 0x20
ja 0x40591d
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
jne 0x40590d
cmp word [eax], si
je 0x4059b2
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.004051b1
test al, al
pop ecx
pop ecx
jne 0x4059b2
push 0xa
push esi
call fcn.0040783e
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 0x405998
lea ecx, [ebp - 0xc]
call fcn.0040f4ee
cmp dword [ebp + 0x48], esi
je 0x4059a9
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004030c8
add esp, 0xc
test al, al
jne 0x4059a9
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 0x4059a2
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405581
cmp dword [0x41a660], 4
jne 0x4059d4
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 0x4067c7
lea eax, [ebp - 0xc]
push eax
call fcn.004045fd
pop ecx
dec ebx
push 0x30
dec ebx
pop esi
mov dword [ebp + 0x54], ebx
push 0x20
pop ecx
cmp word [ebx], cx
jbe 0x405a01
inc ebx
inc ebx
cmp word [ebx], cx
ja 0x4059ee
jmp 0x4059fe
cmp ax, cx
ja 0x405a09
inc ebx
inc ebx
mov dword [ebp + 0x54], ebx
mov ax, word [ebx]
test ax, ax
jne 0x4059f7
mov ax, word [ebx]
cmp ax, 0x2f
je 0x405a1c
cmp ax, 0x2d
jne 0x405c2d
lea edi, [ebx + 2]
cmp word [edi], 0x21
jne 0x405a2f
cmp word [ebx + 4], cx
jbe 0x405c16
push 0x4162e8
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405a8c
lea ecx, [ebx + 6]
mov ax, word [ecx]
cmp ax, si
jb 0x405a51
cmp ax, 0x39
jbe 0x405a69
cmp ax, 0x61
jb 0x405a5d
cmp ax, 0x7a
jbe 0x405a69
cmp ax, 0x41
jb 0x405a6e
cmp ax, 0x5a
ja 0x405a6e
mov dword [ebp + 0x50], ecx
jmp 0x405a7f
cmp ax, 0x20
ja 0x405c2d
mov dword [ebp + 0x50], 0x416094
mov byte [ebp + 0x65], 1
mov byte [ebp + 0x67], 1
jmp 0x4059e6
push 0x4162e0
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405ab7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
call fcn.004047b4
add esp, 0xc
jmp 0x4059e6
push 0x4162d8
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405af8
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c2d
cmp cx, 0x32
ja 0x405c2d
cmp word [ebx + 8], 0x20
ja 0x405c2d
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.GUIMode
jmp 0x405aaa
push 0x4162d0
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405b18
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405aaa
push 0x4162c8
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405b58
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
je 0x405b3e
cmp cx, 0x31
jne 0x405c2d
cmp word [ebx + 8], 0x20
ja 0x405c2d
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.SelfDelete
jmp 0x405aaa
push 0x4162c0
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405b7d
cmp word [ebx + 6], 0x20
ja 0x405c2d
mov byte [ebp + 0x63], 1
jmp 0x4059e6
push 0x4162b8
push edi
call fcn.00403e35
test eax, eax
pop ecx
pop ecx
je 0x405bb9
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c2d
cmp cx, 0x39
ja 0x405c2d
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
jmp 0x4059e6
mov ax, word [edi]
cmp ax, 0x79
je 0x405bc8
cmp ax, 0x59
jne 0x405bd8
cmp word [ebx + 4], 0x20
ja 0x405bd8
mov byte [ebp + 0x65], 1
jmp 0x4059e6
cmp ax, 0x3f
je 0x405bea
cmp ax, 0x68
je 0x405bea
cmp ax, 0x48
jne 0x405bfa
cmp word [ebx + 4], 0x20
ja 0x405bfa
mov byte [ebp + 0x64], 1
jmp 0x4059e6
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004044ed
test eax, eax
pop ecx
pop ecx
je 0x405c2d
cmp eax, 1
je 0x405c44
mov ebx, eax
jmp 0x4059e3
add ebx, 4
jmp 0x405c22
cmp ax, cx
ja 0x405c2d
inc ebx
inc ebx
mov ax, word [ebx]
test ax, ax
mov dword [ebp + 0x54], ebx
jne 0x405c1b
lea eax, [ebp - 0xc]
push eax
call fcn.004045fd
and dword [ebp - 0x1c], 0
mov ebx, str.SetEnvironment
jmp 0x405cdc
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 0x405c6c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x405581
push esi
lea ecx, [ebp - 0x18]
call fcn.0040237b
push 0
push 0x3d
lea ecx, [ebp - 0x18]
call fcn.00402524
test eax, eax
jle 0x405cf5
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.0040232b
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.00402f84
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.0040235c
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x405c73
jmp 0x405cfe
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.004043b1
xor edi, edi
cmp dword [0x41a270], 0xffffffff
jne 0x405d14
mov dword [0x41a270], edi
cmp byte [ebp + 0x64], 0
je 0x405d98
push edi
lea eax, [ebp - 0xc]
push 0x415ef0
push eax
call fcn.0040235c
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x405d3c
push 0x18
call fcn.00403cad
pop ecx
mov esi, eax
lea ecx, [ebp - 0x108]
call fcn.00403de1
push edi
push esi
push dword [0x41a5e0]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.00407525
lea ecx, [ebp - 0x108]
call fcn.00403ddc
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 0x4067cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067cf
cmp byte [ebp + 0x65], 0
je 0x405da5
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.0040235c
add esp, 0xc
cmp eax, edi
je 0x405dcd
push eax
mov ecx, 0x41a5f8
call fcn.00401506
push 0x41a5f8
call fcn.00403dfa
cmp dword [0x41a668], edi
pop ecx
je 0x405e1c
lea eax, [ebp - 0xc]
push eax
call fcn.004084c8
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 0x4067d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067d1
cmp dword [0x41a660], 3
jne 0x405e30
lea eax, [ebp - 0xc]
push eax
call fcn.00408418
jmp 0x405de9
mov edi, str.ExecuteFile
mov ebx, str.RunProgram
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push 0x416020
push eax
call fcn.0040235c
add esp, 0xc
cmp eax, esi
je 0x405e7e
cmp byte [ebp + 0x65], 0
jne 0x405e7e
push eax
push dword [0x41a5e0]
call fcn.0040777b
test eax, eax
pop ecx
pop ecx
je 0x405fa8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x405e7e
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x20]
call fcn.004015ee
cmp byte [ebp + 0x67], 0
je 0x405f0a
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.0040235c
add esp, 0xc
test eax, eax
je 0x405fc5
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405ed4
cmp ax, 0x39
jbe 0x405e8f
cmp ax, 0x61
jb 0x405ee0
cmp ax, 0x7a
jbe 0x405e8f
cmp ax, 0x41
jb 0x405eec
cmp ax, 0x5a
jbe 0x405e8f
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 0x405f52
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040235c
add esp, 0xc
test eax, eax
je 0x405f37
push edi
lea ecx, [ebp + 0x20]
call fcn.00401506
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 1
jne 0x405f52
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040235c
add esp, 0xc
test eax, eax
je 0x405f52
push ebx
lea ecx, [ebp + 0x20]
call fcn.00401506
cmp byte [ebp + 0x67], 0
jne 0x40603c
cmp byte [ebp + 0x65], 0
jne 0x40603c
mov eax, dword [0x41a270]
and ax, 0xc0
cmp al, 0x80
jne 0x40603c
push dword [0x41a5d4]
push dword [0x41a5d8]
call fcn.004077f7
test eax, eax
pop ecx
pop ecx
jne 0x40603c
cmp byte [0x41a5f4], al
push dword [ebp + 0x20]
je 0x406008
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405e3c
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 0x406028
push dword [ebp + 0x20]
push 0xe
push 0
call fcn.0040783e
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 0x406001
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405581
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 0x406035
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405581
cmp dword [0x41a5fc], esi
jne 0x40606d
lea eax, [ebp + 0x14]
push str.7ZipSfx._03x
push eax
call fcn.004042da
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 0x4060a3
push 0x41a5f8
lea ecx, [ebp + 0x14]
call fcn.004014d4
lea eax, [ebp + 0x14]
push eax
call fcn.00403dfa
cmp dword [ebp + 0x18], esi
pop ecx
jne 0x406097
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 0x4060c0
cmp dx, 0x2f
jne 0x4060cb
dec ecx
mov word [eax + ecx*2], si
mov dword [0x41a5fc], ecx
cmp dword [0x41a65c], esi
jne 0x4060e5
mov edi, dword [ebp + 0x5c]
push 0x41a5f8
push edi
call fcn.004050ba
pop ecx
pop ecx
jmp 0x4060f6
call fcn.0040796a
test eax, eax
mov edi, dword [ebp + 0x5c]
jne 0x406140
mov eax, 0x80004005
cmp eax, esi
je 0x406140
cmp byte [ebp + 0x66], 0
jne 0x40610c
push dword [0x41a5f8]
call fcn.00402c4b
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 0x406139
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 8
jmp 0x405581
call fcn.004043b1
cmp byte [ebp + 0x63], 0
je 0x406155
cmp byte [ebp + 0x66], 0
jne 0x4066e4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.004015ee
cmp byte [ebp + 0x67], 0
jne 0x406175
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404422
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.004015ee
lea ecx, [ebp - 0x30]
call fcn.004015ee
cmp dword [ebp + 0x24], esi
jne 0x406241
cmp byte [ebp + 0x66], 0
jne 0x40653e
mov esi, str.setup.exe
push esi
push 0x415444
lea eax, [ebp - 0x68]
push 0x41a5f8
push eax
call fcn.00404226
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00404226
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 0x406555
mov byte [ebp + 0x5a], 1
push esi
lea ecx, [ebp - 0x30]
call fcn.00401506
lea eax, [ebp - 0x30]
push eax
call fcn.00403e20
mov edi, dword [ebp - 0x30]
pop ecx
xor ebx, ebx
push ebx
push str.hidcon
push edi
call fcn.00403e6f
add esp, 0xc
cmp eax, ebx
je 0x4062c7
mov edi, eax
mov byte [ebp + 0x5b], 1
jmp 0x406222
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0040235c
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40620a
mov esi, dword [ebp - 0x40]
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x40], esi
jb 0x406271
cmp ax, 0x39
jbe 0x406291
cmp ax, 0x61
jb 0x40627d
cmp ax, 0x7a
jbe 0x406291
cmp ax, 0x41
jb 0x4065b5
cmp ax, 0x5a
ja 0x4065b5
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 0x406537
push ebx
push str.nowait
push edi
call fcn.00403e6f
add esp, 0xc
cmp eax, ebx
je 0x4062e7
mov edi, eax
mov al, byte [ebp + 0x66]
mov byte [ebp + 0x67], al
jmp 0x406222
push ebx
push 0x416220
push edi
call fcn.00403e6f
add esp, 0xc
cmp eax, ebx
je 0x406305
mov edi, eax
mov byte [ebp + 0x67], 1
jmp 0x406222
push 2
push 0x4162b8
push edi
call fcn.00403e6f
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40633b
cmp dword [0x41a27c], 0xffffffff
jne 0x406334
add edi, 4
push edi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
mov edi, esi
jmp 0x406222
push 3
push 0x416218
push edi
call fcn.00403e6f
add esp, 0xc
cmp eax, ebx
je 0x406360
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
mov edi, eax
jmp 0x406222
push 3
push 0x416210
push edi
call fcn.00403e6f
add esp, 0xc
cmp eax, ebx
je 0x406380
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x24], ecx
jmp 0x406359
cmp byte [ebp + 0x64], 0
lea ecx, [ebp + 8]
je 0x4063dc
cmp word [edi], 0x22
je 0x4063ae
mov esi, 0x416088
push esi
call fcn.00401506
push edi
lea ecx, [ebp + 8]
call fcn.004023cc
push esi
lea ecx, [ebp + 8]
call fcn.004023cc
jmp 0x4063b4
push edi
call fcn.00401506
push ebx
lea eax, [ebp - 0xc]
push str.ExecuteParameters
push eax
call fcn.0040235c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4063ee
push 0x41620c
lea ecx, [ebp + 8]
call fcn.004023cc
push esi
jmp 0x4063e6
lea eax, [ebp - 0x18]
push eax
call fcn.0040153f
push edi
lea ecx, [ebp + 8]
call fcn.004023cc
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 + 0x5b], 0
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], 0x740
mov dword [ebp - 0x94], 1
je 0x40644d
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.00404478
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 0x406491
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.00401606
push edi
lea ecx, [ebp - 0x3c]
call fcn.004023cc
cmp word [edi], si
je 0x406491
inc edi
inc edi
cmp word [edi], si
jne 0x406487
mov dword [ebp + 0x54], edi
lea eax, [ebp + 0x14]
push eax
call fcn.00403e20
lea eax, [ebp - 0x3c]
push eax
call fcn.00403e20
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
je 0x4064bc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
cmp dword [0x41a660], esi
jne 0x4064f3
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4065cc
cmp byte [ebp + 0x67], 0
jne 0x4064ea
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 0x406652
cmp byte [ebp + 0x5a], 0
jne 0x406652
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 0x40617f
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 0x406678
push dword [0x41a5f8]
call fcn.00402c4b
push 0xf
push 0
call fcn.0040783e
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 0x4065ae
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 7
jmp 0x405581
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 0x406676
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.0040783e
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4065f5
push dword [0x41a5f8]
call fcn.00402c4b
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 0x40664b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405581
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 0x4066db
call fcn.004043b1
push dword [ebp - 0x44]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Shortcut
push eax
push 0x404fce
call fcn.00404872
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 0x40482a
call fcn.00404872
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4066db
push dword [0x41a5f8]
call fcn.00402c4b
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41a27c], 0xffffffff
jne 0x4066fd
cmp byte [ebp + 0x65], 0
jne 0x40675c
mov dword [0x41a27c], 1
cmp dword [0x41a27c], esi
jle 0x40675c
push 0
lea eax, [ebp - 0xc]
push 0x415e78
push eax
call fcn.0040235c
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40675c
mov eax, 0x3e7
cmp dword [0x41a27c], eax
jle 0x406730
mov dword [0x41a27c], eax
lea ecx, [ebp - 0x110]
call fcn.00404280
push 0
push esi
push dword [0x41a5e0]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.00407525
lea ecx, [ebp - 0x110]
call fcn.004040f9
cmp byte [ebp + 0x63], 0
jne 0x4067a2
cmp dword [0x41a660], 0
jne 0x4067a2
push 0
lea eax, [ebp - 0xc]
push str.SelfDelete
push eax
call fcn.0040235c
add esp, 0xc
test eax, eax
je 0x4067a2
cmp word [eax], 0x31
jne 0x4067a2
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x41a634
call fcn.004014d4
call fcn.00404aa9
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 0x4067cf
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.004040a5
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 0x406812
push 0x10
push 0x4161dc
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