joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100108b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10016a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x70]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x37c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10010919
lea ecx, [esp + 0x378]
mov dword [esp + 0x370], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x10010ae2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push bind
call ebp
test eax, eax
je 0x10010955
lea ecx, [esp + 0x378]
mov dword [esp + 0x370], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x10010ae2
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x70]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x174]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0x174]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x174]
push edx
push 0xf003f
push 0
push eax
push bind
call ebp
test eax, eax
je 0x100109e3
lea ecx, [esp + 0x378]
mov dword [esp + 0x370], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x10010ae2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x70]
lea edx, [esp + 0x70]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x70]
push 0x1001f094
push edx
call esi
add esp, 8
test eax, eax
jne 0x10010a60
lea eax, [esp + 0x70]
push 0x1001f090
push eax
call esi
add esp, 8
test eax, eax
jne 0x10010a60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x70]
push 0x1001f08c
push ecx
call esi
mov edx, dword [esp + 0x378]
lea eax, [esp + 0x70]
push edx
push eax
call esi
jmp 0x10010a6f
mov ecx, dword [esp + 0x378]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x37c]
xor eax, eax
neg edx
sbb edx, edx
mov ecx, 0x10
lea edi, [esp + 0x30]
and edx, 5
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x18], edx
je 0x10010aa0
mov dword [esp + 0x34], str.WinSta0Default
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0x378]
mov dword [esp + 0x370], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x368]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x364
ret 8
Function at 0x10010b00
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10016a98
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10010b46
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push 0
push eax
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor edx, edx
cmp eax, 0x20
setg dl
lea ecx, [esp + 0x14]
mov esi, edx
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8

Function at 0x10010ba0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10016ab8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 0
test eax, eax
je 0x10010be0
push 0x104
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, esi
call fcn.10010c20
jmp 0x10010beb
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
Function at 0x10010c20
Capabilities:
Access peb ldr_data
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10016ae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x444
mov dword [esp], ecx
push ebx
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ebp, dword [esp + 0x45c]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esp + 0x144]
push str._s.
push eax
mov dword [esp + 0x460], 0
call ebx
add esp, 0xc
lea ecx, [esp + 0x140]
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x10010d6b
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x10010d5d
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x460], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x45c], 0
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]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x44]
push eax
push ebp
push str._s_s
je 0x10010d42
lea ecx, [esp + 0x258]
push ecx
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x24c]
push edx
call fcn.10010c20
jmp 0x10010d5d
lea ecx, [esp + 0x35c]
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10010c92
pop edi
pop esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
test eax, eax
jne 0x10010dd8
lea eax, [esp + 0x28]
push 0x1001f108
push eax
mov dword [esp + 0x30], 0x1001f0c8
mov dword [esp + 0x34], 0xde
mov dword [esp + 0x38], 0x1000
call fcn.10006230
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x44c], 0xffffffff
call fcn.1001578a
xor eax, eax
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
add esp, 0x450
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x44c], 0xffffffff
call fcn.1001578a
mov ecx, dword [esp + 0x444]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x450
ret 4
Function at 0x10010e10
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10016b06
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebp
mov ebp, dword [esp + 0x124]
test ebp, ebp
jne 0x10010e3e
xor eax, eax
jmp 0x10010f4b
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 4]
push esi
cmp edx, edx
push edi
mov eax, edx
je 0x10010e67
mov esi, eax
mov edi, ebx
add eax, 0x108
mov ecx, 0x42
add ebx, 0x108
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x10010e4d
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [esp + 0x14], eax
mov ebx, 0x41
push 1
push ebx
lea ecx, [esp + 0x1c]
call fcn.100157ba
push 0x1001f130
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x134], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
cmp edx, 2
jb 0x10010f0b
cmp edx, 5
ja 0x10010f0b
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1c]
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
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.10012de0
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
inc ebx
cmp ebx, 0x5a
jl 0x10010e76
mov eax, dword [ebp + 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10010f4b
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x3e0f83e1
imul ebp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov ecx, dword [esp + 0x114]
pop ebp
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x10011590
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebx, dword [eax + 8]
mov edx, dword [eax + 4]
lea ebp, [eax + 8]
mov eax, ebx
cmp eax, ebx
je 0x100115c4
push esi
push edi
mov esi, eax
mov edi, edx
add eax, 0x314
mov ecx, 0xc5
add edx, 0x314
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x100115a8
pop edi
pop esi
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
push 0x10011610
mov dword [esp + 0x10], eax
mov dword [ebp], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x100115ef
pop ecx
ret 4
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x532ae21d
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
pop ecx
ret 4
Function at 0x100119b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x448
push ebx
push ebp
mov ebp, dword [esp + 0x454]
push esi
push edi
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, ebx
cmp eax, ebx
je 0x100119e7
mov esi, eax
mov edi, edx
add eax, 0x218
mov ecx, 0x86
add edx, 0x218
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x100119cd
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [esp + 0x18], eax
mov dword [ebp + 8], edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x10011a14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x448
ret 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10011a41
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x448
ret 4
mov ecx, 0x86
xor eax, eax
lea edi, [esp + 0x13c]
lea edx, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
push 0
mov dword [esp + 0x358], ecx
mov ecx, dword [esp + 0x30]
push 0x410
mov dword [esp + 0x350], eax
mov dword [esp + 0x354], edx
mov dword [esp + 0x358], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10011b0d
lea edx, [esp + 0x354]
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x358]
push edx
push eax
push ebx
rep stosd dword es:[edi], eax
call sub.PSAPI.DLL_GetModuleFileNameExA
lea edi, [esp + 0x354]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x240]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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_CloseHandle]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x13c]
push ecx
push 1
push edx
mov ecx, ebp
call fcn.10013130
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10011a41
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x10011b58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret 4
mov ecx, dword [ebp + 8]
pop edi
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 4
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x448
ret 4

Function at 0x10011b80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10011b9d
pop esi
ret 4
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x10011bc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10016b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
test eax, eax
mov eax, str.start_sharedaccess
jne 0x10011bf9
mov eax, str.stop_sharedaccess
push esi
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 4]
push 0
push 0
push eax
push str.net.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10011c50
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete
Set file attributes

Disassembly:
sub esp, 0x37c
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x1c
push eax
push 0x1001fd5c
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x80]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10011df0
lea eax, [esp + 0x80]
push 0x104
lea ecx, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x10011df0
lea edx, [esp + 0x288]
push 0x104
push edx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10011df0
lea eax, [esp + 0x184]
push str.__c__del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x80]
lea edx, [esp + 0x184]
push ecx
push edx
call esi
lea eax, [esp + 0x184]
push str.___nul
push eax
call esi
lea ecx, [esp + 0x184]
lea edx, [esp + 0x288]
push ecx
push edx
call esi
lea eax, [esp + 0x80]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 0x100
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], 1
mov word [esp + 0x54], ax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x2a4]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10011de2
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x37c
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x37c
ret
Function at 0x100120b0
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x10016b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x100121b1
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
test ebp, ebp
jne 0x10012103
push esi
call edi
mov eax, dword [esp + 0x38]
push 2
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x10012151
mov dword [esp + 0x10], 0x1001f0c8
mov dword [esp + 0x14], 0x29e
mov dword [esp + 0x18], 0x100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.OpenService_failed___d__n
push ecx
call fcn.10006230
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
jmp 0x100121ae
mov edx, dword [esp + 0x3c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x100121c6
mov dword [esp + 0x1c], 0x1001f0c8
mov dword [esp + 0x20], 0x2b7
mov dword [esp + 0x24], 0x100
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push str.ChangeServiceConfig_failed___d__n
push eax
call fcn.10006230
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call edi
push esi
call edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x100121e9
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call edi
push esi
call edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x10012200
Capabilities:
Start service

Disassembly:
sub esp, 0x1c
push ebx
push edi
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x10012285
mov eax, dword [esp + 0x28]
push ebp
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10012280
mov eax, dword [esp + 0x34]
cmp eax, 4
jne 0x1001224d
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x1001227b
cmp eax, 1
jne 0x1001225a
lea ecx, [esp + 0x10]
push ecx
push eax
jmp 0x10012274
cmp eax, 7
jne 0x10012268
lea edx, [esp + 0x10]
push edx
push 2
jmp 0x10012274
cmp eax, 5
jne 0x1001227d
lea eax, [esp + 0x10]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop ebx
add esp, 0x1c
ret 8
Function at 0x100122a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10016b98
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
xor edi, edi
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x100122f2
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov eax, dword [esp + 0x34]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x10012378
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10012350
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0xc]
push edx
push esi
call edi
test eax, eax
je 0x10012350
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 3
jne 0x1001234f
push 0x3e8
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x10012335
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
test edi, edi
jne 0x1001236f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1001236f
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1001238a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1001238a
mov edi, 1
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, edi
pop esi
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x100128c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x24]
shr ecx, 0x14
mov dword [edx], ecx
mov eax, 1
add esp, 0x20
ret 4

Function at 0x100128f0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10012933
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push str.Unknown_CPU_Type
call sub.MFC42.DLL_CString::operator
xor eax, eax
pop esi
add esp, 8
ret 4
mov esi, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x104
mov ecx, esi
mov dword [esp + 0x10], 0x104
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0xc]
push 0
push 0
push str.ProcessorNameString
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10012989
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Unknown_CPU_Type
mov ecx, esi
call sub.MFC42.DLL_CString::operator
xor eax, eax
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, 1
pop esi
add esp, 8
ret 4

Function at 0x10012ad0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10016bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea eax, [esp + 0x18]
mov ecx, 0x1001fd64
push eax
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x1001fd60
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 4]
mov dword [esp + 4], 0
push edx
push 0
push esi
push 0x10012ab0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8