joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a460
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40a474
lea eax, [esi + 1]
pop esi
add esp, 0xc
ret
push edi
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x40a486
lea eax, [edi + 1]
pop edi
pop esi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40a550
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40a4b1
cmp dword [esp + 0x1c], 0x103
jne 0x40a550
test byte [esi + 0x70484], 1
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0
je 0x40a4e0
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.0040a330
add esp, 8
test eax, eax
je 0x40a550
test byte [esi + 0x70484], 2
je 0x40a519
lea edx, [esp + 0xc]
push edx
push 0x40a180
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x14], 0
je 0x40a519
mov eax, dword [esi + 0x7048c]
push eax
push str.kill_process
push esi
call fcn.0040ea00
add esp, 0xc
test eax, eax
je 0x40a550
test byte [esi + 0x70484], 4
je 0x40a55c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 2]
push edx
call fcn.0040a1e0
add esp, 8
test eax, eax
je 0x40a55c
mov eax, dword [esi + 0x70490]
push eax
push str.kill_process
push esi
call fcn.0040ea00
add esp, 0xc
test eax, eax
jne 0x40a55c
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
test byte [esi + 0x70484], 8
je 0x40a574
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebx
pop edi
pop esi
add esp, 0xc
ret
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x40a860
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x1020c
call fcn.00412cf0
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0x10208], eax
push str.NSSM
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00412731
add esp, 0x14
push 0
test eax, eax
jge 0x40a8cf
push str.create_messages__
push str.eventlog_registry
push 0xc00003eb
push 1
call fcn.00405400
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x10208]
xor ecx, esp
call fcn.00412cdc
add esp, 0x1020c
ret
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40a935
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
lea eax, [esp + 0x10]
push eax
push 0xc00003f9
push 1
call fcn.00405400
add esp, 0x14
mov eax, 2
mov ecx, dword [esp + 0x10208]
xor ecx, esp
call fcn.00412cdc
add esp, 0x1020c
ret
push 0x7fff
lea ecx, [esp + 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a954
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x210]
push eax
push 1
push 0
push str.EventMessageFile
push ecx
call esi
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x20], 7
call esi
mov ecx, dword [esp + 0x1020c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00412cdc
add esp, 0x1020c
ret
Function at 0x40a9c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push str.AppExit
push eax
push str.SYSTEMCurrentControlSetServices_sParameters_s
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push 0xff
push eax
call fcn.00412731
add esp, 0x18
test eax, eax
jge 0x40aa3c
push 0
push str.create_exit_action__
push str.NSSM_REG_EXIT
push 0xc00003eb
push 1
call fcn.00405400
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00412cdc
add esp, 0x20c
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40aaa8
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
lea ecx, [esp + 0x14]
push ecx
push 0xc00003f9
push 1
call fcn.00405400
add esp, 0x14
mov eax, 2
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00412cdc
add esp, 0x20c
ret
cmp dword [esp + 8], 2
jne 0x40aac3
cmp byte [esp + 0x21c], 0
jne 0x40aac3
mov edx, dword [esp + 4]
push edx
jmp 0x40ab4b
mov eax, esi
lea edx, [eax + 2]
jmp 0x40aad0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aad0
mov ecx, dword [esp + 4]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ab46
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push str.AppExit
push 0xc00003fb
push 1
call fcn.00405400
mov edx, dword [esp + 0x18]
add esp, 0x14
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00412cdc
add esp, 0x20c
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00412cdc
add esp, 0x20c
ret
Function at 0x40ab70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
push esi
push 0
lea eax, [esp + 0x14]
push eax
push 0
push edi
mov ebx, 7
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40abe7
mov edx, dword [esp + 0x20]
mov dword [edx], 0
mov dword [esi], 0
cmp eax, 2
jne 0x40abbb
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push edi
push 0xc00003fa
push 1
call fcn.00405400
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
cmp dword [esp + 0xc], ebx
je 0x40ac1e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push ecx
push edi
push 0x8000040f
mov dword [eax], 0
push 2
mov dword [esi], 0
call fcn.00405400
add esp, 0x14
pop edi
pop esi
mov eax, 2
pop ebx
pop ecx
ret
cmp dword [esi], 0
je 0x40abb4
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40ac40
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esi]
push edx
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x40ac77
push eax
push str.get_environment__
push edi
push 0xc00003eb
push 1
mov dword [esi], eax
call fcn.00405400
add esp, 0x14
pop ebp
pop edi
pop esi
mov eax, 3
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push esi
push eax
lea eax, [esp + 0x18]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40acd7
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push edi
push 0xc00003fa
push 1
call fcn.00405400
mov edx, dword [ebx]
add esp, 0x14
push edx
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
mov dword [ebx], 0
pop edi
mov dword [esi], 0
pop esi
mov eax, 4
pop ebx
pop ecx
ret
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40ace0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40ad22
push eax
mov eax, dword [esp + 0x1c]
push str.get_string__
push eax
push 0xc00003eb
push 1
call fcn.00405400
add esp, 0x14
pop edi
lea eax, [esi + 1]
pop esi
add esp, 8
ret
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push edi
push 0
push ebp
call fcn.00412d20
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push esi
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x40adb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, 2
jne 0x40ad87
cmp byte [esp + 0x34], 0
je 0x40ae00
push 0
push edi
call fcn.004052c0
mov edx, dword [esp + 0x28]
add esp, 4
push eax
push edx
push 0xc00003fa
push 1
call fcn.00405400
add esp, 0x14
pop ebp
pop ebx
pop edi
mov eax, 2
pop esi
add esp, 8
ret
cmp byte [esp + 0x30], 0
je 0x40adc2
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp byte [esp + 0x2c], 0
jne 0x40adda
cmp dword [esp + 0x10], 2
jne 0x40ade1
mov dword [esp + 0x10], 1
jmp 0x40ade1
cmp dword [esp + 0x10], 2
je 0x40ae0a
mov eax, dword [esp + 0x14]
push eax
push esi
push ebp
call fcn.00412760
add esp, 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40ae1b
cmp eax, edi
jbe 0x40adf0
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push esi
push 0xc00003fe
push 1
call fcn.00405400
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop ebx
pop edi
mov eax, 3
pop esi
add esp, 8
ret

Function at 0x40ae90
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aea0
sub eax, esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
sar eax, 1
cmp byte [esp + 0x14], cl
lea eax, [eax + eax + 2]
setne cl
push eax
push edx
mov edx, dword [esp + 0x10]
inc ecx
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40aed8
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push esi
push 0xc00003fb
push 1
call fcn.00405400
add esp, 0x14
mov eax, 1
pop esi
ret
Function at 0x40af30
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40af52
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push esi
push 0xc00003fb
push 1
call fcn.00405400
add esp, 0x14
mov eax, 1
pop esi
ret

Function at 0x40af80
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40afc2
pop edi
lea eax, [esi + 1]
pop esi
add esp, 8
ret
cmp esi, 2
jne 0x40afd6
cmp byte [esp + 0x20], 0
jne 0x40afd6
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push edi
push 0xc00003fa
push 1
call fcn.00405400
add esp, 0x14
xor eax, eax
cmp esi, 2
sete al
pop edi
pop esi
add eax, 0xfffffffe
add esp, 8
ret

Function at 0x40b240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b2f0
cmp eax, 2
je 0x40b2ea
cmp dword [esp + 0xc], 4
je 0x40b2c8
mov eax, dword [esp + 0x4c]
push eax
push 0x41dc80
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.00412731
mov eax, dword [esp + 0x64]
push 0
lea edx, [esp + 0x2c]
push edx
push esi
push ebx
push eax
push 2
call fcn.00405400
add esp, 0x2c
jmp 0x40b2ea
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push esi
push 0xc00003fa
push 1
call fcn.00405400
add esp, 0x14
mov ecx, dword [esp + 0x4c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412cdc
add esp, 0x2c
ret
Function at 0x40b5d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov edi, dword [esp + 0x48]
push 0x20019
test edi, edi
sete cl
push str.AppExit
push ebx
mov dword [esp + 0x1c], eax
mov byte [ebp], cl
call fcn.0040b310
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40b62d
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00412cdc
add esp, 0x30
ret
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0x10
test edi, edi
jne 0x40b698
xor edx, edx
mov word [esp + 0x1c], dx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
test eax, eax
je 0x40b6e0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40b6e6
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push 0
push ebx
call fcn.0040b5d0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00412cdc
add esp, 0x30
ret
mov eax, dword [edi]
push eax
push 0x41dc80
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push 0x10
push ecx
call fcn.00412731
add esp, 0x14
test eax, eax
jge 0x40b648
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push ebp
push edx
push 0
push ebx
call fcn.0040b5d0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00412cdc
add esp, 0x30
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412cdc
add esp, 0x30
ret
Function at 0x40c560
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x40c5e6
xor edi, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
cmp eax, 5
ja case.0x40c57e.4
jmp dword [eax*4 + 0x40c5ec]
mov eax, ecx
sub eax, 2
je 0x40c596
sub eax, 2
jne 0x40c5c3
pop edi
xor eax, eax
pop ebp
ret
mov eax, 1
jmp 0x40c5cc
mov eax, ecx
sub eax, 1
je case.0x40c57e.4
sub eax, 2
jmp 0x40c5c1
mov eax, ecx
sub eax, 6
je 0x40c596
sub eax, 1
je case.0x40c57e.4
jmp 0x40c5c3
mov eax, ecx
sub eax, 4
je case.0x40c57e.4
sub eax, 1
je 0x40c596
or eax, 0xffffffff
cmp ecx, dword [esp + 0x10]
jne 0x40c5e6
add edi, 0x32
cmp edi, 0x1f4
jg 0x40c5e9
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
call ebp
test eax, eax
jne 0x40c572
or eax, 0xffffffff
pop edi
pop ebp
ret
Function at 0x40d4c0
Capabilities:
Modify service

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d4d2
cmp word [eax], 0
mov dword [esp + 0xc], eax
jne 0x40d4da
mov dword [esp + 0xc], 0x41e5d8
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x40d4f3
xor eax, eax
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
mov edx, dword [esp + 0xc]
add esp, 4
push eax
push edx
push 0x40000428
push 1
call fcn.00405400
add esp, 0x14
mov eax, 1
ret

Function at 0x40e350
Capabilities:
Delete service

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x40e35e
lea eax, [ebx + 1]
pop ebx
ret
push edi
push 5
call fcn.0040ca70
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e38b
push 0x400001fb
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
add esp, 8
lea eax, [edi + 2]
pop edi
pop ebx
ret
push esi
push 0x100
lea esi, [ebx + 2]
push esi
push 0x10000
push esi
push edi
call fcn.0040cab0
add esp, 0x14
mov dword [ebx + 0x70494], eax
test eax, eax
jne 0x40e3be
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, 3
pop ebx
ret
push ebp
lea eax, [esp + 0x14]
push eax
lea ebp, [ebx + 0x202]
push ebp
push esi
push edi
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameW]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_GetServiceKeyNameW]
mov edx, dword [ebx + 0x70494]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
pop ebp
test eax, eax
jne 0x40e429
push 0x40000221
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov eax, 4
pop ebx
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push 0x40000222
call fcn.0041257c
add eax, 0x20
push eax
call fcn.00405470
add esp, 0xc
pop esi
pop edi
xor eax, eax
pop ebx
ret

Function at 0x40e450
Capabilities:
Modify service

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x70494]
lea eax, [esp + 4]
push eax
push 4
push ecx
mov dword [esp + 0x10], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40e4a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
je 0x40e4a0
push 0
push eax
call fcn.004052c0
add esp, 4
push eax
add esi, 2
push esi
push 0x40000413
push 1
call fcn.00405400
add esp, 0x14
pop esi
pop ecx
ret
Function at 0x40fa10
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40fa1e
lea eax, [esi + 1]
pop esi
ret
push ebp
push 3
call fcn.0040ca70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40fa51
push 0x400001fb
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
push esi
call fcn.0040d990
add esp, 0xc
lea eax, [ebp + 2]
pop ebp
pop esi
ret
push ebx
push edi
push 0x7fff
lea ebx, [esi + 0x8418]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x10
push 0xf01ff
lea edi, [esi + 2]
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0x70494], eax
test eax, eax
jne 0x40faca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push 0x40000203
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop ebp
mov eax, 5
pop esi
ret
push 0
push esi
call fcn.0040ec60
add esp, 8
test eax, eax
je 0x40faf7
mov eax, dword [esi + 0x70494]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop ebp
mov eax, 6
pop esi
ret
push edi
push 0x4000021e
call fcn.0041257c
add eax, 0x20
push eax
call fcn.00405470
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
ret

Function at 0x412cdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422760]
jne 0x412ce6
repz ret
jmp fcn.004167bc
Function at 0x41bb09
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004161dc
and dword [ebp - 4], 0
cmp dword [0x423e9c], 0
mov ebx, eax
jne 0x41bbba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41bc6b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41bc6b
push eax
call fcn.0041616a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e9c], eax
call esi
push eax
call fcn.0041616a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423ea0], eax
call esi
push eax
call fcn.0041616a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423ea4], eax
call esi
push eax
call fcn.0041616a
pop ecx
mov dword [0x423eac], eax
test eax, eax
je 0x41bbba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041616a
pop ecx
mov dword [0x423ea8], eax
mov eax, dword [0x423ea8]
cmp eax, ebx
je 0x41bc12
cmp dword [0x423eac], ebx
je 0x41bc12
push eax
call fcn.004161e5
push dword [0x423eac]
mov esi, eax
call fcn.004161e5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41bc12
test edi, edi
je 0x41bc12
call esi
test eax, eax
je 0x41bc09
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41bc09
test byte [ebp - 0xc], 1
jne 0x41bc12
or dword [ebp + 0x10], 0x200000
jmp 0x41bc4b
mov eax, dword [0x423ea0]
cmp eax, ebx
je 0x41bc4b
push eax
call fcn.004161e5
pop ecx
test eax, eax
je 0x41bc4b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41bc4b
mov eax, dword [0x423ea4]
cmp eax, ebx
je 0x41bc4b
push eax
call fcn.004161e5
pop ecx
test eax, eax
je 0x41bc4b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e9c]
call fcn.004161e5
pop ecx
test eax, eax
je 0x41bc6b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bc6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001225
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x1000122e
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x10001251
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x10001251
mov eax, ebx
jmp 0x10001266
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x1000123d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret