Function at 0x401eff
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get common file path
Get file attributes
Get file version info
Get graphical window text
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
Resolve function by parsing pe exports
Set current directory
Set file attributes
Set registry value
Shutdown system
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x984
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, 0x798f20
lea eax, [edx + 4]
push edi
mov dword [0x409a90], eax
mov edx, dword [edx]
mov ecx, dword [eax + 8]
mov edi, dword [eax]
mov dword [ebp + 8], ecx
mov ebx, dword [eax + 4]
shl ecx, 0xa
add ecx, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ebx
shl ecx, 0xa
add ecx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x14]
shl edi, 0xa
shl ebx, 0xa
mov dword [ebp - 0x14], ecx
lea ecx, [edx - 2]
add edi, esi
add ebx, esi
cmp ecx, 0x48
ja case.0x401f69.8
jmp dword [ecx*4 + 0x40364d]
push 0
call fcn.00403870
push eax
push 0x40b2d8
call fcn.00405d9d
jmp 0x403641
inc dword [0x79ff34]
cmp dword [0x7a0788], 0
je 0x403641
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403641
push dword [ebp - 0x10]
call fcn.00401ee3
dec eax
push 0
push eax
call fcn.00401e58
jmp 0x403646
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401fe5
test al, 8
je 0x401fd7
mov eax, dword [0x40900c]
mov dword [0x40924c], eax
jmp 0x402080
mov ecx, dword [0x40924c]
mov dword [0x40900c], ecx
jmp 0x401fcd
push 0x30
call fcn.00403870
push 0x40b2d8
push eax
call fcn.00405d9d
jmp 0x402080
push 0
call fcn.0040384f
cmp eax, 1
jge 0x40200b
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402080
push 5
push dword [0x7a0788]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x7a0788]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402080
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [ecx*4 + 0x7a07a0], eax
jmp 0x402080
mov eax, dword [0x79ff38]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x402054
push dword [ebp - 0xc]
push eax
call esi
mov eax, dword [0x79ff50]
test eax, eax
je 0x402080
push dword [ebp - 0x10]
push eax
call esi
jmp 0x402080
push 0xfffffffffffffff0
call fcn.00403870
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402080
inc dword [0x7a07a8]
xor eax, eax
jmp 0x403646
push 0xfffffffffffffff0
call fcn.00403870
cmp dword [ebp - 0xc], 0
mov esi, eax
mov dword [ebp + 8], esi
push esi
je 0x4020bb
push 0xffffffffffffffda
call fcn.00405d87
push esi
push dword [0x4092a0]
call sub.KERNEL32.dll_lstrcpyA
push dword [0x4092a0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4020c2
push 0xffffffffffffffd9
call fcn.00405d87
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
cmp byte [esi], 0
je 0x402080
cmp word [eax], 0x5c3a
jne 0x4020dc
lea esi, [eax + 2]
jmp 0x40210a
cmp word [esi], 0x5c5c
jne 0x402080
push 2
pop ebx
jmp 0x4020f1
test al, al
je 0x4020f7
push esi
call edi
mov esi, eax
mov al, byte [esi]
cmp al, 0x5c
jne 0x4020e8
push esi
call edi
dec ebx
mov esi, eax
jne 0x4020f1
jmp 0x40210a
test al, al
je 0x402110
push esi
call edi
mov esi, eax
mov al, byte [esi]
cmp al, 0x5c
jne 0x402101
push dword [ebp + 8]
mov bl, byte [esi]
and byte [esi], 0
call fcn.004037a1
test eax, eax
jne 0x402136
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a07a8], eax
mov byte [esi], bl
inc esi
test bl, bl
jne 0x40210a
jmp 0x402080
push 0
call fcn.00403870
push eax
call fcn.004037a1
jmp 0x4028d9
cmp dword [0x7a07a8], 0
je 0x4028e1
mov eax, dword [ebp - 0x10]
jmp 0x403646
push 0xfffffffffffffff0
call fcn.00403870
push 0xffffffffffffffdf
mov dword [ebp - 4], eax
call fcn.00403870
push dword [ebp - 4]
mov esi, 0x40a6d0
mov ebx, eax
push esi
call sub.KERNEL32.dll_lstrcpyA
push ebx
call sub.KERNEL32.dll_lstrlenA
push dword [ebp - 4]
mov edi, eax
call sub.KERNEL32.dll_lstrlenA
add edi, eax
cmp edi, 0x3fd
jge 0x4021b6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4090a0
push esi
call edi
push ebx
push esi
call edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4021d1
push esi
push 0xffffffffffffffe0
call fcn.00405d87
jmp 0x402080
cmp dword [ebp + 8], 0
je 0x40207a
push dword [ebp - 4]
call fcn.004037a1
test eax, eax
je 0x40207a
inc dword [0x7a07ac]
push ebx
push dword [ebp - 4]
call fcn.004065f0
push esi
push 0xffffffffffffffe1
jmp 0x4021c7
push 1
call fcn.00403870
mov esi, eax
lea eax, [ebp - 8]
push eax
mov ebx, 0x400
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x402242
mov eax, dword [ebp - 8]
cmp eax, esi
jbe 0x40224b
cmp byte [eax], 0
je 0x40224b
push esi
call fcn.004037a1
test eax, eax
je 0x402242
add eax, 0x2c
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrcpyA
jmp 0x40224b
inc dword [0x7a07a8]
and byte [edi], 0
cmp dword [ebp + 8], 0
jne 0x402080
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x402080
push 0xffffffffffffffff
call fcn.00403870
lea ecx, [ebp + 8]
push ecx
push edi
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x402080
inc dword [0x7a07a8]
and byte [edi], 0
jmp 0x402080
push edi
push 0
push 0x40909c
push 0x79fb20
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp 0x40227f
push 0x31
call fcn.00403870
mov edi, eax
push edi
mov dword [ebp - 0xc], edi
call fcn.004064ac
push edi
mov edi, 0x409ad0
test eax, eax
je 0x4022ce
push edi
call sub.KERNEL32.dll_lstrcpyA
jmp 0x4022e7
push dword [0x4092a0]
push edi
call sub.KERNEL32.dll_lstrcpyA
push eax
call fcn.00406427
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call fcn.00406b05
mov ebx, 0x40a2d0
cmp dword [ebp - 0x10], 0
jne 0x40230e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402343
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x10], 3
jne 0x402343
push edi
call fcn.004037a1
test eax, eax
mov dword [ebp - 0x10], 1
je 0x402343
mov ecx, dword [0x409a90]
add eax, 0x14
add ecx, 0xc
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x10], ecx
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.004065d4
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4023c4
cmp dword [ebp - 0x10], 0
jne 0x4023b1
push esi
push ebx
call sub.KERNEL32.dll_lstrcpyA
push edi
push esi
call sub.KERNEL32.dll_lstrcpyA
push 0xfffffffffffffff1
push 0x409ed0
call fcn.0040684d
push ebx
push esi
call sub.KERNEL32.dll_lstrcpyA
push 0x12
push 0x409ed0
call fcn.004063a0
sub eax, 4
je 0x4022f2
dec eax
je 0x40207a
push edi
push 0xfffffffffffffff0
call fcn.00405d87
jmp 0x403641
push dword [ebp - 0xc]
push 0xffffffffffffffdc
call fcn.00405d87
cmp dword [ebp - 0x10], 2
jmp 0x402078
push dword [ebp - 0xc]
push 0xffffffffffffffdf
call fcn.00405d87
xor esi, esi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00403a37
cmp dword [ebp - 0x20], 0xffffffff
mov ebx, eax
jne 0x4023eb
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4023ff
mov eax, dword [0x409a90]
add eax, 0xc
push eax
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jge 0x402080
cmp ebx, 0xfffffffe
jne 0x402431
push dword [ebp - 0xc]
push 0xffffffffffffffde
call fcn.00403a13
push eax
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40243f
push 0xffffffffffffffdd
call fcn.00403a13
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
push 0x10
push edi
jmp 0x40363c
push 0x10
call fcn.00403870
mov esi, eax
mov edi, 0x409ad0
push esi
push edi
call sub.KERNEL32.dll_lstrcpyA
push edi
call fcn.00406453
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402080
test byte [ebp - 0x184], 0x10
jne 0x4024e9
lea eax, [ebp - 0x158]
push eax
push edi
push 0x40908c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x184]
add esp, 0x10
test al, 1
je 0x4024b0
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4024c5
push esi
push 0xffffffffffffffe7
call fcn.00405d87
jmp 0x4024e9
cmp dword [ebp - 0xc], 0
je 0x4024e3
inc dword [0x7a07ac]
push esi
push 0xffffffffffffffe6
call fcn.00405d87
push 0
push esi
call fcn.004065f0
jmp 0x4024e9
inc dword [0x7a07a8]
lea eax, [ebp - 0x184]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40247b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402080
push 0x31
call fcn.00403870
push dword [ebp - 0x10]
push eax
call fcn.004063a0
test eax, eax
je 0x40207a
mov ecx, dword [ebp + 8]
mov edx, ecx
and edx, 0xffff
cmp eax, edx
je 0x4026a1
sar ecx, 0x10
cmp eax, ecx
jne 0x402080
jmp 0x4026ab
push 0
call fcn.00403870
mov esi, eax
push esi
call sub.KERNEL32.dll_lstrlenA
add eax, esi
push eax
push esi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
jne 0x402566
push esi
call fcn.00406453
push dword [ebp - 0xc]
push esi
call fcn.004063cb
push esi
call fcn.004037a1
test eax, eax
je 0x402080
jmp 0x40207a
push 1
call fcn.00403870
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
push edi
call fcn.0040686f
jmp 0x402080
push 2
call fcn.0040384f
push 3
mov ebx, eax
call fcn.0040384f
push 1
mov esi, eax
call fcn.00403870
and byte [edi], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], eax
je 0x4025c8
test ebx, ebx
je 0x402080
push eax
call sub.KERNEL32.dll_lstrlenA
test esi, esi
jge 0x4025da
add esi, eax
js 0x402080
cmp esi, eax
jle 0x4025e0
mov esi, eax
mov eax, dword [ebp - 8]
add eax, esi
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
test ebx, ebx
je 0x402080
jge 0x402602
push edi
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
jns 0x402602
xor ebx, ebx
cmp ebx, 0x400
jge 0x402080
and byte [ebx + edi], 0
jmp 0x402080
push 0x20
call fcn.00403870
push 0x31
mov esi, eax
call fcn.00403870
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4026a1
mov eax, dword [ebp + 8]
jmp 0x403646
push 1
call fcn.00403870
cmp dword [ebp + 8], 0
push 0x400
push edi
push eax
je 0x402663
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402669
inc dword [0x7a07a8]
and byte [edi], al
jmp 0x402669
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
and byte [edi + 0x3ff], 0
jmp 0x402080
push 0
call fcn.0040384f
push 1
mov esi, eax
call fcn.0040384f
cmp esi, eax
jl 0x4026a1
jle 0x402633
jmp 0x4026ab
push 0
call fcn.0040384f
push 1
mov esi, eax
call fcn.0040384f
cmp esi, eax
jae 0x4026a9
mov eax, dword [ebp - 0x20]
jmp 0x403646
jbe 0x402633
mov eax, dword [ebp - 0x1c]
jmp 0x403646
push 1
call fcn.0040384f
push 2
mov esi, eax
call fcn.0040384f
mov ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xb
ja case.default.0x4026cd
jmp dword [eax*4 + 0x403771]
add esi, ecx
jmp case.default.0x4026cd
sub esi, ecx
jmp case.default.0x4026cd
imul ecx, esi
mov esi, ecx
jmp case.default.0x4026cd
test ecx, ecx
je 0x40272d
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp case.default.0x4026cd
or esi, ecx
jmp case.default.0x4026cd
and esi, ecx
jmp case.default.0x4026cd
xor esi, ecx
jmp case.default.0x4026cd
not esi
jmp case.default.0x4026cd
xor eax, eax
test esi, esi
sete al
jmp 0x4026ec
test esi, esi
jne 0x40271b
jmp 0x402717
xor esi, esi
jmp case.default.0x4026cd
test esi, esi
je 0x40270f
test ecx, ecx
je 0x40270f
xor esi, esi
inc esi
jmp case.default.0x4026cd
test ecx, ecx
je 0x40272d
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x4026cd
xor esi, esi
inc dword [0x7a07a8]
push esi
jmp 0x402590
push 1
call fcn.00403870
push 2
mov esi, eax
call fcn.0040384f
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x402080
mov eax, dword [ebp + 8]
mov esi, dword [0x40aed0]
test eax, eax
je 0x4027b2
dec eax
test esi, esi
je case.0x401f69.8
mov esi, dword [esi]
test eax, eax
jne 0x402769
test esi, esi
je case.0x401f69.8
add esi, 4
mov edi, 0x409ad0
push esi
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x40aed0]
add eax, 4
push eax
push esi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x40aed0]
push edi
add eax, 4
push eax
call sub.KERNEL32.dll_lstrcpyA
jmp 0x402080
cmp dword [ebp - 0xc], 0
je 0x4027dd
test esi, esi
je 0x40207a
lea eax, [esi + 4]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [esi]
push esi
mov dword [0x40aed0], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402080
push 0x404
call fcn.004063bc
push dword [ebp - 0x10]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.0040684d
mov eax, dword [0x40aed0]
mov dword [esi], eax
mov dword [0x40aed0], esi
jmp 0x402080
push 3
call fcn.0040384f
push 4
mov ebx, eax
call fcn.0040384f
cmp dword [ebp - 0x18], 0x22
mov dword [ebp + 8], eax
push 1
jne 0x40288c
call fcn.0040384f
push 2
mov esi, eax
call fcn.0040384f
test byte [ebp - 0x14], 1
mov dword [ebp - 8], eax
je 0x402842
push 3
call fcn.00403870
mov ebx, eax
test byte [ebp - 0x14], 2
je 0x402852
push 0x14
call fcn.00403870
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
sar eax, 2
je 0x40287c
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push dword [ebp + 8]
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a07a8], eax
jmp 0x4028b9
push dword [ebp + 8]
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4028b6
call fcn.00403870
push 0x12
mov esi, eax
call fcn.00403870
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov al, byte [esi]
neg al
sbb eax, eax
push ecx
and eax, esi
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jl 0x402080
push dword [ebp - 4]
jmp 0x402590
push 0
call fcn.0040384f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402633
mov eax, dword [ebp - 0xc]
jmp 0x403646
push 2
call fcn.0040384f
push eax
push 1
call fcn.0040384f
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x40258f
push 0x400
push edi
push 1
call fcn.0040384f
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x402080
or eax, 0xffffffff
cmp dword [ebp - 0xc], eax
je 0x40292e
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push 0xffffffffffffffeb
push 0
call fcn.0040384f
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x402080
push dword [ebp - 0xc]
push dword [0x7a0788]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov ecx, eax
neg ecx
sbb ecx, ecx
push 0x10
and ecx, edx
push ecx
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x38]
neg eax
sbb eax, eax
xor edi, edi
and eax, ecx
push eax
push edi
push edi
call fcn.00403870
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebx, eax
push ebx
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push edi
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402080
push 0x48
push 0x5a
push dword [0x7a0788]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
call fcn.0040384f
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push 3
mov dword [0x409a94], eax
call fcn.0040384f
mov dword [0x409aa4], eax
mov al, byte [ebp - 0x1c]
push dword [ebp - 0xc]
mov cl, al
and cl, 1
mov byte [0x409aab], 1
mov byte [0x409aa8], cl
mov cl, al
and cl, 2
and al, 4
push 0x409ab0
mov byte [0x409aa9], cl
mov byte [0x409aaa], al
call fcn.0040684d
push 0x409a94
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x40258f
push 1
call fcn.0040384f
push eax
push 0
call fcn.0040384f
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402080
push 0
call fcn.00403870
push 0x11
mov edi, eax
call fcn.00403870
push 0x22
mov dword [ebp + 8], eax
call fcn.00403870
push dword [ebp + 8]
mov esi, 0x40a6d0
mov ebx, eax
push edi
push str._s__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
push 0xffffffffffffffe3
call fcn.00405d87
mov al, byte [ebx]
push dword [ebp - 0x20]
neg al
push dword [0x4092a0]
sbb eax, eax
and eax, ebx
push eax
mov al, byte [edi]
push dword [ebp + 8]
neg al
sbb eax, eax
and eax, edi
push eax
push dword [0x7a0788]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge 0x402080
jmp 0x40207a
push 0
call fcn.00403870
mov esi, eax
push esi
push 0xffffffffffffffe2
call fcn.00405d87
push dword [0x4092a0]
push esi
call fcn.0040632a
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40207a
cmp dword [ebp - 0xc], 0
je 0x402b6b
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402b3f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xf
pop ebx
mov esi, 0x409930
jmp 0x402b20
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
push 0
push esi
call edi
test eax, eax
jne 0x402b19
push 0x64
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x402b20
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0
jl 0x402b5f
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040686f
jmp 0x402b6b
cmp dword [ebp - 8], 0
je 0x402b6b
inc dword [0x7a07a8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402080
push 0
call fcn.00403870
push eax
call fcn.004037a1
mov esi, eax
test esi, esi
je 0x402b9f
push dword [esi + 0x14]
push dword [ebp - 4]
call fcn.0040686f
push dword [esi + 0x18]
jmp 0x40335d
and byte [ebx], 0
mov eax, dword [ebp - 4]
jmp 0x403284
lea eax, [ebp - 0x38]
push 0xfffffffffffffff0
mov dword [ebp + 8], eax
call fcn.00403870
mov edi, eax
lea eax, [ebp - 0x18]
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 [0x7a07a8]
test esi, esi
je 0x402080
push esi
call fcn.004063bc
test eax, eax
mov dword [ebp - 0x14], eax
je 0x402080
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402c34
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x409080
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402c34
mov eax, dword [ebp + 8]
push dword [eax + 8]
push ebx
call fcn.0040686f
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [ebp - 4]
call fcn.0040686f
dec dword [0x7a07a8]
push dword [ebp - 0x14]
jmp 0x4027d2
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
inc dword [0x7a07a8]
cmp eax, 1
je 0x402c5f
test eax, eax
je 0x402c5f
push 0x409ed0
push 0xffffffffffffffea
jmp 0x4021c7
push 0xfffffffffffffff0
call fcn.00403870
push 1
mov dword [ebp - 0x14], eax
call fcn.00403870
push dword [ebp - 0x14]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 8], eax
je 0x402cef
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402cd2
dec dword [0x7a07a8]
cmp dword [ebp + 8], 0
je 0x402cba
push 0x22
call fcn.00403870
push dword [ebp - 0x14]
push eax
call fcn.00405d9d
call edi
test eax, eax
je 0x402cda
inc dword [0x7a07a8]
jmp 0x402cda
push 0x40aed0
push esi
push 0x400
push dword [0x7a0788]
call edi
add esp, 0x10
jmp 0x402cda
push ebx
push 0xffffffffffffffec
call fcn.00405d87
cmp dword [ebp - 0x20], 0
jne 0x402cf9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x402ce0
jmp 0x402cf9
push dword [ebp - 0x14]
push 0xffffffffffffffeb
call fcn.00405d87
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x402080
push 0xffffffffffffffe0
call fcn.00403870
push 0x11
mov dword [ebp - 0x14], eax
call fcn.00403870
push 2
mov esi, eax
call fcn.00403870
push 0xffffffffffffffcd
mov dword [ebp - 0x18], eax
call fcn.00403870
push 0x45
mov ebx, eax
call fcn.00403870
xor edi, edi
push 0
inc edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, edi
je 0x402d4e
test eax, eax
jne 0x402e4d
lea eax, [ebp + 8]
push eax
push 0x407298
push edi
push 0
push 0x4072a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402e41
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x4072b8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x402e38
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push dword [0x4092a0]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edi, dword [ebp - 0x1c]
mov esi, 0xff
mov eax, edi
sar eax, 8
and eax, esi
je 0x402dbd
mov ecx, dword [ebp + 8]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [ebp + 8]
mov edx, edi
sar edx, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
cmp byte [ebx], 0
je 0x402dde
mov eax, dword [ebp + 8]
and edi, esi
push edi
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
xor esi, esi
cmp dword [ebp - 0x10], esi
jl 0x402e2f
lea eax, [ebp - 0x984]
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x984]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x402e2f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
cmp dword [ebp - 4], 0
je 0x402e5d
push dword [ebp - 0x14]
inc dword [0x7a07a8]
push 0xffffffffffffffe8
jmp 0x4021c7
push dword [ebp - 0x14]
push 0xffffffffffffffe9
jmp 0x4021c7
push 0
call fcn.00403870
push 0x11
mov edi, eax
call fcn.00403870
mov esi, eax
mov eax, dword [0x7a0788]
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 2
call sub.KERNEL32.dll_lstrlenA
and byte [eax + edi + 1], 0
push esi
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
push esi
push 0xffffffffffffffed
call fcn.00403a13
push eax
mov ebx, 0x40a2d0
push str._s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ax, word [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x38], esi
mov esi, 0x40b2d8
push ebx
push esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2a], ebx
mov word [ebp - 0x34], ax
call fcn.00405d9d
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x402080
push esi
push 0xffffffffffffffee
call fcn.00405d87
jmp 0x40207a
inc dword [0x7a07a8]
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x402f80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
push ebx
call esi
push str.LookupPrivilegeValueA
push ebx
mov dword [ebp + 8], eax
call esi
push str.AdjustTokenPrivileges
push ebx
mov dword [ebp - 8], eax
call esi
cmp dword [ebp + 8], edi
mov esi, eax
je 0x402f80
cmp dword [ebp - 8], edi
je 0x402f80
cmp esi, edi
je 0x402f80
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp + 8]
test eax, eax
je 0x402f80
lea eax, [ebp - 0x34]
push eax
push str.SeShutdownPrivilege
push edi
call dword [ebp - 8]
push edi
push edi
lea eax, [ebp - 0x38]
push edi
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 2
call esi
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x402f94
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402080
xor ecx, ecx
cmp dword [0x7a07ac], ecx
sete cl
mov eax, dword [eax + ecx*4]
jmp 0x403646
xor edi, edi
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x10], edi
je 0x402fc6
push ebx
call fcn.00403870
mov esi, eax
cmp dword [ebp - 0xc], 0
je 0x402fd5
push 0x11
call fcn.00403870
mov ebx, eax
cmp dword [ebp - 0x1c], 0
je 0x402fe4
push 0x22
call fcn.00403870
mov edi, eax
push 0xffffffffffffffcd
call fcn.00403870
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x402076
push 1
call fcn.00403870
push 0x12
mov esi, eax
call fcn.00403870
push 0xffffffffffffffdd
mov ebx, eax
call fcn.00403870
push eax
push 0x3ff
push edi
push dword [0x409010]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x409010]
mov eax, dword [eax]
cmp eax, dword [edi]
jmp 0x402281
push 0x31
call fcn.00403870
mov ecx, dword [ebp - 0x20]
inc dword [0x7a07a8]
test ecx, ecx
jne 0x40308d
lea ecx, [ebp + 8]
push ecx
push 2
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402080
push 2
call fcn.00403870
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40307f
dec dword [0x7a07a8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402080
and ecx, 2
push ecx
push eax
push dword [ebp - 0x10]
call fcn.004037c8
test eax, eax
jne 0x402080
dec dword [0x7a07a8]
jmp 0x402080
push 0x12
call fcn.00403870
push 0x31
mov edi, eax
call fcn.00403870
inc dword [0x7a07a8]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x402080
mov ebx, dword [ebp - 0x1c]
cmp ebx, 1
jg 0x4030ff
push 0x23
call fcn.00403870
mov esi, eax
push esi
call sub.KERNEL32.dll_lstrlenA
inc eax
push eax
xor eax, eax
cmp ebx, 1
push esi
setne al
inc eax
push eax
jmp 0x403142
cmp ebx, 2
jne 0x403118
push 3
call fcn.0040384f
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 4
push eax
push 4
jmp 0x403142
cmp ebx, 3
jne 0x40307f
mov ebx, 0x40a2d0
push 0x400
push ebx
push 0
push dword [ebp - 0x20]
call fcn.00403a37
test eax, eax
jl 0x40307f
push eax
push ebx
push 3
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x403075
push 2
call fcn.00403870
push 0x13
mov esi, eax
call fcn.00403870
mov ebx, eax
lea eax, [ebp - 8]
and byte [edi], 0
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40207a
lea eax, [ebp - 0x18]
xor esi, esi
push eax
lea eax, [ebp + 8]
push edi
push eax
push esi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031d4
cmp dword [ebp + 8], 4
je 0x4031bf
cmp dword [ebp + 8], 1
je 0x4031b8
cmp dword [ebp + 8], 2
jne 0x4031d4
cmp dword [ebp - 0x1c], esi
je 0x4031dd
jmp 0x4031d7
cmp dword [ebp - 0x1c], esi
jne 0x4031ca
inc dword [0x7a07a8]
push dword [edi]
push edi
call fcn.0040686f
jmp 0x4031dd
and byte [edi], 0
inc dword [0x7a07a8]
push dword [ebp - 8]
jmp 0x403082
push 3
call fcn.0040384f
push 0x12
mov ebx, eax
call fcn.00403870
lea ecx, [ebp + 8]
and byte [edi], 0
xor esi, esi
push ecx
push 0x20019
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40207a
cmp dword [ebp - 0x1c], esi
mov eax, 0x3ff
mov dword [ebp - 0x18], eax
je 0x403231
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x403244
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
and byte [edi + 0x3ff], 0
jmp 0x40307f
cmp byte [edi], 0
je 0x402080
push edi
call fcn.00406888
push eax
jmp 0x402b6e
push 0xfffffffffffffff0
call fcn.00403870
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
call fcn.004065d4
cmp eax, 0xffffffff
jne 0x4033bb
mov eax, dword [ebp - 8]
and byte [eax], 0
jmp 0x40207a
cmp dword [ebp + 8], 0
je 0x4032a3
push 1
call fcn.0040384f
mov byte [0x409ed0], al
xor eax, eax
inc eax
jmp 0x4032b0
push 0x11
call fcn.00403870
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], 0
je 0x40207a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push 0x409ed0
push edi
call fcn.00406888
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x402076
push 2
xor esi, esi
call fcn.0040384f
cmp eax, 1
mov dword [ebp - 4], eax
jl 0x402080
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jle 0x4032f9
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x403383
and byte [ebp + 0xb], 0
push edi
call fcn.00406888
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x403383
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x21]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403383
cmp dword [ebp - 0x18], 1
jne 0x403383
cmp dword [ebp - 0x20], 0
jne 0x403358
mov al, byte [ebp - 0x21]
test al, al
je 0x403383
cmp byte [ebp + 0xb], 0xd
je 0x403363
cmp byte [ebp + 0xb], 0xa
je 0x403363
mov byte [esi + ebx], al
inc esi
cmp esi, dword [ebp - 4]
mov byte [ebp + 0xb], al
jl 0x403314
jmp 0x403383
movzx eax, byte [ebp - 0x21]
push eax
push ebx
jmp 0x402591
cmp byte [ebp + 0xb], al
je 0x403376
cmp al, 0xd
je 0x403370
cmp al, 0xa
jne 0x403376
mov byte [esi + ebx], al
inc esi
jmp 0x403383
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
and byte [esi + ebx], 0
test esi, esi
jmp 0x402078
cmp byte [edi], 0
je 0x402080
push dword [ebp + 8]
push 0
push 1
call fcn.0040384f
push eax
push edi
call fcn.00406888
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0
jl 0x402080
push eax
push dword [ebp - 8]
jmp 0x402591
cmp byte [edi], 0
je 0x402080
push edi
call fcn.00406888
push eax
jmp 0x4024fc
cmp byte [ebx], 0
je 0x402287
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.00406888
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402287
lea eax, [ebp - 0x158]
push eax
push edi
jmp 0x4027a8
push 0
call fcn.00403870
lea ecx, [ebp - 0x184]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x403433
mov eax, dword [ebp - 4]
and byte [eax], 0
and byte [ebx], 0
jmp 0x40207a
push eax
push dword [ebp - 4]
call fcn.0040686f
lea eax, [ebp - 0x158]
push eax
push ebx
jmp 0x4027a8
xor edi, edi
mov esi, 0xfffffd66
push edi
call fcn.00403870
mov ebx, eax
push ebx
mov dword [ebp - 8], ebx
call fcn.004064ac
test eax, eax
push ebx
je 0x403473
mov ebx, 0x409ed0
push ebx
call sub.KERNEL32.dll_lstrcpyA
jmp 0x403495
push dword [0x40929c]
push 0x409ed0
call sub.KERNEL32.dll_lstrcpyA
push eax
call fcn.00406427
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x409ed0
push ebx
call fcn.00406b05
push 2
push 0x40000000
push ebx
call fcn.004065d4
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x403569
push dword [0x7a0784]
call fcn.004063bc
mov ebx, eax
cmp ebx, edi
je 0x40355c
push edi
push edi
call fcn.00403d94
push dword [0x7a0784]
push ebx
call fcn.00403d62
mov eax, dword [0x79ff40]
cmp dword [eax + 0x78], 0xffffffff
je 0x403532
push dword [eax + 0x7c]
call fcn.004063bc
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x403532
mov eax, dword [0x79ff40]
push dword [eax + 0x7c]
push esi
push edi
push dword [eax + 0x78]
call fcn.00403a37
jmp 0x403522
mov edi, dword [esi]
add esi, 4
push edi
mov eax, dword [esi]
add esi, 4
add eax, ebx
push esi
push eax
call fcn.004065b0
add esi, edi
cmp byte [esi], 0
jne 0x40350c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
lea eax, [ebp - 0x14]
push edi
push eax
push dword [0x7a0784]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push edi
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00403a37
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jge 0x403583
push dword [ebp - 8]
push 0xffffffffffffffe4
call fcn.00405d87
push 0x409ed0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40207a
push dword [ebp - 8]
push 0xffffffffffffffe5
jmp 0x4021c7
cmp byte [0x40aed8], 0
jne 0x402080
push esi
push 0x40aed8
jmp 0x4027a8
push 0
call fcn.0040384f
mov edi, eax
cmp edi, dword [0x79ff28]
jae 0x40207a
mov ecx, dword [0x79ff5c]
lea eax, [edi + edi*2]
lea esi, [ecx + eax*8]
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4035e4
mov esi, dword [esi + eax*4]
push esi
push dword [ebp - 4]
jne 0x402591
call fcn.0040684d
jmp 0x402080
or ebx, 0xffffffff
sub ebx, eax
je 0x4035f7
push 2
call fcn.0040384f
mov dword [ebp + 8], eax
jmp 0x40360c
push dword [ebp + 8]
push edi
push 0x417
push dword [0x7a0798]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
test ebx, ebx
mov dword [esi + ebx*4], eax
je 0x402080
mov eax, dword [esi + 8]
and eax, 1
push eax
push edi
push 0x418
push dword [0x7a0798]
jmp 0x4029b4
push 0x10
push 0xffffffffffffffdb
call fcn.00403a13
push eax
call fcn.004063a0
mov eax, 0x7fffffff
pop edi
pop esi
pop ebx
leave
ret 4