Function at 0x1000b330
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e426
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], esi
mov byte [ebp - 0xac], 0
push 0x9c
lea eax, [ebp - 0x168]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 0x168], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x28c]
push edx
push 0x64
push esi
mov dword [ebp - 0x28c], esi
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x1000b3e1
mov eax, dword [ebp - 0x28c]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], edi
jmp 0x1000b449
cmp dword [ebp - 0x164], 6
jne 0x1000b449
cmp dword [ebp - 0x160], 2
jne 0x1000b449
push 1
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov esi, eax
lea eax, [ebp - 0x288]
push 0
push eax
mov edi, edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push esi
push 1
lea ecx, [ebp - 0x288]
mov ebx, 3
push ecx
mov dword [ebp - 0x288], 0x11c
mov dword [ebp - 0x280], ebx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1000b449
mov dword [ebp - 0x160], ebx
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000b469
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [ebp - 0x2b4]
push edx
call eax
cmp dword [ebp - 0x164], 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jne 0x1000b547
cmp byte [ebp - 0xce], 1
je 0x1000b4f5
mov edi, 0x11
mov eax, str.Windows_10_Server
lea esi, [ebp - 0xac]
call fcn.1000d050
mov eax, dword [0x1001a180]
mov esi, dword [eax + 0x1cc]
lea ecx, [ebp - 0x28c]
push ecx
push 0x40
push 5
push esi
call ebx
mov eax, 0x1000b1a0
sub eax, esi
sub eax, 5
lea edx, [ebp - 0x290]
push edx
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x28c]
push eax
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 0xa
jne 0x1000b547
cmp byte [ebp - 0xce], 1
jne 0x1000b91e
mov edi, 0xa
mov eax, str.Windows_10
lea esi, [ebp - 0xac]
call fcn.1000d050
mov ecx, dword [0x1001a180]
mov esi, dword [ecx + 0x1cc]
lea edx, [ebp - 0x28c]
push edx
push 0x40
push 5
push esi
call ebx
mov ecx, dword [ebp - 0x28c]
mov eax, 0x1000b1a0
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0x290]
push eax
push ecx
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 3
jne 0x1000b63d
cmp byte [ebp - 0xce], 1
je 0x1000b5df
mov edi, 0x16
mov eax, str.Windows_Server_2012_R2
lea esi, [ebp - 0xac]
call fcn.1000d050
mov edx, dword [0x1001a180]
mov esi, dword [edx + 0x1cc]
lea eax, [ebp - 0x28c]
push eax
push 0x40
push 5
push esi
call ebx
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x290]
push ecx
push edx
mov eax, 0x1000b1a0
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], eax
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 3
jne 0x1000b63d
cmp byte [ebp - 0xce], 1
jne 0x1000b91e
mov edi, 0xb
mov eax, str.Windows_8.1
lea esi, [ebp - 0xac]
call fcn.1000d050
mov eax, dword [0x1001a180]
mov esi, dword [eax + 0x1cc]
lea ecx, [ebp - 0x28c]
push ecx
push 0x40
push 5
push esi
call ebx
mov eax, 0x1000b1a0
sub eax, esi
sub eax, 5
lea edx, [ebp - 0x290]
push edx
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x28c]
push eax
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 2
jne 0x1000b727
cmp byte [ebp - 0xce], 1
je 0x1000b6c8
mov edi, 0x13
mov eax, str.Windows_Server_2012
lea esi, [ebp - 0xac]
call fcn.1000d050
mov ecx, dword [0x1001a180]
mov esi, dword [ecx + 0x1cc]
lea edx, [ebp - 0x28c]
push edx
push 0x40
push 5
push esi
call ebx
mov ecx, dword [ebp - 0x28c]
mov eax, 0x1000b1a0
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0x290]
push eax
push ecx
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 2
jne 0x1000b727
cmp byte [ebp - 0xce], 1
jne 0x1000b91e
mov edi, 9
mov eax, str.Windows_8
lea esi, [ebp - 0xac]
call fcn.1000d050
mov edx, dword [0x1001a180]
mov esi, dword [edx + 0x1cc]
lea eax, [ebp - 0x28c]
push eax
push 0x40
push 5
push esi
call ebx
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x290]
push ecx
push edx
mov eax, 0x1000b1a0
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], eax
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 1
jne 0x1000b810
cmp byte [ebp - 0xce], 1
je 0x1000b7b1
mov edi, 0x16
mov eax, str.Windows_Server_2008_R2
lea esi, [ebp - 0xac]
call fcn.1000d050
mov eax, dword [0x1001a180]
mov esi, dword [eax + 0x1cc]
lea ecx, [ebp - 0x28c]
push ecx
push 0x40
push 5
push esi
call ebx
mov eax, 0x1000b150
sub eax, esi
sub eax, 5
lea edx, [ebp - 0x290]
push edx
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x28c]
push eax
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 1
jne 0x1000b810
cmp byte [ebp - 0xce], 1
jne 0x1000b91e
mov edi, 9
mov eax, str.Windows_7
lea esi, [ebp - 0xac]
call fcn.1000d050
mov ecx, dword [0x1001a180]
mov esi, dword [ecx + 0x1cc]
lea edx, [ebp - 0x28c]
push edx
push 0x40
push 5
push esi
call ebx
mov ecx, dword [ebp - 0x28c]
mov eax, 0x1000b150
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0x290]
push eax
push ecx
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 0
jne 0x1000b91e
cmp byte [ebp - 0xce], 1
je 0x1000b89b
mov edi, 0x13
mov eax, str.Windows_Server_2008
lea esi, [ebp - 0xac]
call fcn.1000d050
mov edx, dword [0x1001a180]
mov esi, dword [edx + 0x1cc]
lea eax, [ebp - 0x28c]
push eax
push 0x40
push 5
push esi
call ebx
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x290]
push ecx
push edx
mov eax, 0x1000b150
sub eax, esi
push 5
sub eax, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], eax
call ebx
cmp dword [ebp - 0x164], 6
jne 0x1000b8ec
cmp dword [ebp - 0x160], 0
jne 0x1000b91e
cmp byte [ebp - 0xce], 1
jne 0x1000b91e
mov edi, 0xd
mov eax, str.Windows_Vista
lea esi, [ebp - 0xac]
call fcn.1000d050
mov eax, dword [0x1001a180]
mov esi, dword [eax + 0x1cc]
lea ecx, [ebp - 0x28c]
push ecx
push 0x40
push 5
push esi
call ebx
mov eax, 0x1000b150
sub eax, esi
sub eax, 5
lea edx, [ebp - 0x290]
push edx
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x28c]
push eax
push 5
push esi
mov byte [esi], 0xe9
call ebx
cmp dword [ebp - 0x164], 5
jae 0x1000b91e
mov edi, 7
mov eax, str.unknown
lea esi, [ebp - 0xac]
call fcn.1000d050
push 0
push 0x10010454
push str.Unknown
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp word [ebp - 0xd4], 0
mov ebx, 0x10
je 0x1000b9f2
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xc8], 0
push 0x7f
lea ecx, [ebp - 0x8f]
push 0
mov byte [ebp - 4], 1
push ecx
mov byte [ebp - 0x90], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edi, [ebx - 2]
mov eax, str._Service_Pack
lea esi, [ebp - 0xc8]
call fcn.1000d050
movzx edx, word [ebp - 0xd4]
push edx
push 0x10012640
lea eax, [ebp - 0x90]
push 0x80
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
lea eax, [ebp - 0x90]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b9a8
sub eax, edx
push eax
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0xc8]
call fcn.1000caf0
push 0
lea ecx, [ebp - 0xc8]
push ecx
or eax, 0xffffffff
lea edi, [ebp - 0xac]
call fcn.1000cfa0
cmp dword [ebp - 0xb4], ebx
jb 0x1000b9f2
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x98], ebx
jb 0x1000ba0a
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d66d
mov esp, ebp
pop ebp
ret