Function at 0x40a2a0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2344
call fcn.00415af0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x2334]
push pe_nt_image_headers32
push 0
push eax
mov dword [ebp - 0x2340], ebx
mov dword [ebp - 0x2338], 0
call fcn.00410240
add esp, 0xc
lea eax, [ebp - 0x2338]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
test eax, eax
jne 0x40a306
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 4
push esi
push edi
jne 0x40a3ec
mov ebx, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
mov dword [ebp - 0x233c], 0
call edi
mov esi, eax
push esi
call fcn.0040a5ce
add esp, 4
push 0
push 0
push esi
mov esi, eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
lea eax, [ebp - 0x244]
push eax
push str._2hhx
push esi
call fcn.0040a99b
add esp, 0xc
test eax, eax
jle 0x40a3a1
jmp 0x40a370
mov eax, dword [ebp - 0x233c]
inc eax
mov dword [ebp - 0x233c], eax
cmp eax, 0x200
jae 0x40a3a1
lea eax, [ebp + eax - 0x244]
add esi, 2
push eax
push str._2hhx
push esi
call fcn.0040a99b
add esp, 0xc
test eax, eax
jg 0x40a370
lea edx, [ebp - 0x2334]
lea ecx, [ebp - 0x244]
call fcn.00409c00
test eax, eax
jne 0x40a4fc
mov ebx, dword [ebp - 0x2340]
push ecx
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
call fcn.004090f0
add esp, 4
test eax, eax
je 0x40a529
push dword [ebx + 8]
push str._s_decrypted__n
call fcn.0040a8ec
add esp, 8
jmp 0x40a529
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 3
mov dword [0x4254a0], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
lea eax, [ebp - 0x233c]
mov dword [ebp - 0x233c], 0
push eax
mov ecx, 0x65
call fcn.0040a230
mov dword [ebp - 0x2344], eax
mov ecx, 0x6a
lea eax, [ebp - 0x233c]
push eax
call fcn.0040a230
mov esi, eax
add esp, 8
mov dword [0x423ac8], esi
cmp word [esi], 0x2e
je 0x40a477
mov eax, 0x2e
push 0x3e
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push 0
push eax
call fcn.00410240
add esp, 0xc
lea eax, [ebp - 0x44]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea esi, [ebp - 0x44]
mov dword [0x423ac8], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [0x422198], eax
mov ecx, 0x6b
lea eax, [ebp - 0x233c]
push eax
call fcn.0040a230
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 4
mov dword [ebp - 0x2340], eax
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
call ebx
mov esi, eax
lea ecx, [esi*4]
push ecx
call fcn.0040a5ce
add esp, 4
mov edi, eax
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x2340]
push 1
push 0
call ebx
push str.Start_decrypting_files..._n
mov dword [0x42219c], edi
call fcn.0040a8ec
mov ecx, dword [ebp - 0x2344]
lea edx, [ebp - 0x2334]
add esp, 4
call fcn.00409c00
test eax, eax
je 0x40a517
call fcn.00409e50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret
call fcn.0040a1a0
push str._nFiles_decrypted__n
call fcn.0040a8ec
add esp, 4
call fcn.00409e50
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x2244]
push 0x1000
push eax
push str.public
call esi
lea ecx, [ebp - 0x2244]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a550
sub ecx, edx
jne 0x40a56e
push 0x1000
lea eax, [ebp - 0x2244]
push eax
push str.allusers
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2244]
push 0x41e674
push eax
call esi
lea eax, [ebp - 0x2334]
push eax
lea eax, [ebp - 0x2244]
push eax
call esi
lea eax, [ebp - 0x2244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.pause
call fcn.0040aa2c
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0040a5bf
mov esp, ebp
pop ebp
ret