Function at 0x40541b
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.00401e42
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40684d
cmp dword [ebp - 0x254], 2
jne 0x40684d
cmp dword [ebp - 0x260], 5
jb 0x40684d
call fcn.00404d98
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], 0x41908c
mov byte [ebp + 0x65], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x63], 0
mov byte [ebp + 0x64], 0
call fcn.00401629
lea ecx, [ebp - 0xbc]
call fcn.00401629
lea ecx, [ebp - 0xc]
call fcn.004040e7
push 0x20
lea ecx, [ebp - 0x5c]
call fcn.004041a8
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004044d5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402429
lea eax, [ebp - 0x5c]
push eax
call fcn.00402a49
mov ebx, dword [ebp - 0x5c]
add ebx, 2
mov dword [esp], str.sfxversion
push ebx
call fcn.00404069
test eax, eax
pop ecx
pop ecx
je 0x40558c
lea ecx, [ebp - 0x150]
mov dword [0x41d270], 8
call fcn.004040d5
push 1
call fcn.00403d0a
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.004023d8
xor esi, esi
cmp dword [0x41d7b8], esi
jbe 0x40555b
test esi, esi
je 0x405540
push 0x419300
lea ecx, [ebp + 0x14]
call fcn.00402429
mov eax, dword [esi*4 + 0x41d6b8]
push dword [eax + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00402429
inc esi
cmp esi, dword [0x41d7b8]
jb 0x40552f
push 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x150]
push dword [0x41d620]
push 0x11
call fcn.00407577
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x150]
call fcn.00403e39
jmp 0x406821
mov esi, 0x208
cmp dword [0x41d67c], esi
mov edi, 0x41d674
jg 0x4055a6
push esi
mov ecx, edi
call fcn.00401411
push esi
push dword [0x41d674]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4055cb
xor esi, esi
inc esi
push 6
push esi
call fcn.00407890
pop ecx
pop ecx
jmp 0x406823
mov ecx, edi
call fcn.00402411
push str.sfxtest
push ebx
call fcn.00404069
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x405742
cmp word [esi], 0x3a
je 0x4055f7
push 0x64
pop esi
jmp 0x406823
mov cx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x4056c8
sub eax, ebx
je 0x4056b4
dec eax
je 0x405635
sub eax, ebx
je 0x40562b
sub eax, 0x10
jne 0x4055ef
mov esi, 0x451b
jmp 0x406823
mov esi, 0x203f
jmp 0x406823
cmp cx, 0x44
jne 0x405673
cmp word [esi + 4], 0x3a
jne 0x4055ef
add esi, 6
jmp 0x40565a
cmp ax, 0x3a
je 0x405665
push eax
mov ecx, 0x41d6a4
call fcn.00401641
add esi, ebx
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
ja 0x405647
cmp dword [0x41d6a8], 0
jne 0x405676
jmp 0x4055ef
add esi, 4
and dword [0x41d69c], 0
cmp word [esi], 0x3a
jne 0x40569e
lea eax, [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41d69c], eax
ja 0x40569e
test eax, eax
jne 0x4056a8
mov dword [0x41d69c], 0xa
mov dword [0x41d6a0], 1
jmp 0x4056d2
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41d6a0], eax
jmp 0x4056d2
mov dword [0x41d6a0], ebx
jmp 0x4056d2
add esi, ebx
cmp word [esi], 0x20
ja 0x4056d0
jmp 0x4056e2
cmp ax, 0x20
ja 0x4056ea
add esi, ebx
mov ax, word [esi]
test ax, ax
jne 0x4056da
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404069
test eax, eax
pop ecx
pop ecx
je 0x405742
cmp word [eax], 0x3a
jne 0x40570d
jmp 0x40570b
cmp cx, 0x20
ja 0x405715
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x405705
mov ecx, dword [ebp - 0x50]
and word [ecx], 0
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.004044d5
cmp dword [0x41d6a0], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405742
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.0040157a
mov edi, 0x41d674
push edi
mov ecx, 0x41d644
call fcn.0040157a
mov esi, 0x41d650
push edi
mov ecx, esi
call fcn.0040157a
push edi
call fcn.00402d7e
test eax, eax
pop ecx
jl 0x4057fa
mov ecx, dword [0x41d644]
lea edi, [eax + eax]
and word [edi + ecx], 0
mov dword [0x41d648], eax
mov eax, dword [0x41d674]
lea eax, [edi + eax + 2]
push eax
mov ecx, esi
call fcn.00401541
mov eax, dword [0x41d674]
lea eax, [edi + eax + 2]
mov edi, 0x41d668
push eax
mov ecx, edi
call fcn.00401541
push 0x2e
mov ecx, edi
call fcn.0040245f
test eax, eax
jle 0x4057c5
mov ecx, dword [0x41d668]
and word [ecx + eax*2], 0
mov dword [0x41d66c], eax
mov esi, 0x41d65c
push 0x41d668
mov ecx, esi
call fcn.0040157a
push 4
call fcn.00403d0a
pop ecx
push eax
mov ecx, esi
call fcn.00402429
mov eax, dword [0x41d668]
mov dword [0x41d620], eax
mov eax, dword [0x41d65c]
mov dword [0x41d624], eax
push 0x10
xor esi, esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405813
mov ecx, eax
call fcn.00404ecc
mov edi, eax
jmp 0x405815
xor edi, edi
push edi
lea ecx, [ebp + 0x5c]
call fcn.00409831
push dword [0x41d674]
mov ecx, edi
call fcn.0040e7ee
test al, al
jne 0x40585c
sub esp, 0xc
mov edi, esp
mov esi, 0x41d674
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.00407890
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x405855
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4055f1
lea ecx, [ebp + 0x44]
call fcn.0040248a
lea ecx, [ebp + 0x2c]
call fcn.0040248a
lea ecx, [ebp + 0x38]
call fcn.0040248a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.00405358
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.004027ca
add esp, 0x1c
test al, al
jne 0x405950
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.00405358
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.004027ca
add esp, 0x1c
test al, al
jne 0x405950
call fcn.00401e03
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.00405358
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.004027ca
add esp, 0x1c
test al, al
jne 0x405950
lea eax, [ebp + 0x44]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.004027ca
add esp, 0x10
test al, al
jne 0x405950
push 9
push esi
call fcn.00407890
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 0x405949
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x4055f1
cmp dword [0x41d6a0], esi
jne 0x4059cb
push str.sfxconfig
push ebx
call fcn.00404069
cmp eax, esi
pop ecx
pop ecx
je 0x4059cb
cmp word [eax], 0x3a
jne 0x405971
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
je 0x405a22
cmp cx, 0x20
ja 0x40598d
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
jne 0x40597d
cmp word [eax], si
je 0x405a22
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.00404fbd
test al, al
pop ecx
pop ecx
jne 0x405a22
push 0xa
push esi
call fcn.00407890
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 0x405a08
lea ecx, [ebp - 0xc]
call fcn.0040f500
cmp dword [ebp + 0x48], esi
je 0x405a19
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.00403125
add esp, 0xc
test al, al
jne 0x405a19
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 0x405a12
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x4055f1
cmp dword [0x41d6a0], 4
jne 0x405a44
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 0x406819
lea eax, [ebp - 0xc]
push eax
call fcn.0040465a
pop ecx
dec ebx
push 0x30
dec ebx
pop esi
mov dword [ebp + 0x54], ebx
push 0x20
pop ecx
cmp word [ebx], cx
jbe 0x405a71
inc ebx
inc ebx
cmp word [ebx], cx
ja 0x405a5e
jmp 0x405a6e
cmp ax, cx
ja 0x405a79
inc ebx
inc ebx
mov dword [ebp + 0x54], ebx
mov ax, word [ebx]
test ax, ax
jne 0x405a67
mov ax, word [ebx]
cmp ax, 0x2f
je 0x405a8c
cmp ax, 0x2d
jne 0x405c9d
lea edi, [ebx + 2]
cmp word [edi], 0x21
jne 0x405a9f
cmp word [ebx + 4], cx
jbe 0x405c86
push 0x4192d4
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405afc
lea ecx, [ebx + 6]
mov ax, word [ecx]
cmp ax, si
jb 0x405ac1
cmp ax, 0x39
jbe 0x405ad9
cmp ax, 0x61
jb 0x405acd
cmp ax, 0x7a
jbe 0x405ad9
cmp ax, 0x41
jb 0x405ade
cmp ax, 0x5a
ja 0x405ade
mov dword [ebp + 0x50], ecx
jmp 0x405aef
cmp ax, 0x20
ja 0x405c9d
mov dword [ebp + 0x50], 0x41908c
mov byte [ebp + 0x65], 1
mov byte [ebp + 0x67], 1
jmp 0x405a56
push 0x4192cc
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405b27
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
call fcn.00404811
add esp, 0xc
jmp 0x405a56
push 0x4192c4
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405b68
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c9d
cmp cx, 0x32
ja 0x405c9d
cmp word [ebx + 8], 0x20
ja 0x405c9d
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.GUIMode
jmp 0x405b1a
push 0x4192bc
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405b88
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405b1a
push 0x4192b4
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405bc8
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
je 0x405bae
cmp cx, 0x31
jne 0x405c9d
cmp word [ebx + 8], 0x20
ja 0x405c9d
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.SelfDelete
jmp 0x405b1a
push 0x4192ac
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405bed
cmp word [ebx + 6], 0x20
ja 0x405c9d
mov byte [ebp + 0x63], 1
jmp 0x405a56
push 0x4192a4
push edi
call fcn.00403e92
test eax, eax
pop ecx
pop ecx
je 0x405c29
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c9d
cmp cx, 0x39
ja 0x405c9d
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41d27c], eax
jmp 0x405a56
mov ax, word [edi]
cmp ax, 0x79
je 0x405c38
cmp ax, 0x59
jne 0x405c48
cmp word [ebx + 4], 0x20
ja 0x405c48
mov byte [ebp + 0x65], 1
jmp 0x405a56
cmp ax, 0x3f
je 0x405c5a
cmp ax, 0x68
je 0x405c5a
cmp ax, 0x48
jne 0x405c6a
cmp word [ebx + 4], 0x20
ja 0x405c6a
mov byte [ebp + 0x64], 1
jmp 0x405a56
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040454a
test eax, eax
pop ecx
pop ecx
je 0x405c9d
cmp eax, 1
je 0x405cb4
mov ebx, eax
jmp 0x405a53
add ebx, 4
jmp 0x405c92
cmp ax, cx
ja 0x405c9d
inc ebx
inc ebx
mov ax, word [ebx]
test ax, ax
mov dword [ebp + 0x54], ebx
jne 0x405c8b
lea eax, [ebp - 0xc]
push eax
call fcn.0040465a
and dword [ebp - 0x1c], 0
mov ebx, str.SetEnvironment
jmp 0x405d4c
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 0x405cdc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x4055f1
push esi
lea ecx, [ebp - 0x18]
call fcn.004023d8
push 0
push 0x3d
lea ecx, [ebp - 0x18]
call fcn.00402581
test eax, eax
jle 0x405d65
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.00402388
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040157a
lea eax, [edi + esi + 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401541
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x41d680
call fcn.00402fe1
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.00401ce2
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.004023b9
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x405ce3
jmp 0x405d6e
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.0040440e
xor edi, edi
cmp dword [0x41d270], 0xffffffff
jne 0x405d84
mov dword [0x41d270], edi
cmp byte [ebp + 0x64], 0
je 0x405e08
push edi
lea eax, [ebp - 0xc]
push str.HelpText
push eax
call fcn.004023b9
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x405dac
push 0x18
call fcn.00403d0a
pop ecx
mov esi, eax
lea ecx, [ebp - 0x108]
call fcn.00403e3e
push edi
push esi
push dword [0x41d620]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.00407577
lea ecx, [ebp - 0x108]
call fcn.00403e39
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 0x406821
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406821
cmp byte [ebp + 0x65], 0
je 0x405e15
and byte [0x41d271], 0xfe
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
lea eax, [ebp - 0xc]
push str.InstallPath
push eax
call fcn.004023b9
add esp, 0xc
cmp eax, edi
je 0x405e3d
push eax
mov ecx, 0x41d638
call fcn.00401541
push 0x41d638
call fcn.00403e57
cmp dword [0x41d6a8], edi
pop ecx
je 0x405e8c
lea eax, [ebp - 0xc]
push eax
call fcn.0040851a
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 0x406823
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406823
cmp dword [0x41d6a0], 3
jne 0x405ea0
lea eax, [ebp - 0xc]
push eax
call fcn.0040846a
jmp 0x405e59
mov edi, str.ExecuteFile
mov ebx, str.RunProgram
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push str.BeginPrompt
push eax
call fcn.004023b9
add esp, 0xc
cmp eax, esi
je 0x405eee
cmp byte [ebp + 0x65], 0
jne 0x405eee
push eax
push dword [0x41d620]
call fcn.004077cd
test eax, eax
pop ecx
pop ecx
je 0x406018
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x405eee
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x20]
call fcn.00401629
cmp byte [ebp + 0x67], 0
je 0x405f7a
mov esi, dword [ebp + 0x50]
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.00401541
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.00401641
push 0
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.004023b9
add esp, 0xc
test eax, eax
je 0x406035
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405f44
cmp ax, 0x39
jbe 0x405eff
cmp ax, 0x61
jb 0x405f50
cmp ax, 0x7a
jbe 0x405eff
cmp ax, 0x41
jb 0x405f5c
cmp ax, 0x5a
jbe 0x405eff
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.00401541
mov eax, dword [ebp + 0x50]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x20]
call fcn.00401641
xor esi, esi
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 0
jne 0x405fc2
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.004023b9
add esp, 0xc
test eax, eax
je 0x405fa7
push edi
lea ecx, [ebp + 0x20]
call fcn.00401541
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 1
jne 0x405fc2
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004023b9
add esp, 0xc
test eax, eax
je 0x405fc2
push ebx
lea ecx, [ebp + 0x20]
call fcn.00401541
cmp byte [ebp + 0x67], 0
jne 0x4060ac
cmp byte [ebp + 0x65], 0
jne 0x4060ac
mov eax, dword [0x41d270]
and ax, 0xc0
cmp al, 0x80
jne 0x4060ac
push dword [0x41d614]
push dword [0x41d618]
call fcn.00407849
test eax, eax
pop ecx
pop ecx
jne 0x4060ac
cmp byte [0x41d634], al
push dword [ebp + 0x20]
je 0x406078
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405eac
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 0x406098
push dword [ebp + 0x20]
push 0xe
push 0
call fcn.00407890
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 0x406071
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4055f1
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 0x4060a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4055f1
cmp dword [0x41d63c], esi
jne 0x4060dd
lea eax, [ebp + 0x14]
push str.7ZipSfx._03x
push eax
call fcn.00404337
pop ecx
pop ecx
push eax
mov ecx, 0x41d638
call fcn.0040157a
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov byte [ebp + 0x66], 0
jmp 0x406113
push 0x41d638
lea ecx, [ebp + 0x14]
call fcn.0040150f
lea eax, [ebp + 0x14]
push eax
call fcn.00403e57
cmp dword [ebp + 0x18], esi
pop ecx
jne 0x406107
lea eax, [ebp + 0x14]
push eax
mov ecx, 0x41d638
call fcn.0040157a
push dword [ebp + 0x14]
mov byte [ebp + 0x66], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41d638]
pop ecx
mov ecx, dword [0x41d63c]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x406130
cmp dx, 0x2f
jne 0x40613b
dec ecx
mov word [eax + ecx*2], si
mov dword [0x41d63c], ecx
cmp dword [0x41d69c], esi
jne 0x406155
mov edi, dword [ebp + 0x5c]
push 0x41d638
push edi
call fcn.00405261
pop ecx
pop ecx
jmp 0x406166
call fcn.004079bc
test eax, eax
mov edi, dword [ebp + 0x5c]
jne 0x4061b0
mov eax, 0x80004005
cmp eax, esi
je 0x4061b0
cmp byte [ebp + 0x66], 0
jne 0x40617c
push dword [0x41d638]
call fcn.00402ca8
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 0x4061a9
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 8
jmp 0x4055f1
call fcn.0040440e
cmp byte [ebp + 0x63], 0
je 0x4061c5
cmp byte [ebp + 0x66], 0
jne 0x406736
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.00401629
cmp byte [ebp + 0x67], 0
jne 0x4061e5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040447f
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.00401629
lea ecx, [ebp - 0x30]
call fcn.00401629
cmp dword [ebp + 0x24], esi
jne 0x4062b1
cmp byte [ebp + 0x66], 0
jne 0x406590
mov esi, str.setup.exe
push esi
push 0x41844c
lea eax, [ebp - 0x68]
push 0x41d638
push eax
call fcn.00404283
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00404283
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.0040157a
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 0x4065a7
mov byte [ebp + 0x5a], 1
push esi
lea ecx, [ebp - 0x30]
call fcn.00401541
lea eax, [ebp - 0x30]
push eax
call fcn.00403e7d
mov edi, dword [ebp - 0x30]
pop ecx
xor ebx, ebx
push ebx
push str.hidcon
push edi
call fcn.00403ecc
add esp, 0xc
cmp eax, ebx
je 0x406337
mov edi, eax
mov byte [ebp + 0x67], 1
jmp 0x406292
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.004023b9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40627a
mov esi, dword [ebp - 0x40]
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x40], esi
jb 0x4062e1
cmp ax, 0x39
jbe 0x406301
cmp ax, 0x61
jb 0x4062ed
cmp ax, 0x7a
jbe 0x406301
cmp ax, 0x41
jb 0x406607
cmp ax, 0x5a
ja 0x406607
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.00401541
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.00401641
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 0x406589
push ebx
push 0x419224
push edi
call fcn.00403ecc
add esp, 0xc
cmp eax, ebx
je 0x406357
mov edi, eax
mov al, byte [ebp + 0x66]
mov byte [ebp + 0x5b], al
jmp 0x406292
push 2
push 0x4192a4
push edi
call fcn.00403ecc
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40638d
cmp dword [0x41d27c], 0xffffffff
jne 0x406386
add edi, 4
push edi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41d27c], eax
mov edi, esi
jmp 0x406292
push 3
push 0x41921c
push edi
call fcn.00403ecc
add esp, 0xc
cmp eax, ebx
je 0x4063b2
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
mov edi, eax
jmp 0x406292
push 3
push 0x419214
push edi
call fcn.00403ecc
add esp, 0xc
cmp eax, ebx
je 0x4063d2
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x24], ecx
jmp 0x4063ab
cmp byte [ebp + 0x64], 0
lea ecx, [ebp + 8]
je 0x40642e
cmp word [edi], 0x22
je 0x406400
mov esi, 0x419080
push esi
call fcn.00401541
push edi
lea ecx, [ebp + 8]
call fcn.00402429
push esi
lea ecx, [ebp + 8]
call fcn.00402429
jmp 0x406406
push edi
call fcn.00401541
push ebx
lea eax, [ebp - 0xc]
push str.ExecuteParameters
push eax
call fcn.004023b9
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x406440
push 0x419210
lea ecx, [ebp + 8]
call fcn.00402429
push esi
jmp 0x406438
lea eax, [ebp - 0x18]
push eax
call fcn.0040157a
push edi
lea ecx, [ebp + 8]
call fcn.00402429
lea ecx, [ebp + 0x14]
call fcn.00401629
lea ecx, [ebp - 0x3c]
call fcn.00401629
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xb0]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x41d638]
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 0x40649f
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.004044d5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401541
mov edi, dword [ebp + 0x54]
xor esi, esi
cmp word [edi], si
je 0x4064e3
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.00401641
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402429
cmp word [edi], si
je 0x4064e3
inc edi
inc edi
cmp word [edi], si
jne 0x4064d9
mov dword [ebp + 0x54], edi
lea eax, [ebp + 0x14]
push eax
call fcn.00403e7d
lea eax, [ebp - 0x3c]
push eax
call fcn.00403e7d
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
je 0x40650e
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
cmp dword [0x41d6a0], esi
jne 0x406545
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40661e
cmp byte [ebp + 0x5b], 0
jne 0x40653c
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 0x4066a4
cmp byte [ebp + 0x5a], 0
jne 0x4066a4
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 0x4061ef
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 0x4066ca
push dword [0x41d638]
call fcn.00402ca8
push 0xf
push 0
call fcn.00407890
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 0x406600
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 7
jmp 0x4055f1
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 0x4066c8
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.00407890
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x406647
push dword [0x41d638]
call fcn.00402ca8
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 0x40669d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4055f1
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 [0x41d6a0], esi
jne 0x40672d
call fcn.0040440e
push dword [ebp - 0x44]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Shortcut
push eax
push 0x405175
call fcn.004048cf
add esp, 0x14
push dword [0x41d644]
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 0x404887
call fcn.004048cf
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x40672d
push dword [0x41d638]
call fcn.00402ca8
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41d27c], 0xffffffff
jne 0x40674f
cmp byte [ebp + 0x65], 0
jne 0x4067ae
mov dword [0x41d27c], 1
cmp dword [0x41d27c], esi
jle 0x4067ae
push 0
lea eax, [ebp - 0xc]
push str.FinishMessage
push eax
call fcn.004023b9
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4067ae
mov eax, 0x3e7
cmp dword [0x41d27c], eax
jle 0x406782
mov dword [0x41d27c], eax
lea ecx, [ebp - 0x110]
call fcn.004042dd
push 0
push esi
push dword [0x41d620]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.00407577
lea ecx, [ebp - 0x110]
call fcn.00404156
cmp byte [ebp + 0x63], 0
jne 0x4067f4
cmp dword [0x41d6a0], 0
jne 0x4067f4
push 0
lea eax, [ebp - 0xc]
push str.SelfDelete
push eax
call fcn.004023b9
add esp, 0xc
test eax, eax
je 0x4067f4
cmp word [eax], 0x31
jne 0x4067f4
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x41d674
call fcn.0040150f
call fcn.00404a1d
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 0x406821
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.00404102
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 0x406864
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