Function at 0x402737
Capabilities:
Create process on windows
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Get file version info
Hide graphical window
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Self delete
Set file attributes
Set registry value
Shutdown system
Terminate process
Timestomp file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [eax + eax*2]
push edi
lea eax, [ecx + eax*8]
lea esi, [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
dec eax
cmp eax, 0x37
ja case.default.0x402761
jmp dword [eax*4 + 0x403d92]
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push edi
push 0x40bd10
call fcn.00405e22
add esp, 0x10
jmp 0x403d88
push 0
push esi
push ecx
call fcn.004026b6
add esp, 0xc
jmp 0x403d8d
cmp dword [esi + 4], 0
je 0x4027ac
mov al, byte [esi + 4]
mov byte [0x409438], al
jmp 0x403d6c
push dword [esi]
mov esi, 0x40b0f0
push esi
call fcn.00406996
push 0x40bd10
push esi
jmp 0x4029b8
push dword [esi]
call fcn.00406a82
mov esi, eax
pop ecx
cmp esi, 1
jge 0x4027d6
push 1
pop esi
push 0x40bd10
push str.Wait...
call fcn.00405e22
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403d6c
push 0
push dword [0x420844]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403d6c
push 5
push dword [0x420844]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x420844]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x403d6c
mov al, byte [esi]
mov byte [0x420024], al
jmp 0x403d6c
mov eax, dword [0x420008]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x402846
push dword [esi + 4]
push eax
call edi
mov eax, dword [0x42001c]
test eax, eax
je 0x403d6c
push dword [esi]
push eax
call edi
jmp 0x403d6c
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
pop ecx
pop ecx
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jmp 0x403c3f
push dword [esi]
mov edi, 0x40b4f0
push edi
call fcn.00406996
cmp dword [esi + 4], 0
pop ecx
pop ecx
push edi
je 0x4028ad
push str.Output_directory:
call fcn.00405e22
pop ecx
pop ecx
push edi
push 0x41f000
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4028b9
push str.Create_directory:
call fcn.00405e22
pop ecx
pop ecx
push edi
call fcn.0040688f
jmp 0x403c94
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push edi
call fcn.00403ea2
add esp, 0xc
jmp 0x4031a7
mov eax, dword [0x40ace8]
mov ecx, dword [esi + 8]
test eax, eax
mov dword [0x40ace8], ecx
je 0x4031af
mov eax, dword [esi]
jmp 0x403d8d
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push dword [esi + 4]
mov ebx, 0x40b4f0
push ebx
call fcn.00406996
add esp, 0x10
push edi
push 0x40b0f0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov edx, eax
push edi
mov dword [ebp + 0xc], edx
call ebx
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp ecx, 0x3fd
jge 0x402963
mov ebx, 0x40b0f0
push 0x409234
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b4f0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402968
mov ebx, 0x40b0f0
push 0x40b4f0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x402988
push ebx
push str.Rename:
call fcn.00405e22
jmp 0x403c93
cmp dword [esi + 8], 0
je 0x403d4b
push edi
call fcn.00403ea2
test eax, eax
pop ecx
je 0x403d4b
inc dword [0x40acec]
push 0x40b4f0
push edi
call fcn.0040663d
push ebx
push str.Rename_on_reboot:
call fcn.00405e22
add esp, 0x10
jmp 0x403d6c
mov ebx, dword [esi]
push dword [esi + 4]
mov edi, 0x40b90c
shl ebx, 0xa
push edi
add ebx, 0x419c00
call fcn.00406996
pop ecx
lea eax, [ebp + 0xc]
pop ecx
push eax
push ebx
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x402a2f
mov eax, dword [ebp + 0xc]
cmp eax, edi
jbe 0x402a38
cmp byte [eax], 0
je 0x402a38
lea eax, [ebp - 0x178]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402a2f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402a38
inc dword [0x40ace8]
and byte [ebx], 0
cmp dword [esi + 8], 0
jne 0x403d6c
push 0x400
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x403d6c
mov ebx, dword [esi]
push dword [esi + 4]
mov edi, 0x40b90c
shl ebx, 0xa
push edi
add ebx, 0x419c00
call fcn.00406996
pop ecx
lea eax, [ebp + 0xc]
pop ecx
push eax
push ebx
push 0x400
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x403d6c
jmp 0x403d48
mov eax, dword [esi]
mov edi, 0x40b90c
push 0x41f000
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.004064f8
push dword [esi + 4]
mov ebx, 0x40b0f0
push ebx
call fcn.00406996
push ebx
call fcn.00406587
add esp, 0x10
test eax, eax
push ebx
push edi
je 0x402ad2
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402ad8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x40acf0
cmp dword [ebp + 0xc], 0
jne 0x402af9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402b54
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0xc], 3
jne 0x402b54
push 3
push 0x80000000
push edi
mov dword [ebp + 0xc], 1
call fcn.00406623
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402b54
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x402b4b
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp + 0xc], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp + 0xc], 1
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406623
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x402c0b
cmp dword [ebp + 0xc], 0
jne 0x402bf1
push 0x419c00
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x419c00
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x420010]
push dword [eax + 0x30]
push 0x40b4f0
call fcn.00406996
pop ecx
pop ecx
push ebx
push 0x419c00
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x12
push 0x420040
push 0x40b4f0
push dword [0x420844]
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 4
je 0x402add
dec eax
je 0x403d4b
push edi
push str.Cant_write:
call fcn.00405e22
pop ecx
pop ecx
jmp 0x403d88
push 0x40b0f0
push str.Skipped:
call fcn.00405e22
cmp dword [ebp + 0xc], 2
pop ecx
pop ecx
jmp 0x403c3f
mov ebx, 0x40b0f0
push ebx
push str.Extract:
call fcn.00405e22
push dword [ebp + 8]
push dword [esi + 8]
call fcn.00404181
mov dword [ebp + 0xc], eax
lea eax, [esi + 0xc]
add esp, 0x10
cmp dword [eax], 0xffffffff
jne 0x402c3a
cmp dword [esi + 0x10], 0xffffffff
je 0x402c47
push eax
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jge 0x403d6c
cmp dword [ebp + 0xc], 0xfffffffe
jne 0x402c76
push str.Extract:_error_writing_to_file
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402c82
push str.Error_decompressing_data__Corrupted_installer_
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
push 0x420040
push edi
jmp 0x403d7c
push dword [esi]
mov ebx, 0x40b4f0
push ebx
call fcn.00406996
pop ecx
mov edi, 0x40b90c
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.00406530
pop ecx
lea eax, [ebp - 0x178]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x403d6c
test byte [ebp - 0x178], 0x10
jne 0x402d46
lea eax, [ebp - 0x14c]
push eax
push edi
push str._s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x178]
add esp, 0x10
test al, 1
je 0x402d01
xor eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402d1c
push ebx
push dword [0x409034]
call fcn.00405e22
pop ecx
pop ecx
jmp 0x402d46
cmp dword [esi + 4], 0
je 0x402d40
inc dword [0x40acec]
push ebx
push str.Delete_on_reboot:
call fcn.00405e22
push 0
push ebx
call fcn.0040663d
add esp, 0x10
jmp 0x402d46
inc dword [0x40ace8]
lea eax, [ebp - 0x178]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402ccc
push dword [ebp + 0xc]
jmp 0x403cb6
push dword [esi + 4]
mov edi, 0x40b0f0
push edi
call fcn.00406996
pop ecx
pop ecx
push dword [esi]
push 0x420040
push edi
push dword [0x420844]
call dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x403d4b
mov ecx, dword [esi + 8]
mov edx, ecx
and edx, 0xffff
cmp eax, edx
je 0x402f6f
sar ecx, 0x10
cmp eax, ecx
jne 0x403d6c
jmp 0x402f7d
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push edi
call fcn.00406547
add esp, 0xc
cmp eax, edi
jb 0x402dd8
cmp byte [eax + 1], 0
jne 0x402dd8
and byte [eax], 0
push dword [esi + 4]
push edi
call fcn.00403ed2
push edi
call fcn.00403ea2
add esp, 0xc
test eax, eax
je 0x403d6c
jmp 0x403d4b
push dword [esi + 4]
mov edi, 0x40b90c
push edi
call fcn.00406996
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi]
shl eax, 0xa
add eax, 0x419c00
push eax
jmp 0x403c8e
push dword [esi + 8]
call fcn.00406a82
push dword [esi + 0xc]
mov dword [ebp + 0xc], eax
call fcn.00406a82
mov ebx, dword [esi]
push dword [esi + 4]
mov edi, 0x40b90c
mov dword [ebp + 8], eax
shl ebx, 0xa
push edi
add ebx, 0x419c00
call fcn.00406996
and byte [ebx], 0
add esp, 0x10
cmp dword [esi + 8], 0
mov esi, dword [ebp + 0xc]
jl 0x402e65
test esi, esi
je 0x403d6c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
mov ecx, dword [ebp + 8]
test ecx, ecx
jge 0x402e7d
add ecx, eax
js 0x403d6c
cmp ecx, eax
jle 0x402e83
mov ecx, eax
lea eax, [ecx + 0x40b90c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x403d6c
jge 0x402ea4
push ebx
call edi
add esi, eax
jns 0x402ea4
xor esi, esi
cmp esi, 0x400
jge 0x403d6c
and byte [ebx + esi], 0
jmp 0x403d6c
push dword [esi]
mov ebx, 0x40acf0
push ebx
call fcn.00406996
push dword [esi + 4]
mov edi, 0x40b0f0
push edi
call fcn.00406996
add esp, 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402f6f
mov eax, dword [esi + 8]
jmp 0x403d8d
mov ebx, dword [esi]
push dword [esi + 4]
mov edi, 0x40b90c
shl ebx, 0xa
push edi
add ebx, 0x419c00
call fcn.00406996
cmp dword [esi + 8], 0
pop ecx
pop ecx
push 0x400
push ebx
push edi
je 0x402f2b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402f31
and byte [ebx], al
inc dword [0x40ace8]
jmp 0x402f31
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
and byte [ebx + 0x3ff], 0
jmp 0x403d6c
push dword [esi]
call fcn.00406a82
push dword [esi + 4]
mov edi, eax
call fcn.00406a82
pop ecx
cmp edi, eax
pop ecx
jl 0x402f6f
jle 0x402ee7
jmp 0x402f7d
push dword [esi]
call fcn.00406a82
push dword [esi + 4]
mov edi, eax
call fcn.00406a82
pop ecx
cmp edi, eax
pop ecx
jae 0x402f77
mov eax, dword [esi + 0xc]
jmp 0x403d8d
jbe 0x402ee7
mov eax, dword [esi + 0x10]
jmp 0x403d8d
mov ebx, dword [esi]
push dword [esi + 4]
shl ebx, 0xa
add ebx, 0x419c00
call fcn.00406a82
push dword [esi + 8]
mov edi, eax
call fcn.00406a82
mov esi, dword [esi + 0xc]
pop ecx
pop ecx
cmp esi, 0xb
mov ecx, eax
ja case.default.0x402fae
jmp dword [esi*4 + 0x403e72]
add edi, ecx
jmp case.default.0x402fae
sub edi, ecx
jmp case.default.0x402fae
imul ecx, edi
mov edi, ecx
jmp case.default.0x402fae
test ecx, ecx
je 0x40300e
mov eax, edi
cdq
idiv ecx
mov edi, eax
jmp case.default.0x402fae
or edi, ecx
jmp case.default.0x402fae
and edi, ecx
jmp case.default.0x402fae
xor edi, ecx
jmp case.default.0x402fae
not edi
jmp case.default.0x402fae
xor eax, eax
test edi, edi
sete al
jmp 0x402fcd
test edi, edi
jne 0x402ffc
test ecx, ecx
jne 0x402ffc
xor edi, edi
jmp case.default.0x402fae
test edi, edi
je 0x402ff2
jmp 0x402fee
push 1
pop edi
jmp case.default.0x402fae
test ecx, ecx
je 0x40300e
mov eax, edi
cdq
idiv ecx
mov edi, edx
jmp case.default.0x402fae
xor edi, edi
inc dword [0x40ace8]
push edi
push ebx
jmp 0x403c8e
push dword [esi + 4]
mov edi, 0x40b90c
push edi
call fcn.00406996
push dword [esi + 8]
call fcn.00406a82
push eax
mov eax, dword [esi]
shl eax, 0xa
add eax, 0x419c00
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x403d6c
mov eax, dword [esi + 8]
mov edi, dword [0x40bd0c]
test eax, eax
je 0x4030a4
dec eax
test edi, edi
je case.default.0x402761
mov edi, dword [edi]
mov ecx, eax
dec eax
test ecx, ecx
jne 0x40305c
test edi, edi
je case.default.0x402761
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [edi + 4]
mov edi, 0x40b90c
push ebx
push edi
call esi
mov eax, dword [0x40bd0c]
add eax, 4
push eax
push ebx
call esi
mov eax, dword [0x40bd0c]
push edi
add eax, 4
push eax
call esi
jmp 0x403d6c
cmp dword [esi + 4], 0
je 0x4030d4
test edi, edi
je 0x403d4b
lea eax, [edi + 4]
push eax
mov eax, dword [esi]
shl eax, 0xa
add eax, 0x419c00
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi]
push edi
mov dword [0x40bd0c], eax
jmp 0x403456
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esi]
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.00406996
mov eax, dword [0x40bd0c]
pop ecx
mov dword [edi], eax
pop ecx
mov dword [0x40bd0c], edi
jmp 0x403d6c
push dword [esi + 0xc]
call fcn.00406a82
push dword [esi + 0x10]
mov dword [ebp + 8], eax
call fcn.00406a82
push dword [esi + 4]
mov edi, 0x40b90c
mov dword [ebp + 0xc], eax
push edi
call fcn.00406996
push dword [esi + 8]
mov ebx, 0x40b4f0
push ebx
call fcn.00406996
add esp, 0x18
cmp dword [ebp - 4], 0x1f
jne 0x40315b
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.004069d8
pop ecx
push eax
push edi
call fcn.004069d8
pop ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40317f
mov al, byte [0x40b4f0]
neg al
sbb eax, eax
and eax, ebx
push eax
mov al, byte [0x40b90c]
neg al
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, dword [esi]
test esi, esi
jl 0x403d6c
shl esi, 0xa
push eax
add esi, 0x419c00
jmp 0x403c8d
push dword [esi]
call fcn.00406a82
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402ee7
mov eax, dword [esi + 4]
jmp 0x403d8d
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push dword [esi + 4]
push 0x40b4f0
call fcn.00406996
push dword [esi + 8]
mov ebx, 0x40acf0
push ebx
call fcn.00406996
add esp, 0x18
push edi
push 0x40b0f0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40917c
push 0x40b0f0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b4f0
push 0x40b0f0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b0f0
push str.ExecShell:
call fcn.00405e22
mov al, byte [0x40acf0]
pop ecx
pop ecx
push dword [esi + 0xc]
neg al
sbb eax, eax
push 0x41f000
and eax, ebx
push eax
mov al, byte [0x40b90c]
neg al
sbb eax, eax
push 0x40b4f0
and eax, edi
push eax
push dword [0x420844]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge 0x403d6c
jmp 0x403d4b
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push edi
push str.Execute:
call fcn.00405e22
mov al, byte [0x41f000]
neg al
sbb eax, eax
and eax, 0x41f000
push eax
push edi
call fcn.0040649f
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x403d4b
cmp dword [esi + 4], 0
je 0x40331a
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4032e4
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, 0x40b8f0
push 1
push 0xf
push 0xf
push 0
push edi
call ebx
test eax, eax
je 0x4032d2
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4032ba
push 0x64
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4032ba
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esi + 8]
test esi, esi
jl 0x40330e
push dword [ebp + 8]
shl esi, 0xa
add esi, 0x419c00
push esi
call fcn.004069c1
pop ecx
pop ecx
jmp 0x40331a
cmp dword [ebp + 8], 0
je 0x40331a
inc dword [0x40ace8]
push dword [ebp + 0xc]
jmp 0x403afb
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
push dword [esi]
mov ecx, 0x419c00
shl eax, 0xa
mov edi, 0x40b90c
add eax, ecx
shl ebx, 0xa
push edi
add ebx, ecx
mov dword [ebp + 0xc], eax
call fcn.00406996
mov esi, dword [ebp + 0xc]
inc dword [0x40ace8]
and byte [ebx], 0
push 3
and byte [esi], 0
push 0x80000000
push edi
call fcn.00406623
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x403d6c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40339f
push dword [ebp - 0x10]
push esi
call fcn.004069c1
push dword [ebp - 0xc]
push ebx
call fcn.004069c1
add esp, 0x10
dec dword [0x40ace8]
push edi
jmp 0x403afb
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
push dword [esi]
mov ecx, 0x419c00
shl eax, 0xa
add eax, ecx
mov edi, 0x40b90c
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
shl ebx, 0xa
push edi
add ebx, ecx
mov dword [ebp + 0xc], eax
call fcn.00406996
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
and byte [ebx], 0
mov esi, eax
mov eax, dword [ebp - 4]
and byte [eax], 0
inc dword [0x40ace8]
test esi, esi
je 0x403d6c
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 8], eax
je 0x403d6c
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403453
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x409160
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403453
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push ebx
call fcn.004069c1
mov eax, dword [ebp + 0xc]
push dword [eax + 0xc]
push dword [ebp - 4]
call fcn.004069c1
add esp, 0x10
dec dword [0x40ace8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403d6c
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
inc dword [0x40ace8]
cmp eax, 1
je 0x403487
test eax, eax
je 0x403487
push 0x40b90c
push str.No_OLE_for:
jmp 0x40297e
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push dword [esi + 4]
mov ebx, 0x40b4f0
push ebx
call fcn.00406996
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x40351e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x403506
dec dword [0x40ace8]
mov esi, dword [esi + 8]
test esi, esi
jge 0x4034eb
push 0x40bd0c
push 0x419c00
push 0x400
push dword [0x420844]
call eax
add esp, 0x10
jmp 0x403513
mov ebx, 0x40acf0
push esi
push ebx
call fcn.00406996
push edi
push ebx
call fcn.00405e22
add esp, 0x10
call dword [ebp + 0xc]
jmp 0x403513
push ebx
push str.Could_not_find_symbol:
call fcn.00405e22
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40352b
push edi
push str.Could_not_load:
call fcn.00405e22
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x403d6c
push dword [esi]
mov ebx, 0x40acf0
push ebx
call fcn.00406996
push dword [esi + 4]
push 0x40b4f0
call fcn.00406996
push dword [esi + 8]
mov edi, 0x40b90c
push edi
call fcn.00406996
push dword [esi + 0xc]
push 0x40b0f0
call fcn.00406996
mov eax, dword [esi + 0x10]
mov ecx, eax
sar ecx, 0x10
push ecx
xor ecx, ecx
mov cl, ah
push ecx
mov cl, byte [0x40b90c]
neg cl
sbb ecx, ecx
push 0x41f000
and ecx, edi
and eax, 0xff
push ecx
push 0x40b4f0
push eax
mov al, byte [0x40b0f0]
neg al
sbb eax, eax
and eax, 0x40b0f0
push eax
push ebx
push dword [0x420844]
call fcn.00406c8b
add esp, 0x44
test eax, eax
je 0x4035c9
inc dword [0x40ace8]
push ebx
push str.Error_creating_shortcut:
jmp 0x40297e
push ebx
push str.Create_shortcut:
jmp 0x40297e
push dword [esi]
mov edi, 0x40b90c
push edi
call fcn.00406996
push dword [esi + 4]
push 0x40b4f0
call fcn.00406996
mov eax, dword [0x420844]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 2
push edi
call ebx
and byte [eax + 0x40b90d], 0
push 0x40b4f0
call ebx
and byte [eax + 0x40b4f1], 0
mov ebx, 0x40acf0
push str.Copy_to
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40b4f0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esi + 8], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x40b4f0
mov dword [ebp - 0x1e], ebx
mov word [ebp - 0x28], 0x710
je 0x40365a
mov word [ebp - 0x28], 0x614
mov esi, 0x40bd10
push ebx
push esi
call fcn.00405e22
pop ecx
lea eax, [ebp - 0x38]
pop ecx
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x403d6c
push esi
push str.Copy_failed
call fcn.00405e22
pop ecx
pop ecx
jmp 0x403d4b
inc dword [0x40ace8]
cmp dword [esi], 0xbadf00d
jne case.default.0x402761
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x403727
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
push ebx
call esi
push str.LookupPrivilegeValueA
push ebx
mov dword [ebp + 0xc], eax
call esi
push str.AdjustTokenPrivileges
push ebx
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 0xc], edi
mov esi, eax
je 0x403727
cmp dword [ebp + 8], edi
je 0x403727
cmp esi, edi
je 0x403727
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403727
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push edi
call dword [ebp + 8]
push edi
push edi
lea eax, [ebp - 0x18]
push edi
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call esi
add esp, 0x24
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40373b
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403d6c
xor eax, eax
cmp dword [0x40acec], eax
setne al
mov eax, dword [esi + eax*4]
jmp 0x403d8d
mov eax, dword [esi]
mov dword [0x40acec], eax
jmp 0x403d6c
push dword [esi]
and dword [ebp + 0xc], 0
and dword [ebp + 8], 0
mov edi, 0x40b90c
push edi
call fcn.00406996
mov eax, dword [esi + 4]
pop ecx
test eax, eax
pop ecx
jl 0x403795
mov ebx, 0x40b4f0
push eax
push ebx
call fcn.00406996
pop ecx
mov dword [ebp + 8], ebx
pop ecx
mov eax, dword [esi + 8]
test eax, eax
jl 0x4037ad
mov ebx, 0x40acf0
push eax
push ebx
call fcn.00406996
pop ecx
mov dword [ebp + 0xc], ebx
pop ecx
push dword [esi + 0xc]
mov esi, 0x40b0f0
push esi
call fcn.00406996
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x402876
mov eax, dword [esi]
push dword [esi + 4]
shl eax, 0xa
mov edi, 0x40b90c
add eax, 0x419c00
push edi
mov dword [ebp + 0xc], eax
call fcn.00406996
push dword [esi + 8]
push 0x40b4f0
call fcn.00406996
push dword [esi + 0xc]
mov ebx, 0x40acf0
push ebx
call fcn.00406996
mov esi, dword [ebp + 0xc]
add esp, 0x18
push ebx
push 0x3ff
push esi
push dword [0x409038]
push 0x40b4f0
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x409038]
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x403d6c
inc dword [0x40ace8]
mov eax, esi
and byte [eax], 0
jmp 0x403d6c
mov ebx, dword [esi]
inc dword [0x40ace8]
push dword [esi + 4]
mov edi, 0x40b0f0
push edi
call fcn.00406996
cmp dword [esi + 8], 0xffffffff
pop ecx
pop ecx
je 0x4038a9
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d6c
push dword [esi + 8]
mov edi, 0x40b90c
push edi
call fcn.00406996
pop ecx
pop ecx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4038a1
dec dword [0x40ace8]
push dword [ebp + 0xc]
jmp 0x403ad4
push dword [esi + 0xc]
push edi
push ebx
call fcn.00403fc5
add esp, 0xc
test eax, eax
jne 0x403d6c
dec dword [0x40ace8]
jmp 0x403d6c
mov eax, dword [esi]
mov edi, 0x40b4f0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
inc dword [0x40ace8]
push dword [esi + 8]
mov dword [ebp + 0xc], eax
push edi
call fcn.00406996
push dword [esi + 4]
mov ebx, 0x40b0f0
push ebx
call fcn.00406996
add esp, 0x10
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403d6c
cmp dword [ebp + 0xc], 1
jg 0x40393c
push dword [esi + 0xc]
mov ebx, 0x40acf0
push ebx
call fcn.00406996
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
xor eax, eax
cmp dword [ebp + 0xc], 1
push ebx
setne al
inc eax
push eax
jmp 0x40397c
cmp dword [ebp + 0xc], 2
jne 0x403958
push dword [esi + 0xc]
call fcn.00406a82
pop ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push 4
push eax
push 4
jmp 0x40397c
cmp dword [ebp + 0xc], 3
jne 0x403992
mov ebx, 0x40acf0
push 0x400
push ebx
push dword [esi + 0xc]
call fcn.0040437c
add esp, 0xc
test eax, eax
jl 0x403992
push eax
push ebx
push 3
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403992
dec dword [0x40ace8]
push dword [ebp + 8]
jmp 0x403ad4
mov ebx, dword [esi]
push dword [esi + 8]
mov eax, dword [esi + 4]
mov edi, 0x40b90c
shl ebx, 0xa
push edi
add ebx, 0x419c00
mov dword [ebp + 0xc], eax
call fcn.00406996
push dword [esi + 0xc]
push 0x40b4f0
call fcn.00406996
add esp, 0x10
lea eax, [ebp + 8]
and byte [ebx], 0
push eax
push 0x20019
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d4b
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp + 0xc]
push ebx
push eax
push edi
push 0x40b4f0
push dword [ebp + 8]
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a3e
cmp dword [ebp + 0xc], 4
je 0x403a27
cmp dword [ebp + 0xc], 1
je 0x403a20
cmp dword [ebp + 0xc], 2
jne 0x403a3e
cmp dword [esi + 0x10], edi
je 0x403a47
jmp 0x403a41
cmp dword [esi + 0x10], edi
jne 0x403a32
inc dword [0x40ace8]
push dword [ebx]
push ebx
call fcn.004069c1
pop ecx
pop ecx
jmp 0x403a47
and byte [ebx], 0
inc dword [0x40ace8]
push dword [ebp + 8]
jmp 0x403ad4
mov edi, dword [esi]
push dword [esi + 0xc]
shl edi, 0xa
add edi, 0x419c00
call fcn.00406a82
push dword [esi + 8]
mov ebx, 0x40b4f0
mov dword [ebp + 8], eax
push ebx
call fcn.00406996
and byte [edi], 0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push 0
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d4b
xor ecx, ecx
mov eax, 0x3ff
cmp dword [esi + 0x10], ecx
mov dword [ebp - 4], eax
je 0x403ab5
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x403aca
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
and byte [edi + 0x3ff], 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403d6c
mov esi, dword [esi]
shl esi, 0xa
add esi, 0x419c00
cmp byte [esi], 0
je 0x403d6c
push esi
call fcn.004069d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d6c
mov ebx, dword [esi + 0xc]
push dword [esi]
mov edi, 0x40b90c
shl ebx, 0xa
push edi
add ebx, 0x419c00
call fcn.00406996
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.00406623
add esp, 0x14
cmp eax, 0xffffffff
je 0x403d48
push eax
jmp 0x403017
mov edi, dword [esi]
push dword [esi + 4]
mov esi, 0x40b4f0
shl edi, 0xa
push esi
add edi, 0x419c00
call fcn.00406996
cmp byte [edi], 0
pop ecx
pop ecx
je 0x403d4b
lea eax, [ebp + 0xc]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call fcn.004069d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x402876
mov ebx, dword [esi + 4]
mov edi, dword [esi]
push dword [esi + 8]
and dword [ebp + 8], 0
shl ebx, 0xa
mov eax, 0x419c00
shl edi, 0xa
add ebx, eax
add edi, eax
call fcn.00406a82
mov esi, eax
pop ecx
cmp esi, 1
jl 0x403d6c
mov eax, 0x3ff
cmp esi, eax
jle 0x403bba
mov esi, eax
cmp byte [edi], 0
je 0x403c36
and byte [ebp + 0xf], 0
push edi
call fcn.004069d8
mov edi, dword [ebp + 8]
pop ecx
test esi, esi
mov dword [ebp - 4], eax
jle 0x403c39
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp + 0xb]
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c39
cmp dword [ebp - 8], 1
jne 0x403c39
cmp byte [ebp + 0xf], 0xd
je 0x403c0f
cmp byte [ebp + 0xf], 0xa
je 0x403c0f
mov al, byte [ebp + 0xb]
mov byte [edi + ebx], al
inc edi
cmp edi, esi
mov byte [ebp + 0xf], al
jl 0x403bd4
jmp 0x403c39
mov al, byte [ebp + 0xb]
cmp byte [ebp + 0xf], al
je 0x403c25
cmp al, 0xd
je 0x403c1f
cmp al, 0xa
jne 0x403c25
mov byte [edi + ebx], al
inc edi
jmp 0x403c39
push 1
push 0
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403c39
mov edi, dword [ebp + 8]
and byte [edi + ebx], 0
test edi, edi
jne 0x403d6c
jmp 0x403d4b
mov edi, dword [esi]
mov ebx, 0x419c00
shl edi, 0xa
add edi, ebx
cmp byte [edi], 0
je 0x403d6c
push dword [esi + 8]
push 0
push dword [esi + 4]
call fcn.00406a82
pop ecx
push eax
push edi
call fcn.004069d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esi + 0xc]
test esi, esi
jl 0x403d6c
shl esi, 0xa
push eax
add esi, ebx
push esi
call fcn.004069c1
pop ecx
pop ecx
jmp 0x403d6c
mov esi, dword [esi]
shl esi, 0xa
add esi, 0x419c00
cmp byte [esi], 0
je 0x403d6c
push esi
call fcn.004069d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x403d6c
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov eax, 0x419c00
shl esi, 0xa
shl edi, 0xa
add esi, eax
add edi, eax
cmp byte [esi], 0
je 0x403cfd
lea eax, [ebp - 0x178]
push eax
push esi
call fcn.004069d8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x403cfd
lea eax, [ebp - 0x14c]
push eax
push edi
jmp 0x403d66
inc dword [0x40ace8]
and byte [edi], 0
jmp 0x403d6c
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
push dword [esi]
mov ecx, 0x419c00
shl eax, 0xa
mov edi, 0x40b90c
add eax, ecx
shl ebx, 0xa
push edi
add ebx, ecx
mov dword [ebp + 0xc], eax
call fcn.00406996
pop ecx
lea eax, [ebp - 0x178]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x403d53
mov eax, dword [ebp + 0xc]
and byte [eax], 0
and byte [ebx], 0
inc dword [0x40ace8]
jmp 0x403d6c
push eax
push dword [ebp + 0xc]
call fcn.004069c1
pop ecx
lea eax, [ebp - 0x14c]
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
jmp 0x403d8d
push 0x10
push 0x420040
push str.Install_corrupted:_invalid_opcode
push dword [0x420844]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x10000000
pop edi
pop esi
pop ebx
leave
ret