joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a700
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10015bfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.10009f80
mov dword [esp + 0x5c], 0
mov dword [esi + 0x24], 0x1001661c
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebp, [esp + 0x14]
lea edi, [esi + 0x68]
mov ebx, 0x10
mov eax, dword [ebp]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [edi], eax
add ebp, 4
add edi, 4
dec ebx
jne 0x1000a7c7
mov ebx, 1
push 0x110
mov byte [esp + 0x60], bl
mov dword [esi], 0x10016614
mov byte [esi + 0x13], bl
mov dword [esi + 0x18], 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x1000a823
push 0x64
push 0
push 8
mov ecx, eax
call fcn.1000b310
jmp 0x1000a825
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x1000ae50
push 0
push 0
mov byte [esp + 0x78], bl
mov dword [esi + 0xa8], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x12], 0
mov byte [esi + 0x11], 0
mov byte [esi + 0x14], 0
call fcn.1000ea90
push ebx
push 0
push 0
push esi
push 0x1000aec0
push 0
push 0
mov dword [esi + 0x1c], eax
call fcn.1000ea90
mov ecx, dword [esp + 0x8c]
add esp, 0x38
mov dword [esi + 0x20], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x1000afc0
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x1000b171
call fcn.1000edf0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x1000b171
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_mouse_event]
push edi
lea ebx, [edx + 8]
mov dword [esp + 0x18], esi
mov eax, dword [ebx - 4]
cmp eax, 0x200
jb 0x1000b03d
cmp eax, 0x208
ja 0x1000b03d
mov edi, dword [ebx + 4]
xor esi, esi
mov si, word [ebx + 4]
shr edi, 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx - 4]
cmp eax, 0x203
ja 0x1000b0ed
je 0x1000b0d5
cmp eax, 0x105
ja 0x1000b0a9
je 0x1000b08b
sub eax, 0x100
je 0x1000b06d
dec eax
je 0x1000b08b
sub eax, 3
jne case.0x1000b0f7.521
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebx]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x1000b0f7.521
mov edx, dword [ebx]
push 0
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x1000b0f7.521
sub eax, 0x201
je 0x1000b0c6
dec eax
jne case.0x1000b0f7.521
push 0
push 0
push 0
push 0
push 4
jmp 0x1000b15a
push 0
push 0
push 0
push 0
push 2
jmp 0x1000b15a
push 0
push 0
push 0
push 0
push 6
call ebp
push 0
push 0
push 0
push 0
push 6
jmp 0x1000b15a
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x1000b0f7.521
jmp dword [eax*4 + 0x1000b178]
push 0
push 0
push 0
push 0
push 8
jmp 0x1000b15a
push 0
push 0
push 0
push 0
push 0x10
jmp 0x1000b15a
push 0
push 0
push 0
push 0
push 0x18
call ebp
push 0
push 0
push 0
push 0
push 0x18
jmp 0x1000b15a
push 0
push 0
push 0
push 0
push 0x20
jmp 0x1000b15a
push 0
push 0
push 0
push 0
push 0x40
jmp 0x1000b15a
mov ecx, dword [ebx]
push 0
shr ecx, 0x10
movsx edx, cx
push edx
push 0
push 0
push 0x800
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x1000b009
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x1000b1a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000b208
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000b200
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8
Function at 0x1000b210
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000b2a2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x1000b241
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x76
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 + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.1000a000
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x1000b6e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x1000b893
cmp dword [esi + 0x1c], edi
je 0x1000b893
call fcn.1000bca0
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.1000bae0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x10]
push 8
push ecx
mov ecx, esi
call fcn.1000bae0
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push edx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x1000b776
cmp dword [esp + 0x1c], 1
jne 0x1000b776
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x1000b763
inc edi
add eax, 4
cmp edi, 0x10
jl 0x1000b756
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x1000b772
or edi, 0xffffffff
mov eax, edi
jmp 0x1000b779
or eax, 0xffffffff
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov ecx, esi
call fcn.1000bae0
cmp byte [ebx], 2
jne 0x1000b7e1
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.1000bce0
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.1000bd40
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x14]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x1001c960]
cmp ecx, eax
mov edi, edx
je 0x1000b80e
push edi
mov ecx, esi
call fcn.1000b8a0
test al, al
je 0x1000b80e
add edi, 0x13
jmp 0x1000b811
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000b82f
push edi
mov ecx, esi
call fcn.1000b8a0
test al, al
je 0x1000b825
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x1000b816
mov eax, dword [esp + 0x14]
mov ecx, 0x13
mov dword [0x1001c960], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cdq
idiv ecx
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x1000b87c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x1000b86b
call ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000bf60
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000bfc0
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x1000bfd0
Capabilities:
Acquire debug privileges
Modify service
Print debug messages
Query service status

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.1000bf60
push 1
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c014
push str.OpenSCManager_Error_n
call ebp
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
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]
lea ecx, [esp + 0x30]
push ecx
call ebp
lea edx, [esp + 0x30]
push 0xf01ff
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x1000c061
push str.OpenService_error__n
call ebp
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c078
push str.QueryServiceStatus_error__n
call ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
test edi, edi
jne 0x1000c099
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x1000c099
push str.LockServiceDatabase_
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000c0bf
push str.ChangeServiceConfig_error__n
jmp 0x1000c0c4
push 0x1001a890
call ebp
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
call fcn.1000bf30
push 0x1001a884
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x1000c110
Capabilities:
Acquire debug privileges
Modify service
Print debug messages
Query service status

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.1000bf60
push 1
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c154
push str.OpenSCManager_Error_n
call ebp
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
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]
lea ecx, [esp + 0x30]
push ecx
call ebp
lea edx, [esp + 0x30]
push 0xf01ff
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x1000c1a1
push str.OpenService_error__n
call ebp
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c1b8
push str.QueryServiceStatus_error__n
call ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
test edi, edi
jne 0x1000c1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x1000c1d9
push str.LockServiceDatabase_
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000c1ff
push str.ChangeServiceConfig_error__n
jmp 0x1000c204
push 0x1001a938
call ebp
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
call fcn.1000bf30
push 0x1001a884
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x1000c250
Capabilities:
Acquire debug privileges
Modify service
Print debug messages
Query service status

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.1000bf60
push 1
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c294
push str.OpenSCManager_Error_n
call ebp
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
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]
lea ecx, [esp + 0x30]
push ecx
call ebp
lea edx, [esp + 0x30]
push 0xf01ff
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x1000c2e1
push str.OpenService_error__n
call ebp
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c2f8
push str.QueryServiceStatus_error__n
call ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
test edi, edi
jne 0x1000c319
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
je 0x1000c319
push str.LockServiceDatabase_
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1000c33f
push str.ChangeServiceConfig_error__n
jmp 0x1000c344
push 0x1001a890
call ebp
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
call fcn.1000bf30
push 0x1001a884
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x1000c390
Capabilities:
Acquire debug privileges
Delete service
Print debug messages
Query service status
Stop service

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
call fcn.1000bf60
push 1
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c3d3
push str.OpenSCManager_Error_n
call ebp
push edi
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
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 + 0x30]
push ecx
call ebp
lea edx, [esp + 0x30]
push 0xf01ff
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
pop edi
test esi, esi
jne 0x1000c422
push str.OpenService_error__n
call ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c439
push str.QueryServiceStatus_error__n
call ebp
cmp dword [esp + 0x14], 1
je 0x1000c459
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000c459
push 0x1001a970
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1000c46b
push 0x1001a960
jmp 0x1000c470
push 0x1001a950
call ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0xc]
call fcn.1000bf30
push 0x1001a884
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x1000c4c0
Capabilities:
Acquire debug privileges
Print debug messages
Query service status
Stop service

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
call fcn.1000bf60
push 1
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c503
push str.OpenSCManager_Error_n
call ebp
push edi
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
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 + 0x30]
push ecx
call ebp
lea edx, [esp + 0x30]
push 0xf01ff
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
pop edi
test esi, esi
jne 0x1000c552
push str.OpenService_error__n
call ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c569
push str.QueryServiceStatus_error__n
call ebp
cmp dword [esp + 0x14], 1
je 0x1000c590
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000c589
push 0x1001a970
jmp 0x1000c595
push 0x1001a990
jmp 0x1000c595
push 0x1001a980
call ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0xc]
call fcn.1000bf30
push 0x1001a884
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x1000c5e0
Capabilities:
Acquire debug privileges
Print debug messages
Query service status
Start service

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
call fcn.1000bf60
push 1
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, eax
test ebx, ebx
jne 0x1000c623
push str.OpenSCManager_Error_n
call ebp
push edi
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
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 + 0x30]
push ecx
call ebp
lea edx, [esp + 0x30]
push 0xf01ff
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
pop edi
test esi, esi
jne 0x1000c672
push str.OpenService_error__n
call ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000c689
push str.QueryServiceStatus_error__n
call ebp
cmp dword [esp + 0x14], 1
jne 0x1000c6ad
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1000c6a6
push 0x1001a9c0
jmp 0x1000c6b2
push 0x1001a9b0
jmp 0x1000c6b2
push 0x1001a9a0
call ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
push str.SeDebugPrivilege
call fcn.1000e850
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0xc]
call fcn.1000bf30
push 0x1001a884
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
Function at 0x1000ccf0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x28]
push 0
push eax
mov dword [esi], 0x1001662c
call edi
mov ecx, dword [esi + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x1000cd43
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000cd4d
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000cd57
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000cd61
push eax
call edi
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x1c]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, esi
call fcn.10009fd0
pop edi
pop esi
ret

Function at 0x1000d060
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.1000cf00
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x1000d0a8
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x1000d082
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret