joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c524
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
mov eax, dword [ebp - 8]
call fcn.00404f04
xor eax, eax
push ebp
push 0x49c5c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404f14
push eax
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
mov eax, dword [0x4fe668]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
push esi
mov eax, dword [0x4fe668]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
push esi
mov eax, dword [0x4fe668]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov esi, eax
push ebx
call sub.KERNEL32.DLL_LockResource
mov edx, eax
mov eax, edi
mov ecx, esi
call fcn.00404b44
push ebx
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c5c7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a78
ret
Function at 0x4aee84
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4aef2b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404f14
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4aef15
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004050a0
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404f14
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4aef15
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4aef3c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4aef15
cmp dword [ebp - 8], 0x34
jne 0x4aef15
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aef32
lea eax, [ebp - 0x10]
call fcn.00404a54
ret

Function at 0x4af134
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af29d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004030cc
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4fbd28], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4fbd2c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4fbd30], eax
mov eax, dword [0x4fdf4c]
cmp dword [eax], 2
sete byte [0x4fbc98]
push 0x4af2a8
call sub.KERNEL32.DLL_GetModuleHandleA
lea edx, [ebp - 4]
call fcn.004aee54
cmp byte [0x4fbc98], 0
jne 0x4af1c0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004aee84
test al, al
je 0x4af1c0
mov eax, dword [ebp - 0x4c]
mov dword [0x4ff5d4], eax
jmp 0x4af1c7
xor eax, eax
mov dword [0x4ff5d4], eax
call fcn.004aefd0
and eax, 0x7f
cmp eax, 0xb
ja case.0x4af1d8.0
jmp dword [eax*4 + 0x4af1df]
mov byte [0x4fbc84], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc88], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc8c], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc90], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc94], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc9c], 1
mov byte [0x4fbca0], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc9c], 1
mov byte [0x4fbca4], 1
jmp case.0x4af1d8.0
mov byte [0x4fbc9c], 1
mov byte [0x4fbca8], 1
jmp case.0x4af1d8.0
mov byte [0x4fbcac], 1
jmp case.0x4af1d8.0
mov byte [0x4fbcb0], 1
jmp case.0x4af1d8.0
mov byte [0x4fbcb4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af2a4
lea eax, [ebp - 4]
call fcn.00404a54
ret
Function at 0x4b1788
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404f04
mov eax, dword [ebp + 0x14]
call fcn.00404f04
mov eax, dword [ebp + 0x10]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4b1867
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 2
jne 0x4b17da
push esi
lea ecx, [ebp - 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.004b0b5c
cmp ebx, 3
jne 0x4b17f2
lea eax, [ebp - 8]
push eax
push esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.004b1314
cmp byte [ebp + 0xc], 0
je 0x4b182f
mov eax, esi
call fcn.00416ac8
test al, al
je 0x4b182f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [0x4fbd38]
cmp eax, 0x3e8
jbe 0x4b182f
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 8]
xor eax, eax
call fcn.004310e8
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x4fbd38], eax
cmp ebx, 3
jne 0x4b183f
lea eax, [edi + 0x14]
mov edx, dword [ebp - 4]
call fcn.00404aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b186e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a78
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00404a78
ret

Function at 0x4b1878
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4b191d
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4b1902
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test bl, bl
je 0x4b1902
test esi, esi
jne 0x4b1902
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [0x4fbd3c]
cmp eax, 0x3e8
jbe 0x4b1902
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x4b1934
mov eax, 0x4b195c
call fcn.004b153c
mov edx, dword [ebp - 8]
xor ecx, ecx
xor eax, eax
call fcn.004310e8
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x4fbd3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1924
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a78
ret
Function at 0x4b4958
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4b4a77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x34], eax
mov al, byte [ebp - 5]
mov byte [ebx + 0x10], al
mov eax, ebx
call fcn.004b408c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x10]
xor edx, edx
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jle 0x4b4a47
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
mov edi, dword [eax]
call dword [edi + 0xc]
push 0
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [0x43f5a4]
call fcn.0043f98c
mov eax, dword [ebp - 0x18]
mov edx, 0x4b4a90
call fcn.00404e60
jne 0x4b4a41
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004b4110
mov edi, eax
push 0
mov al, byte [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov eax, ebx
call fcn.004b41c4
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x4b4a41
mov edx, edi
mov eax, dword [ebx + 0xc]
call fcn.0046d560
mov edx, edi
mov eax, dword [ebx + 0xc]
call fcn.0046d48c
inc dword [ebp - 0xc]
dec esi
jne 0x4b49d1
mov eax, ebx
call fcn.004b40b8
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4a7e
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404a78
lea eax, [ebp - 4]
call fcn.00404a54
ret

Function at 0x4b7848
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4b7913
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405308
mov eax, dword [ebp - 4]
call fcn.0043363c
test al, al
je 0x4b78f2
push 0xa
lea eax, [ebp - 0xe]
push eax
push 0x1004
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0xe]
mov ecx, 0xa
call fcn.00404cc4
mov eax, dword [ebp - 0x21c]
call fcn.0040995c
mov esi, eax
push 0x20a
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
push 0
push esi
call sub.KERNEL32.DLL_MultiByteToWideChar
mov eax, ebx
lea edx, [ebp - 0x218]
mov ecx, 0x105
call fcn.004052ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b791a
lea eax, [ebp - 0x21c]
call fcn.00404a54
lea eax, [ebp - 4]
call fcn.00404a54
ret
Function at 0x4b9048
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee4
mov ebp, ecx
mov edi, edx
mov ebx, eax
call sub.KERNEL32.DLL_GetTickCount
push eax
push 0
mov esi, dword [ebx + 4]
mov eax, esi
call fcn.00405f20
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.004b8fe8
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esp]
wait
push edi
push 1
mov esi, dword [ebx + 8]
mov eax, esi
call fcn.00405f20
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.004b8fe8
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esp + 8]
wait
mov eax, dword [ebx + 4]
cmp dword [eax], 0
je 0x4b9112
fld qword [esp]
fcomp dword [0x4b9128]
fnstsw ax
sahf
je 0x4b9112
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebx + 0x14]
cmp eax, 0x1f4
jbe 0x4b9112
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x14], eax
fld qword [esp]
fdiv dword [0x4b912c]
fdivr qword [esp + 8]
fdiv dword [0x4b9130]
fstp qword [esp + 0x10]
wait
fld qword [esp + 0x10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [esp + 0x28]
mov edx, 2
xor eax, eax
call fcn.004035d0
lea edx, [esp + 0x1c]
lea eax, [ebx + 0x10]
call fcn.00404cb8
mov eax, ebp
mov edx, dword [ebx + 0x10]
call fcn.00404aa8
add esp, 0x11c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c24bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
mov eax, dword [ebp - 8]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4c25ec
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
sub eax, 1
jb 0x4c2500
je 0x4c250c
jmp 0x4c2516
mov eax, dword [ebp - 4]
call fcn.00409d78
mov ebx, eax
jmp 0x4c2516
mov eax, dword [ebp - 4]
call fcn.00409d68
mov ebx, eax
test bl, bl
je 0x4c25a4
lea edx, [ebp - 0x10]
mov al, 1
call fcn.004338a8
push dword [ebp - 0x10]
push 0x4c2604
push 0x4c2618
push dword [ebp - 4]
push 0x4c2624
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov edx, 0x4c2630
mov eax, dword [0x43f5a4]
call fcn.0043f98c
push dword [ebp - 0x14]
push 0x4c2650
lea eax, [ebp - 0xc]
mov edx, 7
call fcn.00404dd4
push dword [ebp - 0xc]
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004c24a4
push dword [ebp - 0x18]
push 0x4c265c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404dd4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404f14
push eax
call sub.KERNEL32.DLL_WinExec
cmp eax, 0x20
setge bl
mov eax, dword [0x4fdb88]
mov edx, 0x4c2668
call fcn.00405130
mov edx, dword [ebp - 0xc]
call fcn.00405130
mov edx, 0x4c2674
call fcn.00405130
mov edx, ebx
call fcn.004033a0
call fcn.00403450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c25f3
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404a78
ret
Function at 0x4c37ec
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
cmp ebx, 0xffffffff
je 0x4c3846
lea eax, [ebp - 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push edi
call sub.KERNEL32.DLL_DosDateTimeToFileTime
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4c3840
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_LocalFileTimeToFileTime
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4c3840
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.KERNEL32.DLL_SetFileTime
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c3c14
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404f04
mov eax, dword [ebp - 8]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4c3d6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x14], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.00438634
mov eax, dword [ebp - 8]
call fcn.00404f14
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 8]
call fcn.00404aa8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c3dd4
test esi, esi
je 0x4c3c99
push 0
push 1
lea edx, [ebx + 0x10]
push edx
mov ecx, eax
xor edx, edx
xor eax, eax
call esi
mov eax, dword [ebx + 4]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x4c3b28
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], 0x4c3bf0
mov dword [ebx + 0x1c], esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x20], eax
lea eax, [ebp - 0xc]
call fcn.00404a54
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
call fcn.004c36cc
mov esi, dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00404f14
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, dword [0x4fdb88]
mov edx, 0x4c3d84
call fcn.00405130
mov edx, dword [ebp - 4]
call fcn.00405130
call fcn.00403450
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x14]
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
mov eax, dword [0x4fdb88]
mov edx, 0x4c3d9c
call fcn.00405130
call fcn.00405ce0
mov edx, 0x4c3db4
call fcn.00405130
call fcn.00403450
mov eax, dword [0x4fdb88]
mov edx, 0x4c3dc4
call fcn.00405130
mov edx, dword [ebx + 0x14]
call fcn.004033e8
call fcn.00403450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3d72
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404a78
ret

Function at 0x4c9bc0
Capabilities:
Query service status

Disassembly:
add esp, 0xffffffe4
push esp
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [esp + 4]
add esp, 0x1c
ret
Function at 0x4c9f9c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4ca097
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004327dc
test al, al
je 0x4ca074
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4ca0b0
mov edx, 0x4ca0cc
mov eax, 0x4ca0d8
call fcn.004aaed0
cmp byte [ebp - 5], 0
je 0x4ca010
call fcn.004aae0c
push eax
lea eax, [ebp - 0x1c]
call fcn.004c9ae0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.004c99b0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c9e54
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov eax, 0x4ca0e4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4ca056
mov edx, 4
mov eax, dword [ebp - 0x10]
call fcn.004c9e10
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c9f7c
cmp byte [ebp - 5], 0
je 0x4ca074
call fcn.004c9a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca09e
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a78
lea eax, [ebp - 4]
call fcn.00404a54
ret

Function at 0x4ca0e8
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4ca1f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004327dc
test al, al
je 0x4ca1d2
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4ca210
mov edx, 0x4ca22c
mov eax, 0x4ca238
call fcn.004aaed0
cmp byte [ebp - 5], 0
je 0x4ca15c
call fcn.004aae0c
push eax
lea eax, [ebp - 0x34]
call fcn.004c9ae0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.004c99b0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c9e54
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov eax, dword [ebp - 0x10]
call fcn.004c9bc0
cmp eax, 4
jne 0x4ca1a5
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4ca1a5
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004c9e10
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c9f7c
cmp byte [ebp - 5], 0
je 0x4ca1d2
call fcn.004c9a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca1ff
lea eax, [ebp - 0x34]
call fcn.00404a54
lea eax, [ebp - 0x14]
call fcn.00404a54
lea eax, [ebp - 4]
call fcn.00404a54
ret
Function at 0x4ca244
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
mov eax, dword [ebp - 8]
call fcn.00404f04
mov eax, dword [ebp - 0xc]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4ca365
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004327dc
test al, al
je 0x4ca34a
mov eax, dword [ebp - 4]
call fcn.00409d68
test al, al
je 0x4ca34a
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4ca380
mov edx, 0x4ca39c
mov eax, 0x4ca3a8
call fcn.004aaed0
cmp byte [ebp + 8], 0
je 0x4ca2dd
call fcn.004aae0c
push eax
lea eax, [ebp - 0x14]
call fcn.004c9ae0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004c99b0
push 0xf003f
push 0x4ca3b4
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
push 1
push 2
mov eax, dword [ebp + 0xc]
push eax
push 0xf01ff
mov eax, dword [ebp - 0xc]
call fcn.00404f14
push eax
mov eax, dword [ebp - 8]
call fcn.00404f14
push eax
push esi
call sub.advapi32.dll_CreateServiceA
mov edi, eax
test edi, edi
setne bl
mov eax, edi
call fcn.004c9bd4
mov edx, edi
mov eax, esi
call fcn.004c9f7c
cmp byte [ebp + 8], 0
je 0x4ca34a
call fcn.004c9a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca36c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404a78
ret

Function at 0x4ca4d4
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4ca5ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004327dc
test al, al
je 0x4ca5a4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4ca5e0
mov edx, 0x4ca5fc
mov eax, 0x4ca608
call fcn.004aaed0
cmp byte [ebp - 5], 0
je 0x4ca548
call fcn.004aae0c
push eax
lea eax, [ebp - 0x34]
call fcn.004c9ae0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.004c99b0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c9e54
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4ca586
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004c9e10
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c9f7c
cmp byte [ebp - 5], 0
je 0x4ca5a4
call fcn.004c9a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca5d1
lea eax, [ebp - 0x34]
call fcn.00404a54
lea eax, [ebp - 0x14]
call fcn.00404a54
lea eax, [ebp - 4]
call fcn.00404a54
ret
Function at 0x4ca614
Capabilities:
Pause service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4ca70a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004327dc
test al, al
je 0x4ca6e4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4ca720
mov edx, 0x4ca73c
mov eax, 0x4ca748
call fcn.004aaed0
cmp byte [ebp - 5], 0
je 0x4ca688
call fcn.004aae0c
push eax
lea eax, [ebp - 0x34]
call fcn.004c9ae0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.004c99b0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c9e54
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
lea eax, [ebp - 0x30]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4ca6c6
mov edx, 7
mov eax, dword [ebp - 0x10]
call fcn.004c9e10
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c9f7c
cmp byte [ebp - 5], 0
je 0x4ca6e4
call fcn.004c9a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca711
lea eax, [ebp - 0x34]
call fcn.00404a54
lea eax, [ebp - 0x14]
call fcn.00404a54
lea eax, [ebp - 4]
call fcn.00404a54
ret

Function at 0x4ca754
Capabilities:
Continue service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f04
xor eax, eax
push ebp
push 0x4ca84a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004327dc
test al, al
je 0x4ca824
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4ca860
mov edx, 0x4ca87c
mov eax, 0x4ca888
call fcn.004aaed0
cmp byte [ebp - 5], 0
je 0x4ca7c8
call fcn.004aae0c
push eax
lea eax, [ebp - 0x34]
call fcn.004c9ae0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.004c99b0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c9e54
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
lea eax, [ebp - 0x30]
push eax
push 3
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4ca806
mov edx, 4
mov eax, dword [ebp - 0x10]
call fcn.004c9e10
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004c9bd4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004c9f7c
cmp byte [ebp - 5], 0
je 0x4ca824
call fcn.004c9a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca851
lea eax, [ebp - 0x34]
call fcn.00404a54
lea eax, [ebp - 0x14]
call fcn.00404a54
lea eax, [ebp - 4]
call fcn.00404a54
ret