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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48fcc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x276]
sub al, 2
jb 0x48fcad
cmp byte [ebx + 0x268], 0
je 0x48fcad
mov eax, dword [ebp - 4]
call fcn.004950e4
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x48fca6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x48fbea
dec ax
je 0x48fbc0
sub ax, 0x12
jne 0x48fc04
call fcn.00404164
jmp 0x48fcad
cmp byte [ebx + 0x269], 0
je 0x48fc8c
mov eax, ebx
call fcn.0045d5e4
test al, al
je 0x48fc8c
xor edx, edx
mov eax, ebx
call fcn.0045d608
jmp 0x48fc8c
mov eax, dword [esi]
call fcn.00405120
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00405308
jmp 0x48fc8c
cmp byte [ebx + 0x269], 0
je 0x48fc21
mov eax, ebx
call fcn.0045d5e4
test al, al
jne 0x48fc21
mov dl, 1
mov eax, ebx
call fcn.0045d608
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x48fc39
mov eax, esi
call fcn.00404ecc
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.00404fe4
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.0040518c
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0048f9c4
test al, al
je 0x48fc8c
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.00404fe4
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040512c
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fcad
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.00495118
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fccf
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404ee4
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404ecc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x49690f
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405078
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496914
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x498244
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49831d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x513940]
cmp byte [eax], 0
jne 0x498281
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, ebx
call fcn.0042cdb0
jmp 0x4982ff
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0042cd48
test al, al
je 0x4982ff
mov eax, dword [ebp - 0x24]
inc eax
mov edx, eax
add edx, edx
lea eax, [ebp - 0xc]
call fcn.00405484
mov esi, dword [ebp - 0x28]
dec esi
test esi, esi
jl 0x4982ff
inc esi
xor edi, edi
mov eax, dword [ebp - 0x24]
inc eax
add eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405110
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x4982fb
mov eax, dword [ebp - 0xc]
call fcn.00405110
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405024
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
dec esi
jne 0x4982b2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498324
lea eax, [ebp - 0x2c]
call fcn.00404ecc
lea eax, [ebp - 0xc]
call fcn.00404ecc
ret
Function at 0x49832c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x498496
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x513940]
cmp byte [eax], 0
jne 0x498387
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004049b4
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.0042cf48
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405094
jmp 0x49846e
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4983b9
mov eax, esi
call fcn.00404ecc
jmp 0x49846e
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jb 0x4983f0
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x513b00]
call fcn.00406a80
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x42c984]
call fcn.0040e090
call fcn.004040b8
cmp dword [ebp - 8], 1
jne 0x4983fd
mov dword [ebp - 8], 2
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.00405484
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00405110
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x49845e
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x513f7c]
call fcn.00406a80
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x42c984]
call fcn.0040e090
call fcn.004040b8
mov eax, dword [esi]
call fcn.00405110
mov edx, eax
mov eax, esi
call fcn.00405024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49849d
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404740
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404740
ret
Function at 0x4984a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4985ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x513940]
cmp byte [eax], 0
jne 0x49852f
cmp dword [ebp - 4], 1
jne 0x49850a
lea eax, [ebp - 8]
mov edx, esi
call fcn.004049b4
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.004049b4
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.0042cef0
jmp 0x49858b
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.004049b4
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.004049b4
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.0042cf1c
jmp 0x49858b
mov eax, esi
call fcn.00405120
inc eax
add eax, eax
push eax
mov eax, esi
call fcn.00405110
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x49858b
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x513c40]
call fcn.00406a80
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x42c984]
call fcn.0040e090
call fcn.004040b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4985b5
lea eax, [ebp - 0x20]
call fcn.0040471c
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404740
ret

Function at 0x4a58e8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x51506c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4a590a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a590c
shr eax, 1
dec edx
jne 0x4a58f8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a58f1
mov byte [0x51546c], 1
pop esi
pop ebx
ret

Function at 0x4a5928
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x51546c], 0
jne 0x4a593f
call fcn.004a58e8
mov eax, edi
dec eax
test eax, eax
jl 0x4a5968
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x51506c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4a5949
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a7eb8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4a7ee9
dec al
je 0x4a7f25
dec al
je 0x4a7f69
dec al
je 0x4a7fd4
jmp 0x4a805e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4a805e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4a7ef9
jmp 0x4a805e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a805e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4a7f35
jmp 0x4a805e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a805e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4a7f97
xor ebp, ebp
jmp 0x4a7fa8
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4a7fb1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4a7f79
jmp 0x4a805e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a805e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4a802c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004a5970
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4a7fe8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4abd68
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x88], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4abe7b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x81]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4abe47
cmp eax, 0x81
jbe 0x4abde4
lea edx, [ebp - 0x88]
mov eax, 0xe
call fcn.0040d81c
mov ecx, dword [ebp - 0x88]
mov dl, 1
mov eax, dword [0x408448]
call fcn.0040e054
call fcn.004040b8
lea ebx, [ebp - 0x81]
jmp 0x4abe42
push dword [esi]
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
mov edx, ebx
call fcn.00404924
mov eax, dword [ebp - 0x94]
mov ecx, 2
mov edx, 1
call fcn.00404c4c
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
call fcn.00405094
push dword [ebp - 0x8c]
push 0x4abe8c
mov eax, esi
mov edx, 3
call fcn.004051f0
add ebx, 4
cmp byte [ebx], 0
jne 0x4abdec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abe82
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.00404740
lea eax, [ebp - 0x8c]
call fcn.00404ecc
lea eax, [ebp - 0x88]
call fcn.0040471c
ret
Function at 0x4ac8bc
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004054c8
lea eax, [ebp - 8]
call fcn.004054c8
xor eax, eax
push ebp
push 0x4ac9a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405110
push eax
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jbe 0x4ac97e
push 0x14
mov eax, dword [ebp - 8]
call fcn.00405110
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jbe 0x4ac978
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x4ac972
push 0x7d0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4ac972
jmp 0x4ac96c
mov edi, dword [ebp - 0x14]
push 0x7d0
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4ac972
cmp edi, dword [ebp - 0x14]
jae 0x4ac972
cmp dword [ebp - 0x24], 4
jne 0x4ac94c
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac9a7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ee4
ret

Function at 0x4ac9b0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004054c8
lea eax, [ebp - 8]
call fcn.004054c8
xor eax, eax
push ebp
push 0x4aca8e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405110
push eax
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x4aca6c
push 0x24
mov eax, dword [ebp - 8]
call fcn.00405110
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jbe 0x4aca66
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4aca60
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4aca60
jmp 0x4aca55
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push 0x3e8
call sub.kernel32.dll_Sleep_1
inc edi
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4aca60
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jb 0x4aca60
cmp dword [ebp - 0x24], 1
je 0x4aca60
cmp edi, 0xa
jl 0x4aca2e
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aca95
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ee4
ret
Function at 0x4acaa0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.004054c8
xor eax, eax
push ebp
push 0x4acb2f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4acb16
push 4
mov eax, dword [ebp - 4]
call fcn.00405110
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jbe 0x4acb0b
lea eax, [ebp - 0x20]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4acb00
or edi, 0xffffffff
jmp 0x4acb03
mov edi, dword [ebp - 0x1c]
push esi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4acb0e
or edi, 0xffffffff
push ebx
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4acb19
or edi, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acb36
lea eax, [ebp - 4]
call fcn.00404ecc
ret

Function at 0x4acb40
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.004054c8
xor eax, eax
push ebp
push 0x4acbc5
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov edi, eax
test edi, edi
jbe 0x4acbad
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00405110
push eax
push edi
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jbe 0x4acba3
push esi
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4acb99
xor ebx, ebx
jmp 0x4acb9b
mov bl, 1
push esi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4acba5
xor ebx, ebx
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x4acbaf
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acbcc
lea eax, [ebp - 4]
call fcn.00404ecc
ret

Function at 0x4ace08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ace93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040499c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040ed80
mov edx, dword [ebp - 0x10c]
mov eax, ebx
call fcn.00405094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ace9a
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00404740
ret
Function at 0x4acea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4acf3d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
xor ecx, ecx
mov edx, 0x105
call fcn.004030e0
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040499c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040ed80
mov edx, dword [ebp - 0x10c]
mov eax, ebx
call fcn.00405094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acf44
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00404740
ret

Function at 0x4ae11c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ae21d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4981e8]
call fcn.0042cae4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ae1fb
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x4ae181
lea edx, [ebp - 0xc]
mov eax, 0x4ae114
call fcn.00406a80
mov edx, dword [ebp - 0xc]
mov cl, 1
mov eax, dword [ebp - 8]
call fcn.0042cc24
mov byte [ebp - 1], al
jmp 0x4ae1ab
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0042cbc0
lea edx, [ebp - 0x10]
mov eax, 0x4ae10c
call fcn.00406a80
mov edx, dword [ebp - 0x10]
mov cl, 1
mov eax, dword [ebp - 8]
call fcn.0042cc24
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x4ae1e5
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.004985d0
mov eax, esi
call fcn.00405110
push eax
mov eax, edi
call fcn.00405110
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
push 0x4ae230
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae202
mov eax, dword [ebp - 8]
call fcn.004038ec
ret
Function at 0x4ae244
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4ae24d
mov eax, dword [ebp - 4]
add esp, 0xfffffffc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10008], ebx
mov ebx, ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4ae34a
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4ae2ba
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
mov eax, esi
call fcn.00405110
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jbe 0x4ae2b1
mov eax, ebx
lea edx, [ebp - 0x10004]
mov ecx, 0x8000
call fcn.00405078
jmp 0x4ae331
mov eax, ebx
call fcn.00404ecc
jmp 0x4ae331
mov dl, 1
mov eax, dword [0x4981e8]
call fcn.0042cae4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae32a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.0042cbc0
lea edx, [ebp - 0x10008]
mov eax, 0x4ae23c
call fcn.00406a80
mov edx, dword [ebp - 0x10008]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0042cc24
test al, al
je 0x4ae314
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0049832c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae331
mov eax, dword [ebp - 4]
call fcn.004038ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae351
lea eax, [ebp - 0x10008]
call fcn.0040471c
ret

Function at 0x4b11f4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b1222
mov eax, ebx
call fcn.004b1ca8
cmp dword [ebx + 0x40], 0
je 0x4b121b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b1293
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b1285
cmp dword [ebx + 8], 0
je 0x4b1244
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 0x4b1256
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b1285
cmp dword [ebx + 8], 0
je 0x4b1237
cmp eax, 3
je 0x4b1269
dec eax
jne 0x4b1237
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 0x4b1237
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b1237
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b12b1
cmp dword [ebx + 0x14], 0xcc
je 0x4b12b1
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.004b12bc
pop ebx
ret

Function at 0x4d3418
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4d3450]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d342e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d343d
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d344c
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x4e2154
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4e21b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040499c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409dfc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e21bf
lea eax, [ebp - 0xc]
call fcn.0040471c
ret