joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x25c]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x45c304
cmp byte [ebx + 0x220], 0
je 0x45c304
cmp byte [ebp + 0xc], 0
je 0x45c1d0
mov eax, dword [ebp + 8]
mov dword [esi + 0x258], eax
jmp 0x45c349
mov eax, dword [ebx + 0x1e8]
mov ecx, eax
mov edx, dword [ebx + 0x1e4]
sub ecx, edx
sar ecx, 2
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x45c304
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x45c29a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xff00
test cx, ax
jne 0x45c304
cmp dword [esi + 0x25c], 0
je 0x45c304
mov eax, dword [ebx + 0x1e8]
mov edi, dword [ebx + 0x1e4]
mov dword [ebp + 0xc], eax
cmp edi, eax
je 0x45c249
mov ecx, dword [edi]
cmp ecx, esi
je 0x45c242
push 1
push 0
call fcn.0045c190
mov eax, dword [ebp + 0xc]
add edi, 4
cmp edi, eax
jne 0x45c230
mov eax, dword [ebx + 0x1e8]
mov edi, dword [ebx + 0x1e4]
mov dword [ebp + 0xc], eax
cmp edi, eax
je 0x45c282
nop dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x45c26f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
add edi, 4
cmp edi, eax
jne 0x45c260
mov eax, dword [ebx + 0x1e4]
mov dword [ebx + 0x1e8], eax
mov ecx, dword [esi + 0x25c]
push 1
mov dword [esi + 0x258], 3
push esi
jmp 0x45c342
test eax, eax
jne 0x45c304
test ecx, ecx
je 0x45c304
cmp dword [edx + eax*4], esi
lea edi, [edx + eax*4]
je 0x45c2b1
inc eax
cmp eax, ecx
jb 0x45c2a2
jmp 0x45c304
lea ebx, [edi + 4]
cmp ebx, dword [ebp + 0xc]
je 0x45c2e7
mov esi, dword [ebp + 0xc]
nop dword [eax]
mov ecx, dword [ebx]
cmp dword [edi], ecx
je 0x45c2da
mov dword [ebx], 0
mov eax, dword [edi]
mov dword [edi], ecx
test eax, eax
je 0x45c2da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add ebx, 4
add edi, 4
cmp ebx, esi
jne 0x45c2c0
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x1e8]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x45c2fd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
add dword [edi + 0x1e8], 0xfffffffc
mov eax, dword [esi + 0x258]
mov ecx, dword [ebp + 8]
cmp eax, ecx
je 0x45c377
mov dword [esi + 0x258], ecx
cmp ecx, 3
jne 0x45c32b
mov ecx, dword [esi + 0x25c]
test ecx, ecx
je 0x45c347
push 0
push esi
jmp 0x45c342
test ecx, ecx
jne 0x45c347
cmp eax, 3
jne 0x45c347
mov ecx, dword [esi + 0x25c]
test ecx, ecx
je 0x45c347
push 0
push 0
call fcn.00459cb0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xd0]
test eax, eax
je 0x45c377
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
test eax, eax
je 0x45c377
mov ecx, dword [esi + 0x44]
sub esp, 0x10
movups xmm0, xmmword [esi + 0x58]
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x30]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45fe00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x168]
test eax, eax
je 0x45fe45
cmp dword [ebp + 8], 0
jne 0x45fe28
push 0
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
call dword [eax + 0xd0]
test eax, eax
je 0x45fe45
mov eax, dword [esi + 0x168]
push 5
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x4657d0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1a0], 0
je 0x4658c3
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
mov dword [esp + 0x20], ecx
mov ecx, esi
call dword [eax + 0xc8]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, dword [esp + 0x18]
xor edx, edx
mov edi, dword [esi + 0x60]
sub edi, dword [esi + 0x58]
mov ecx, dword [esi + 0x1a4]
add edi, ebx
mov eax, dword [esp + 0x24]
sub ecx, ebx
add eax, ecx
mov dword [esp + 0x18], edi
cmovns edx, eax
mov eax, dword [esi + 0x184]
sub eax, dword [esi + 0x18c]
mov dword [esp + 0x20], eax
sub eax, ebx
add eax, edi
cmp edx, eax
cmovg edx, eax
mov eax, dword [esi + 0x198]
mov dword [esp + 0x10], eax
test edx, edx
jne 0x465883
xor ecx, ecx
jmp 0x4658a7
mov eax, dword [esp + 0x20]
sub edi, ebx
mov ecx, dword [esi + 0x194]
add eax, edi
cmp edx, eax
jne 0x46589d
sub ecx, dword [esp + 0x18]
add ecx, ebx
jmp 0x4658a7
imul ecx, edx
mov eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [esi]
mov dword [esi + 0x198], ecx
lea ecx, [esp + 0x10]
push ecx
push 0x4b2
mov ecx, esi
call dword [eax + 0x28]
jmp 0x465955
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
movups xmm0, xmmword [esi + 0x184]
sub esp, 0x10
mov ecx, esi
mov eax, esp
push dword [esp + 0x24]
movups xmmword [eax], xmm0
push dword [esp + 0x24]
call fcn.00465a70
mov ecx, dword [esi + 0x170]
test eax, eax
je 0x465917
cmp ecx, 1
je 0x465955
mov dword [esi + 0x170], 1
jmp 0x465925
test ecx, ecx
je 0x465955
mov dword [esi + 0x170], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
test eax, eax
je 0x465955
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
test eax, eax
je 0x465955
mov ecx, dword [esi + 0x44]
sub esp, 0x10
movups xmm0, xmmword [esi + 0x58]
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x30]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46bb60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d66ed
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x655140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
mov ecx, 0x67a800
push eax
call fcn.0046c1b0
or ebx, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [eax + 4]
cmp ecx, esi
je 0x46bbca
mov dword [ebp - 0x14], ecx
cmp dword [ecx + 0x14], edi
je 0x46bc4c
lea ecx, [ebp - 0x14]
call fcn.00425d90
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
jne 0x46bbb2
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00408e50
add eax, 0x10
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046c470
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46bc0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x66a0d8]
test eax, eax
je 0x46bc25
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46bd16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004c9eff
add esp, 4
call fcn.004c9ede
mov esi, eax
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x46bd4b
jmp 0x46bc56
mov esi, 0x80004005
jmp 0x46bd18
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push str.x_GeneralNotify_lu
push eax
call fcn.00409210
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov ecx, 0x66a0e0
push esi
call fcn.004347c0
push 0x2c
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0x30
push 0
push eax
call fcn.004b69d0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0x66a0e0
mov dword [ebp - 0x44], 0x46c180
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0x38]
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.CGeneralObserverMgrWnd
push dword [ebp - 0x24]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x66a0d8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bd16
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46bd37
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402a80
int3
Function at 0x471c90
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x88]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.004725e0
mov edx, eax
test edx, edx
jne 0x471cb4
mov eax, 0x80004005
pop esi
ret
mov ecx, esi
lea eax, [esi + 0x104]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, edx
call fcn.00472520
test eax, eax
je 0x471cd9
push 0
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x10c], 0
xor eax, eax
pop esi
ret

Function at 0x471cf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x471d3e
sub esp, 8
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov ecx, esi
mov eax, esp
push edi
mov dword [eax], 0
call fcn.00439670
cmp byte [ebp + 0x1c], 0
je 0x471d50
mov ecx, dword [esi + 0x30]
lea eax, [ebp + 0xc]
push eax
call fcn.00433900
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x8c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x471d78
mov eax, dword [ebp + 0xc]
sub ecx, eax
push 1
push dword [esp + 0x18]
push ecx
push dword [ebp + 0x10]
push eax
jmp 0x471dcd
push 0
push edi
mov dword [esp + 0x20], 0x68
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x34]
lea eax, [ebx + ecx]
cmp eax, edx
jle 0x471dae
mov ecx, edx
sub ecx, ebx
mov dword [ebp + 0xc], ecx
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [edi + edx]
cmp eax, dword [esp + 0x38]
jle 0x471dc7
mov edx, dword [esp + 0x38]
sub edx, edi
mov dword [ebp + 0x10], edx
push 1
push edi
push ebx
push edx
push ecx
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
cmp dword [esi + 0x108], 0
jne 0x471e37
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.004725e0
mov edi, eax
test edi, edi
je 0x471e51
cmp dword [esi + 0x10c], 0
je 0x471e1d
lea ecx, [esi + 0x104]
push ecx
mov ecx, edi
call fcn.00472520
lea eax, [esi + 0x104]
mov ecx, edi
push eax
call fcn.00472490
mov dword [esi + 0x10c], 1
jmp 0x471e51
mov ecx, dword [esi + 0x124]
mov edx, 0x6a4
mov dword [esi + 0x108], 0
call fcn.00434090
mov ecx, dword [esp + 0x84]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x473dc0
Capabilities:
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.00474040
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004b69d0
add esp, 0xc
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x474020
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
push 0x63aa88
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 1
push str.CO_sEC
push eax
call fcn.00409210
mov esi, dword [ebp - 0x424]
add esp, 0xc
or ebx, 0xffffffff
cmp dword [ebp - 0x42c], 0
je 0x473fe1
push 0x104
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x473fe1
cmp dword [ebp - 0x428], 7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x43c]
cmova eax, dword [ebp - 0x43c]
push 0x208
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x478], 0x3c
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], str.Open
call fcn.004b69d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x47402a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x47c]
call fcn.00408c10
test al, al
jne 0x473f66
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473f44
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.00408fa0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x460], eax
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x473f8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x45c], 0
push eax
mov dword [ebp - 0x474], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x473fe1
push 0x40
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x473ffa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x43c]
call fcn.00408bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
int3
Function at 0x474df0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7146
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x88]
push eax
call fcn.00474990
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
jne 0x474ee2
mov esi, dword [0x67a844]
test esi, esi
je 0x474e4e
lock inc dword [esi + 4]
mov esi, dword [0x67a844]
mov ecx, dword [0x67a840]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x8c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x6c]
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474e80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.00477ad0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x8c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474ec0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x474ee2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x474ee2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x474ee2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x70], 7
lea edi, [ebp - 0x84]
push 0xf003f
cmova edi, dword [ebp - 0x84]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x474f60
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x474f24
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x474f60
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
je 0x474f4d
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ecx
push dword [ebp - 0x28]
push ecx
push edi
call fcn.0047e620
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x54]
call fcn.00408bb0
lea ecx, [ebp - 0x6c]
call fcn.00408bb0
lea ecx, [ebp - 0x84]
call fcn.00408bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret
Function at 0x477830
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x47789f
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47789f
push 0x228
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
mov dword [esp + 0x18], 0x22c
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4778b8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x4778eb
push dword [esi + 8]
mov ecx, edi
push edi
call fcn.00426310
mov eax, esi
mov esi, dword [esi]
push 0x14
push eax
call fcn.004b4401
add esp, 8
cmp byte [esi + 0xd], 0
je 0x4778c7
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], eax
mov dword [edi + 4], 0
nop
push esi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x477921
lea eax, [esp + 0x20]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00477cc0
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x477900
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 8
Function at 0x47adc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x424]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47af59
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x47ae91
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004b69d0
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x47ae91
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x47ae88
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x47ae60
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.004b69d0
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004cb818
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.004b607e
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x47af01
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.004b607e
mov esi, eax
add esp, 8
test esi, esi
je 0x47af56
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x47af69
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47af4e
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 4
call fcn.004b45e0
int3