joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052af8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10052b1e
mov ecx, edx
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10052b0b
sub ecx, esi
pop edi
sar ecx, 1
pop esi
jmp 0x10052b20
xor ecx, ecx
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb al, al
inc al
pop ebp
ret

Function at 0x10052b8e
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x100f0984
call fcn.10082214
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.10047fbf
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10054455
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.10054451
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.1005444c
call fcn.100821dd
ret 4

Function at 0x10052bfa
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x100f0984
call fcn.10082214
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.10047fbf
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10054455
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.10054451
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.1005444c
call fcn.100821dd
ret 4
Function at 0x100532f6
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100f55e0
mov dword [ebp - 0xa38], eax
call fcn.10022050
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1005339a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x1005339a
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10067cda
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100a25c0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x100533ab
push ebx
call fcn.1008144f
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret
mov eax, dword [0x100f562c]
mov dword [ebp - 0xc], eax
mov ax, word [0x100f5630]
push 0x208
mov word [ebp - 8], ax
call fcn.10067cda
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10053420
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100534bf
push edi
call fcn.1008144f
push 2
call fcn.10067cda
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100534bf
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10053427
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100ad25e
add esp, 0xc
test eax, eax
je 0x1005346f
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10053451
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x100534bf
jmp 0x100533d3
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100f5634
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.10003380
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.10001e10
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.10001fe0
lea ecx, [ebp - 0xa30]
call fcn.10001ee0
push ebx
call fcn.1008144f
push edi
call fcn.1008144f
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1005339c
Function at 0x100534d5
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.100821b0
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.100a25c0
and dword [ebp - 0x1214], 0
add esp, 0xc
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x100535ab
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x100535aa
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.100a25c0
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.10053b31
add esp, 0x18
test eax, eax
je 0x1005359c
lea eax, [ebp - 0x210]
push eax
call fcn.100b93b0
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.100a2f2a
add esp, 0xc
test eax, eax
jne 0x100535a3
inc esi
cmp esi, edi
jb 0x10053545
jmp 0x100535aa
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret
Function at 0x1005365b
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x110
xor edi, edi
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.100a25c0
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], 4
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100537b5
cmp dword [ebp - 0x114], 5
jbe 0x100537b5
lea eax, [ebp - 0x11c]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x100537b5
cmp dword [ebp - 0x114], 6
jb 0x10053779
jne 0x1005370d
cmp dword [ebp - 0x110], 2
jb 0x10053779
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push str.ConsentPromptBehaviorAdmin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
push str.PromptOnSecureDesktop
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x120], edi
jne 0x10053772
cmp dword [ebp - 0x128], edi
je 0x10053775
xor edi, edi
inc edi
mov eax, edi
jmp 0x100537b7
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 0x120]
sbb eax, eax
neg eax
jmp 0x100537b7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10081454
leave
ret

Function at 0x100537c4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1005381c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb eax, eax
and dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
pop ebx
je 0x1005382c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10081454
leave
ret
Function at 0x100539c4
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x100edd60
call fcn.10082248
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10053a4f
cmp esi, 0xffffffff
je 0x10053a4f
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.100532f6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1005383b
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.10001ee0
test bl, bl
je 0x10053a4f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10053a4f
cmp byte [ebp + 0x14], 0
je 0x10053a4f
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x10053a6d
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10053a6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.100821f2
ret

Function at 0x10053a75
Capabilities:
Check if file exists
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10053b20
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10053b20
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10053b20
push edi
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
push dword [ebp - 0x228]
call fcn.100539c4
add esp, 0x10
test al, al
je 0x10053ae8
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10053aca
test edi, edi
jle 0x10053b1b
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, edi
pop edi
jmp 0x10053b23
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret

Function at 0x10053b31
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x10053b5e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x10053b64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.100a25c0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 8], 0
mov ecx, str.runas
mov eax, str.open
mov dword [ebp - 0x20], 1
cmove eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret

Function at 0x10053cf1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.10053ca6
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x10053d70
cmp dword [ebp - 0x118], ebx
jbe 0x10053daa
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x10053daa
cmp eax, 6
jne 0x10053d9a
cmp byte [ebp - 6], 1
jne 0x10053d96
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x10053d92
sub eax, 1
je 0x10053d8e
push 7
jmp 0x10053da1
push 5
jmp 0x10053da1
push 3
jmp 0x10053da1
push 4
jmp 0x10053da1
cmp eax, 0xa
jne 0x10053da4
push 8
pop ebx
jmp 0x10053daa
push 9
pop ecx
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret
Function at 0x100557e6
Capabilities:
Enumerate files on windows

Disassembly:
push 0x284
mov eax, 0x100f0e6b
call fcn.10082248
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
xor ebx, ebx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.1003744e
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.1003565b
pop ecx
test eax, eax
jne 0x1005582f
push 0x100f58d0
lea ecx, [ebp - 0x28]
call fcn.1003768b
push 0x100fa64c
lea ecx, [ebp - 0x28]
call fcn.1003768b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100558ef
xor eax, eax
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
push eax
call fcn.10022050
push 0x100fa654
lea ecx, [ebp - 0x40]
call fcn.1003eff7
test eax, eax
je 0x100558c2
push 0x100fa658
lea ecx, [ebp - 0x40]
call fcn.1003eff7
test eax, eax
je 0x100558c2
test byte [ebp - 0x290], 0x10
jne 0x100558c2
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.1003eff7
test eax, eax
je 0x100558de
lea ecx, [ebp - 0x40]
call fcn.10001ee0
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10055860
jmp 0x100558e8
lea ecx, [ebp - 0x40]
mov bl, 1
call fcn.10001ee0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.10001ee0
lea ecx, [ebp + 8]
call fcn.10001ee0
lea ecx, [ebp + 0x20]
call fcn.10001ee0
mov al, bl
call fcn.100821f2
ret 0x30

Function at 0x10055a4d
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10055abd
push ebx
push esi
push esi
push 0x100f55e0
push esi
push esi
push dword [ebp + 0x10]
push 1
push 2
push 0x110
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
je 0x10055ab3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x10055ac3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov ebx, 0x208
xor edi, edi
push ebx
push edi
push eax
call fcn.100a25c0
push esi
lea eax, [ebp - 0x20c]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.10056154
add esp, 0x18
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10055bb3
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.100a25c0
add esp, 0xc
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push str.ImagePath
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
call fcn.100b9153
pop ecx
mov ecx, dword [ebp + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10055ba5
test dx, dx
je 0x10055baa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10055ba5
add eax, 4
add ecx, 4
test dx, dx
jne 0x10055b81
jmp 0x10055baa
sbb edi, edi
or edi, 1
test edi, edi
jne 0x10055bb3
xor eax, eax
inc eax
jmp 0x10055bb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret 8

Function at 0x10055bc6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.100a25c0
push esi
lea eax, [ebp - 0x20c]
push str.SYSTEMCurrentControlSet_services_s
push eax
call fcn.10056154
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10055c75
lea eax, [ebp - 0x218]
mov dword [ebp - 0x214], edi
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 4
push eax
push edi
push edi
push str.Start
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 2
jne 0x10055c75
xor eax, eax
inc eax
jmp 0x10055c77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10081454
leave
ret 4
Function at 0x10055c87
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 7
pop ecx
push 0xf003f
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10055cfa
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x10055cea
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10055cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x10055cfa
push esi
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.10081454
leave
ret 4
Function at 0x10055d0d
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x10055d41
xor eax, eax
jmp 0x10055ebf
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10055d5d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10055d3a
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10055eae
cmp dword [ebp - 0x24], 1
je 0x10055d89
cmp dword [ebp - 0x24], 3
jne 0x10055eae
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0xa
jmp 0x10055e03
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x34]
cmp eax, 0x3e8
jae 0x10055db9
mov eax, 0x3e8
jmp 0x10055dbe
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10055eae
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x14], eax
jbe 0x10055df5
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
jmp 0x10055e03
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x10055eae
cmp dword [ebp - 0x24], 3
mov ecx, 0x2710
je 0x10055da3
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10055eae
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10055eae
call ebx
cmp dword [ebp - 0x24], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jne 0x10055ea9
mov edi, ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x10055e5f
mov eax, ecx
jmp 0x10055e69
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10055ea6
cmp dword [ebp - 0x14], edi
jbe 0x10055e96
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x10055ea0
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x10055ea6
cmp dword [ebp - 0x24], 2
je 0x10055e48
mov edi, dword [ebp - 0x3c]
xor ebx, ebx
inc ebx
jmp 0x10055eb0
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10081454
leave
ret 4