joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419376
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov dword [ebp - 0x404], 0
push 0x200
push 0x5c2600
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c2600
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push 0x5c2600
lea eax, [ebp - 0x200]
push eax
call fcn.004202d0
add esp, 8
push 0x550d14
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
push str._aksusb.inf
lea eax, [ebp - 0x200]
push eax
call fcn.004202e0
add esp, 8
push 0x200
push 0x5c2400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c2400
lea eax, [ebp - 0x608]
push eax
call fcn.004202d0
add esp, 8
push 0x550d2c
lea eax, [ebp - 0x608]
push eax
call fcn.004202e0
add esp, 8
push 0x550d40
lea eax, [ebp - 0x608]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x419499
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x419499
cmp dword [ebp - 0x408], 5
jne 0x419482
push 0x4000b
call fcn.00406ccc
add esp, 4
push 0x2004010
call fcn.00406c68
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
lea eax, [ebp - 0x200]
push eax
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x4194fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x4194fa
cmp dword [ebp - 0x408], 5
jne 0x4194e3
push 0x4000b
call fcn.00406ccc
add esp, 4
push 0x2004011
call fcn.00406c68
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
cmp dword [ebp + 8], 0
je 0x41950f
mov eax, dword [ebp - 0x404]
jmp 0x419585
test byte [ebp + 0xc], 0x10
je 0x41957a
lea eax, [ebp - 0x608]
push eax
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x41957a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x41957a
cmp dword [ebp - 0x408], 5
jne 0x419563
push 0x4000b
call fcn.00406ccc
add esp, 4
push 0x2004010
call fcn.00406c68
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
mov eax, dword [ebp - 0x404]
jmp 0x419585
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41958a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov dword [ebp - 0x404], 0
push 0x200
push 0x5c2600
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x5c2400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c2600
lea eax, [ebp - 0x608]
push eax
call fcn.004202d0
add esp, 8
push 0x550d4c
lea eax, [ebp - 0x608]
push eax
call fcn.004202e0
add esp, 8
push 0x5c2600
lea eax, [ebp - 0x200]
push eax
call fcn.004202d0
add esp, 8
push 0x550d5c
lea eax, [ebp - 0x200]
push eax
call fcn.004202e0
add esp, 8
push 0x5c2400
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push str.inf
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
push str._aksusb95.inf
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x4196ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x4196ad
cmp dword [ebp - 0x408], 5
jne 0x419696
push 0x4000b
call fcn.00406ccc
add esp, 4
push 0x2004011
call fcn.00406c68
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
cmp dword [ebp + 8], 0
je 0x4196c2
mov eax, dword [ebp - 0x404]
jmp 0x419799
test byte [ebp + 0xc], 0x10
je 0x41978e
lea eax, [ebp - 0x608]
push eax
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x41972d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x41972d
cmp dword [ebp - 0x408], 5
jne 0x419716
push 0x4000b
call fcn.00406ccc
add esp, 4
push 0x2004010
call fcn.00406c68
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
lea eax, [ebp - 0x400]
push eax
call fcn.00408b00
add esp, 4
test eax, eax
jne 0x41978e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 2
je 0x41978e
cmp dword [ebp - 0x408], 5
jne 0x419777
push 0x4000b
call fcn.00406ccc
add esp, 4
push 0x2004010
call fcn.00406c68
add esp, 4
mov dword [ebp - 0x404], 0xffffffff
mov eax, dword [ebp - 0x404]
jmp 0x419799
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41979e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push 0x200
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push 0x550d84
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.00419ad5
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0xffffffff
jne 0x419812
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push 0x550d94
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.00419ad5
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x419868
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push 0x550da0
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.0041c676
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xffffffff
jne 0x4198be
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push 0x550db0
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.0041c6b3
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0xffffffff
jne 0x419914
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x41995d
push 0x200
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32drivers
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
push 0x550dd0
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
jmp 0x419987
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004202d0
add esp, 8
push 0x550ddc
lea eax, [ebp - 0x400]
push eax
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.0041c6b3
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0xffffffff
jne 0x4199b3
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0
xor eax, eax
jmp 0x4199ba
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ceee
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.00420600
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push 0x5bb26c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41cf65
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10001
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41d167
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x5bb2a4
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41cfa2
mov byte [ebp - 0x2f28], 0
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x41d074
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.004202d0
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.00420b14
add esp, 4
push 0x5bb2a8
lea eax, [ebp - 0x808]
push eax
call fcn.004208f0
add esp, 8
test eax, eax
jne 0x41d04a
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x41cfa2
push 0x5bb2b4
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x5bb2c0
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41d122
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10006
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d167
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41d15d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10002
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41d167
mov eax, 1
jmp 0x41d167
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d16c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f28
call fcn.00420600
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1388
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlVirtualDeviceDrivers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41d1e3
mov eax, dword [ebp + 8]
mov dword [eax], 0x10001
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x41d3c6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2f28]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x5bb2fc
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41d241
mov eax, dword [ebp + 8]
mov dword [eax], 0x10006
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d3c6
mov eax, dword [ebp - 0x810]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2f28]
test ecx, ecx
je 0x41d313
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.004202d0
add esp, 8
lea eax, [ebp - 0x808]
push eax
call fcn.00420b14
add esp, 4
push 0x5bb300
lea eax, [ebp - 0x808]
push eax
call fcn.004208f0
add esp, 8
test eax, eax
jne 0x41d2e9
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.004202d0
add esp, 8
mov eax, dword [ebp - 0x818]
lea eax, [ebp + eax - 0x1ba0]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x818]
add ecx, eax
inc ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [ebp - 0x810]
lea eax, [ebp + eax - 0x2f28]
push eax
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x810]
add ecx, eax
inc ecx
mov dword [ebp - 0x810], ecx
jmp 0x41d241
mov eax, dword [ebp - 0x818]
mov byte [ebp + eax - 0x1ba0], 0
mov eax, dword [ebp - 0x818]
inc eax
push eax
lea eax, [ebp - 0x1ba0]
push eax
push 7
push 0
push 0x5bb30c
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41d381
mov eax, dword [ebp + 8]
mov dword [eax], 0x10006
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d3c6
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x41d3bc
mov eax, dword [ebp + 8]
mov dword [eax], 0x10002
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x41d3c6
mov eax, 1
jmp 0x41d3c6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d3cb
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, str.hardlock
lea ecx, [ebp - 0xc]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov al, byte [eax + 8]
mov byte [ecx + 8], al
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push 0x5bb31c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41d416
xor eax, eax
jmp 0x41d524
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0x5bb350
push 0
push 0x5bb354
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41d45b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d524
lea eax, [ebp - 0xc]
push eax
call fcn.00420150
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x5bb374
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0x5bb37c
push 0
push 0x5bb380
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41d4ce
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d524
lea eax, [ebp - 0xc]
push eax
call fcn.00420150
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.Driver
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x41d51a
xor eax, eax
jmp 0x41d524
mov eax, 1
jmp 0x41d524
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d529
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesPcmciaDataBase
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41d55c
xor eax, eax
jmp 0x41d5f2
push str.FAST_ElectronicHardlock_V1.0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d57f
xor eax, eax
jmp 0x41d5f2
push str.FAST_Electronic
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d5a2
xor eax, eax
jmp 0x41d5f2
push str.Aladdin_Knowledge_Systems_Ltd.Hardlock_V2.0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d5c5
xor eax, eax
jmp 0x41d5f2
push str.Aladdin_Knowledge_Systems_Ltd.
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d5e8
xor eax, eax
jmp 0x41d5f2
mov eax, 1
jmp 0x41d5f2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d894
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xf01ff
push 0x5bb508
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 0x41d8d9
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41d916
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41d904
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20008
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
jmp 0x41d916
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d91b
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xf01ff
push 0x5bb514
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 0x41d960
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41d9a1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41d98f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
jmp 0x41d9a1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d9a6
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0xf01ff
push str.Hardlock
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 0x41d9eb
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20005
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x41da2e
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 0x41da1c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20006
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
jmp 0x41da2e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41daf1
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x5bb1c4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0
je 0x41dc59
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x41ec24
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41dbaf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41dba7
cmp dword [ebp + 0xc], 0
je 0x41db9d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x2010007
call dword [ebp + 0xc]
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
jmp 0x41db14
push 0xff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x41dbfc
cmp dword [ebp + 0xc], 0
je 0x41dbf4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x2010007
call dword [ebp + 0xc]
add esp, 8
inc dword [ebp - 0xc]
jmp 0x41db14
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41dc51
cmp dword [ebp + 0xc], 0
je 0x41dc47
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
push eax
push 0x2010007
call dword [ebp + 0xc]
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
jmp 0x41db14
cmp dword [0x5bb1c4], 0
je 0x41dc72
mov eax, dword [0x5bb1c4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8