Function at 0x40276d
Capabilities:
Copy file
Create process on windows
Delete file
Delete registry value
Enumerate files on windows
Get common file path
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
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, 0x16c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [eax + eax*2]
lea esi, [edi + eax*8]
mov eax, dword [edi + eax*8]
mov dword [ebp - 4], eax
add eax, 0xfffffffe
cmp eax, 0x3a
ja case.default.0x402797
jmp dword [eax*4 + 0x403f52]
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push edi
push 0x40bd78
call fcn.004060a7
add esp, 0x10
jmp 0x403f48
inc dword [0x421464]
cmp dword [0x421ca4], 0
je 0x403f48
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403f48
push dword [esi + 4]
call fcn.00402752
dec eax
push 0
push eax
push edi
call fcn.004026b6
add esp, 0x10
jmp 0x403f4d
mov eax, dword [esi + 8]
test eax, eax
je 0x40280a
mov dword [0x409388], eax
jmp 0x403f2c
push dword [esi + 4]
mov esi, 0x40b154
push esi
call fcn.00406aec
push 0x40bd78
push esi
call fcn.004060a7
jmp 0x4033e0
push dword [esi + 4]
call fcn.00406bd8
mov esi, eax
pop ecx
cmp esi, 1
jge 0x40283b
push 1
pop esi
push 0x40bd78
push 0x40920c
call fcn.004060a7
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403f2c
push 0
push dword [0x421ca4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403f2c
push 5
push dword [0x421ca4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x421ca4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x403f2c
mov al, byte [esi + 4]
mov byte [0x421488], al
jmp 0x403f2c
mov eax, dword [0x42146c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4028ac
push dword [esi + 8]
push eax
call edi
mov eax, dword [0x421480]
test eax, eax
je 0x403f2c
push dword [esi + 4]
push eax
call edi
jmp 0x403f2c
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
pop ecx
pop ecx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jmp 0x403cc8
push dword [esi + 4]
mov edi, 0x40b554
push edi
call fcn.00406aec
cmp dword [esi + 8], 0
pop ecx
pop ecx
push edi
je 0x402916
push 0x409200
call fcn.004060a7
pop ecx
pop ecx
push edi
push 0x420460
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402922
push 0x4091f4
call fcn.004060a7
pop ecx
pop ecx
push edi
call fcn.004069e5
jmp 0x403f2b
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push edi
call fcn.0040406e
add esp, 0xc
jmp 0x40321a
mov eax, dword [0x40ac08]
mov ecx, dword [esi + 0xc]
test eax, eax
mov dword [0x40ac08], ecx
je 0x403222
mov eax, dword [esi + 4]
jmp 0x403f4d
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push dword [esi + 8]
mov ebx, 0x40b554
push ebx
call fcn.00406aec
add esp, 0x10
push edi
push 0x40b154
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 0x4029cf
mov ebx, 0x40b154
push 0x4091f0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b554
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4029d4
mov ebx, 0x40b154
push 0x40b554
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4029ef
push ebx
push 0x4091e8
jmp 0x403f25
cmp dword [esi + 0xc], 0
je 0x403dd4
push edi
call fcn.0040406e
test eax, eax
pop ecx
je 0x403dd4
inc dword [0x40ad50]
push 0x40b554
push edi
call fcn.0040678b
push ebx
push 0x4091d8
jmp 0x40281e
mov ebx, dword [esi + 4]
push dword [esi + 8]
mov edi, 0x40b974
shl ebx, 0xa
push edi
add ebx, 0x41ac60
call fcn.00406aec
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 0x402a7b
mov eax, dword [ebp + 0xc]
cmp eax, edi
jbe 0x402a84
cmp byte [eax], 0
je 0x402a84
push edi
call fcn.0040406e
test eax, eax
pop ecx
je 0x402a7b
add eax, 0x2c
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402a84
inc dword [0x40ac08]
and byte [ebx], 0
cmp dword [esi + 0xc], 0
jne 0x403f2c
push 0x400
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x403f2c
mov ebx, dword [esi + 4]
push dword [esi + 8]
mov edi, 0x40b974
shl ebx, 0xa
push edi
add ebx, 0x41ac60
call fcn.00406aec
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 0x403f2c
jmp 0x403dd1
mov esi, dword [esi + 4]
mov edi, 0x40b974
shl esi, 0xa
push edi
push 0x400
add esi, 0x41ac60
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x402b16
push esi
push 0
push 0x4091d4
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x403f2c
and byte [esi], 0
jmp 0x403dd4
mov eax, dword [esi + 4]
mov edi, 0x40b974
push 0x420460
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.004065f3
push dword [esi + 8]
mov ebx, 0x40b154
push ebx
call fcn.00406aec
push ebx
call fcn.00406682
add esp, 0x10
test eax, eax
push ebx
push edi
je 0x402b60
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402b66
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x40ad54
cmp dword [ebp + 0xc], 0
jne 0x402b87
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402bb7
xor eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0xc], 3
jne 0x402bb7
push edi
call fcn.0040406e
test eax, eax
pop ecx
mov dword [ebp + 0xc], 1
je 0x402bb7
lea ecx, [esi + 0x10]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp + 0xc], ecx
xor eax, eax
cmp dword [ebp + 0xc], 1
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406771
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x402c6e
cmp dword [ebp + 0xc], 0
jne 0x402c54
push 0x41ac60
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x41ac60
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x421474]
push dword [eax + 0x30]
push 0x40b554
call fcn.00406aec
pop ecx
pop ecx
push ebx
push 0x41ac60
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x12
push 0x4214a0
push 0x40b554
push dword [0x421ca4]
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 4
je 0x402b6b
dec eax
je 0x403dd4
push edi
push 0x4091c8
call fcn.004060a7
pop ecx
pop ecx
jmp 0x403f48
push 0x40b154
push 0x4091c0
call fcn.004060a7
cmp dword [ebp + 0xc], 2
pop ecx
pop ecx
jmp 0x403cc8
mov ebx, 0x40b154
push ebx
push 0x4091b8
call fcn.004060a7
push dword [ebp + 8]
push dword [esi + 0xc]
call fcn.0040434c
mov dword [ebp + 0xc], eax
lea eax, [esi + 0x10]
add esp, 0x10
cmp dword [eax], 0xffffffff
jne 0x402c9d
cmp dword [esi + 0x14], 0xffffffff
je 0x402caa
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 0x403f2c
cmp dword [ebp + 0xc], 0xfffffffe
jne 0x402cd9
push 0x4091a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402ce5
push 0x409180
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
push 0x4214a0
push edi
jmp 0x403f3c
push dword [esi + 4]
mov ebx, 0x40b554
push ebx
call fcn.00406aec
pop ecx
mov edi, 0x40b974
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.0040662b
pop ecx
lea eax, [ebp - 0x16c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x403f2c
test byte [ebp - 0x16c], 0x10
jne 0x402da9
lea eax, [ebp - 0x140]
push eax
push edi
push str._s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x16c]
add esp, 0x10
test al, 1
je 0x402d65
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 0x402d7f
push ebx
push 0x40916c
call fcn.004060a7
pop ecx
pop ecx
jmp 0x402da9
cmp dword [esi + 8], 0
je 0x402da3
inc dword [0x40ad50]
push ebx
push 0x40915c
call fcn.004060a7
push 0
push ebx
call fcn.0040678b
add esp, 0x10
jmp 0x402da9
inc dword [0x40ac08]
lea eax, [ebp - 0x16c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d30
push dword [ebp + 0xc]
jmp 0x403d3a
push dword [esi + 8]
mov edi, 0x40b154
push edi
call fcn.00406aec
pop ecx
pop ecx
push dword [esi + 4]
push 0x4214a0
push edi
push dword [0x421ca4]
call dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x403dd4
mov ecx, dword [esi + 0xc]
mov edx, ecx
and edx, 0xffff
cmp eax, edx
je 0x402fdd
sar ecx, 0x10
cmp eax, ecx
jne 0x403f2c
jmp 0x402feb
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push edi
call fcn.00406611
add esp, 0xc
cmp al, 0x5c
jne 0x402e3b
push edi
call fcn.0040662b
pop ecx
push dword [esi + 8]
push edi
call fcn.00404093
push edi
call fcn.0040406e
add esp, 0xc
test eax, eax
je 0x403f2c
jmp 0x403dd4
push dword [esi + 8]
mov edi, 0x40b974
push edi
call fcn.00406aec
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 4]
shl eax, 0xa
add eax, 0x41ac60
push eax
call fcn.00406b17
jmp 0x403f2a
push dword [esi + 0xc]
call fcn.00406bd8
push dword [esi + 0x10]
mov dword [ebp + 0xc], eax
call fcn.00406bd8
mov ebx, dword [esi + 4]
push dword [esi + 8]
mov edi, 0x40b974
mov dword [ebp + 8], eax
shl ebx, 0xa
push edi
add ebx, 0x41ac60
call fcn.00406aec
and byte [ebx], 0
add esp, 0x10
cmp dword [esi + 0xc], 0
mov esi, dword [ebp + 0xc]
jl 0x402ecf
test esi, esi
je 0x403f2c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
mov ecx, dword [ebp + 8]
test ecx, ecx
jge 0x402ee7
add ecx, eax
js 0x403f2c
cmp ecx, eax
jle 0x402eed
mov ecx, eax
lea eax, [ecx + 0x40b974]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x403f2c
jge 0x402f0e
push ebx
call edi
add esi, eax
jns 0x402f0e
xor esi, esi
cmp esi, 0x400
jge 0x403f2c
and byte [ebx + esi], 0
jmp 0x403f2c
push dword [esi + 4]
mov ebx, 0x40ad54
push ebx
call fcn.00406aec
push dword [esi + 8]
mov edi, 0x40b154
push edi
call fcn.00406aec
add esp, 0x10
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402fdd
mov eax, dword [esi + 0xc]
jmp 0x403f4d
mov ebx, dword [esi + 4]
push dword [esi + 8]
mov edi, 0x40b974
shl ebx, 0xa
push edi
add ebx, 0x41ac60
call fcn.00406aec
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
push 0x400
push ebx
push edi
je 0x402f97
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402f9d
and byte [ebx], al
inc dword [0x40ac08]
jmp 0x402f9d
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
and byte [ebx + 0x3ff], 0
jmp 0x403f2c
push dword [esi + 4]
call fcn.00406bd8
push dword [esi + 8]
mov edi, eax
call fcn.00406bd8
pop ecx
cmp edi, eax
pop ecx
jl 0x402fdd
jle 0x402f52
jmp 0x402feb
push dword [esi + 4]
call fcn.00406bd8
push dword [esi + 8]
mov edi, eax
call fcn.00406bd8
pop ecx
cmp edi, eax
pop ecx
jae 0x402fe5
mov eax, dword [esi + 0x10]
jmp 0x403f4d
jbe 0x402f52
mov eax, dword [esi + 0x14]
jmp 0x403f4d
mov ebx, dword [esi + 4]
push dword [esi + 8]
shl ebx, 0xa
add ebx, 0x41ac60
call fcn.00406bd8
push dword [esi + 0xc]
mov edi, eax
call fcn.00406bd8
mov esi, dword [esi + 0x10]
pop ecx
pop ecx
cmp esi, 0xb
mov ecx, eax
ja case.default.0x40301d
jmp dword [esi*4 + 0x40403e]
add edi, ecx
jmp case.default.0x40301d
sub edi, ecx
jmp case.default.0x40301d
imul ecx, edi
mov edi, ecx
jmp case.default.0x40301d
test ecx, ecx
je 0x40307d
mov eax, edi
cdq
idiv ecx
mov edi, eax
jmp case.default.0x40301d
or edi, ecx
jmp case.default.0x40301d
and edi, ecx
jmp case.default.0x40301d
xor edi, ecx
jmp case.default.0x40301d
not edi
jmp case.default.0x40301d
xor eax, eax
test edi, edi
sete al
jmp 0x40303c
test edi, edi
jne 0x40306b
test ecx, ecx
jne 0x40306b
xor edi, edi
jmp case.default.0x40301d
test edi, edi
je 0x403061
jmp 0x40305d
push 1
pop edi
jmp case.default.0x40301d
test ecx, ecx
je 0x40307d
mov eax, edi
cdq
idiv ecx
mov edi, edx
jmp case.default.0x40301d
xor edi, edi
inc dword [0x40ac08]
push edi
jmp 0x403c95
push dword [esi + 8]
mov edi, 0x40b974
push edi
call fcn.00406aec
push dword [esi + 0xc]
call fcn.00406bd8
push eax
mov eax, dword [esi + 4]
shl eax, 0xa
add eax, 0x41ac60
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x403f2c
mov eax, dword [esi + 0xc]
mov edi, dword [0x40bd74]
test eax, eax
je 0x403113
dec eax
test edi, edi
je case.default.0x402797
mov edi, dword [edi]
mov ecx, eax
dec eax
test ecx, ecx
jne 0x4030cb
test edi, edi
je case.default.0x402797
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [edi + 4]
mov edi, 0x40b974
push ebx
push edi
call esi
mov eax, dword [0x40bd74]
add eax, 4
push eax
push ebx
call esi
mov eax, dword [0x40bd74]
push edi
add eax, 4
push eax
call esi
jmp 0x403f2c
cmp dword [esi + 8], 0
je 0x403144
test edi, edi
je 0x403dd4
lea eax, [edi + 4]
push eax
mov eax, dword [esi + 4]
shl eax, 0xa
add eax, 0x41ac60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi]
push edi
mov dword [0x40bd74], eax
jmp 0x4034a8
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esi + 4]
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.00406aec
mov eax, dword [0x40bd74]
pop ecx
mov dword [edi], eax
pop ecx
mov dword [0x40bd74], edi
jmp 0x403f2c
push dword [esi + 0x10]
call fcn.00406bd8
push dword [esi + 0x14]
mov dword [ebp + 8], eax
call fcn.00406bd8
push dword [esi + 8]
mov edi, 0x40b974
mov dword [ebp + 0xc], eax
push edi
call fcn.00406aec
push dword [esi + 0xc]
mov ebx, 0x40b554
push ebx
call fcn.00406aec
add esp, 0x18
cmp dword [ebp - 4], 0x22
jne 0x4031cc
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00406b2e
pop ecx
push eax
push edi
call fcn.00406b2e
pop ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4031f0
mov al, byte [0x40b554]
neg al
sbb eax, eax
and eax, ebx
push eax
mov al, byte [0x40b974]
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 + 4]
test esi, esi
jl 0x403f2c
shl esi, 0xa
push eax
add esi, 0x41ac60
jmp 0x403d17
push dword [esi + 4]
call fcn.00406bd8
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402f52
mov eax, dword [esi + 8]
jmp 0x403f4d
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push dword [esi + 8]
push 0x40b554
call fcn.00406aec
push dword [esi + 0xc]
mov ebx, 0x40ad54
push ebx
call fcn.00406aec
add esp, 0x18
push edi
push 0x40b154
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x409158
push 0x40b154
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b554
push 0x40b154
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b154
push str.ExecShell:
call fcn.004060a7
mov al, byte [0x40ad54]
pop ecx
pop ecx
push dword [esi + 0x10]
neg al
sbb eax, eax
push 0x420460
and eax, ebx
push eax
mov al, byte [0x40b974]
neg al
sbb eax, eax
push 0x40b554
and eax, edi
push eax
push dword [0x421ca4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge 0x403f2c
jmp 0x403dd4
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push edi
push 0x409144
call fcn.004060a7
mov al, byte [0x420460]
neg al
sbb eax, eax
and eax, 0x420460
push eax
push edi
call fcn.0040659a
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x403dd4
cmp dword [esi + 8], 0
je 0x40338f
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403359
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, 0x40b958
push 1
push 0xf
push 0xf
push 0
push edi
call ebx
test eax, eax
je 0x403347
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40332f
push 0x64
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40332f
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esi + 0xc]
test esi, esi
jl 0x403383
push dword [ebp + 8]
shl esi, 0xa
add esi, 0x41ac60
push esi
call fcn.00406b17
pop ecx
pop ecx
jmp 0x40338f
cmp dword [ebp + 8], 0
je 0x40338f
inc dword [0x40ac08]
push dword [ebp + 0xc]
jmp 0x403b50
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
push dword [esi + 4]
mov ecx, 0x41ac60
shl eax, 0xa
mov edi, 0x40b974
add eax, ecx
shl ebx, 0xa
push edi
add ebx, ecx
mov dword [ebp + 0xc], eax
call fcn.00406aec
push edi
call fcn.0040406e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4033e8
push dword [esi + 0x14]
push dword [ebp + 0xc]
call fcn.00406b17
push dword [esi + 0x18]
push ebx
call fcn.00406b17
add esp, 0x10
jmp 0x403f2c
mov eax, dword [ebp + 0xc]
and byte [ebx], 0
and byte [eax], 0
jmp 0x403dd4
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
push dword [esi + 4]
mov ecx, 0x41ac60
shl eax, 0xa
add eax, ecx
mov edi, 0x40b974
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
shl ebx, 0xa
push edi
add ebx, ecx
mov dword [ebp + 0xc], eax
call fcn.00406aec
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
and byte [ebx], 0
mov esi, eax
mov eax, dword [ebp - 8]
and byte [eax], 0
inc dword [0x40ac08]
test esi, esi
je 0x403f2c
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 8], eax
je 0x403f2c
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4034a5
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x409140
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4034a5
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push ebx
call fcn.00406b17
mov eax, dword [ebp + 0xc]
push dword [eax + 0xc]
push dword [ebp - 8]
call fcn.00406b17
add esp, 0x10
dec dword [0x40ac08]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403f2c
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
inc dword [0x40ac08]
cmp eax, 1
je 0x4034d9
test eax, eax
je 0x4034d9
push 0x40b974
push 0x409130
jmp 0x403f25
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push dword [esi + 8]
mov ebx, 0x40b554
push ebx
call fcn.00406aec
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x403571
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x403559
dec dword [0x40ac08]
mov esi, dword [esi + 0xc]
test esi, esi
jge 0x40353e
push 0x40bd74
push 0x41ac60
push 0x400
push dword [0x421ca4]
call eax
add esp, 0x10
jmp 0x403566
mov ebx, 0x40ad54
push esi
push ebx
call fcn.00406aec
push edi
push ebx
call fcn.004060a7
add esp, 0x10
call dword [ebp + 0xc]
jmp 0x403566
push ebx
push 0x409120
call fcn.004060a7
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40357e
push edi
push 0x409114
call fcn.004060a7
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x403f2c
push dword [esi + 4]
mov ebx, 0x40ad54
push ebx
call fcn.00406aec
push dword [esi + 8]
push 0x40b554
call fcn.00406aec
push dword [esi + 0xc]
mov edi, 0x40b974
push edi
call fcn.00406aec
push dword [esi + 0x10]
push 0x40b154
call fcn.00406aec
mov eax, dword [esi + 0x14]
mov ecx, eax
sar ecx, 0x10
push ecx
xor ecx, ecx
mov cl, ah
push ecx
mov cl, byte [0x40b974]
neg cl
sbb ecx, ecx
push 0x420460
and ecx, edi
and eax, 0xff
push ecx
push 0x40b554
push eax
mov al, byte [0x40b154]
neg al
sbb eax, eax
and eax, 0x40b154
push eax
push ebx
push dword [0x421ca4]
call fcn.00406dc9
add esp, 0x44
test eax, eax
je 0x40361d
inc dword [0x40ac08]
push ebx
push 0x409100
jmp 0x403f25
push ebx
push 0x4090f0
jmp 0x403f25
push dword [esi + 4]
mov edi, 0x40b974
push edi
call fcn.00406aec
push dword [esi + 8]
push 0x40b554
call fcn.00406aec
mov eax, dword [0x421ca4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 2
push edi
call ebx
and byte [eax + 0x40b975], 0
push 0x40b554
call ebx
and byte [eax + 0x40b555], 0
mov ebx, 0x40ad54
push 0x4090e8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40b554
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ax, word [esi + 0xc]
mov esi, 0x40bd78
push ebx
push esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x40b554
mov dword [ebp - 0x12], ebx
mov word [ebp - 0x1c], ax
call fcn.004060a7
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x403f2c
push esi
push 0x4090dc
call fcn.004060a7
pop ecx
pop ecx
jmp 0x403dd4
inc dword [0x40ac08]
cmp dword [esi + 4], 0xbadf00d
jne case.default.0x402797
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x403773
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 0x403773
cmp dword [ebp + 8], edi
je 0x403773
cmp esi, edi
je 0x403773
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 0x403773
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push edi
call dword [ebp + 8]
push edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call esi
add esp, 0x24
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x403787
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403f2c
xor eax, eax
cmp dword [0x40ad50], eax
sete al
mov eax, dword [esi + eax*4 + 4]
jmp 0x403f4d
mov eax, dword [esi + 4]
mov dword [0x40ad50], eax
jmp 0x403f2c
push dword [esi + 4]
and dword [ebp + 0xc], 0
and dword [ebp + 8], 0
mov edi, 0x40b974
push edi
call fcn.00406aec
mov eax, dword [esi + 8]
pop ecx
test eax, eax
pop ecx
jl 0x4037e4
mov ebx, 0x40b554
push eax
push ebx
call fcn.00406aec
pop ecx
mov dword [ebp + 8], ebx
pop ecx
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x4037fc
mov ebx, 0x40ad54
push eax
push ebx
call fcn.00406aec
pop ecx
mov dword [ebp + 0xc], ebx
pop ecx
push dword [esi + 0x10]
mov esi, 0x40b154
push esi
call fcn.00406aec
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4028de
mov eax, dword [esi + 4]
push dword [esi + 8]
shl eax, 0xa
mov edi, 0x40b974
add eax, 0x41ac60
push edi
mov dword [ebp + 0xc], eax
call fcn.00406aec
push dword [esi + 0xc]
push 0x40b554
call fcn.00406aec
push dword [esi + 0x10]
mov ebx, 0x40ad54
push ebx
call fcn.00406aec
mov esi, dword [ebp + 0xc]
add esp, 0x18
push ebx
push 0x3ff
push esi
push dword [0x409034]
push 0x40b554
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x409034]
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x403f2c
inc dword [0x40ac08]
mov eax, esi
and byte [eax], 0
jmp 0x403f2c
mov ebx, dword [esi + 4]
inc dword [0x40ac08]
push dword [esi + 8]
mov edi, 0x40b154
push edi
call fcn.00406aec
cmp dword [esi + 0xc], 0xffffffff
pop ecx
pop ecx
je 0x4038fa
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 0x403f2c
push dword [esi + 0xc]
mov edi, 0x40b974
push edi
call fcn.00406aec
pop ecx
pop ecx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4038f2
dec dword [0x40ac08]
push dword [ebp + 0xc]
jmp 0x403b28
push dword [esi + 0x10]
push edi
push ebx
call fcn.0040418b
add esp, 0xc
test eax, eax
jne 0x403f2c
dec dword [0x40ac08]
jmp 0x403f2c
mov eax, dword [esi + 4]
mov edi, 0x40b554
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x14]
inc dword [0x40ac08]
push dword [esi + 0xc]
mov dword [ebp + 0xc], eax
push edi
call fcn.00406aec
push dword [esi + 8]
mov ebx, 0x40b154
push ebx
call fcn.00406aec
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 0x403f2c
cmp dword [ebp + 0xc], 1
jg 0x40398e
push dword [esi + 0x10]
mov ebx, 0x40ad54
push ebx
call fcn.00406aec
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 0x4039ce
cmp dword [ebp + 0xc], 2
jne 0x4039aa
push dword [esi + 0x10]
call fcn.00406bd8
pop ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push 4
push eax
push 4
jmp 0x4039ce
cmp dword [ebp + 0xc], 3
jne 0x4039e4
mov ebx, 0x40ad54
push 0x400
push ebx
push dword [esi + 0x10]
call fcn.00404547
add esp, 0xc
test eax, eax
jl 0x4039e4
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 0x4039e4
dec dword [0x40ac08]
push dword [ebp + 8]
jmp 0x403b28
mov ebx, dword [esi + 4]
push dword [esi + 0xc]
mov eax, dword [esi + 8]
mov edi, 0x40b974
shl ebx, 0xa
push edi
add ebx, 0x41ac60
mov dword [ebp + 0xc], eax
call fcn.00406aec
push dword [esi + 0x10]
push 0x40b554
call fcn.00406aec
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 0x403dd4
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp + 0xc]
push ebx
push eax
push edi
push 0x40b554
push dword [ebp + 8]
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a91
cmp dword [ebp + 0xc], 4
je 0x403a7a
cmp dword [ebp + 0xc], 1
je 0x403a73
cmp dword [ebp + 0xc], 2
jne 0x403a91
cmp dword [esi + 0x14], edi
je 0x403a9a
jmp 0x403a94
cmp dword [esi + 0x14], edi
jne 0x403a85
inc dword [0x40ac08]
push dword [ebx]
push ebx
call fcn.00406b17
pop ecx
pop ecx
jmp 0x403a9a
and byte [ebx], 0
inc dword [0x40ac08]
push dword [ebp + 8]
jmp 0x403b28
mov edi, dword [esi + 4]
push dword [esi + 0x10]
shl edi, 0xa
add edi, 0x41ac60
call fcn.00406bd8
push dword [esi + 0xc]
mov ebx, 0x40b554
mov dword [ebp + 8], eax
push ebx
call fcn.00406aec
and byte [edi], 0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push 0
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403dd4
xor ecx, ecx
mov eax, 0x3ff
cmp dword [esi + 0x14], ecx
mov dword [ebp - 4], eax
je 0x403b09
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x403b1e
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 0x403f2c
mov esi, dword [esi + 4]
shl esi, 0xa
add esi, 0x41ac60
cmp byte [esi], 0
je 0x403f2c
push esi
call fcn.00406b2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403f2c
mov ebx, dword [esi + 0x10]
push dword [esi + 4]
mov edi, 0x40b974
shl ebx, 0xa
push edi
add ebx, 0x41ac60
call fcn.00406aec
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call fcn.00406771
add esp, 0x14
cmp eax, 0xffffffff
jne 0x403c94
jmp 0x403dd1
mov edi, dword [esi + 4]
push dword [esi + 8]
shl edi, 0xa
add edi, 0x41ac60
cmp dword [esi + 0xc], 0
mov ebx, 0x40b554
je 0x403bbc
call fcn.00406bd8
pop ecx
mov byte [0x40b554], al
push 1
pop eax
jmp 0x403bcb
push ebx
call fcn.00406aec
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi], 0
je 0x403dd4
lea ecx, [ebp + 0xc]
push 0
push ecx
push eax
push ebx
push edi
call fcn.00406b2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4028de
mov ebx, dword [esi + 8]
mov edi, dword [esi + 4]
push dword [esi + 0xc]
and dword [ebp + 8], 0
shl ebx, 0xa
mov eax, 0x41ac60
shl edi, 0xa
add ebx, eax
add edi, eax
call fcn.00406bd8
cmp eax, 1
pop ecx
mov dword [ebp - 8], eax
jl 0x403f2c
mov eax, 0x3ff
cmp dword [ebp - 8], eax
jle 0x403c2a
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x403cbf
and byte [ebp + 0xf], 0
push edi
call fcn.00406b2e
cmp dword [ebp - 8], 0
pop ecx
mov dword [ebp - 4], eax
jle 0x403cbf
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
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 0x403cc2
cmp dword [ebp - 0xc], 1
jne 0x403cc2
cmp dword [esi + 0x10], 0
jne 0x403c90
mov al, byte [ebp + 0xb]
test al, al
je 0x403cc2
cmp byte [ebp + 0xf], 0xd
je 0x403c9b
cmp byte [ebp + 0xf], 0xa
je 0x403c9b
mov byte [edi + ebx], al
inc edi
cmp edi, dword [ebp - 8]
mov byte [ebp + 0xf], al
jl 0x403c4a
jmp 0x403cc2
movzx eax, byte [ebp + 0xb]
push eax
push ebx
jmp 0x402e7e
cmp byte [ebp + 0xf], al
je 0x403cae
cmp al, 0xd
je 0x403ca8
cmp al, 0xa
jne 0x403cae
mov byte [edi + ebx], al
inc edi
jmp 0x403cc2
push 1
push 0
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403cc2
mov edi, dword [ebp + 8]
and byte [edi + ebx], 0
test edi, edi
jne 0x403f2c
jmp 0x403dd4
mov edi, dword [esi + 4]
mov ebx, 0x41ac60
shl edi, 0xa
add edi, ebx
cmp byte [edi], 0
je 0x403f2c
push dword [esi + 0xc]
push 0
push dword [esi + 8]
call fcn.00406bd8
pop ecx
push eax
push edi
call fcn.00406b2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esi + 0x10]
test esi, esi
jl 0x403f2c
shl esi, 0xa
push eax
add esi, ebx
push esi
jmp 0x402e7e
mov esi, dword [esi + 4]
shl esi, 0xa
add esi, 0x41ac60
cmp byte [esi], 0
je 0x403f2c
push esi
call fcn.00406b2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x403f2c
mov edi, dword [esi + 4]
mov esi, dword [esi + 8]
mov eax, 0x41ac60
shl esi, 0xa
shl edi, 0xa
add esi, eax
add edi, eax
cmp byte [esi], 0
je 0x403d82
lea eax, [ebp - 0x16c]
push eax
push esi
call fcn.00406b2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x403d82
lea eax, [ebp - 0x140]
push eax
push edi
jmp 0x403df2
inc dword [0x40ac08]
and byte [edi], 0
jmp 0x403f2c
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
push dword [esi + 4]
mov ecx, 0x41ac60
shl eax, 0xa
mov edi, 0x40b974
add eax, ecx
shl ebx, 0xa
push edi
add ebx, ecx
mov dword [ebp + 0xc], eax
call fcn.00406aec
pop ecx
lea eax, [ebp - 0x16c]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x403ddf
mov eax, dword [ebp + 0xc]
and byte [eax], 0
and byte [ebx], 0
inc dword [0x40ac08]
jmp 0x403f2c
push eax
push dword [ebp + 0xc]
call fcn.00406b17
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403f2c
push dword [esi + 4]
mov edi, 0x40b974
mov dword [ebp + 8], 0xfffffd66
push edi
call fcn.00406aec
push edi
call fcn.00406682
add esp, 0xc
test eax, eax
je 0x403e2e
mov esi, 0x40b554
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403e4e
mov esi, 0x40b554
push 0x420060
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004065f3
pop ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 2
push 0x40000000
push esi
call fcn.00406771
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x403f09
push dword [0x421ca0]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403efa
xor eax, eax
push eax
push eax
push eax
push dword [0x421ca8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [0x421ca0]
push ebx
push dword [0x421ca8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x421474]
mov ecx, dword [eax + 0xd4]
test ecx, ecx
jle 0x403ece
push dword [eax + 0xd8]
add ecx, ebx
push ecx
push dword [eax + 0xd0]
call fcn.00404547
add esp, 0xc
lea eax, [ebp - 0xc]
push 0
push eax
push dword [0x421ca0]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.0040434c
pop ecx
mov dword [ebp + 8], eax
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
jge 0x403f1f
push edi
push 0x409068
call fcn.004060a7
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403f2c
push edi
push 0x409054
call fcn.004060a7
pop ecx
pop ecx
xor eax, eax
jmp 0x403f4d
push 0x10
push 0x4214a0
push 0x40903c
push dword [0x421ca4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x7fffffff
pop edi
pop esi
pop ebx
leave
ret