Function at 0x401f41
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, 0x798f00
lea eax, [edx + 4]
push edi
mov dword [0x409a98], 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 - 0x14], edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ebx
shl ecx, 0xa
add ecx, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x14]
shl edi, 0xa
shl ebx, 0xa
mov dword [ebp - 0x18], ecx
lea ecx, [edx - 2]
add edi, esi
add ebx, esi
cmp ecx, 0x48
ja case.0x401fab.8
jmp dword [ecx*4 + 0x4036ab]
push 0
call fcn.004038da
push eax
push 0x40b2e0
call fcn.00405e3a
jmp 0x40369f
inc dword [0x79ff14]
cmp dword [0x7a0768], 0
je 0x40369f
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40369f
push dword [ebp - 0x14]
call fcn.00401f25
dec eax
push 0
push eax
call fcn.00401e98
jmp 0x4036a4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402027
test al, 8
je 0x402019
mov eax, dword [0x40900c]
mov dword [0x409254], eax
jmp 0x4025c4
mov ecx, dword [0x409254]
mov dword [0x40900c], ecx
jmp 0x40200f
push 0x30
call fcn.004038da
push 0x40b2e0
push eax
call fcn.00405e3a
jmp 0x4025c4
push 0
call fcn.004038b9
cmp eax, 1
jge 0x40204d
push 1
pop eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025c4
push 5
push dword [0x7a0768]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x7a0768]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4025c4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ecx*4 + 0x7a0780], eax
jmp 0x4025c4
mov eax, dword [0x79ff18]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x40209f
push dword [ebp - 0x10]
push eax
call esi
mov eax, dword [0x79ff30]
test eax, eax
je 0x4025c4
push dword [ebp - 0x14]
push eax
call esi
jmp 0x4025c4
push 0xfffffffffffffff0
call fcn.004038da
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jmp 0x4033c7
push 0xfffffffffffffff0
call fcn.004038da
cmp dword [ebp - 0x10], 0
mov esi, eax
mov dword [ebp + 8], esi
push esi
je 0x402103
push 0xffffffffffffffda
call fcn.00405e24
push esi
push dword [0x4092a8]
call fcn.004069d5
push dword [0x4092a8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40210a
push 0xffffffffffffffd9
call fcn.00405e24
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
cmp byte [esi], 0
je 0x4025c4
cmp word [eax], 0x5c3a
jne 0x402128
lea esi, [eax + 2]
jmp 0x40214f
cmp word [esi], 0x5c5c
jne 0x4025c4
push 2
pop ebx
mov al, byte [esi]
cmp al, 0x5c
je 0x402147
test al, al
je 0x402147
push esi
call edi
mov esi, eax
jmp 0x402136
push esi
call edi
dec ebx
mov esi, eax
jne 0x402136
mov al, byte [esi]
cmp al, 0x5c
je 0x402160
test al, al
je 0x402160
push esi
call edi
mov esi, eax
jmp 0x40214f
push dword [ebp + 8]
mov bl, byte [esi]
and byte [esi], 0
call fcn.004037ff
test eax, eax
jne 0x402186
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a0788], eax
mov byte [esi], bl
inc esi
test bl, bl
jne 0x40214f
jmp 0x4025c4
push 0
call fcn.004038da
push eax
call fcn.004037ff
jmp 0x402910
cmp dword [0x7a0788], 0
je 0x402918
mov eax, dword [ebp - 0x14]
jmp 0x4036a4
push 0xfffffffffffffff0
call fcn.004038da
push 0xffffffffffffffdf
mov dword [ebp - 4], eax
call fcn.004038da
push dword [ebp - 4]
mov esi, 0x40a6dc
mov ebx, eax
push esi
call fcn.004069d5
push ebx
call fcn.004069e6
push dword [ebp - 4]
mov edi, eax
call fcn.004069e6
add edi, eax
cmp edi, 0x3fd
jge 0x402206
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 0x40221c
push esi
push 0xffffffffffffffe0
jmp 0x4035d6
cmp dword [ebp + 8], 0
je 0x4025be
push dword [ebp - 4]
call fcn.004037ff
test eax, eax
je 0x4025be
inc dword [0x7a078c]
push ebx
push dword [ebp - 4]
call fcn.004066b1
push esi
push 0xffffffffffffffe1
jmp 0x4035d6
push 1
call fcn.004038da
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x400
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x402290
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe 0x402299
cmp byte [eax], 0
je 0x402299
push esi
call fcn.004037ff
test eax, eax
je 0x402290
add eax, 0x2c
push eax
push dword [ebp - 0xc]
call fcn.004069d5
jmp 0x402299
inc dword [0x7a0788]
and byte [edi], 0
cmp dword [ebp + 8], 0
jne 0x4025c4
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x4025c4
push 0xffffffffffffffff
call fcn.004038da
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 0x4025c4
inc dword [0x7a0788]
and byte [edi], 0
jmp 0x4025c4
push edi
push 0
push 0x40909c
push 0x79fb00
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp 0x4022cd
push 0x31
call fcn.004038da
mov edi, eax
push edi
mov dword [ebp - 0x10], edi
call fcn.00406569
test eax, eax
push edi
je 0x40231c
mov edi, 0x409adc
push edi
call fcn.004069d5
jmp 0x40233a
push dword [0x4092a8]
mov edi, 0x409adc
push edi
call fcn.004069d5
push eax
call fcn.004064e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call fcn.00406bd9
mov ebx, 0x40a2dc
cmp dword [ebp - 0x14], 0
jne 0x402361
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402396
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x14], 3
jne 0x402396
push edi
call fcn.004037ff
test eax, eax
mov dword [ebp - 0x14], 1
je 0x402396
mov ecx, dword [0x409a98]
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 - 0x14], ecx
xor eax, eax
cmp dword [ebp - 0x14], 1
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406695
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x402417
cmp dword [ebp - 0x14], 0
jne 0x402404
push esi
push ebx
call fcn.004069d5
push edi
push esi
call fcn.004069d5
push 0xfffffffffffffff1
push 0x409edc
call fcn.0040690e
push ebx
push esi
call fcn.004069d5
push 0x12
push 0x409edc
call fcn.0040645b
sub eax, 4
je 0x402345
dec eax
je 0x4025be
push edi
push 0xfffffffffffffff0
call fcn.00405e24
jmp 0x40369f
push dword [ebp - 0x10]
push 0xffffffffffffffdc
call fcn.00405e24
cmp dword [ebp - 0x14], 2
jmp 0x4033c7
push dword [ebp - 0x10]
push 0xffffffffffffffdf
call fcn.00405e24
xor esi, esi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00403aa1
cmp dword [ebp - 0x1c], 0xffffffff
mov ebx, eax
jne 0x40243e
cmp dword [ebp - 8], 0xffffffff
je 0x402452
mov eax, dword [0x409a98]
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 0x4025c4
cmp ebx, 0xfffffffe
jne 0x402484
push dword [ebp - 0x10]
push 0xffffffffffffffde
call fcn.00403a7d
push eax
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x402492
push 0xffffffffffffffdd
call fcn.00403a7d
push eax
push edi
call fcn.004069d5
push 0x10
push edi
jmp 0x40369a
push 0x10
call fcn.004038da
mov esi, eax
mov edi, 0x409adc
push esi
push edi
call fcn.004069d5
push edi
call fcn.00406510
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4025c4
test byte [ebp - 0x184], 0x10
jne 0x40253c
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 0x402503
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 0x402518
push esi
push 0xffffffffffffffe7
call fcn.00405e24
jmp 0x40253c
cmp dword [ebp - 0x10], 0
je 0x402536
inc dword [0x7a078c]
push esi
push 0xffffffffffffffe6
call fcn.00405e24
push 0
push esi
call fcn.004066b1
jmp 0x40253c
inc dword [0x7a0788]
lea eax, [ebp - 0x184]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4024ce
push ebx
jmp 0x403418
push 0x31
call fcn.004038da
push dword [ebp - 0x14]
push eax
call fcn.0040645b
test eax, eax
je 0x4025be
mov ecx, dword [ebp + 8]
mov edx, ecx
and edx, 0xffff
cmp eax, edx
je 0x4026d7
sar ecx, 0x10
cmp eax, ecx
jne 0x4025c4
jmp 0x4026e1
push 0
call fcn.004038da
mov esi, eax
push esi
call fcn.004069e6
add eax, esi
push eax
push esi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
jne 0x4025ab
push esi
call fcn.00406510
push dword [ebp - 0x10]
push esi
call fcn.00406486
push esi
call fcn.004037ff
test eax, eax
je 0x4025c4
inc dword [0x7a0788]
xor eax, eax
jmp 0x4036a4
push 1
call fcn.004038da
push eax
call fcn.004069e6
push eax
push edi
call fcn.00406930
jmp 0x4025c4
push 2
call fcn.004038b9
push 3
mov ebx, eax
call fcn.004038b9
push 1
mov esi, eax
call fcn.004038da
and byte [edi], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 0xc], eax
je 0x40260a
test ebx, ebx
je 0x4025c4
push eax
call fcn.004069e6
test esi, esi
jge 0x402618
add esi, eax
js 0x4025c4
cmp esi, eax
jle 0x40261e
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, esi
push eax
push edi
call fcn.004069d5
test ebx, ebx
je 0x4025c4
jge 0x40263c
push edi
call fcn.004069e6
add ebx, eax
jns 0x40263c
xor ebx, ebx
cmp ebx, 0x400
jge 0x4025c4
and byte [ebx + edi], 0
jmp 0x4025c4
push 0x20
call fcn.004038da
push 0x31
mov esi, eax
call fcn.004038da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4026d7
mov eax, dword [ebp + 8]
jmp 0x4036a4
push 1
call fcn.004038da
cmp dword [ebp + 8], 0
push 0x400
push edi
push eax
je 0x402699
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40269f
inc dword [0x7a0788]
and byte [edi], al
jmp 0x40269f
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
and byte [edi + 0x3ff], 0
jmp 0x4025c4
push 0
call fcn.004038b9
push 1
mov esi, eax
call fcn.004038b9
cmp esi, eax
jl 0x4026d7
jle 0x402669
jmp 0x4026e1
push 0
call fcn.004038b9
push 1
mov esi, eax
call fcn.004038b9
cmp esi, eax
jae 0x4026df
mov eax, dword [ebp - 0x1c]
jmp 0x4036a4
jbe 0x402669
mov eax, dword [ebp - 8]
jmp 0x4036a4
push 1
call fcn.004038b9
push 2
mov esi, eax
call fcn.004038b9
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xb
ja case.default.0x402703
jmp dword [eax*4 + 0x4037cf]
add esi, ecx
jmp case.default.0x402703
sub esi, ecx
jmp case.default.0x402703
imul ecx, esi
mov esi, ecx
jmp case.default.0x402703
test ecx, ecx
je 0x402763
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp case.default.0x402703
or esi, ecx
jmp case.default.0x402703
and esi, ecx
jmp case.default.0x402703
xor esi, ecx
jmp case.default.0x402703
not esi
jmp case.default.0x402703
xor eax, eax
test esi, esi
sete al
jmp 0x402722
test esi, esi
jne 0x402751
test ecx, ecx
jne 0x402751
xor esi, esi
jmp case.default.0x402703
test esi, esi
je 0x402747
jmp 0x402743
push 1
pop esi
jmp case.default.0x402703
test ecx, ecx
je 0x402763
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x402703
xor esi, esi
inc dword [0x7a0788]
push esi
jmp 0x4025d9
push 1
call fcn.004038da
push 2
mov esi, eax
call fcn.004038b9
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4025c4
mov eax, dword [ebp + 8]
mov esi, dword [0x40aedc]
test eax, eax
je 0x4027e6
dec eax
test esi, esi
je case.0x401fab.8
mov esi, dword [esi]
mov ecx, eax
dec eax
test ecx, ecx
jne 0x4027a0
test esi, esi
je case.0x401fab.8
add esi, 4
mov edi, 0x409adc
push esi
push edi
call fcn.004069d5
mov eax, dword [0x40aedc]
add eax, 4
push eax
push esi
call fcn.004069d5
mov eax, dword [0x40aedc]
push edi
add eax, 4
push eax
jmp 0x4035f3
cmp dword [ebp - 0x10], 0
je 0x40280b
test esi, esi
je 0x4025be
lea eax, [esi + 4]
push eax
push edi
call fcn.004069d5
mov eax, dword [esi]
push esi
mov dword [0x40aedc], eax
jmp 0x402c66
push 0x404
call fcn.00406477
push dword [ebp - 0x14]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.0040690e
mov eax, dword [0x40aedc]
mov dword [esi], eax
mov dword [0x40aedc], esi
jmp 0x4025c4
push 3
call fcn.004038b9
push 4
mov esi, eax
call fcn.004038b9
cmp dword [ebp - 0x24], 0x22
mov dword [ebp + 8], eax
push 1
jne 0x4028c3
call fcn.004038b9
push 2
mov dword [ebp - 8], eax
call fcn.004038b9
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
test bl, 1
je 0x402873
push 3
call fcn.004038da
mov esi, eax
test bl, 2
je 0x402882
push 0x14
call fcn.004038da
mov dword [ebp + 8], eax
test ebx, 0xfffffffc
je 0x4028b1
lea eax, [ebp - 4]
sar ebx, 2
push eax
push ebx
push 0
push dword [ebp + 8]
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a0788], eax
jmp 0x4028f0
push dword [ebp + 8]
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4028ed
call fcn.004038da
push 0x12
mov ebx, eax
call fcn.004038da
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov al, byte [ebx]
neg al
sbb eax, eax
push ecx
and eax, ebx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x14], 0
jl 0x4025c4
push dword [ebp - 4]
jmp 0x4025d9
push 0
call fcn.004038b9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402669
mov eax, dword [ebp - 0x10]
jmp 0x4036a4
push 2
call fcn.004038b9
push eax
push 1
call fcn.004038b9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4025d8
push 0x400
push edi
push 1
call fcn.004038b9
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4025c4
or eax, 0xffffffff
cmp dword [ebp - 0x10], eax
je 0x402965
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push 0xffffffffffffffeb
push 0
call fcn.004038b9
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4025c4
push dword [ebp - 0x10]
push dword [0x7a0768]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
mov ecx, eax
neg ecx
sbb ecx, ecx
push 0x10
and ecx, edx
push ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
neg eax
sbb eax, eax
xor edi, edi
and eax, ecx
push eax
push edi
push edi
call fcn.004038da
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
jmp 0x403685
push 0x48
push 0x5a
push dword [0x7a0768]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
call fcn.004038b9
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push 3
mov dword [0x409aa0], eax
call fcn.004038b9
mov dword [0x409ab0], eax
mov al, byte [ebp - 8]
push dword [ebp - 0x10]
mov cl, al
and cl, 1
mov byte [0x409ab7], 1
mov byte [0x409ab4], cl
mov cl, al
and cl, 2
and al, 4
push 0x409abc
mov byte [0x409ab5], cl
mov byte [0x409ab6], al
call fcn.0040690e
push 0x409aa0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x4025d8
push 1
call fcn.004038b9
push eax
push 0
call fcn.004038b9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4025c4
push 0
call fcn.004038da
push 0x11
mov edi, eax
call fcn.004038da
push 0x22
mov dword [ebp + 8], eax
call fcn.004038da
push dword [ebp + 8]
mov esi, 0x40a6dc
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.00405e24
mov al, byte [ebx]
push dword [ebp - 0x1c]
neg al
push dword [0x4092a8]
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 [0x7a0768]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge 0x4025c4
jmp 0x4025be
push 0
call fcn.004038da
mov esi, eax
push esi
push 0xffffffffffffffe2
call fcn.00405e24
push dword [0x4092a8]
push esi
call fcn.004063d6
test eax, eax
mov dword [ebp - 8], eax
je 0x4025be
cmp dword [ebp - 0x10], 0
je 0x402b9c
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402b70
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0xf
pop ebx
mov esi, 0x409938
push 1
push ebx
push ebx
push 0
push esi
call edi
test eax, eax
je 0x402b5e
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402b48
push 0x64
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x402b48
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0
jl 0x402b90
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00406930
jmp 0x402b9c
cmp dword [ebp - 0xc], 0
je 0x402b9c
inc dword [0x7a0788]
push dword [ebp - 8]
jmp 0x40329c
push 0
call fcn.004038da
push eax
call fcn.004037ff
mov esi, eax
test esi, esi
je 0x402bcb
push dword [esi + 0x14]
push dword [ebp - 4]
call fcn.00406930
push dword [esi + 0x18]
push ebx
jmp 0x4025da
and byte [ebx], 0
mov eax, dword [ebp - 4]
and byte [eax], 0
jmp 0x4025be
lea eax, [ebp - 0x34]
push 0xfffffffffffffff0
mov dword [ebp + 8], eax
call fcn.004038da
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 [0x7a0788]
test esi, esi
je 0x4025c4
push esi
call fcn.00406477
test eax, eax
mov dword [ebp - 8], eax
je 0x4025c4
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402c63
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
push 0x409080
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402c63
mov eax, dword [ebp + 8]
push dword [eax + 8]
push ebx
call fcn.00406930
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [ebp - 4]
call fcn.00406930
dec dword [0x7a0788]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4025c4
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
inc dword [0x7a0788]
cmp eax, 1
je 0x402c94
test eax, eax
je 0x402c94
push 0x409edc
push 0xffffffffffffffea
jmp 0x4035d6
push 0xfffffffffffffff0
call fcn.004038da
push 1
mov dword [ebp - 8], eax
call fcn.004038da
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 4], eax
je 0x402d29
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402d07
dec dword [0x7a0788]
cmp dword [ebp + 8], 0
je 0x402cef
push 0x22
call fcn.004038da
push dword [ebp - 8]
push eax
call fcn.00405e3a
call edi
test eax, eax
je 0x402d0f
inc dword [0x7a0788]
jmp 0x402d0f
push 0x40aedc
push esi
push 0x400
push dword [0x7a0768]
call edi
add esp, 0x10
jmp 0x402d0f
push ebx
push 0xffffffffffffffec
call fcn.00405e24
cmp dword [ebp - 0x1c], 0
jne 0x402d33
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
test eax, eax
je 0x402d33
push dword [ebp - 4]
jmp 0x402d1e
push dword [ebp - 8]
push 0xffffffffffffffeb
call fcn.00405e24
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x4025c4
push 0xffffffffffffffe0
call fcn.004038da
push 0x11
mov dword [ebp - 4], eax
call fcn.004038da
push 2
mov ebx, eax
call fcn.004038da
push 0xffffffffffffffcd
mov dword [ebp - 0x18], eax
call fcn.004038da
push 0x45
mov esi, eax
call fcn.004038da
xor edi, edi
mov dword [ebp - 0x24], eax
push edi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, 1
je 0x402d8b
cmp eax, edi
jne 0x402e86
lea eax, [ebp + 8]
push eax
push 0x4072b0
push 1
push edi
push 0x4072a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402e7b
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push 0x4072c0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x402e72
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push dword [0x4092a8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ebx, dword [ebp - 8]
test bh, 0xff
je 0x402df5
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, bh
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
mov edx, ebx
sar edx, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
cmp byte [esi], 0
je 0x402e1a
mov eax, dword [ebp + 8]
and ebx, 0xff
push ebx
push esi
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 - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x14], edi
jl 0x402e69
lea eax, [ebp - 0x984]
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x984]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x402e69
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0xc]
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 - 0x1c], edi
je 0x402e96
push dword [ebp - 4]
inc dword [0x7a0788]
push 0xffffffffffffffe8
jmp 0x4035d6
push dword [ebp - 4]
push 0xffffffffffffffe9
jmp 0x4035d6
push 0
call fcn.004038da
push 0x11
mov edi, eax
call fcn.004038da
mov esi, eax
mov eax, dword [0x7a0768]
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 2
call fcn.004069e6
and byte [eax + edi + 1], 0
push esi
call fcn.004069e6
and byte [eax + esi + 1], 0
push esi
push 0xffffffffffffffed
call fcn.00403a7d
push eax
mov ebx, 0x40a2dc
push str._s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x38], esi
mov esi, 0x40b2e0
push ebx
push esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], eax
call fcn.00405e3a
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x4025c4
push esi
push 0xffffffffffffffee
call fcn.00405e24
jmp 0x4025be
inc dword [0x7a0788]
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x402fb7
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 - 0xc], eax
call esi
cmp dword [ebp + 8], edi
mov esi, eax
je 0x402fb7
cmp dword [ebp - 0xc], edi
je 0x402fb7
cmp esi, edi
je 0x402fb7
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 0x402fb7
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
push edi
call dword [ebp - 0xc]
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 2
call esi
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x402fcb
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4025c4
xor ecx, ecx
cmp dword [0x7a078c], ecx
sete cl
mov eax, dword [eax + ecx*4]
jmp 0x4036a4
xor edi, edi
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x14], edi
je 0x402ffd
push ebx
call fcn.004038da
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x40300c
push 0x11
call fcn.004038da
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x40301b
push 0x22
call fcn.004038da
mov edi, eax
push 0xffffffffffffffcd
call fcn.004038da
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4020c8
push 1
call fcn.004038da
push 0x12
mov esi, eax
call fcn.004038da
push 0xffffffffffffffdd
mov ebx, eax
call fcn.004038da
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 0x4022cf
push 0x31
call fcn.004038da
mov ecx, dword [ebp - 0x1c]
inc dword [0x7a0788]
test ecx, ecx
jne 0x4030be
lea ecx, [ebp + 8]
push ecx
push 2
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025c4
push 2
call fcn.004038da
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4030b6
dec dword [0x7a0788]
push dword [ebp + 8]
jmp 0x403281
and ecx, 2
push ecx
push eax
push dword [ebp - 0x14]
call fcn.00403826
test eax, eax
jne 0x4025c4
dec dword [0x7a0788]
jmp 0x4025c4
push 0x12
call fcn.004038da
push 0x31
mov edi, eax
call fcn.004038da
inc dword [0x7a0788]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4025c4
mov ebx, dword [ebp - 8]
cmp ebx, 1
jg 0x403130
push 0x23
call fcn.004038da
mov esi, eax
push esi
call fcn.004069e6
inc eax
push eax
xor eax, eax
cmp ebx, 1
push esi
setne al
inc eax
push eax
jmp 0x40316b
cmp ebx, 2
jne 0x403149
push 3
call fcn.004038b9
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 4
push eax
push 4
jmp 0x40316b
cmp ebx, 3
jne 0x403181
mov ebx, 0x40a2dc
push 0x400
push ebx
push 0
push dword [ebp - 0x1c]
call fcn.00403aa1
test eax, eax
jl 0x403181
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 0x403181
dec dword [0x7a0788]
push dword [ebp + 8]
jmp 0x403281
push 2
call fcn.004038da
push 0x13
mov esi, eax
call fcn.004038da
mov ebx, eax
lea eax, [ebp - 0xc]
and byte [edi], 0
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025be
lea eax, [ebp - 0x18]
xor esi, esi
push eax
lea eax, [ebp + 8]
push edi
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40320a
cmp dword [ebp + 8], 4
je 0x4031f5
cmp dword [ebp + 8], 1
je 0x4031ee
cmp dword [ebp + 8], 2
jne 0x40320a
cmp dword [ebp - 8], esi
je 0x403213
jmp 0x40320d
cmp dword [ebp - 8], esi
jne 0x403200
inc dword [0x7a0788]
push dword [edi]
push edi
call fcn.00406930
jmp 0x403213
and byte [edi], 0
inc dword [0x7a0788]
push dword [ebp - 0xc]
jmp 0x403281
push 3
call fcn.004038b9
push 0x12
mov ebx, eax
call fcn.004038da
lea ecx, [ebp + 8]
and byte [edi], 0
xor esi, esi
push ecx
push 0x20019
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025be
cmp dword [ebp - 8], esi
mov eax, 0x3ff
mov dword [ebp - 0x18], eax
je 0x403264
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x403277
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
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4025c4
cmp byte [edi], 0
je 0x4025c4
push edi
call fcn.00406949
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4025c4
push 0xfffffffffffffff0
call fcn.004038da
push dword [ebp + 8]
push dword [ebp - 0x10]
push eax
call fcn.00406695
cmp eax, 0xffffffff
jne 0x4033ff
mov eax, dword [ebp - 0xc]
jmp 0x402bd1
cmp dword [ebp + 8], 0
je 0x4032e2
push 1
call fcn.004038b9
push 1
mov byte [0x409edc], al
pop eax
jmp 0x4032ef
push 0x11
call fcn.004038da
push eax
call fcn.004069e6
cmp byte [edi], 0
je 0x4025be
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push 0x409edc
push edi
call fcn.00406949
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4020c8
push 2
xor esi, esi
call fcn.004038b9
cmp eax, 1
mov dword [ebp - 4], eax
jl 0x4025c4
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jle 0x403338
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4033c1
and byte [ebp + 0xb], 0
push edi
call fcn.00406949
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x4033c1
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x1d]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033c1
cmp dword [ebp - 0x18], 1
jne 0x4033c1
cmp dword [ebp - 0x1c], 0
jne 0x403397
mov al, byte [ebp - 0x1d]
test al, al
je 0x4033c1
cmp byte [ebp + 0xb], 0xd
je 0x4033a1
cmp byte [ebp + 0xb], 0xa
je 0x4033a1
mov byte [esi + ebx], al
inc esi
cmp esi, dword [ebp - 4]
mov byte [ebp + 0xb], al
jl 0x403353
jmp 0x4033c1
movzx eax, byte [ebp - 0x1d]
push eax
jmp 0x402bc5
cmp byte [ebp + 0xb], al
je 0x4033b4
cmp al, 0xd
je 0x4033ae
cmp al, 0xa
jne 0x4033b4
mov byte [esi + ebx], al
inc esi
jmp 0x4033c1
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
and byte [esi + ebx], 0
test esi, esi
jne 0x4025c4
jmp 0x4025be
cmp byte [edi], 0
je 0x4025c4
push dword [ebp + 8]
push 0
push 1
call fcn.004038b9
push eax
push edi
call fcn.00406949
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x1c], 0
jl 0x4025c4
push eax
push dword [ebp - 0xc]
jmp 0x4025da
cmp byte [edi], 0
je 0x4025c4
push edi
call fcn.00406949
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4025c4
cmp byte [ebx], 0
je 0x4022d5
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.00406949
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4022d5
lea eax, [ebp - 0x158]
push eax
push edi
jmp 0x4035f3
push 0
call fcn.004038da
lea ecx, [ebp - 0x184]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40347d
mov eax, dword [ebp - 4]
and byte [eax], 0
and byte [ebx], 0
jmp 0x4025be
push eax
push dword [ebp - 4]
call fcn.00406930
lea eax, [ebp - 0x158]
push eax
push ebx
jmp 0x4035f3
xor edi, edi
mov esi, 0xfffffd66
push edi
call fcn.004038da
mov ebx, eax
push ebx
mov dword [ebp - 0xc], ebx
call fcn.00406569
test eax, eax
push ebx
je 0x4034bd
mov ebx, 0x409edc
push ebx
call fcn.004069d5
jmp 0x4034df
push dword [0x4092a4]
push 0x409edc
call fcn.004069d5
push eax
call fcn.004064e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x409edc
push ebx
call fcn.00406bd9
push 2
push 0x40000000
push ebx
call fcn.00406695
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4035b7
push dword [0x7a0764]
call fcn.00406477
mov ebx, eax
cmp ebx, edi
je 0x4035aa
push edi
push edi
call fcn.00403dfb
push dword [0x7a0764]
push ebx
call fcn.00403dc9
mov eax, dword [0x79ff20]
cmp dword [eax + 0x78], 0xffffffff
je 0x403580
push dword [eax + 0x7c]
call fcn.00406477
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x403580
mov eax, dword [0x79ff20]
push dword [eax + 0x7c]
push esi
push edi
push dword [eax + 0x78]
call fcn.00403aa1
cmp byte [esi], 0
je 0x403577
mov edi, dword [esi]
mov eax, dword [esi + 4]
add esi, 4
push edi
add esi, 4
add eax, ebx
push esi
push eax
call fcn.0040666b
add esi, edi
cmp byte [esi], 0
jne 0x403559
xor edi, edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x24]
push edi
push eax
push dword [0x7a0764]
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.00403aa1
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jge 0x4035d1
push dword [ebp - 0xc]
push 0xffffffffffffffe4
call fcn.00405e24
push 0x409edc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4025be
push dword [ebp - 0xc]
push 0xffffffffffffffe5
call fcn.00405e24
jmp 0x4025c4
cmp byte [0x40aee0], 0
jne 0x4025c4
push esi
push 0x40aee0
call fcn.004069d5
jmp 0x4025c4
push 0
call fcn.004038b9
mov edi, eax
cmp edi, dword [0x79ff08]
jae 0x4025be
mov ecx, dword [0x79ff3c]
lea eax, [edi + edi*2]
lea esi, [ecx + eax*8]
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x40363c
mov esi, dword [esi + eax*4]
push esi
push dword [ebp - 4]
jne 0x4025da
call fcn.0040690e
jmp 0x4025c4
or ebx, 0xffffffff
sub ebx, eax
je 0x40364f
push 2
call fcn.004038b9
mov dword [ebp + 8], eax
jmp 0x403664
push dword [ebp + 8]
push edi
push 0x417
push dword [0x7a0778]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
test ebx, ebx
mov dword [esi + ebx*4], eax
je 0x4025c4
mov eax, dword [esi + 8]
and eax, 1
push eax
push edi
push 0x418
push dword [0x7a0778]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4025c4
push 0x10
push 0xffffffffffffffdb
call fcn.00403a7d
push eax
call fcn.0040645b
mov eax, 0x7fffffff
pop edi
pop esi
pop ebx
leave
ret 4