joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4917d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x491977
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x276]
sub al, 2
jb 0x49195c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x268], 0
je 0x49195c
mov eax, dword [ebp - 0xc]
call fcn.0049891c
mov word [ebp - 0xe], ax
xor eax, eax
push ebp
push 0x491955
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 0xe]
sub ax, 8
je 0x491886
dec ax
je 0x491857
sub ax, 0x12
jne 0x4918a4
call fcn.004041c4
jmp 0x49195c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x269], 0
je 0x49193b
mov eax, dword [ebp - 4]
call fcn.0045e44c
test al, al
je 0x49193b
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045e470
jmp 0x49193b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
call fcn.004051a0
mov edx, eax
mov eax, dword [ebp + 0xc]
mov ecx, 1
call fcn.00405388
jmp 0x49193b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x269], 0
je 0x4918c6
mov eax, dword [ebp - 4]
call fcn.0045e44c
test al, al
jne 0x4918c6
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0045e470
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x4918df
mov eax, dword [ebp + 0xc]
call fcn.00404f4c
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x18]
mov dx, word [ebp - 0xe]
call fcn.00405064
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
call fcn.0040520c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049163c
test al, al
je 0x49193b
lea eax, [ebp - 0x1c]
mov dx, word [ebp - 0xe]
call fcn.00405064
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
call fcn.004051ac
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49195c
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0xe]
call fcn.00498958
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49197e
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404f64
ret

Function at 0x495eac
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [0x5218a8]
cmp byte [eax], 0
jne 0x495eda
mov ecx, 0xad
mov edx, 0x495f30
mov eax, 0x495f98
call fcn.004046f8
mov eax, dword [ebp - 8]
call fcn.00404f4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x495f23
push 0x200
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, 0x100
call fcn.004050f8
mov esp, ebp
pop ebp
ret
Function at 0x495fac
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov eax, dword [0x5218a8]
cmp byte [eax], 0
jne 0x495fd2
mov ecx, 0xb9
mov edx, 0x495ff4
mov eax, 0x49605c
call fcn.004046f8
push 2
movzx eax, word [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
pop ecx
pop ebp
ret

Function at 0x498154
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4982da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5218a8]
cmp byte [eax], 0
je 0x4981af
mov eax, dword [ebp - 4]
mov edx, dword [0x479184]
call fcn.00403ad8
test al, al
je 0x4981ca
mov eax, dword [ebp - 4]
call fcn.00483f64
test al, al
je 0x4981ca
mov eax, dword [ebp - 4]
call fcn.00483c60
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x4981ca
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0047d3f8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00405114
jmp 0x4982af
mov eax, dword [ebp - 4]
mov edx, dword [0x479184]
call fcn.00403ad8
test al, al
jne 0x49822b
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049802c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49820a
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0047d3f8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00405114
jmp 0x4982af
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0047d3f8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, 0x38
call fcn.00434684
jmp 0x4982af
mov eax, dword [ebp - 4]
call fcn.00483f64
test al, al
jne 0x49825d
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0047d3f8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00405114
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004980a4
jmp 0x4982af
mov eax, dword [ebp - 4]
call fcn.00483c60
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, dword [ebp - 8]
call fcn.00405504
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004051a0
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405190
push eax
mov eax, dword [ebp - 4]
call fcn.00483c60
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004051a0
mov edx, eax
dec edx
mov eax, dword [ebp - 8]
call fcn.00405504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4982e1
lea eax, [ebp - 0x20]
call fcn.0040479c
lea eax, [ebp - 0x1c]
call fcn.00404f4c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004047c0
ret
Function at 0x49b974
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ba62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5218a8]
cmp byte [eax], 0
jne 0x49b9b3
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
call fcn.0042d9b0
jmp 0x49ba44
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0042d948
test al, al
je 0x49ba44
mov eax, dword [ebp - 0x30]
inc eax
mov edx, eax
add edx, edx
lea eax, [ebp - 0x14]
call fcn.00405504
mov eax, dword [ebp - 0x34]
dec eax
test eax, eax
jl 0x49ba44
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x30]
inc eax
add eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405190
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x49ba3c
mov eax, dword [ebp - 0x14]
call fcn.00405190
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.004050a4
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x49b9ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ba69
lea eax, [ebp - 0x38]
call fcn.00404f4c
lea eax, [ebp - 0x14]
call fcn.00404f4c
ret
Function at 0x49ba70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49bbf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5218a8]
cmp byte [eax], 0
jne 0x49bacf
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404a34
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042db48
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00405114
jmp 0x49bbcd
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405190
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x49bb06
mov eax, dword [ebp - 0xc]
call fcn.00404f4c
jmp 0x49bbcd
mov eax, dword [ebp - 0x10]
dec eax
sub eax, 2
jb 0x49bb40
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xf
lea eax, [ebp - 0x24]
push eax
push 0
lea edx, [ebp - 0x28]
mov eax, dword [0x521a6c]
call fcn.00406ae4
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x42d584]
call fcn.0040e1c4
call fcn.00404118
cmp dword [ebp - 0x14], 1
jne 0x49bb4d
mov dword [ebp - 0x14], 2
mov edx, dword [ebp - 0x14]
shr edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405504
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00405190
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405190
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x49bbb9
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xf
lea eax, [ebp - 0x24]
push eax
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x521ee8]
call fcn.00406ae4
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x42d584]
call fcn.0040e1c4
call fcn.00404118
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00405190
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004050a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bbfc
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004047c0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004047c0
ret
Function at 0x49bc04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49bd3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
dec eax
sub eax, 2
jb 0x49bc50
mov ecx, 0x7d
mov edx, 0x49bd54
mov eax, 0x49bdbc
call fcn.004046f8
mov eax, dword [0x5218a8]
cmp byte [eax], 0
jne 0x49bcb3
cmp dword [ebp - 8], 1
jne 0x49bc8b
lea eax, [ebp - 0x10]
mov edx, dword [ebp + 8]
call fcn.00404a34
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404a34
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0042daf0
jmp 0x49bd18
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.00404a34
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00404a34
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0042db1c
jmp 0x49bd18
mov eax, dword [ebp + 8]
call fcn.004051a0
inc eax
add eax, eax
push eax
mov eax, dword [ebp + 8]
call fcn.00405190
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405190
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x49bd18
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xf
lea eax, [ebp - 0x24]
push eax
push 0
lea edx, [ebp - 0x28]
mov eax, dword [0x521bac]
call fcn.00406ae4
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x42d584]
call fcn.0040e1c4
call fcn.00404118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd42
lea eax, [ebp - 0x28]
call fcn.0040479c
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004047c0
ret

Function at 0x4a9460
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x4a948f
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x4a9492
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x4a9476
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x52306c], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x4a946b
mov byte [0x52346c], 1
mov esp, ebp
pop ebp
ret
Function at 0x4a94c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x52346c], 0
jne 0x4a94e3
call fcn.004a9460
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4a9522
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x52306c]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x4a94f6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4b10e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
xor edx, edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b120d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x8d]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b11d9
cmp dword [ebp - 8], 0x81
jbe 0x4b116a
lea edx, [ebp - 0x94]
mov eax, 0xe
call fcn.0040d950
mov ecx, dword [ebp - 0x94]
mov dl, 1
mov eax, dword [0x40846c]
call fcn.0040e188
call fcn.00404118
lea eax, [ebp - 0x8d]
mov dword [ebp - 0xc], eax
jmp 0x4b11d1
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0xc]
call fcn.004049a4
mov eax, dword [ebp - 0xa0]
mov ecx, 2
mov edx, 1
call fcn.00404ccc
mov edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
call fcn.00405114
push dword [ebp - 0x98]
push 0x4b121c
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00405270
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x4b1175
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1214
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.004047c0
lea eax, [ebp - 0x98]
call fcn.00404f4c
lea eax, [ebp - 0x94]
call fcn.0040479c
ret
Function at 0x4b1cb4
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405548
lea eax, [ebp - 8]
call fcn.00405548
xor eax, eax
push ebp
push 0x4b1db8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x34], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405190
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b1d95
push 0x14
mov eax, dword [ebp - 8]
call fcn.00405190
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4b1d8c
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x4b1d83
push 0x7d0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b1d83
jmp 0x4b1d7d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push 0x7d0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b1d83
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jbe 0x4b1d83
cmp dword [ebp - 0x34], 4
jne 0x4b1d54
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x34], 4
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1dbf
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f64
ret
Function at 0x4b1dc8
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405548
lea eax, [ebp - 8]
call fcn.00405548
xor eax, eax
push ebp
push 0x4b1ec6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405190
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b1ea3
push 0x24
mov eax, dword [ebp - 8]
call fcn.00405190
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4b1e9a
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4b1e91
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b1e91
jmp 0x4b1e85
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push 0x3e8
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b1e91
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x18]
jb 0x4b1e91
cmp dword [ebp - 0x34], 1
je 0x4b1e91
cmp dword [ebp - 0x1c], 0xa
jl 0x4b1e59
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x34], 1
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1ecd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f64
ret

Function at 0x4b1ed4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.00405548
lea eax, [ebp - 4]
call fcn.00405548
xor eax, eax
push ebp
push 0x4b1f94
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b1f6f
push 4
mov eax, dword [ebp - 4]
call fcn.00405190
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b1f5d
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4b1f4c
mov dword [ebp - 8], 0xffffffff
jmp 0x4b1f52
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4b1f64
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4b1f76
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1f9b
lea eax, [ebp - 0x14]
call fcn.00404f4c
lea eax, [ebp - 4]
call fcn.00404f4c
ret
Function at 0x4b1fa4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.00405548
lea eax, [ebp - 4]
call fcn.00405548
xor eax, eax
push ebp
push 0x4b2055
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b2033
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00405190
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b2024
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4b2015
mov byte [ebp - 5], 0
jmp 0x4b2019
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4b2028
mov byte [ebp - 5], 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4b2037
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b205c
lea eax, [ebp - 0x14]
call fcn.00404f4c
lea eax, [ebp - 4]
call fcn.00404f4c
ret

Function at 0x4b229c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b2328
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404a1c
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040eeb4
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 4]
call fcn.00405114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b232f
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.004047c0
ret

Function at 0x4b2334
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b23d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x109]
xor ecx, ecx
mov edx, 0x105
call fcn.00403140
lea eax, [ebp - 0x109]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404a1c
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040eeb4
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 4]
call fcn.00405114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b23d9
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.004047c0
ret