joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435f50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x435fc8
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret

Function at 0x436080
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00459470
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x4361ba
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x4361ba
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4361ba
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00492a50
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x43618f
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00492a50
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00493287
add esp, 0x14
test eax, eax
je 0x436154
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x436154
mov ecx, 1
jmp 0x436156
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.00436bc0
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x43616f
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00435da0
add esp, 0xc
mov edi, eax
jmp 0x436175
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045945a
mov esp, ebp
pop ebp
ret
Function at 0x436830
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x559378
push fcn.00493cd0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.00459470
mov eax, dword [0x56c3c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x436a04
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436886
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x436a04
mov dword [ebp - 4], 0
call fcn.00435f50
mov dword [ebp - 4], 0xfffffffe
jmp 0x4368cc
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.00492a50
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.00492a50
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x436a04
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004c51fe
lea eax, [ebp - 0x224]
push eax
call fcn.004c3f3e
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x436a04
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.00436080
add esp, 0xc
test eax, eax
je 0x4369f7
lea eax, [ebp - 0xa24]
push eax
call fcn.004c3f3e
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4369b8
test dx, dx
je 0x4369b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4369b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x436992
xor eax, eax
jmp 0x4369bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4369f7
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4369e3
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa24]
push eax
push str.Kill_process:__s
call fcn.004215a0
add esp, 8
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x436954
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret 4
Function at 0x436a30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5593b8
push fcn.00493cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x56c3c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x436b91
cmp word [esi], 0
je 0x436b91
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436a90
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x436b91
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436b91
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.00492a50
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.00431060
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.00492a50
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x530188
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x436b58
cmp dword [ebp + 0x18], 0
je 0x436b58
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x436b6d
test esi, esi
je 0x436b7d
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x436b7d
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x436b9a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x436c40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x436c5c
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x436d00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x34], 0x740055
push edi
mov dword [ebp - 0x30], 0x6c0069
mov dword [ebp - 0x2c], 0x5c0073
mov dword [ebp - 0x28], 0x4d0047
mov dword [ebp - 0x24], 0x690056
mov dword [ebp - 0x20], 0x740072
mov dword [ebp - 0x1c], 0x650048
mov dword [ebp - 0x18], 0x70006c
mov dword [ebp - 0x14], 0x720065
mov dword [ebp - 0x10], 0x340036
mov dword [ebp - 0xc], 0x73002e
mov dword [ebp - 8], 0x730079
mov word [ebp - 4], ax
call fcn.00408310
mov ecx, eax
test ecx, ecx
je 0x436dbe
mov eax, dword [ecx]
push 2
push 0x18
call dword [eax]
test eax, eax
je 0x436dc8
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x18
jl 0x436db4
mov dword [eax - 0xc], 0x18
xor eax, eax
mov ecx, dword [esi]
push 0x18
mov word [ecx + 0x30], ax
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [esi]
call fcn.00408050
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404b60
push 0x80004005
call fcn.00404b60
call fcn.00405150
int3

Function at 0x436dd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], 0x740055
mov dword [ebp - 0x28], 0x6c0069
mov dword [ebp - 0x24], 0x5c0073
mov dword [ebp - 0x20], 0x700053
mov dword [ebp - 0x1c], 0x720044
mov dword [ebp - 0x18], 0x5f0076
mov dword [ebp - 0x14], 0x6d0061
mov dword [ebp - 0x10], 0x360064
mov dword [ebp - 0xc], 0x2e0034
mov dword [ebp - 8], 0x790073
mov dword [ebp - 4], 0x73
call fcn.00408310
mov ecx, eax
test ecx, ecx
je 0x436e7d
mov eax, dword [ecx]
push 2
push 0x15
call dword [eax]
test eax, eax
je 0x436e87
push esi
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x15
jl 0x436e73
mov dword [eax - 0xc], 0x15
xor eax, eax
mov ecx, dword [esi]
push 0x15
mov word [ecx + 0x2a], ax
lea eax, [ebp - 0x2c]
push eax
push 0x15
push dword [esi]
call fcn.00408050
add esp, 0x10
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404b60
push 0x80004005
call fcn.00404b60
call fcn.00405150
int3
Function at 0x436e90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 0x740055
mov dword [ebp - 0x24], 0x6c0069
mov dword [ebp - 0x20], 0x5c0073
mov dword [ebp - 0x1c], 0x700053
mov dword [ebp - 0x18], 0x720044
mov dword [ebp - 0x14], 0x5f0076
mov dword [ebp - 0x10], 0x380078
mov dword [ebp - 0xc], 0x2e0036
mov dword [ebp - 8], 0x790073
mov dword [ebp - 4], 0x73
call fcn.00408310
mov ecx, eax
test ecx, ecx
je 0x436f36
mov eax, dword [ecx]
push 2
push 0x13
call dword [eax]
test eax, eax
je 0x436f40
push esi
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x13
jl 0x436f2c
mov dword [eax - 0xc], 0x13
xor eax, eax
mov ecx, dword [esi]
push 0x13
mov word [ecx + 0x26], ax
lea eax, [ebp - 0x28]
push eax
push 0x13
push dword [esi]
call fcn.00408050
add esp, 0x10
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404b60
push 0x80004005
call fcn.00404b60
call fcn.00405150
int3
Function at 0x438450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20219
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4384b3
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Enabled
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x4384b3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 8], 1
sete bl
test esi, esi
je 0x4384c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4384d0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x56b2e0]
test ecx, ecx
js 0x438518
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x56b2e0], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.00492a50
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x438589
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4385e0
push str.GetNativeSystemInfo
push 0x531420
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4385e0
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x4385c0
cmp ax, 6
jne 0x4385e0
mov dword [0x56b2e0], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x439110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x439127
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x439154
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43914e
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x43926d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x43918b
cmp byte [edi + 0x18], al
je 0x43917f
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.0041c390
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4391c4
call fcn.0041c390
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.004392a0
test eax, eax
jns 0x43926a
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.00438d40
mov dword [ebp - 4], eax
test eax, eax
jns 0x4391f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.004392a0
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x43919b
push 0
push 0
push ebx
mov ecx, esi
call fcn.00438d40
mov edi, eax
test edi, edi
jns 0x439232
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.004392a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4395b0
push 0
push 0
call fcn.004c5654
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x43919b
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43926a
call fcn.0041c390
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439820
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d408
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56c3c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x43985d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00439910
test eax, eax
jne 0x43987e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
xor esi, esi
call fcn.00439c20
test al, al
je 0x4398c1
lea ecx, [ebp + 8]
call fcn.0043c7f0
push 1
push str.360DesktopMainProg
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0043d330
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0043cb00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4398f0
push str.360Desktop
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43afe0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x43b001
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x43b02b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x43b150
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d601
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x43b1b6
mov eax, 0x80004003
jmp 0x43b2ae
push 0xf01ff
push edi
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x128], edi
test edi, edi
jne 0x43b1dd
mov ebx, 0x80004005
jmp 0x43b2a5
push dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
xor ebx, ebx
call fcn.0043aa80
push dword [eax]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0040a230
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x43b228
push eax
call fcn.004c45b5
add esp, 4
mov eax, dword [ebp - 0x120]
cmp dword [eax - 0xc], 0
je 0x43b244
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
push ebx
push dword [ebp - 0x11c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
test ebx, ebx
je 0x43b269
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov ebx, 0x80004005
test eax, eax
cmovne ebx, ecx
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
or eax, 0xffffffff
mov dword [ebp - 0x118], ecx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x43b29e
mov ecx, dword [ecx]
push dword [ebp - 0x118]
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret
Function at 0x43b630
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x43b66f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x43b68a
mov edi, 0x80004005
jmp 0x43b6c1
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push ebx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push ebx
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0045945a
mov esp, ebp
pop ebp
ret

Function at 0x43b890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00459470
mov eax, dword [0x56c3c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push 0x2000
push 0
push eax
call fcn.00492a50
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x43b937
cmp eax, 0x1fff
ja 0x43b937
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43b937
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x52c860
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43b937
mov eax, dword [ebp - 0x2008]
movzx eax, word [eax + 0xa]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045945a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045945a
mov esp, ebp
pop ebp
ret 8