joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7f50
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
movzx edx, byte [esi]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52da90]
shl al, 4
or byte [edi], al
movzx edx, byte [esi + 1]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52dad0]
or byte [edi], al
movzx edx, byte [esi + 2]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52db10]
shl al, 4
or byte [edi + 1], al
movzx edx, byte [esi + 3]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52db50]
or byte [edi + 1], al
movzx edx, byte [esi + 4]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52db90]
shl al, 4
or byte [edi + 2], al
movzx edx, byte [esi + 5]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52dbd0]
or byte [edi + 2], al
movzx edx, byte [esi + 6]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52dc10]
shl al, 4
or byte [edi + 3], al
movzx edx, byte [esi + 7]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x52dc50]
or byte [edi + 3], al
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea ecx, [ecx]
movzx eax, byte [ebx + 0x52da70]
mov esi, ebx
dec eax
shr esi, 3
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4b80bc
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 8], edx
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
mov cl, 7
sub cl, byte [ebp - 8]
mov byte [ebp + 0xb], dl
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp + 0xb]
sar eax, 3
and dl, byte [ebp + eax - 4]
mov al, bl
shr dl, cl
and al, 7
mov cl, 7
sub cl, al
mov eax, ebx
and eax, 7
shl dl, cl
mov ecx, 7
inc ebx
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [esi + edi]
or dl, al
mov byte [esi + edi], dl
cmp ebx, 0x20
jl 0x4b80a0
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ecx]
xor byte [edi], al
movzx eax, byte [ecx + 1]
xor byte [edi + 1], al
movzx eax, byte [ecx + 2]
xor byte [edi + 2], al
movzx eax, byte [ecx + 3]
xor byte [edi + 3], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8450
Capabilities:
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f88
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp dword [ecx + 0x38], 0x10
jne 0x4b8627
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4b85bf
cmp dword [ebp - 0x20], ebx
je 0x4b85bf
call fcn.00403b40
test eax, eax
jg 0x4b851a
push ebx
push 0x22f
push str.RepairService_repair.cc
lea ecx, [ebp - 0xf0]
call fcn.00403b50
push dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 4], 1
push str.dwProcessId:
mov ebx, 2
push eax
mov dword [ebp - 0x40], ebx
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b8531
lea ecx, [ebp - 0xf0]
call fcn.00403ba0
push dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x4b858f
cmp esi, 0xffffffff
je 0x4b858f
mov dword [ebp - 0x14], esi
call fcn.00412bb0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00412c50
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x4b858f
cmp ecx, 0xffffffff
je 0x4b858f
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4b858f
mov bl, 1
jmp 0x4b8591
xor bl, bl
test ecx, ecx
je 0x4b85bb
cmp ecx, 0xffffffff
je 0x4b85bb
call fcn.00412bb0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00412d20
push dword [ebp - 0x14]
call fcn.00412c10
add esp, 0x14
mov al, bl
jmp 0x4b8629
call fcn.00403b40
cmp eax, 2
jg 0x4b8610
push 2
push 0x22b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1a0]
call fcn.00403b50
mov esi, eax
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.QueryServiceStatusEx_failed:
push eax
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b8627
lea ecx, [ebp - 0x1a0]
call fcn.00403ba0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4b8650
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4b8712
call fcn.00403b40
cmp eax, 2
jg 0x4b86f7
push 2
push 0x1f8
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00403b50
mov esi, eax
mov dword [ebp - 4], ebx
mov ebx, 1
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.QueryServiceStatus_failed:
push eax
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b870e
lea ecx, [ebp - 0xe0]
call fcn.00403ba0
xor eax, eax
jmp 0x4b8776
call fcn.00403b40
test eax, eax
jg 0x4b875c
push 0
push 0x1fc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x190]
call fcn.00403b50
push dword [ebp - 0x28]
add eax, 8
mov dword [ebp - 4], 1
push str.Service_state:
mov ebx, 2
push eax
mov dword [ebp - 0x30], ebx
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b8773
lea ecx, [ebp - 0x190]
call fcn.00403ba0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4b87a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f506c
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
push ebx
push esi
push edi
mov eax, dword [0x52de80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00403b40
test eax, eax
jg 0x4b8822
push ebx
push 0x1b2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00403b50
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Installing_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402a60
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4b8818
mov edi, dword [edi]
push edi
push eax
call fcn.00404170
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b883c
lea ecx, [ebp - 0xd8]
and ebx, 0xfffffffe
call fcn.00403ba0
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ba2e0
add esp, 8
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4b885d
mov ecx, dword [ecx]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x4b8868
mov eax, dword [eax]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
jb 0x4b8873
mov edx, dword [edx]
push 0
push 0
push 0
push 0
push 0
push ecx
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push 0xf01ff
push eax
push edx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4b88de
test eax, eax
je 0x4b88d2
call fcn.00412bb0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 1
test bl, 8
je 0x4b88cb
lea ecx, [ebp - 0x188]
and ebx, 0xfffffff7
call fcn.00403ba0
mov dword [esi + 4], 0
test edi, edi
je 0x4b88de
mov dword [esi + 4], edi
call fcn.00412bb0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x4b88f6
push dword [ebp - 0x28]
call fcn.00481594
add esp, 4
cmp dword [esi + 4], 0
jne 0x4b8976
call fcn.00403b40
cmp eax, 2
jg 0x4b894b
push 2
push 0x1c3
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00403b50
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.CreateService_failed:
push eax
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b8962
lea ecx, [ebp - 0xd8]
call fcn.00403ba0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403b40
test eax, eax
jg 0x4b89b4
push 0
push 0x1c7
push str.RepairService_repair.cc
lea ecx, [ebp - 0x188]
call fcn.00403b50
add eax, 8
mov dword [ebp - 4], 4
push str.Service_installed_successfully
or ebx, 4
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402a60
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4b89cb
lea ecx, [ebp - 0x188]
call fcn.00403ba0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8cf0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5174
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
call fcn.004b8e40
add esp, 4
test al, al
jne 0x4b8d3a
lea eax, [ebx + 2]
jmp 0x4b8e21
xor eax, eax
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0x4fb534
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x88]
push eax
call fcn.00431bd6
add esp, 4
lea ecx, [ebp - 0x14]
add eax, 4
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4b8d89
cmp dword [ebp - 0x14], 0
setne byte [ebp - 0x15]
lea ecx, [ebp - 0x88]
call fcn.00424ba6
cmp byte [ebp - 0x15], 0
jne 0x4b8def
call fcn.00403b40
cmp eax, 2
jg 0x4b8dd8
push 2
push 0xf2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00403b50
add eax, 8
mov byte [ebp - 4], 1
push str.User_seems_not_in_Administrators_group__continue_anyway
mov ebx, 1
push eax
mov dword [ebp - 0x14], ebx
call fcn.00402a60
add esp, 8
mov dword [ebp - 4], 0
test bl, 1
je 0x4b8def
lea ecx, [ebp - 0xd8]
call fcn.00403ba0
call fcn.004b9010
test al, al
jne 0x4b8dff
mov esi, 3
jmp 0x4b8e15
push esi
call fcn.004b9260
add esp, 4
test al, al
jne 0x4b8e13
mov esi, 7
jmp 0x4b8e15
xor esi, esi
push 0
call fcn.00481594
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4b9750
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5378
mov eax, dword fs:[0]
push eax
sub esp, 0x180
push ebx
push esi
push edi
mov eax, dword [0x52de80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00403b40
test eax, eax
jg 0x4b97d2
push ebx
push 0x1ce
push str.RepairService_repair.cc
lea ecx, [ebp - 0xdc]
call fcn.00403b50
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Restoring_configuration_for_service
push eax
mov dword [ebp - 0x14], ebx
call fcn.00402a60
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4b97c8
mov edi, dword [edi]
push edi
push eax
call fcn.00404170
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b97ec
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffe
call fcn.00403ba0
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ba2e0
lea ecx, [esi + 0x20]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x4b9807
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x4b980f
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push 0
push 0
push eax
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
sete al
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0xd], al
jb 0x4b9849
push dword [ebp - 0x2c]
call fcn.00481594
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
je 0x4b98c7
call fcn.00403b40
cmp eax, 2
jg 0x4b989c
push 2
push 0x1dc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x18c]
call fcn.00403b50
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.ChangeServiceConfig_failed:
push eax
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b98b3
lea ecx, [ebp - 0x18c]
call fcn.00403ba0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b98e0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f53f4
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x52de80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00403b40
test eax, eax
jg 0x4b9962
push ebx
push 0x250
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00403b50
mov dword [ebp - 4], ebx
lea esi, [edi + 8]
add eax, 8
mov ebx, 1
push str.Asynchronously_starting_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402a60
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4b9958
mov esi, dword [esi]
push esi
push eax
call fcn.00404170
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b997c
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00403ba0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4b9a06
call fcn.00403b40
test eax, eax
jg 0x4b99db
push 0
push 0x253
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00403b50
mov esi, eax
or ebx, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.StartService_failed:
push eax
call fcn.00402a60
add esp, 8
mov ecx, eax
call fcn.004048d0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b99f2
lea ecx, [ebp - 0xc0]
call fcn.00403ba0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403b40
test eax, eax
jg 0x4b9a64
push 0
push 0x257
push str.RepairService_repair.cc
lea ecx, [ebp - 0x170]
call fcn.00403b50
add eax, 8
mov dword [ebp - 4], 2
push str.Service
or ebx, 4
lea esi, [edi + 8]
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402a60
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4b9a4f
mov esi, dword [esi]
push esi
push eax
call fcn.00404170
push str._start_pending...
push eax
call fcn.00402a60
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4b9a7b
lea ecx, [ebp - 0x170]
call fcn.00403ba0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9cf0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f54cc
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00403b40
test eax, eax
jg 0x4b9d92
push 0
push 0x20e
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00403b50
add eax, 8
mov dword [ebp - 4], 0
push str.Stopping_service
push eax
mov dword [ebp - 0x30], 1
lea esi, [ebx + 8]
call fcn.00402a60
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4b9d88
mov esi, dword [esi]
push esi
push eax
call fcn.00404170
add esp, 8
test byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
je 0x4b9daa
lea ecx, [ebp - 0xe0]
call fcn.00403ba0
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebx + 4]
call edi
test eax, eax
je 0x4b9dd6
push 0x1f4
call esi
cmp dword [ebp - 0x28], 1
jne 0x4b9db6
mov al, 1
jmp 0x4b9dd8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret

Function at 0x4b9e00
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f551c
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x52de80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00403b40
test eax, eax
jg 0x4b9e82
push ebx
push 0x1e6
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00403b50
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Uninstalling_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402a60
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4b9e78
mov edi, dword [edi]
push edi
push eax
call fcn.00404170
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b9e9c
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00403ba0
mov ecx, esi
call fcn.004b9cf0
test al, al
jne 0x4b9eae
mov ecx, esi
call fcn.004b8450
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp dword [esi + 4], 0
je 0x4b9ee9
call fcn.00412bb0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b9ee2
lea ecx, [ebp - 0x170]
call fcn.00403ba0
mov dword [esi + 4], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f564b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
push 0x2001f
push eax
push dword [ecx]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edx
call fcn.00425fcb
mov edi, dword [ebp - 0x230]
test eax, eax
je 0x4ba3de
xor bl, bl
jmp 0x4ba454
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004bf1a0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
jmp 0x4ba400
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4ba452
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea eax, [ebp - 0x21c]
inc esi
push eax
call fcn.004ba360
add esp, 8
test al, al
jne 0x4ba400
xor bl, bl
jmp 0x4ba454
mov bl, 1
test edi, edi
je 0x4ba45f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x4ba480
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f568b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 4
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4ba51e
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 0
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4ba51e
xor al, al
jmp 0x4ba5f5
mov edi, dword [ebp - 0x230]
xor eax, eax
push 2
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x224]
push 8
push eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push 0
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x20000004
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004bf1a0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
nop
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4ba5e6
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x230]
inc esi
push eax
call fcn.004ba480
add esp, 8
jmp 0x4ba5a0
mov bl, 1
test edi, edi
je 0x4ba5f3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret