joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8975
Capabilities:
Clear file content

Disassembly:
push 8
mov eax, 0x506aa3
call fcn.00506098
mov edi, ecx
xor eax, eax
cmp dword [edi + 4], eax
je 0x4b89e7
or dword [ebp - 0x10], 0xffffffff
push 0x80
push 4
push eax
push 0x40000000
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
push dword [edi + 8]
call fcn.0040b961
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4b89db
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0040b34a
test eax, eax
je 0x4b89db
push ecx
mov eax, esp
mov ecx, edi
mov dword [eax], esi
mov eax, dword [edi]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, 0xffffffff
je 0x4b89e7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00506061
ret

Function at 0x4b8cb3
Capabilities:
Set registry value

Disassembly:
push 0x20
mov eax, 0x511d58
call fcn.00506098
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x4b8e03
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.SOFTWAREAnVir
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00407626
test eax, eax
jne 0x4b8dfb
mov esi, str.RunAsService
lea ecx, [ebp - 0x20]
push esi
call fcn.00407eec
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.00407626
test eax, eax
jne 0x4b8dfb
mov esi, dword [edi]
jmp 0x4b8dee
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004229d4
xor ecx, ecx
inc ebx
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push dword [eax]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x20]
call fcn.00407626
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b8d7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0xc]
inc eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.Priority
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
cmp dword [esi + 8], eax
push 4
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.Enabled
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push dword [esi]
lea ecx, [ebp - 0x2c]
push str.Path
call fcn.0040769e
push 1
push dword [esi + 4]
lea ecx, [ebp - 0x2c]
push str.Parameters
call fcn.0040769e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00408049
add esi, 0x10
cmp esi, dword [edi + 4]
jne 0x4b8d2d
and dword [edi + 0x10], 0
lea ecx, [ebp - 0x20]
call fcn.00408049
call fcn.00506061
ret
Function at 0x4b8ef5
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push 0x188
mov eax, 0x511db4
call fcn.005060cc
call fcn.004b8eb6
test eax, eax
jne 0x4b9062
push 2
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4b8f3d
push ecx
mov ecx, esp
push str.Failed_to_install_service_AnvirRun
call fcn.004094e6
xor ecx, ecx
call fcn.00437612
pop ecx
xor eax, eax
jmp 0x4b9065
mov edx, str.AnvirRunServ.exe
lea ecx, [ebp - 0x180]
call fcn.00423261
mov esi, 0x553e84
lea ecx, [ebp - 0x190]
push esi
call fcn.004094e6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
push ecx
mov edx, eax
lea ecx, [ebp - 0x18c]
call fcn.00405cb9
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00405cb9
pop ecx
pop ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [eax]
push 1
push 2
push 0x110
push 0xf01ff
push str.AnVir._Run_Programs_As_Services
push str.AnvirRun
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edx, dword [ebp - 0x188]
mov edi, eax
or esi, 0xffffffff
mov dword [ebp - 0x184], edi
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b8fda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x18c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b8ffb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x190]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4b9019
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4b9029
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4b8f21
push 0x1a
pop ecx
mov esi, str.Allows_to_run_any_application_as_a_service._These_applications_run_on_Windows_startup_before_user_login.
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x194]
push ecx
push 1
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x7c]
mov esi, dword [ebp - 0x184]
push esi
mov dword [ebp - 0x194], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
inc eax
call fcn.00506076
ret
Function at 0x4bca46
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, 0xd5adc4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0xd5ad24], 0
je 0x4bcba8
and dword [0xd5ad24], 0
lea ecx, [ebp - 4]
or dword [ebp - 4], 0xffffffff
push edi
push 0x80
push 4
pop edi
push edi
push 0
push 0x40000000
push dword [0xd5ad20]
call fcn.0040b961
test eax, eax
je 0x4bcb98
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1711ebc
push eax
lea ecx, [ebp - 4]
call fcn.0040b34a
test eax, eax
je 0x4bcb98
mov eax, dword [0xd5ad2c]
lea ecx, [ebp - 4]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.0040b34a
mov eax, dword [0xd5ad28]
mov esi, dword [eax]
cmp esi, eax
je 0x4bcb8e
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push edi
push eax
lea ecx, [ebp - 4]
call fcn.0040b34a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push edi
push eax
lea ecx, [ebp - 4]
call fcn.0040b34a
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.0040b34a
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.0040b34a
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.004733a7
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 4]
call fcn.004733a7
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 4]
call fcn.004733a7
cmp byte [esi + 0xd], 0
jne 0x4bcb82
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4bcb6b
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4bcb82
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4bcb5d
jmp 0x4bcb82
mov eax, dword [esi + 4]
jmp 0x4bcb7a
cmp esi, dword [eax + 8]
jne 0x4bcb80
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4bcb70
mov esi, eax
cmp esi, dword [0xd5ad28]
jne 0x4bcad8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
cmp dword [ebp - 4], 0xffffffff
je 0x4bcba7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bdb94
Capabilities:
Get file size

Disassembly:
push 0x24
mov eax, 0x5124bd
call fcn.005060cc
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call fcn.00426920
test eax, eax
je 0x4bdcd2
push str.Program_Files__x86__
push edi
call fcn.004f2170
pop ecx
pop ecx
test eax, eax
je 0x4bdcd2
or dword [ebp - 0x2c], 0xffffffff
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0x80
push 3
push 1
push SysReAllocString
push esi
call fcn.0040b961
test eax, eax
je 0x4bdcc3
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx - 1]
cmp ecx, 0xc34f
ja 0x4bdcc3
call fcn.004f0800
mov esi, esp
push ebx
push 0
push esi
call fcn.004f1a90
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.0041d099
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004be8c6
push ecx
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004be781
cmp eax, 0xffffffff
jne 0x4bdc9e
push edi
lea ecx, [ebp - 0x30]
call fcn.004094e6
push str.Program_Files_
push str.Program_Files__x86__
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00413698
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
call fcn.004be781
cmp eax, 0xffffffff
je 0x4bdc7f
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bdc9e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4bdcb4
push ecx
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.0040b8be
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4bdcd2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x40]
call fcn.00506076
ret 8
Function at 0x4bdf15
Capabilities:
Persist via run registry key

Disassembly:
push 0xa0
mov eax, 0x512538
call fcn.005060cc
mov esi, ecx
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
xor ebx, ebx
push esi
inc ebx
call fcn.004094e6
and dword [ebp - 4], 0
mov edi, 0x51f470
push ecx
mov ecx, esp
push edi
call fcn.004094e6
or dword [ebp - 4], 0xffffffff
mov edx, ebx
mov ecx, SysReAllocString
call fcn.00414f9c
cmp dword [0xd5b26c], 0
pop ecx
pop ecx
jne 0x4bdfdb
cmp dword [0xd5b274], 0
mov dword [0xd5b26c], ebx
jne 0x4bdfbb
push 0x90
lea eax, [ebp - 0xa0]
mov dword [0xd5b274], ebx
push 0
push eax
mov dword [ebp - 0xa4], 0x94
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
imul eax, dword [ebp - 0xa0], 0xa
add eax, dword [ebp - 0x9c]
mov dword [0xd5b270], eax
jmp 0x4bdfc0
mov eax, dword [0xd5b270]
cmp eax, 0x3c
jl 0x4bdfd2
call fcn.00426031
test eax, eax
jne 0x4bdfd2
mov eax, ebx
jmp 0x4bdfd4
xor eax, eax
mov dword [0xd5b268], eax
jmp 0x4bdfe0
mov eax, dword [0xd5b268]
test eax, eax
jne 0x4be043
push ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
push esi
call fcn.004094e6
push ecx
mov ecx, esp
mov dword [ebp - 4], ebx
push edi
call fcn.004094e6
or dword [ebp - 4], 0xffffffff
mov edi, reloc.OLEAUT32.dll_SysReAllocString
xor edx, edx
mov ecx, edi
call fcn.00414f9c
pop ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
push esi
call fcn.004094e6
push ecx
mov ecx, esp
mov dword [ebp - 4], 2
push 0x51f470
call fcn.004094e6
or dword [ebp - 4], 0xffffffff
mov edx, ebx
mov ecx, edi
call fcn.00414f9c
pop ecx
pop ecx
call fcn.00506076
ret

Function at 0x4be143
Capabilities:
Persist via run registry key

Disassembly:
mov ecx, 0x51e630
call fcn.004bdf15
mov ecx, str.AnVir_Task_Manager_Free
call fcn.004bdf15
mov ecx, str.AnVir_Task_Manager_Pro
call fcn.004bdf15
mov ecx, 0x5605bc
call fcn.004bdf15
mov ecx, str.AnVir_Startup_Manager
jmp fcn.004bdf15
Function at 0x4be35f
Capabilities:
Persist via run registry key

Disassembly:
push 0x18
mov eax, 0x512634
call fcn.00506098
xor ebx, ebx
xor edi, edi
inc ebx
mov dword [ebp - 0x10], edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x51e630
call fcn.004094e6
push ecx
mov ecx, esp
mov dword [ebp - 4], edi
push 0x51f470
call fcn.004094e6
or esi, 0xffffffff
lea ecx, [ebp - 0x1c]
mov edx, SysReAllocString
mov dword [ebp - 4], esi
call fcn.0041472c
add esp, 0xc
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], edi
jne 0x4be446
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x51e630
call fcn.004094e6
push ecx
mov ecx, esp
mov dword [ebp - 4], 2
push 0x51f470
call fcn.004094e6
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0041472c
add esp, 0xc
push 3
pop ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], edi
jne 0x4be446
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x51e630
call fcn.004094e6
push ecx
mov ecx, esp
mov dword [ebp - 4], 4
push 0x51f470
call fcn.004094e6
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0041472c
add esp, 0xc
mov eax, dword [eax]
push 7
pop ebx
cmp dword [eax - 0xc], edi
je 0x4be449
xor edi, edi
inc edi
test bl, 4
je 0x4be46e
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4be46e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
test bl, 2
je 0x4be49a
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4be49a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4be4b5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
call fcn.00506061
ret
Function at 0x4be91c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov edi, ecx
push 0
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
mov dword [ebp - 4], esi
cmp esi, eax
je 0x4be9cb
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0041cf44
add esi, 0x14
lea ecx, [ebp + 8]
push esi
call fcn.0041cf44
xor esi, esi
lea eax, [ebp - 0xc]
push esi
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [ebp + 8]
call ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], esi
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 8], esi
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
call fcn.0040fc9f
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 0x10]
jne 0x4be950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4bfc6c
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0xd5a7e8]
push esi
mov esi, ecx
test eax, eax
je 0x4bfc81
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0xd5a7e8], 0
push 0
push 0
mov dword [0xd5a7e0], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x4bfb49
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor ecx, ecx
mov dword [0xd5a7e8], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
ret
Function at 0x4c01ba
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 4], 0xffffffff
push ebx
push edi
push 0x80
push 4
pop ebx
push ebx
mov edi, ecx
lea ecx, [ebp - 4]
push 0
push 0x40000000
push dword [edi + 4]
call fcn.0040b961
test eax, eax
je 0x4c035e
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1fd61f
push eax
lea ecx, [ebp - 4]
call fcn.0040b34a
test eax, eax
je 0x4c035e
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 4]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0040b34a
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov dword [ebp - 8], esi
cmp esi, eax
je 0x4c026e
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.004733a7
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040fc9f
mov esi, dword [ebp - 8]
cmp esi, dword [edi + 8]
jne 0x4c0227
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
mov dword [ebp - 8], esi
cmp esi, eax
je 0x4c02c1
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.004733a7
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040fc9f
mov esi, dword [ebp - 8]
cmp esi, dword [edi + 0x10]
jne 0x4c028d
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
mov eax, dword [edi + 0x18]
mov esi, dword [eax]
mov dword [ebp - 8], esi
cmp esi, eax
je 0x4c0314
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 4]
call fcn.004733a7
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040fc9f
mov esi, dword [ebp - 8]
cmp esi, dword [edi + 0x18]
jne 0x4c02e0
mov eax, dword [edi + 0x24]
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040b34a
mov ecx, dword [edi + 0x20]
pop esi
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x4c0355
add eax, 0x10
lea ecx, [ebp - 4]
push eax
call fcn.004733a7
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040fc9f
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0x20]
jne 0x4c0334
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 4], 0xffffffff
pop edi
pop ebx
je 0x4c036f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4c4aee
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20000000
xor esi, esi
mov edi, ecx
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4c4b54
push 0x20
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
je 0x4c4b4d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret

Function at 0x4c4b67
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4c4c38
cmp byte [edi], 0
je 0x4c4c38
cmp dword [ebp + 8], 0x2710
ja 0x4c4c38
cmp ebx, 4
je 0x4c4ba9
cmp ebx, 1
jne 0x4c4c38
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x20000000
push esi
push esi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4c4c33
push 4
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4c4c2a
jmp 0x4c4c0e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4c4c0e
cmp dword [ebp - 0x24], ebx
je 0x4c4c1e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 8]
jb 0x4c4bdc
jmp 0x4c4c21
xor esi, esi
inc esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
jmp 0x4c4c3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret
Function at 0x4c4cf5
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
test eax, eax
je 0x4c4d77
cmp ebx, 4
ja 0x4c4d77
push esi
push edi
push 0x40000008
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4c4d71
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 8], eax
test eax, eax
je 0x4c4d6a
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c4d61
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
jmp 0x4c4d79
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c4d7e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x40000008
xor edi, edi
mov dword [ebp - 8], edx
push edi
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4c4df0
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c4de9
push 2
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c4de0
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 3
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c522a
Capabilities:
Check os version

Disassembly:
push 0xbc
mov eax, 0x5131ad
call fcn.005060cc
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xc4], esi
xor ebx, ebx
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc0], ebx
cmp dword [0xd5b274], ebx
jne 0x4c52a3
push 0x90
lea eax, [ebp - 0xb8]
mov dword [0xd5b274], 1
push ebx
push eax
mov dword [ebp - 0xbc], 0x94
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
imul eax, dword [ebp - 0xb8], 0xa
add eax, dword [ebp - 0xb4]
mov dword [0xd5b270], eax
jmp 0x4c52a8
mov eax, dword [0xd5b270]
cmp eax, 0x3c
jl 0x4c52c8
cmp dword [ebp + 8], ebx
je 0x4c52c8
cmp edi, 2
jne 0x4c52c8
push 0x561938
mov ecx, esi
call fcn.004094e6
jmp 0x4c5371
push 0x56195c
lea ecx, [ebp - 0x28]
call fcn.004094e6
push 0x561968
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004094e6
push 0x561970
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004094e6
push 0x561978
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004094e6
push 0x561980
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004094e6
push str.In_kernel
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004094e6
mov dword [ebp - 4], 6
cmp edi, 5
jbe 0x4c5341
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
jmp 0x4c5348
mov ecx, dword [ebp + edi*4 - 0x28]
sub ecx, 0x10
call fcn.004098e7
push fcn.0040981b
add eax, 0x10
mov dword [ebp - 0xc0], 1
push 6
mov dword [esi], eax
lea eax, [ebp - 0x28]
push 4
push eax
mov byte [ebp - 4], bl
call fcn.004f046e
mov eax, esi
call fcn.00506076
ret