Function at 0x4089c0
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Create directory
Create process on windows
Create process suspended
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x148c
call fcn.0040a600
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x12e0], ecx
mov dword [ebp - 0x12e8], ecx
mov dword [ebp - 0x1314], 1
mov dword [ebp - 0x12f4], ecx
call fcn.00405ee0
call fcn.00403f80
lea eax, [ebp - 0x1350]
push eax
mov dword [ebp - 0x12f0], 0x401000
mov dword [ebp - 0x12ec], 0x401020
mov dword [ebp - 0x1340], 0x401000
mov dword [ebp - 0x133c], 0x401020
call fcn.00404f60
lea eax, [ebp - 0x1384]
push 0
push eax
call fcn.004052c0
add esp, 0xc
lea eax, [ebp - 0xa74]
push 0x104
push eax
push 0
mov dword [ebp - 0x1368], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40957f
cmp eax, 0x104
ja 0x40957f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
xor ecx, ecx
nop
movzx eax, word [edx]
cmp eax, 0x22
jne 0x408a96
xor eax, eax
test ecx, ecx
sete al
add edx, 2
mov ecx, eax
jmp 0x408a80
test ax, ax
je 0x408aa9
cmp eax, 0x20
jne 0x408aa4
test ecx, ecx
je 0x408aa9
add edx, 2
jmp 0x408a80
lea eax, [ebp - 0x620]
push eax
push 0x104
mov dword [ebp - 0x1308], edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40957f
cmp eax, 0x104
ja 0x40957f
lea edx, [ebp - 0x620]
lea ecx, [edx + 2]
lea ecx, [ecx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x408ae0
push ebx
sub edx, ecx
push esi
sar edx, 1
push edi
mov dword [ebp - 0x12e4], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea esi, [eax*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov eax, dword [ebp - 0x12e4]
add eax, eax
xor ebx, edi
sub eax, 0x4102f8
lea esi, [ebp - 0x620]
xor edi, edi
add esi, eax
mov ecx, 0x4102f8
jmp 0x408b40
movzx eax, word [ecx]
mov word [esi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x408b40
lea ecx, [ebp - 0x620]
lea edx, [ecx + 2]
jmp 0x408b60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408b60
sub ecx, edx
mov edx, ebx
mov eax, ebx
and edx, 0xf
sar ecx, 1
shr eax, 4
cmp edx, 0xa
jae 0x408b83
add edx, 0x30
jmp 0x408b86
add edx, 0x37
mov word [ebp + ecx*2 - 0x612], dx
mov edx, eax
and edx, 0xf
shr eax, 4
cmp edx, 0xa
jae 0x408ba0
add edx, 0x30
jmp 0x408ba3
add edx, 0x37
mov word [ebp + ecx*2 - 0x614], dx
mov edx, eax
and edx, 0xf
shr eax, 4
cmp edx, 0xa
jae 0x408bbd
add edx, 0x30
jmp 0x408bc0
add edx, 0x37
mov word [ebp + ecx*2 - 0x616], dx
mov edx, eax
and edx, 0xf
shr eax, 4
cmp edx, 0xa
jae 0x408bda
add edx, 0x30
jmp 0x408bdd
add edx, 0x37
mov word [ebp + ecx*2 - 0x618], dx
mov edx, eax
and edx, 0xf
shr eax, 4
cmp edx, 0xa
jae 0x408bf7
add edx, 0x30
jmp 0x408bfa
add edx, 0x37
mov word [ebp + ecx*2 - 0x61a], dx
mov edx, eax
and edx, 0xf
shr eax, 4
cmp edx, 0xa
jae 0x408c14
add edx, 0x30
jmp 0x408c17
add edx, 0x37
mov word [ebp + ecx*2 - 0x61c], dx
mov edx, eax
and edx, 0xf
shr eax, 4
cmp edx, 0xa
jae 0x408c31
add edx, 0x30
jmp 0x408c34
add edx, 0x37
and eax, 0xf
mov word [ebp + ecx*2 - 0x61e], dx
cmp eax, 0xa
jae 0x408c49
add eax, 0x30
jmp 0x408c4c
add eax, 0x37
mov word [ebp + ecx*2 - 0x620], ax
xor eax, eax
mov word [ebp + ecx*2 - 0x610], ax
lea eax, [ebp - 0x12dc]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408c80
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x408ca0
push 0
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408cc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408cb2
inc edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, eax
cmp edi, 0x64
jb 0x408b33
mov ebx, dword [ebp - 0x12e4]
mov esi, 0xb
mov dword [ebp - 0x12e0], esi
jmp 0x408d07
lea edi, [ebp - 0x620]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x408cd0
mov eax, dword [0x4102f4]
lea ebx, [ebp - 0x620]
mov dword [edi], eax
lea ecx, [ebx + 2]
lea esp, [esp]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x408cf0
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x12e4], ebx
xor esi, esi
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x620]
mov word [ebp + ecx - 0x868], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x408d10
test esi, esi
je 0x408d58
push 0x10
push str.7_Zip_Error
push str.Cant_create_temp_folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040987a
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x1348]
push eax
call fcn.004051a0
add esp, 8
test eax, eax
je 0x408d8c
mov esi, 0xb
mov dword [ebp - 0x12e8], str.can_not_open_input_file
mov dword [ebp - 0x12e0], esi
jmp 0x408e3a
lea eax, [ebp - 0x1324]
push eax
lea eax, [ebp - 0x1348]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1324], xmm0
call fcn.00408690
add esp, 8
test eax, eax
je 0x408dcd
push 0
lea eax, [ebp - 0x1324]
push eax
lea eax, [ebp - 0x1348]
push eax
call fcn.004050a0
add esp, 0xc
test eax, eax
je 0x408de4
mov esi, 0xb
mov dword [ebp - 0x12e0], esi
mov dword [ebp - 0x12e8], str.Cant_find_7z_archive
jmp 0x408e3a
lea eax, [ebp - 0x12f0]
push 0x40000
push eax
call dword [ebp - 0x12f0]
add esp, 8
mov dword [ebp - 0x1368], eax
test eax, eax
jne 0x408e10
mov esi, 2
mov dword [ebp - 0x12e0], esi
jmp 0x408e3a
lea eax, [ebp - 0x1350]
mov dword [ebp - 0x1364], 0x40000
mov dword [ebp - 0x1374], eax
mov dword [ebp - 0x136c], 0
mov dword [ebp - 0x1370], 0
lea eax, [ebp - 0x1448]
push eax
call fcn.00402510
add esp, 4
test esi, esi
jne 0x4092ac
lea eax, [ebp - 0x1340]
push eax
lea eax, [ebp - 0x12f0]
push eax
lea eax, [ebp - 0x1384]
push eax
lea eax, [ebp - 0x1448]
push eax
call fcn.004025f0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x12e0], esi
test esi, esi
jne 0x4092ac
or ecx, 0xffffffff
mov dword [ebp - 0x132c], ecx
mov dword [ebp - 0x131c], 0x40000000
mov dword [ebp - 0x1338], 0xffffffff
mov dword [ebp - 0x1300], eax
mov dword [ebp - 0x1334], eax
mov dword [ebp - 0x12f8], esi
cmp dword [ebp - 0x1400], esi
jbe 0x409281
push 0
lea eax, [ebp - 0x1448]
push esi
push eax
mov dword [ebp - 0x1318], 0
mov dword [ebp - 0x1310], 0
call fcn.004024c0
add esp, 0xc
cmp eax, 0x104
jae 0x40928b
lea eax, [ebp - 0x620]
lea ebx, [eax + ebx*2]
push ebx
lea eax, [ebp - 0x1448]
push esi
push eax
call fcn.004024c0
lea eax, [ebp - 0x1340]
push eax
lea eax, [ebp - 0x12f0]
push eax
lea eax, [ebp - 0x1310]
push eax
lea eax, [ebp - 0x1318]
push eax
lea eax, [ebp - 0x1334]
push eax
lea eax, [ebp - 0x1300]
push eax
lea eax, [ebp - 0x1338]
push eax
push esi
lea eax, [ebp - 0x1384]
push eax
lea eax, [ebp - 0x1448]
push eax
call fcn.00402230
add esp, 0x34
mov dword [ebp - 0x12e0], eax
test eax, eax
jne 0x40924a
xor edx, edx
xor edi, edi
mov dword [ebp - 0x130c], edx
cmp word [ebx], dx
je 0x408fb5
mov esi, ebx
nop
cmp word [esi], 0x2f
jne 0x408f9e
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408f93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
lea edx, [edi + 1]
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x408f70
mov esi, dword [ebp - 0x12f8]
mov dword [ebp - 0x130c], edx
mov ecx, esi
and ecx, 7
mov eax, 0x80
sar eax, cl
mov edi, esi
shr edi, 3
mov dword [ebp - 0x1330], edi
mov dword [ebp - 0x1304], eax
mov eax, dword [ebp - 0x13f8]
mov ecx, dword [ebp - 0x1304]
test byte [edi + eax], cl
je 0x409005
push 0
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4091ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4091ea
lea edi, [ebx + edx*2]
mov edx, edi
mov dword [ebp - 0x1320], edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409013
sub edx, ecx
mov esi, edi
sar edx, 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409027
sub esi, ecx
sar esi, 1
mov ecx, esi
je 0x409056
mov eax, dword [ebp - 0x130c]
dec eax
add eax, esi
lea eax, [ebx + eax*2]
cmp word [eax], 0x2e
je 0x409252
sub eax, 2
dec ecx
jne 0x409046
xor eax, eax
push eax
sub edx, eax
lea eax, [edi + edx*2]
push eax
push 7
push 0x410270
call fcn.00408610
push esi
push dword [ebp - 0x1320]
mov edi, eax
push 4
push 0x41028c
call fcn.00408610
mov ecx, dword [ebp - 0x130c]
mov esi, dword [ebp - 0x12f8]
add esp, 0x20
neg ecx
sbb ecx, ecx
and ecx, 0x1000
add eax, ecx
mov ecx, edi
shl ecx, 6
add eax, ecx
cmp dword [ebp - 0x131c], eax
jbe 0x4090c4
mov dword [ebp - 0x131c], eax
xor eax, eax
cmp edi, 2
setne al
mov dword [ebp - 0x132c], esi
mov dword [ebp - 0x1314], eax
lea eax, [ebp - 0x12dc]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40926e
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x12fc]
push eax
call fcn.004051e0
add esp, 8
test eax, eax
jne 0x409262
mov eax, dword [ebp - 0x1310]
mov dword [ebp - 0x1328], eax
lea eax, [ebp - 0x1328]
push eax
mov eax, dword [ebp - 0x1318]
add eax, dword [ebp - 0x1300]
push eax
lea eax, [ebp - 0x12fc]
push eax
call fcn.00405120
add esp, 0xc
test eax, eax
jne 0x409140
mov eax, dword [ebp - 0x1328]
cmp eax, dword [ebp - 0x1310]
je 0x409154
mov dword [ebp - 0x12e8], str.Cant_write_output_file
mov dword [ebp - 0x12e0], 0xb
mov eax, dword [ebp - 0x13e4]
mov ebx, dword [ebp - 0x1304]
mov edi, dword [ebp - 0x1330]
test eax, eax
je 0x4091a0
test byte [edi + eax], bl
je 0x4091a0
mov eax, dword [ebp - 0x13e0]
lea ecx, [eax + esi*8]
mov eax, dword [ecx]
mov dword [ebp - 0x1358], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1354], eax
lea eax, [ebp - 0x1358]
push eax
push 0
push 0
push dword [ebp - 0x12fc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x12fc]
push eax
call fcn.00404ff0
mov ecx, dword [ebp - 0x12e0]
add esp, 4
test ecx, ecx
jne 0x40924a
test eax, eax
jne 0x40925e
mov eax, dword [ebp - 0x13ec]
test eax, eax
je 0x4091ea
test byte [edi + eax], bl
je 0x4091ea
mov eax, dword [ebp - 0x13e8]
push dword [eax + esi*4]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [ebp - 0x12e4]
inc esi
mov dword [ebp - 0x12f8], esi
cmp esi, dword [ebp - 0x1400]
jb 0x408ec0
mov ecx, dword [ebp - 0x132c]
cmp ecx, 0xffffffff
je 0x409281
mov eax, ebx
lea esi, [ebp - 0x620]
lea esi, [esi + eax*2]
push esi
push ecx
lea eax, [ebp - 0x1448]
push eax
call fcn.004024c0
xor ecx, ecx
add esp, 0xc
cmp word [esi], cx
je 0x40924a
mov eax, esi
lea edx, [ecx + 0x5c]
cmp word [eax], 0x2f
jne 0x40923f
mov word [eax], dx
inc ecx
cmp word [esi + ecx*2], 0
lea eax, [esi + ecx*2]
jne 0x409236
mov esi, dword [ebp - 0x12e0]
jmp 0x409296
sub esi, ecx
mov eax, esi
lea esi, [ecx - 1]
jmp 0x409058
mov esi, eax
jmp 0x409290
mov dword [ebp - 0x12e8], str.Cant_open_output_file
jmp 0x40928b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x12e8], str.Duplicate_file
jmp 0x40928b
mov dword [ebp - 0x12e8], str.There_is_no_file_to_execute
mov esi, 0xb
mov dword [ebp - 0x12e0], esi
push dword [ebp - 0x1300]
lea eax, [ebp - 0x12f0]
push eax
call dword [ebp - 0x12ec]
add esp, 8
lea eax, [ebp - 0x12f0]
push eax
lea eax, [ebp - 0x1448]
push eax
call fcn.004023e0
push dword [ebp - 0x1368]
lea eax, [ebp - 0x12f0]
push eax
call dword [ebp - 0x12ec]
lea eax, [ebp - 0x1348]
push eax
call fcn.00404ff0
add esp, 0x14
mov ebx, 1
test esi, esi
jne 0x4094dd
xor eax, eax
mov word [ebp - 0x1298], ax
lea eax, [ebp - 0x1298]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x409314
cmp eax, 0x104
jbe 0x40931d
xor eax, eax
mov word [ebp - 0x1298], ax
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x868]
push eax
call ebx
cmp dword [ebp - 0x1314], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4093db
push 0x3c
lea eax, [ebp - 0x13c0]
push 0
push eax
call fcn.00409f00
mov esi, dword [ebp - 0x1308]
mov ecx, esi
lea eax, [ebp - 0x620]
add esp, 0xc
mov dword [ebp - 0x13c0], 0x3c
mov dword [ebp - 0x13b0], eax
mov dword [ebp - 0x13bc], 0x140
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409380
mov eax, dword [ebp - 0x13ac]
sub ecx, edx
sar ecx, 1
cmovne eax, esi
mov dword [ebp - 0x13ac], eax
lea eax, [ebp - 0x13c0]
push eax
mov dword [ebp - 0x13a4], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40947a
mov eax, dword [ebp - 0x13a0]
cmp eax, 0x20
ja 0x4093d0
test eax, eax
jne 0x40947a
mov esi, dword [ebp - 0x1388]
jmp 0x409495
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ebp + ecx - 0x620]
mov word [ebp + ecx - 0x108c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4093e0
mov edx, dword [ebp - 0x1308]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409400
lea edi, [ebp - 0x108c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409416
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x44
mov ecx, edx
lea eax, [ebp - 0x148c]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409f00
add esp, 0xc
lea eax, [ebp - 0x1360]
push eax
lea eax, [ebp - 0x148c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108c]
push eax
push 0
mov dword [ebp - 0x148c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409481
mov esi, 0xb
jmp 0x4094cf
push dword [ebp - 0x135c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov esi, dword [ebp - 0x1360]
test esi, esi
je 0x4094c9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x12f4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x12f4]
test eax, eax
mov eax, 1
cmove ecx, eax
push esi
mov dword [ebp - 0x12f4], ecx
call edi
mov esi, dword [ebp - 0x12e0]
lea eax, [ebp - 0x1298]
push eax
call ebx
mov ebx, 1
mov eax, dword [ebp - 0x12e4]
add eax, eax
cmp eax, 0x61c
jae 0x409594
xor ecx, ecx
mov word [ebp + eax - 0x620], cx
lea eax, [ebp - 0x620]
push eax
call fcn.004087d0
add esp, 4
test esi, esi
jne 0x409526
mov eax, dword [ebp - 0x12f4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040987a
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 4
jne 0x409532
mov eax, str.Decoder_doesnt_support_this_archive
jmp 0x40955a
cmp esi, 2
jne 0x40953e
mov eax, str.Cant_allocate_required_memory
jmp 0x40955a
cmp esi, 3
jne 0x40954a
mov eax, str.CRC_error
jmp 0x40955a
mov ecx, dword [ebp - 0x12e8]
mov eax, str.ERROR
test ecx, ecx
cmovne eax, ecx
push 0x10
push str.7_Zip_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040987a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040987a
mov esp, ebp
pop ebp
ret 0x10
call fcn.004097a0
int3