joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b168
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x505c18]
cmp dword [eax + 0x30], 0
je 0x48b212
cmp dword [ebx + 0x94], 0
jne 0x48b20c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48b0f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48b20c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x48b1d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48b20c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041cb10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48b1e1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48bd74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x48bda9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048b0
jmp 0x48bdb6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404814
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48cee0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48cf21
mov eax, esi
call fcn.0047261c
test al, al
je 0x48cf21
mov eax, dword [ebx + 0x84]
call fcn.00472318
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48cf21
push 0
mov eax, dword [ebx + 0x84]
call fcn.00472318
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48e29c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x48e31a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c80
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x48e2e5
mov eax, dword [ebx + 4]
call fcn.00404c80
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e321
lea eax, [ebp - 4]
call fcn.004047c0
ret
Function at 0x48f31c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48f4b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402bcc
cmp word [ebx + 0xa2], 0
je 0x48f365
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x48f379
lea esi, [ebp - 8]
jmp 0x48f37b
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x48f388
xor edi, edi
jmp 0x48f395
mov eax, dword [ebx + 0x80]
call fcn.00404c80
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404c80
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0048ea54
mov eax, dword [ebp - 0x14]
call fcn.00404c80
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404c80
push eax
mov eax, ebx
call fcn.0048eb88
push eax
mov eax, ebx
call fcn.0048eb5c
push eax
mov eax, ebx
call fcn.0048eb10
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0048e920
mov eax, dword [ebp - 0x18]
call fcn.00404c80
push eax
mov eax, dword [ebx + 8]
call fcn.00404c80
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x48f41e
call fcn.0040e100
xor edx, edx
push ebp
push 0x48f497
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x48f45c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x48f452
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48f480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f49e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x48f4c8
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x48f4f4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404c80
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48f519
call fcn.0040e100
xor eax, eax
push ebp
push 0x48f550
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x48f539
call fcn.0040e100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f557
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4a81f4
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x4a8215
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x4a8215
xor eax, eax
ret
mov al, 1
ret

Function at 0x4c3e80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x419358]
call fcn.00405268
xor eax, eax
push ebp
push 0x4c3fc4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x503b30], 0
jne 0x4c3ed3
mov ecx, dword [0x504878]
mov dl, 1
mov eax, dword [0x407ea8]
call fcn.0040caa0
call fcn.0040413c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004031c4
mov eax, ebx
call fcn.0040506c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4c3fd4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406350
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040507c
test eax, eax
jle 0x4c3f6b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4c3f64
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a48
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a30
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408d54
test eax, eax
jne 0x4c3f64
mov ebx, 0x15
jmp 0x4c3f70
mov ebx, 0x10
jmp 0x4c3f70
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x503b30]
call fcn.004c3dd8
mov eax, dword [ebp - 8]
call fcn.004c3dd8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3fcb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004047e4
lea eax, [ebp - 0x10]
mov edx, dword [0x419358]
call fcn.00405338
ret

Function at 0x4cb37c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4cb3b4]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4cb392
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4cb3a1
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4cb3b0
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4cba78
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x504c24]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4cbaa5
mov edx, dword [0x504c24]
xor edx, edx
call fcn.004856e4
push 0
mov eax, dword [0x504c24]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4dd304
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4dd332
mov eax, ebx
call fcn.004dddb8
cmp dword [ebx + 0x40], 0
je 0x4dd32b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4dd3a3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4dd395
cmp dword [ebx + 8], 0
je 0x4dd354
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4dd366
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4dd395
cmp dword [ebx + 8], 0
je 0x4dd347
cmp eax, 3
je 0x4dd379
dec eax
jne 0x4dd347
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4dd347
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4dd347
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4dd3c1
cmp dword [ebx + 0x14], 0xcc
je 0x4dd3c1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004dd3cc
pop ebx
ret

Function at 0x4efd04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4efd5c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0x4efd68
push 0x4efd68
mov eax, dword [ebp - 4]
call fcn.00404c80
push eax
push 0x4efd6c
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efd63
lea eax, [ebp - 4]
call fcn.004047c0
ret
Function at 0x4f16ec
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4f17c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4f17a6
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.004031c4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.004049a8
mov eax, dword [ebp - 0xc]
mov edx, 0x4f17dc
call fcn.00404dc4
test eax, eax
jle 0x4f1760
mov eax, dword [ebp - 4]
call fcn.00404c80
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4f17a6
cmp dword [ebp - 4], 0
je 0x4f179c
mov eax, dword [ebp - 4]
call fcn.00404c80
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4f1784
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4f17a6
mov ecx, 0x4f17f0
mov dl, 1
mov eax, dword [0x407ea8]
call fcn.0040c9e4
call fcn.0040413c
jmp 0x4f17a6
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f17cb
lea eax, [ebp - 0xc]
call fcn.004047c0
lea eax, [ebp - 4]
call fcn.004047c0
ret
Function at 0x4f4a8c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f4c97
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x504e3c]
cmp dword [eax], 1
jne 0x4f4c69
mov eax, dword [esi + 0x48]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4f4ca8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
sete bl
test bl, bl
je 0x4f4b1d
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x4f4cd8
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
sete bl
test bl, bl
je 0x4f4c34
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
cmp dword [ebp - 0x14], 0
je 0x4f4c34
lea eax, [ebp - 0x10]
mov ecx, 0x21
xor edx, edx
call fcn.004048b0
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x4f4c34
inc edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x21
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404c80
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0x10]
call fcn.00404c80
mov edx, eax
lea eax, [ebp - 0x12c]
call fcn.00403414
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x2c]
call fcn.00404a24
push dword [ebp - 0x2c]
push 0x4f4cf4
push 0x4f4d00
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b40
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c80
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4f4c2a
mov eax, dword [ebp - 0x10]
call fcn.00404c80
mov edx, eax
lea eax, [ebp - 0x130]
call fcn.004049b8
mov edx, dword [ebp - 0x130]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec edi
jne 0x4f4b7f
cmp dword [ebp - 4], 0
je 0x4f4c43
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 8], 0
je 0x4f4c52
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [esi + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4f4c69
mov eax, dword [esi + 0x48]
mov edx, dword [eax]
call dword [edx + 0x90]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4c9e
lea eax, [ebp - 0x130]
call fcn.004047c0
lea eax, [ebp - 0x2c]
call fcn.004047c0
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004047e4
ret
Function at 0x4f4d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4f4dfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push dword [eax + 0x4c]
push 0x4f4e18
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b40
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404c80
mov ebx, eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4f4de8
xor eax, eax
push ebp
push 0x4f4de1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040280c
mov edx, dword [ebp + 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4de8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.0040282c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4e05
lea eax, [ebp - 4]
call fcn.004047c0
ret

Function at 0x4f4ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4f507b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push dword [eax + 0x4c]
push 0x4f5090
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b40
mov eax, dword [ebp + 8]
mov dword [eax - 8], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
push ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404c80
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5082
lea eax, [ebp - 4]
call fcn.004047c0
ret
Function at 0x4f67cc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffcc
mov dword [esp + 0xc], 0x20
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], eax
fild qword [esp + 0x2c]
fdiv dword [0x4f6804]
fstp xword [esp]
wait
fld xword [esp]
add esp, 0x34
ret

Function at 0x4f6850
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4f75e8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffcc
mov dword [esp + 0xc], 0x20
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], eax
fild qword [esp + 0x2c]
fdiv dword [0x4f7620]
fstp xword [esp]
wait
fld xword [esp]
add esp, 0x34
ret

Function at 0x4fe20c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fe2bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fe27e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4fe2d8
mov edx, ebx
call fcn.00404acc
push 0
mov eax, dword [ebp - 8]
call fcn.00404c80
push eax
call sub.kernel32.dll_WinExec
push 0x40
push 0x4fe2ec
push 0x4fe2f8
mov eax, dword [ebp - 4]
call fcn.00472318
push eax
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe2a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe2c6
lea eax, [ebp - 8]
call fcn.004047c0
ret

Function at 0x4fe320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fe3d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fe392
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4fe3ec
mov edx, ebx
call fcn.00404acc
push 0
mov eax, dword [ebp - 8]
call fcn.00404c80
push eax
call sub.kernel32.dll_WinExec
push 0x40
push 0x4fe400
push 0x4fe40c
mov eax, dword [ebp - 4]
call fcn.00472318
push eax
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe3bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe3da
lea eax, [ebp - 8]
call fcn.004047c0
ret
Function at 0x4fe508
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4fe528
call fcn.0040e100
xor eax, eax
push ebp
push 0x4fe5ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
push 0x4fe600
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4fe554
call fcn.0040e100
xor eax, eax
push ebp
push 0x4fe5cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4fe5b5
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4fe5af
call fcn.0040e100
jmp 0x4fe5b5
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4fe5b5
cmp ebx, dword [ebp - 0x10]
ja 0x4fe5b5
cmp dword [ebp - 0x20], 1
jne 0x4fe58d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe5d3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x501404
Capabilities:
Get session user name
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x501570
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x501503
push 0xf01ff
push 0x501580
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x5014fa
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
call fcn.00408af0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5014ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.004049b8
mov edx, 0x501598
mov eax, dword [ebp - 0x14]
call fcn.00408c3c
test eax, eax
jne 0x5014d2
lea eax, [ebp - 0x14]
mov edx, 0x5015ac
call fcn.00404858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5014f1
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0040282c
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
je 0x501555
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404e0c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404c80
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.00404c80
call fcn.0040990c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404e0c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00408c3c
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501577
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004047e4
ret