joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417090
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], str.D:_A_OICI_GWGRSDDTDC___BU__A_OICI_GWGRSDDTDC___AU__A_OICI_GA___BA__A_OICI_GA___SY_
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4170d3
mov eax, 1
jmp 0x41713f
push 0xc
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.00401740
add esp, 0xc
push 0
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417117
mov dword [ebp - 0xc], 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
je 0x41713a
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x417150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x13c], 0
xor eax, eax
mov word [ebp - 4], ax
call fcn.00416eb0
test eax, eax
je 0x41718b
jmp 0x417265
push 0x105
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.00401740
add esp, 0xc
push 0x105
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.00401740
add esp, 0xc
push 0x24
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.00401740
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4171e5
jmp 0x417265
lea edx, [ebp - 0x110]
push edx
push str._skernel32.dll
push 0x105
lea eax, [ebp - 0x248]
push eax
call fcn.00401263
add esp, 0x10
mov byte [ebp - 0x144], 0
push str.KERNEL32.DLL
call fcn.0041a9e0
add esp, 4
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x41722a
jmp 0x417265
push str.GetNativeSystemInfo
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x41724d
jmp 0x417265
lea edx, [ebp - 0x138]
push edx
call dword [ebp - 0x114]
mov ax, word [ebp - 0x138]
mov word [ebp - 4], ax
cmp dword [ebp - 0x13c], 0
je 0x41727b
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ax, word [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x4172c0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41736a
push 0x10024
push 0x421bf8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417360
push 0x423ba0
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x417349
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x423ba0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x417349
cmp dword [0x423ba4], 3
jne 0x417345
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x417347
jmp 0x417349
jmp 0x41731c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4174b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0x270f
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x421834
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x417554
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.UnsupportMajor
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 4
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.UnsupportMinor
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x94
push 0
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00401740
add esp, 0xc
mov dword [ebp - 0xc0], 0x94
lea edx, [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4175ca
cmp dword [ebp - 0xb0], 2
je 0x417597
mov dword [ebp - 0x18], 1
jmp 0x4175c8
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0x1c]
jbe 0x4175ab
mov dword [ebp - 0x18], 1
jmp 0x4175c8
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [ebp - 0x1c]
jne 0x4175c8
mov edx, dword [ebp - 0xb8]
cmp edx, dword [ebp - 0x10]
jb 0x4175c8
mov dword [ebp - 0x18], 1
jmp 0x4175d1
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x4175f0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x29
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41767a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417670
push 0x40000000
push 0x421828
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x417666
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x417860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4178b9
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4178d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41792b
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x417940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41798d
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4179a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4179fd
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x417a0a
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x417a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x4217e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x417a85
push 8
lea edx, [ebp - 0xc]
push edx
push 0xb
push 0
push 0x4217f8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret

Function at 0x417a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x417add
push 8
lea eax, [ebp + 0x14]
push eax
push 0xb
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x417af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x417b54
mov dword [ebp - 8], 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x417b68
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x417bf0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x2b4
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417c1f
jmp 0x417d88
push 0x2b4
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00401740
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x214], 0x9c
mov edx, dword [ebp - 4]
add edx, 0x214
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x417c58
jmp 0x417d88
call fcn.00417150
mov ecx, dword [ebp - 4]
mov word [ecx + 0x2b0], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edx, dword [ebp - 4]
mov word [edx + 0x2b2], ax
mov eax, dword [ebp - 4]
push eax
push 0x417410
push str.IJPLMSVC
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20c], 0
jne 0x417ca5
jmp 0x417d88
mov dword [0x423ba0], 0x10
mov dword [0x423bb0], 0
push 0xbb8
push 0
push 2
mov eax, dword [ebp - 4]
push eax
call fcn.00417370
add esp, 0x10
test eax, eax
jne 0x417cd7
jmp 0x417d88
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x417cf7
jmp 0x417d88
push str.CanonIJPLM
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x417d0c
jmp 0x417d88
mov eax, dword [ebp - 4]
push eax
call fcn.00417090
add esp, 4
test eax, eax
jne 0x417d1e
jmp 0x417d88
mov ecx, dword [ebp - 4]
add ecx, 0x105
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x417d41
jmp 0x417d88
push str.CanonIJPLMIJPLMUI.EXE
mov edx, dword [ebp - 4]
add edx, 0x105
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x417d5c
jmp 0x417d88
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x210], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x210], 0
jne 0x417d81
jmp 0x417d88
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x417da1
mov eax, dword [ebp - 4]
push eax
call fcn.00417b80
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x417db0
Capabilities:
Create service
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00417a20
mov dword [ebp - 0x214], str.Canon_Inkjet_Printer_Scanner_Fax_Extended_Survey_Program
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x20c], ax
movzx eax, word [ebp - 0x20c]
and eax, 0x3ff
cmp eax, 0x11
jne 0x417dfa
mov dword [ebp - 0x214], str.Canon
push 0x200
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417e17
jmp 0x417f0b
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x417f0b
mov dword [ebp - 0x228], 2
call fcn.004174b0
test eax, eax
je 0x417e53
mov dword [ebp - 0x228], 3
push 0
push 0
push 0x422a05
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push 1
mov eax, dword [ebp - 0x228]
push eax
push 0x10
push 0xf01ff
mov ecx, dword [ebp - 0x214]
push ecx
push 0x421ba0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x417efe
mov dword [ebp - 0x218], str.Collects_log_data_from_the_IJ_printer_and_manages_data_transmission.
lea eax, [ebp - 0x218]
push eax
push 1
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x220], eax
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x417ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x418e20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x11c], 0
mov eax, dword [str.unknown]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x421c54]
mov dword [ebp - 0x114], ecx
push 0xfd
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.00401740
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x418e88
xor eax, eax
jmp 0x419015
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x418ea3
jmp 0x418ff9
lea eax, [ebp - 0x120]
push eax
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x418ec1
jmp 0x418ff9
mov edx, dword [ebp - 0x120]
shr edx, 2
mov dword [ebp - 0x124], edx
mov dword [ebp - 8], 0
jmp 0x418ee2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x124]
jae 0x418ff9
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x418f58
lea edx, [ebp - 0x134]
push edx
push 4
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x418f56
push 0x104
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.PSAPI.DLL_GetModuleBaseNameA
jmp 0x418f5d
jmp 0x418ed9
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
push str.explorer.exe
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x418fe7
lea ecx, [ebp - 0x128]
push ecx
push 0xf01ff
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x418fac
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418ff9
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
push 1
push 2
push 0
push 0
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418ff9
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418ed9
cmp dword [ebp - 4], 0
je 0x41900f
cmp dword [ebp - 4], 0
je 0x41900f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x4191b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [str.winsta0default]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x421c44]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x421c48]
mov dword [ebp - 0x10], edx
mov eax, dword [0x421c4c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0
push 0x44
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401740
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.00401740
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x4c], 0x80
xor ecx, ecx
mov word [ebp - 0x46], cx
mov dword [ebp - 0x44], 0
lea edx, [ebp - 4]
push edx
call fcn.00419160
add esp, 4
test eax, eax
je 0x4192c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41928e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x28], 0
je 0x41929e
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x4192ae
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0xffffffff
je 0x4192be
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4192c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x419390
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
cmp dword [ebp + 8], 0
je 0x4193d0
cmp dword [ebp + 0xc], 0
je 0x4193d0
cmp dword [ebp + 0x10], 0
jne 0x4193d7
xor eax, eax
jmp 0x4194de
push 0x10
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00401740
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x122]
push edx
movzx eax, word [ebp - 0x126]
push eax
movzx eax, word [ebp - 0x128]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s__02d_02d_02d.plm
push 0x105
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x41946b
xor eax, eax
jmp 0x4194de
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004016b0
add esp, 4
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4194c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x114], 0xffffffff
cmp dword [ebp - 0x114], 0xffffffff
je 0x4194d9
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret