joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e159
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
cmp dword [0x43acf4], 0
je 0x40e247
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x4dc16c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e247
mov dword [ebp - 4], 4
push 0x4dc1a4
push 0x42cf50
call fcn.0041d13c
add esp, 8
mov dword [ebp - 8], 4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x42cf50
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e23d
push 0x4dc1c4
push 0x42cf50
call fcn.0041d13c
add esp, 8
mov dword [ebp - 0x18], 0
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push 0x42cf50
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e22e
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e247
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x40e24f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e254
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [0x43acf4], 0
je 0x40e2da
cmp dword [ebp + 8], 1
jne 0x40e2da
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesPerfProcPerformance
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e2da
push str.Disable_Performance_Counters
push 0x42cf50
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x42cf50
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ecd9
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4dc4f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ed0c
xor eax, eax
jmp 0x40ee2f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0x4dc528
push 0
push 0x4dc52c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ed51
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40ee2f
push 0x4dc54c
call fcn.0041d0c4
add esp, 4
push eax
push 0x4dc558
push 1
push 0
push 0x4dc564
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x40ed95
xor eax, eax
jmp 0x40ee2f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0x4dc56c
push 0
push 0x4dc570
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40edda
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40ee2f
push 0x4dc5a0
call fcn.0041d0c4
add esp, 4
push eax
push 0x4dc5ac
push 1
push 0
push 0x4dc5b8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x40ee28
xor eax, eax
jmp 0x40ee2f
xor eax, eax
jmp 0x40ee2f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f6cb
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
jmp 0x40f6e5
dec dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, dword [ebp + 8]
jbe 0x40f70c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov al, byte [eax + ecx - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov byte [ecx + edx], al
jmp 0x40f6e2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], 0x52
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx + 1], 0x45
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx + 2], 0x4d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx + 3], 0x20
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 8], eax
push 0x200
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4dc62c
push 0x42d3b0
call fcn.0041d138
add esp, 8
push str.config.nt
push 0x42d3b0
call fcn.0041d138
add esp, 8
push 0x42d3b0
call fcn.0040820a
add esp, 4
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40f7c2
push 0x40003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40f838
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f808
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40f838
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40f831
push 0x40005
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40f838
xor eax, eax
jmp 0x40f838
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fcd6
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0040fc52
cmp eax, 0xffffffff
jne 0x40fcf7
mov eax, 0xffffffff
jmp 0x40ff60
mov eax, dword [0x42d5b4]
push eax
call fcn.004075ff
add esp, 4
cmp eax, 0xffffffff
jne 0x40fd24
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40ff60
push 0x4dc77c
push 0x42cf50
call fcn.0041d13c
add esp, 8
push 4
push 0x4dc78c
push 1
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fd82
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ff60
mov dword [ebp - 0x10], 0xffff
push 0x4dc790
push 0x42cf50
call fcn.0041d13c
add esp, 8
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fde6
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ff60
mov dword [ebp - 0xc], 3
push 0x4dc79c
push 0x42cf50
call fcn.0041d13c
add esp, 8
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fe4a
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ff60
mov dword [ebp - 4], 1
push 0x4dc7b0
push 0x42cf50
call fcn.0041d13c
add esp, 8
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40feae
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ff60
mov eax, dword [0x42d5b4]
push eax
call fcn.0040709b
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40fedf
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40ff60
cmp dword [0x43acf8], 0
je 0x40ff0f
push 0xd
push 0x4dc7c8
push 1
push 0x4dc7d8
push 0x4dc7e4
call fcn.00407a18
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x40ff2d
push 9
push 0x4dc818
push 1
push 0x4dc824
push 0x4dc830
call fcn.00407a18
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40ff4d
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40ff60
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40ff60
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ff65
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x42d5b4
push 0x42cfa0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ffa7
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410030
push 0x4dc864
push 0x42cf50
call fcn.0041d13c
add esp, 8
push 0xd
push str.Devicehasp
push 1
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fff9
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410030
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410029
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410030
xor eax, eax
jmp 0x410030
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410112
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices
push 0x42cfa0
call fcn.0041d13c
add esp, 8
push str.Parallel_arbitrator
push 0x42ccf0
call fcn.0041d13c
add esp, 8
push 0x42d5b4
push 0x42cfa0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410178
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41021f
push str.HASP
push 0x42cf50
call fcn.0041d13c
add esp, 8
push 0
push 0
push 0x42d1a0
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4101e8
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4101e8
push 0x10004
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41021f
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410218
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41021f
xor eax, eax
jmp 0x41021f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410224
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, str._SystemRoot_System32Drivers_
lea edi, [ebp - 0x208]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x1e9]
xor eax, eax
mov ecx, 0x78
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x4dc958
lea eax, [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0x4dc960
lea eax, [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
cmp dword [ebp + 8], 0
je 0x4102d6
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041d13c
add esp, 8
push 0x4dc968
lea eax, [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0x4dc96c
lea eax, [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0x4dc974
lea eax, [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push str.SYSTEMCurrentControlSetServicesEventLogSystem_
push 0x42d5c0
call fcn.0041d13c
add esp, 8
push 0x4dc9b0
push 0x42d5c0
call fcn.0041d138
add esp, 8
push 0x42d5b4
push 0x42d5c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410333
push 0x10007
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410419
push str.EventMessageFile
push 0x42cf50
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.0041d0c4
add esp, 4
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
push 2
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4103a2
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410419
push str.TypesSupported
push 0x42cf50
call fcn.0041d13c
add esp, 8
mov dword [ebp - 4], 7
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x42cf50
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410406
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410419
mov eax, dword [0x42d5b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x410419
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41041e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0x10008
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x410510
mov dword [ebp - 0x208], 0
cmp dword [ebp - 0x20c], 0
jne 0x41050b
mov dword [ebp - 0x204], 0x100
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x200]
push eax
mov eax, dword [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0x103
jne 0x4104df
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x41050b
cmp dword [ebp - 0x20c], 0
jne 0x410506
inc dword [ebp - 0x208]
lea eax, [ebp - 0x200]
push eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x410463
jmp 0x41053b
cmp dword [ebp - 0x20c], 2
jne 0x410524
xor eax, eax
jmp 0x410542
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410542
xor eax, eax
jmp 0x410542
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410547
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push 2
push 1
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4105f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x431
jne 0x4105b9
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x410664
cmp dword [ebp - 0xc], 0x430
je 0x4105e2
push 0x20003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410664
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
jmp 0x4105fc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x430
jne 0x410613
cmp dword [ebp - 8], 0xa
jl 0x410557
cmp dword [ebp - 8], 0xa
jne 0x410634
push 0x20003
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410664
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x41065d
push 0x20004
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x410664
xor eax, eax
jmp 0x410664
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410669
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4106a9
push 0x20005
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4107cd
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41079d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x420
jne 0x41077c
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x410718
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x20006
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4107cd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x3c], 1
jne 0x410718
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x410777
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x20007
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4107cd
jmp 0x41079d
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x20007
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4107cd
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4107c6
push 0x20004
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4107cd
xor eax, eax
jmp 0x4107cd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4107d2
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41082a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x410813
xor eax, eax
jmp 0x4108de
push 0x20005
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4108de
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41088b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x41c
je 0x41088b
cmp dword [ebp - 0x24], 0x426
je 0x41088b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x20006
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4108de
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x3c], 1
jne 0x41088b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4108d7
push 0x20004
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x4108de
xor eax, eax
jmp 0x4108de
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4108e3
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41093b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x410924
xor eax, eax
jmp 0x41099e
push 0x20005
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41099e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41096e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x20008
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41099e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x410997
push 0x20002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x41099e
xor eax, eax
jmp 0x41099e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410ab9
Capabilities:
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push ebx
push esi
push edi
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x454], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x42cf44], eax
cmp dword [0x42cf44], 0
jne 0x410b1e
push 0x20001
call fcn.004064f2
add esp, 4
push 0x2008001
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x410cf8
cmp dword [ebp + 0xc], 0
je 0x410b50
mov eax, dword [ebp + 0xc]
push eax
push 0x42d3b0
call fcn.0041d13c
add esp, 8
push 0x4dc9dc
push 0x42d3b0
call fcn.0041d138
add esp, 8
jmp 0x410b72
push 0x200
push 0x42d3b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4dc9e0
push 0x42d3b0
call fcn.0041d138
add esp, 8
push 0x42d3b0
lea eax, [ebp - 0x400]
push eax
call fcn.0041d13c
add esp, 8
push 0x4dc9ec
lea eax, [ebp - 0x400]
push eax
call fcn.0041d138
add esp, 8
push 0x42d3b0
lea eax, [ebp - 0x654]
push eax
call fcn.0041d13c
add esp, 8
push 0x4dc9fc
lea eax, [ebp - 0x654]
push eax
call fcn.0041d138
add esp, 8
push 0x4dca04
lea eax, [ebp - 0x654]
push eax
call fcn.0041d138
add esp, 8
test byte [ebp + 8], 2
je 0x410c00
lea eax, [ebp - 0x654]
push eax
push 0x4dca0c
mov eax, dword [0x42cf44]
push eax
call fcn.00410547
add esp, 0xc
mov dword [ebp - 0x450], eax
test byte [ebp + 8], 1
je 0x410c37
cmp dword [ebp - 0x450], 0
jne 0x410c37
lea eax, [ebp - 0x400]
push eax
push 0x4dca14
mov eax, dword [0x42cf44]
push eax
call fcn.00410547
add esp, 0xc
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x450], 0xffffffff
je 0x410c51
cmp dword [ebp - 0x454], 0xffffffff
jne 0x410c74
mov eax, dword [0x42cf44]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x2008006
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x410cf8
mov eax, dword [0x42cf44]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x410cb7
push 0x20002
call fcn.004064f2
add esp, 4
push 0x2008001
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x410cf8
push 0x4dca20
lea eax, [ebp - 0x200]
push eax
call fcn.0041d13c
add esp, 8
push 0x4dca4c
lea eax, [ebp - 0x200]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x200]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
jmp 0x410cf8
pop edi
pop esi
pop ebx
leave
ret