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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [ebx + 0x52d938]
dec eax
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4b7bb8
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 8], edx
mov ecx, 7
sub ecx, edx
mov byte [ebp - 1], 1
mov ch, byte [ebp - 1]
cdq
shl ch, cl
and edx, 7
add eax, edx
mov cl, 7
sub cl, byte [ebp - 8]
mov edx, ebx
sar eax, 3
shr edx, 3
and ch, byte [eax + edi]
mov al, bl
and al, 7
shr ch, cl
mov cl, 7
sub cl, al
mov eax, ebx
shl ch, cl
and eax, 7
mov byte [ebp - 1], ch
inc ebx
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [edx + esi]
or al, byte [ebp - 1]
mov byte [edx + esi], al
cmp ebx, 0x30
jb 0x4b7ba1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
sub eax, 0
je 0x4b7d9a
dec eax
jne 0x4b7da3
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004b7db0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004b7e80
pop ebp
ret

Function at 0x4b7e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x78]
call fcn.004c5fa4
mov edi, eax
add esp, 0xc
mov esi, edi
test edi, edi
jle 0x4b7f23
nop
cmp esi, 8
jge 0x4b7ed8
mov eax, 8
sub eax, edi
push eax
lea eax, [ebp - 0xc]
add eax, edi
push eax
push dword [ebx + 0x78]
call fcn.004c5fa4
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x4b7ed8
add esi, edi
jmp 0x4b7eb0
test esi, esi
jle 0x4b7f1b
mov ecx, 8
sub ecx, esi
test ecx, ecx
jle 0x4b7f00
mov eax, 8
sub eax, ecx
mov edi, edi
cmp eax, 8
jae 0x4b7f34
mov byte [ebp + eax - 0xc], 0
dec ecx
inc eax
test ecx, ecx
jg 0x4b7ef0
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004b7f40
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x7c]
call fcn.004c39ac
add esp, 0x14
test edi, edi
jg 0x4b7e96
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
call fcn.004bfe6c
int3
Function at 0x4b8080
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 8], eax
mov ebx, 8
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0xc], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x52da40]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4b80bb
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 1], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 1]
sar eax, 3
and dl, byte [ebp + eax - 8]
mov eax, dword [ebp - 0xc]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp + 8]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x30
jl 0x4b8098
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8110
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 8
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
jmp 0x4b8140
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x52d9c0]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4b8163
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 0xd], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov eax, dword [ebp - 0x14]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp - 0x18]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x40
jl 0x4b8140
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4b81d0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 8
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
jmp 0x4b8200
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x52da00]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4b8223
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 0xd], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov eax, dword [ebp - 0x14]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp - 0x18]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x40
jl 0x4b8200
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4b8290
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 0x4b83fc
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 0x4b83e0
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 0x4b8790
Capabilities:
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f52b8
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 0x4b8967
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 0x4b88ff
cmp dword [ebp - 0x20], ebx
je 0x4b88ff
call fcn.00403b80
test eax, eax
jg 0x4b885a
push ebx
push 0x22f
push str.RepairService_repair.cc
lea ecx, [ebp - 0xf0]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b8871
lea ecx, [ebp - 0xf0]
call fcn.00403be0
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 0x4b88cf
cmp esi, 0xffffffff
je 0x4b88cf
mov dword [ebp - 0x14], esi
call fcn.00410210
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00412c00
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x4b88cf
cmp ecx, 0xffffffff
je 0x4b88cf
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4b88cf
mov bl, 1
jmp 0x4b88d1
xor bl, bl
test ecx, ecx
je 0x4b88fb
cmp ecx, 0xffffffff
je 0x4b88fb
call fcn.00410210
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.00412cd0
push dword [ebp - 0x14]
call fcn.00412bc0
add esp, 0x14
mov al, bl
jmp 0x4b8969
call fcn.00403b80
cmp eax, 2
jg 0x4b8950
push 2
push 0x22b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1a0]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b8967
lea ecx, [ebp - 0x1a0]
call fcn.00403be0
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.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4b8990
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5318
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 0x4b8a52
call fcn.00403b80
cmp eax, 2
jg 0x4b8a37
push 2
push 0x1f8
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b8a4e
lea ecx, [ebp - 0xe0]
call fcn.00403be0
xor eax, eax
jmp 0x4b8ab6
call fcn.00403b80
test eax, eax
jg 0x4b8a9c
push 0
push 0x1fc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x190]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b8ab3
lea ecx, [ebp - 0x190]
call fcn.00403be0
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.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4b8ae0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f539c
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.00403b80
test eax, eax
jg 0x4b8b62
push ebx
push 0x1b2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00403b90
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 0x4b8b58
mov edi, dword [edi]
push edi
push eax
call fcn.004041b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b8b7c
lea ecx, [ebp - 0xd8]
and ebx, 0xfffffffe
call fcn.00403be0
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ba620
add esp, 8
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4b8b9d
mov ecx, dword [ecx]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x4b8ba8
mov eax, dword [eax]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
jb 0x4b8bb3
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 0x4b8c1e
test eax, eax
je 0x4b8c12
call fcn.00410210
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 1
test bl, 8
je 0x4b8c0b
lea ecx, [ebp - 0x188]
and ebx, 0xfffffff7
call fcn.00403be0
mov dword [esi + 4], 0
test edi, edi
je 0x4b8c1e
mov dword [esi + 4], edi
call fcn.00410210
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x4b8c36
push dword [ebp - 0x28]
call fcn.004814b9
add esp, 4
cmp dword [esi + 4], 0
jne 0x4b8cb6
call fcn.00403b80
cmp eax, 2
jg 0x4b8c8b
push 2
push 0x1c3
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b8ca2
lea ecx, [ebp - 0xd8]
call fcn.00403be0
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.00403b80
test eax, eax
jg 0x4b8cf4
push 0
push 0x1c7
push str.RepairService_repair.cc
lea ecx, [ebp - 0x188]
call fcn.00403b90
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 0x4b8d0b
lea ecx, [ebp - 0x188]
call fcn.00403be0
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 0x4b9030
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f54a4
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.004b9180
add esp, 4
test al, al
jne 0x4b907a
lea eax, [ebx + 2]
jmp 0x4b9161
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], vtable.ATL::CAccessToken.0
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.00431b03
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 0x4b90c9
cmp dword [ebp - 0x14], 0
setne byte [ebp - 0x15]
lea ecx, [ebp - 0x88]
call fcn.00424b56
cmp byte [ebp - 0x15], 0
jne 0x4b912f
call fcn.00403b80
cmp eax, 2
jg 0x4b9118
push 2
push 0xf2
push str.RepairService_repair.cc
lea ecx, [ebp - 0xd8]
call fcn.00403b90
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 0x4b912f
lea ecx, [ebp - 0xd8]
call fcn.00403be0
call fcn.004b9350
test al, al
jne 0x4b913f
mov esi, 3
jmp 0x4b9155
push esi
call fcn.004b95a0
add esp, 4
test al, al
jne 0x4b9153
mov esi, 7
jmp 0x4b9155
xor esi, esi
push 0
call fcn.004814b9
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.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4b9a90
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f56a8
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.00403b80
test eax, eax
jg 0x4b9b12
push ebx
push 0x1ce
push str.RepairService_repair.cc
lea ecx, [ebp - 0xdc]
call fcn.00403b90
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 0x4b9b08
mov edi, dword [edi]
push edi
push eax
call fcn.004041b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b9b2c
lea ecx, [ebp - 0xdc]
and ebx, 0xfffffffe
call fcn.00403be0
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ba620
lea ecx, [esi + 0x20]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x4b9b47
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x4b9b4f
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 0x4b9b89
push dword [ebp - 0x2c]
call fcn.004814b9
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
je 0x4b9c07
call fcn.00403b80
cmp eax, 2
jg 0x4b9bdc
push 2
push 0x1dc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x18c]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b9bf3
lea ecx, [ebp - 0x18c]
call fcn.00403be0
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 0x4b9c20
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5724
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.00403b80
test eax, eax
jg 0x4b9ca2
push ebx
push 0x250
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00403b90
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 0x4b9c98
mov esi, dword [esi]
push esi
push eax
call fcn.004041b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4b9cbc
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00403be0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4b9d46
call fcn.00403b80
test eax, eax
jg 0x4b9d1b
push 0
push 0x253
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00403b90
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.00404910
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4b9d32
lea ecx, [ebp - 0xc0]
call fcn.00403be0
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.00403b80
test eax, eax
jg 0x4b9da4
push 0
push 0x257
push str.RepairService_repair.cc
lea ecx, [ebp - 0x170]
call fcn.00403b90
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 0x4b9d8f
mov esi, dword [esi]
push esi
push eax
call fcn.004041b0
push str._start_pending...
push eax
call fcn.00402a60
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
test bl, 4
je 0x4b9dbb
lea ecx, [ebp - 0x170]
call fcn.00403be0
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