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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040ae84
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00493308
test ebx, ebx
jne 0x499313
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0049913c
mov ebx, eax
test ebx, ebx
je 0x499409
cmp esi, ebx
je 0x49933c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x499351
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x499389
add eax, 0xffffff5f
sub eax, 2
jb 0x4993a1
dec eax
sub eax, 2
jb 0x4993b5
dec eax
sub eax, 2
jb 0x4993ab
jmp 0x4993bf
add eax, 0xfffffdff
sub eax, 2
jb 0x4993a1
dec eax
sub eax, 2
jb 0x4993b5
dec eax
sub eax, 2
jb 0x4993ab
jmp 0x4993bf
mov byte [esp + 0x120], 0
jmp 0x4993c7
mov byte [esp + 0x120], 2
jmp 0x4993c7
mov byte [esp + 0x120], 1
jmp 0x4993c7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0046cf0c
mov esi, eax
call fcn.0048fbf8
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00494cb8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x49940b
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4b3f04
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407230
xor eax, eax
push ebp
push 0x4b4099
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4b4067
xor edx, edx
push ebp
push 0x4b4060
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040729c
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b3f73
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4b3f73
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406a78
test eax, eax
je 0x4b3f7c
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4b4035
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4b4024
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040729c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4b3fde
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4b3fde
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406a78
test eax, eax
je 0x4b3fe7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004072d4
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004043bc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b402b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4d5170]
mov dl, 1
mov eax, dword [0x40da6c]
call fcn.00417aa8
call fcn.00406100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b40a0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407240
ret

Function at 0x4b6a50
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.00407230
xor eax, eax
push ebp
push 0x4b6ace
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004072d4
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x4b6a99
mov eax, dword [ebx + 4]
call fcn.004072d4
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
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
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6ad5
lea eax, [ebp - 4]
call fcn.00407238
ret
Function at 0x4b7b4c
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 - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b7cf4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.004045d8
cmp word [ebx + 0xaa], 0
je 0x4b7b95
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4b7ba9
lea esi, [ebp - 0xc]
jmp 0x4b7bab
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x4b7bb8
xor edi, edi
jmp 0x4b7bc5
mov eax, dword [ebx + 0x88]
call fcn.004072d4
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.004072d4
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004b7248
mov eax, dword [ebp - 0x14]
call fcn.004072d4
push eax
push esi
mov eax, dword [ebx + 0x7c]
call fcn.004072d4
push eax
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
mov eax, ebx
call fcn.004b7390
push eax
mov eax, ebx
call fcn.004b7364
push eax
mov eax, ebx
call fcn.004b731c
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004b70f0
mov eax, dword [ebp - 0x18]
call fcn.004072d4
push eax
mov eax, dword [ebx + 8]
call fcn.004072d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x10], 0
jne 0x4b7c51
call fcn.0041a18c
xor edx, edx
push ebp
push 0x4b7cca
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4b7c8f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x4b7c85
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7cb3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7cd1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4b7d04
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 + 0xba], 0
je 0x4b7d30
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xbc]
call dword [esi + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004072d4
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b7d55
call fcn.0041a18c
xor eax, eax
push ebp
push 0x4b7d8c
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 0x4b7d75
call fcn.0041a18c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7d93
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4bae68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004072d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004441c0
test al, al
jne 0x4baec9
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d568c]
mov dl, 1
mov eax, dword [0x442d1c]
call fcn.00417b78
call fcn.00406100
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004bac9c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4baf80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004bac48
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004072d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004441c0
test al, al
jne 0x4bafe8
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d53ec]
mov dl, 1
mov eax, dword [0x442d1c]
call fcn.00417b78
call fcn.00406100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bb12c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4bb325
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040729c
mov eax, dword [ebp - 4]
call fcn.004babd4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4bb17f
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407a40
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004baee4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4bb254
xor eax, eax
push ebp
push 0x4bb24d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00444260
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00444810
test al, al
je 0x4bb22b
mov ecx, dword [ebp - 0x3c]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407384
mov ebx, dword [ebp - 0x40]
dec ebx
cmp ebx, 0
jl 0x4bb22b
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004072d4
push eax
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x4bb225
mov eax, dword [ebp - 8]
call fcn.004072d4
mov edx, eax
lea eax, [ebp - 0x44]
call fcn.004073f4
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004bb12c
dec ebx
cmp ebx, 0xffffffff
jne 0x4bb1de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb254
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00444260
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x21], 0
je 0x4bb2e1
mov byte [ebp - 0xd], 0
push 0x4bb338
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4bb2da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bb354
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040bd7c
mov esi, eax
mov ebx, esi
test esi, esi
je 0x4bb2c3
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0xc]
or eax, dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
movzx edx, byte [ebp - 0x15]
mov eax, dword [ebp - 0xc]
call fcn.0044424c
push eax
call ebx
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb302
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
movzx edx, byte [ebp - 0x15]
mov eax, dword [ebp - 0xc]
call fcn.0044424c
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb32c
lea eax, [ebp - 0x44]
call fcn.00407238
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407240
ret
Function at 0x4bb374
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bb4d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00444810
test al, al
je 0x4bb4b3
movzx eax, byte [ebx + 0x20]
sub al, 8
jb 0x4bb3c6
sub al, 0xf8
jb 0x4bb42f
jmp 0x4bb4b3
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407384
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x4bb4b3
inc esi
xor edi, edi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004072d4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004073f4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
dec esi
jne 0x4bb3e3
jmp 0x4bb4b3
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4bb447
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.00407384
jmp 0x4bb454
mov ecx, eax
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407384
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x4bb4b3
inc esi
xor edi, edi
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4bb46f
mov dword [ebp - 0xc], pe_nt_image_headers32
jmp 0x4bb473
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004072d4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004073f4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
dec esi
jne 0x4bb45f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb4dd
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00407240
lea eax, [ebp - 4]
call fcn.00407238
ret
Function at 0x4bbb44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bbc7d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4bbc55
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00444260
xor edx, edx
push ebp
push 0x4bbc44
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00444810
test al, al
je 0x4bbc28
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004bb9d4
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407384
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4bbc28
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
test eax, eax
jne 0x4bbc24
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004072d4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004073f4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004bb9d4
pop ecx
inc edi
dec ebx
jne 0x4bbbd9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbc4b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00444260
ret
Function at 0x4bcc44
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4bcebc
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x118]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x114]
mov dword [eax + 0xc], edx
movzx eax, word [ebp - 0x110]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x14
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.00407430
mov eax, dword [ebp - 0x10c]
dec eax
je 0x4bccbc
dec eax
je 0x4bccfa
jmp 0x4bcebc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4bccd6
sub eax, 9
je 0x4bcce2
sub eax, 0x50
je 0x4bccee
jmp 0x4bcebc
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
jmp 0x4bcebc
mov eax, dword [ebp - 4]
mov byte [eax + 4], 2
jmp 0x4bcebc
mov eax, dword [ebp - 4]
mov byte [eax + 4], 3
jmp 0x4bcebc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0x80000000
sub eax, 0x80000000
jb 0x4bcd2a
sub eax, 4
je 0x4bcd1e
dec eax
sub eax, 0x7ffffffb
jb 0x4bcd2a
jmp 0x4bcebc
mov eax, dword [ebp - 4]
mov byte [eax + 4], 4
jmp 0x4bcebc
push 0x4bcecc
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4bcdff
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4bcee8
mov eax, dword [ebp - 8]
push eax
call fcn.0040bd7c
mov esi, eax
mov ebx, esi
test esi, esi
je 0x4bcd99
mov dword [ebp - 0x1b8], 0x9c
lea eax, [ebp - 0x1b8]
push eax
call ebx
test eax, eax
je 0x4bcd99
mov eax, dword [ebp - 4]
movzx edx, byte [ebp - 0x11e]
mov byte [eax + 0x18], dl
movzx eax, word [ebp - 0x124]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
movzx eax, word [ebp - 0x122]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, 5
jne 0x4bcdad
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 1
jae 0x4bcdb2
cmp eax, 6
jb 0x4bcde8
push 0x4bcf04
mov eax, dword [ebp - 8]
push eax
call fcn.0040bd7c
mov esi, eax
mov ebx, esi
test esi, esi
je 0x4bcde8
lea eax, [ebp - 0x1dc]
push eax
call ebx
movzx eax, word [ebp - 0x1dc]
add eax, 0xfffffff7
sub ax, 1
setb al
mov edx, dword [ebp - 4]
mov byte [edx + 0x24], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bce06
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 4]
call fcn.004bcf2c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4be9c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x4bea5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00407248
lea eax, [ebp - 4]
call fcn.00409f80
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x4bea44
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov eax, ebx
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00407430
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 4]
call fcn.00409f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bea61
lea eax, [ebp - 4]
call fcn.00409f80
ret

Function at 0x4bf7f8
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407230
xor eax, eax
push ebp
push 0x4bf96a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x4bf917
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4bf906
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004072d4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4bf875
call fcn.0041a18c
xor eax, eax
push ebp
push 0x4bf8e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x4bf89b
call fcn.0041a18c
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4bf8c7
call sub.kernel32.dll_GetTickCount_1
lea edx, [ebx + 0x7530]
cmp eax, edx
jae 0x4bf8cd
push 0x64
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x28], 1
jne 0x4bf8a4
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf8ef
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4c4088
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c409a
add esp, 0xfffffff0
call fcn.00405b5c
mov ebx, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov dl, 1
mov eax, dword [0x4291d0]
call fcn.004055f8
mov dword [esi + 4], eax
push 0x20a
lea eax, [esi + 8]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test bl, bl
je 0x4c40c9
mov eax, esi
call fcn.004c49ec
mov eax, esi
cmp byte [ebp - 1], 0
je 0x4c40e0
call fcn.00405bb4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c4ad0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push edx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4c4afb
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4c5028
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c519a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x4c514a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x58], 0x44
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
mov word [ebp - 0x26], 0
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp byte [ebx + 8], 0
je 0x4c509f
mov eax, dword [ebx + 0xc]
call fcn.004072d4
mov dword [ebp - 0x50], eax
cmp byte [ebx + 0x10], 0
je 0x4c50ab
mov word [ebp - 0x28], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 4]
call fcn.004072d4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x4c5121
lea eax, [ebx + 0x1c]
xor edx, edx
call fcn.00407248
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
cmp byte [ebx + 0x11], 0
je 0x4c5109
jmp 0x4c50f7
mov eax, dword [0x4d5498]
mov eax, dword [eax]
call fcn.00478e08
push 0xa
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4c50eb
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
jmp 0x4c5140
call sub.kernel32.dll_GetLastError_1
mov edx, eax
lea ecx, [ebp - 0x5c]
mov eax, dword [0x4c096c]
call fcn.004c22dc
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x1c]
call fcn.00407248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c517f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c51a1
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00407240
ret