joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5986c8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5df1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00592997
and dword [ebp - 0x14], 0
cmp dword [0x5ebe28], 0
mov dword [ebp - 0x18], eax
jne 0x59877b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x598823
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x598823
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5ebe28], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5ebe2c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ebe30], eax
call edi
push eax
call esi
mov dword [0x5ebe38], eax
test eax, eax
je 0x59877b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ebe34], eax
mov eax, dword [0x5ebe34]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5987d4
cmp dword [0x5ebe38], ecx
je 0x5987d4
push eax
call esi
push dword [0x5ebe38]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5987d4
test ebx, ebx
je 0x5987d4
call edi
test eax, eax
je 0x5987cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5987cb
test byte [ebp - 8], 1
jne 0x5987d4
or dword [ebp + 0x10], 0x200000
jmp 0x598807
mov eax, dword [0x5ebe2c]
cmp eax, dword [ebp - 0x18]
je 0x598807
push eax
call esi
test eax, eax
je 0x598807
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x598807
mov eax, dword [0x5ebe30]
cmp eax, dword [ebp - 0x18]
je 0x598807
push eax
call esi
test eax, eax
je 0x598807
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ebe28]
call esi
test eax, eax
je 0x598823
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x598825
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005969a6
leave
ret
Function at 0x401af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebx + 0x3c], 0
push esi
push edi
je 0x401bbd
or edi, 0xffffffff
mov eax, dword [ebx + 0x3c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401b22
cmp eax, 0x102
jne 0x401bbd
cmp dword [ebx + 0x40], 0
jne 0x401bbd
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx]
cmp ecx, edx
je 0x401bae
lea esp, [esp]
mov esi, dword [ecx + 8]
cmp dword [esi + 0x14], 0
jne 0x401b6c
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0xc]
jbe 0x401b7e
sub eax, dword [esp + 0xc]
cmp eax, edi
jae 0x401b6c
mov edi, eax
mov ecx, dword [ecx]
cmp ecx, edx
jne 0x401b50
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x401b08
cmp dword [esi + 0x14], 0
lea eax, [ebx + 0xc]
jne 0x401bac
lea ecx, [esi + 0x20]
push ecx
push 0
push esi
push 0x4016e0
push 0
push 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], eax
call fcn.00404f24
add esp, 0x18
mov dword [esi + 0x1c], eax
xor edi, edi
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x401b08
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4140b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SoftWareBaiduSpark
push 0x80000002
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x402fab
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00405de0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.portraitperiod
push esi
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x218], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402f72
sub eax, edx
sar eax, 1
je 0x402fab
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405807
add esp, 4
test eax, eax
jle 0x402fab
imul eax, eax, 0x3e8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x124f80
pop esi
call fcn.00404c44
mov esp, ebp
pop ebp
ret
Function at 0x402fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eba6
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x4140b0]
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
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00405de0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40308e
mov ecx, eax
movzx edi, cx
push edi
call fcn.004036c0
add esp, 4
test eax, eax
je 0x4030c0
push eax
mov eax, edi
lea edi, [ebp - 0x62c]
call fcn.00403420
jmp 0x4030ba
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403097
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x218]
push edx
mov edi, eax
lea ebx, [ebp - 0x62c]
call fcn.00403580
mov esi, dword [ebp - 0x62c]
mov edx, 1
mov dword [ebp - 4], edx
mov eax, dword [esi - 0xc]
test eax, eax
jns 0x4030d9
push 0x80070057
call fcn.00401c40
mov ecx, dword [esi - 8]
sub edx, dword [esi - 4]
sub ecx, eax
or ecx, edx
jge 0x4030f6
lea ecx, [ebp - 0x62c]
call fcn.004033c0
mov esi, dword [ebp - 0x62c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00405812
add esp, 8
test eax, eax
js 0x4030cf
cmp eax, dword [esi - 8]
jg 0x4030cf
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea esi, [ebp - 0x62c]
call fcn.00403330
push 0x44
lea edx, [ebp - 0x688]
push 0
push edx
call fcn.00405de0
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x626]
push ecx
mov dword [ebp - 0x688], 0x44
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x630], eax
mov word [ebp - 0x628], ax
call fcn.00405de0
mov esi, dword [ebp - 0x62c]
push str._update
push esi
push str.__s___s
lea edx, [ebp - 0x628]
call fcn.004036a0
add esp, 0x24
lea edx, [ebp - 0x63c]
push edx
lea eax, [ebp - 0x688]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x628]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x638]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x63c]
push eax
call edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00404c44
mov esp, ebp
pop ebp
ret
Function at 0x403220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4140b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SoftWareBaiduSparkInstallOptions
push 0x80000002
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x210]
test esi, esi
jne 0x403274
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00405de0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.ImproveQulity
push esi
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x218], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x4116a8
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403307
test dx, dx
je 0x403303
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403307
add eax, 4
add ecx, 4
test dx, dx
jne 0x4032e1
xor eax, eax
jmp 0x40330c
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret

Function at 0x4036c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x41524c
call fcn.00404abf
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x403774
test esi, esi
jne 0x403774
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x403758
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403752
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403752
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x403741
cmp esi, eax
jae 0x403745
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403733
cmp esi, eax
jb 0x403749
xor eax, eax
jmp 0x403752
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40377d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x41524c
call fcn.00404abf
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4036e5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4037a8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4037da
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4037d6
cmp esi, eax
jae 0x4037da
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4037c8
cmp esi, eax
jb 0x4037e0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403ac0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4140b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov dword [ebp - 0x420], 0
mov word [ebp - 0x41c], ax
call fcn.00405de0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x41c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00405de0
push 0x41141c
lea edx, [ebp - 0x41c]
push edx
push str.__s___s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00405b41
add esp, 0x20
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x403b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push 0x41134c
push str.SparkSvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x403c05
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x431
jne 0x403bd7
push 0xf01ff
push str.SparkSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x403bdf
call ebx
mov dword [ebp - 0x420], eax
jmp 0x403c26
push 0x41134c
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 1
push 2
push 0x110
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea eax, [ebp - 0x424]
push eax
push 1
push esi
mov dword [ebp - 0x424], str.Baidu_Spark_Service
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00404c44
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4140b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x403d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.SparkSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x403d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403db5
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x403d51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x403da8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x28], 7
push 0x64
call edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x403d9e
cmp dword [ebp - 0x1c], 4
je 0x403da7
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
test eax, eax
jg 0x403d65
jmp 0x403da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.00404c44
mov esp, ebp
pop ebp
ret
Function at 0x403dd0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4140b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push ebx
push ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, ebx
jne 0x403e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.SparkSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x403e42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403f5b
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push ebx
push esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x24
call edi
test eax, eax
mov eax, dword [ebp - 0x24]
je 0x403e8a
cmp eax, 1
je 0x403f51
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 3
jne 0x403eee
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x403eaf
mov edx, 0x3e8
jmp 0x403ebc
cmp edx, 0x2710
jbe 0x403ebc
mov edx, 0x2710
push edx
call ebx
lea edx, [ebp - 0x30]
push edx
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call edi
test eax, eax
je 0x403ee8
cmp dword [ebp - 0x24], 1
je 0x403f51
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0x2710
ja 0x403eee
cmp dword [ebp - 0x24], 3
je 0x403e95
lea ecx, [ebp - 0x28]
push ecx
push 0xc8
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403f48
cmp dword [ebp - 0x24], 1
je 0x403f51
mov edx, dword [ebp - 0x10]
push edx
call ebx
lea eax, [ebp - 0x30]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x403f37
cmp dword [ebp - 0x24], 1
je 0x403f51
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0x2710
ja 0x403f3f
cmp dword [ebp - 0x24], 1
jne 0x403f08
jmp 0x403f51
mov dword [ebp - 0x2c], 0x102
jmp 0x403f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x38]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00404c44
mov esp, ebp
pop ebp
ret
Function at 0x403f80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.Global3D6DCD39_AFEA_4C7E_B3C4_0DC94B6C2001
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
cmp eax, 0xb7
jne 0x403fbc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x420
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.IMM32.dll_ImmDisableIME]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], str.SparkSvc
mov dword [ebp - 0xc], 0x404000
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x403fea
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4043a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4140b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 0x80070005
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4043f5
pop edi
pop esi
mov eax, 0x80070005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c44
mov esp, ebp
pop ebp
ret 8
push 0x228
lea ecx, [ebp - 0x22c]
push ebx
push ecx
call fcn.00405de0
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40445e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea eax, [ebp - 0x20c]
push 0x411744
push eax
call fcn.00405ab6
add esp, 8
test eax, eax
jne 0x40444e
mov edi, dword [ebp - 0x228]
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x404430
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x4043dd
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x4043dd
lea edx, [ebp - 0x238]
push edx
push 0xf00ff
push edi
mov dword [ebp - 0x238], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40452e
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x244]
push eax
push 4
lea ecx, [ebp - 0x234]
push ecx
push 0x13
push edx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x244], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x234], ebx
jne 0x4044f8
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
push 1
push 1
push ebx
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edx, dword [ebp - 0x238]
push edx
call esi
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], ebx
cmp eax, ebx
je 0x40451b
mov ecx, dword [ebp - 0x234]
mov dword [eax], ecx
jmp 0x40452e
mov edx, dword [ebp - 0x234]
push edx
mov dword [ebp - 0x23c], 0x80070057
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c44
mov esp, ebp
pop ebp
ret 8
Function at 0x404580
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4140b0]
xor eax, esp
mov dword [esp + 0x80], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0x1c], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
xor edi, edi
mov dword [esp + 0x14], edi
call eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc], edi
je 0x4046f9
lea ecx, [esp + 0x80]
push ecx
xor eax, eax
push str.SeDebugPrivilege
push edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404636
mov eax, dword [esp + 0xc]
push edi
push edi
push 0x10
lea edx, [esp + 0x88]
push edx
push edi
push eax
mov dword [esp + 0x94], 1
mov dword [esp + 0xa0], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0xc]
push 1
push ecx
lea edx, [esp + 0x18]
push edx
mov esi, 0x2000000
mov dword [esp + 0x1c], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40465a
mov esi, 0x2000400
push 0x40
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00405de0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
xor ecx, ecx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
push edi
mov word [esp + 0x6c], cx
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push 1
push edi
push edi
push edx
push ebx
push eax
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x88], 0x81
mov dword [esp + 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4046e6
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4046dd
mov edx, dword [esp + 0x20]
mov dword [eax], edx
jmp 0x4046ee
mov eax, dword [esp + 0x20]
push eax
call esi
jmp 0x4046ee
mov dword [esp + 0x14], 0x80070057
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404c44
mov esp, ebp
pop ebp
ret 0x10