joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63567c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x6356aa
mov eax, ebx
call fcn.00636130
cmp dword [ebx + 0x40], 0
je 0x6356a3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x63571b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x63570d
cmp dword [ebx + 8], 0
je 0x6356cc
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 0x6356de
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x63570d
cmp dword [ebx + 8], 0
je 0x6356bf
cmp eax, 3
je 0x6356f1
dec eax
jne 0x6356bf
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 0x6356bf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x6356bf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x635739
cmp dword [ebx + 0x14], 0xcc
je 0x635739
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.00635744
pop ebx
ret

Function at 0x64721c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x64725f
cmp dword [ebp - 0x98], 6
jb 0x64725f
call fcn.0046624c
call fcn.0046632c
test al, al
je 0x64725f
mov byte [ebp - 5], 1
jmp 0x647263
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x649f8c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x1223364]
shl edi, 2
xor edx, dword [esi + 0x12222dc]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x1222364]
mov bl, dl
add ecx, dword [ebx*4 + 0x1222764]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x1222b64]
mov bl, dl
add ecx, dword [ebx*4 + 0x1222f64]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x649fa9
xchg edx, eax
xor eax, dword [esi + 0x12222dc]
xor edx, dword [esi + 0x12222e0]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x64a000
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x1223364]
inc esi
shl esi, 2
xor edx, dword [esi + 0x12222dc]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x1222364]
mov bl, dl
add ecx, dword [ebx*4 + 0x1222764]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x1222b64]
mov bl, dl
add ecx, dword [ebx*4 + 0x1222f64]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x64a018
xchg edx, eax
xor eax, dword [0x12222e0]
xor edx, dword [0x12222dc]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x64a398
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x1223364], 0x10
mov esi, 0x7d2c08
mov edi, 0x12222dc
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x655570
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65564f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0xffffffff
je 0x655639
mov eax, 0x400
call fcn.00402808
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 4], edx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x44]
mov edx, 0x655664
call fcn.00405594
mov eax, dword [ebp - 0x10]
call fcn.00405548
inc eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov edx, dword [ebp - 0x10]
call fcn.0040b4d0
lea eax, [ebp - 0xc]
call fcn.0065522c
push 0x3e8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00405748
push eax
call sub.kernel32.dll_CallNamedPipeA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x655656
lea eax, [ebp - 0x10]
call fcn.00405278
ret

Function at 0x655674
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6556c5
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
je 0x6556c5
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
je 0x6556c5
mov dword [ebp - 0x14], 0xc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xffffffff
push 0x3e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00405748
push eax
call sub.kernel32.dll_WaitNamedPipeA
test eax, eax
je 0x6556f5
mov ecx, 0x65574c
mov dl, 1
mov eax, dword [0x4092e0]
call fcn.0040f2f0
call fcn.00404c14
lea eax, [ebp - 0x14]
push eax
push 0
push 0xd
push 0xd
push 0xff
push 6
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00405748
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0xffffffff
jne 0x65573e
mov ecx, 0x655774
mov dl, 1
mov eax, dword [0x4092e0]
call fcn.0040f2f0
call fcn.00404c14
mov esp, ebp
pop ebp
ret
Function at 0x655814
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 0xc]
call fcn.00405738
xor eax, eax
push ebp
push 0x6558a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [0x7d3fc0]
call fcn.00405748
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x655893
cmp dword [ebp - 0x14], 0
je 0x655893
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 1
push 0
mov eax, dword [ebp - 8]
push eax
push 0
mov ax, word [ebp - 2]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ReportEventA
test eax, eax
je 0x65588b
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.006557e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6558b0
lea eax, [ebp - 0xc]
call fcn.00405278
ret

Function at 0x655de8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x655ee0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebp
push 0x655ead
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x40
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403450
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x655ea3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405748
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x655e9a
cmp dword [ebp - 0x18], 4
jne 0x655e9a
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x655ec5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x655ee7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040529c
ret
Function at 0x6582b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x658518
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x65831b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00657d80
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040fcf4
cmp al, 1
jne 0x65831b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00658098
test al, al
je 0x6584a7
cmp dword [ebp - 8], 0
jge 0x658339
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00657d80
mov eax, dword [ebp - 0x210]
call fcn.00405548
cmp ebx, eax
jge 0x658383
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00657d80
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x7d7460]
and eax, 0xff
bt dword [edx], eax
jae 0x658383
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x658397
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00658294
cmp ebx, dword [ebp - 8]
je 0x658499
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x6583c3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404644
and eax, 0x7f
movzx eax, word [eax*2 + 0x7d3fd0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x658486
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404644
and eax, 0x7f
movzx eax, word [eax*2 + 0x7d3fd0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0047e9dc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404644
and eax, 0x7f
movzx eax, word [eax*2 + 0x7d3fd0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0047e9dc
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65848d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x6584fa
cmp dword [ebp - 8], 0
jge 0x6584b2
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00657d80
mov eax, dword [ebp - 0x218]
call fcn.00405548
cmp eax, dword [ebp - 8]
jg 0x6584ec
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00657d80
mov eax, dword [ebp - 0x21c]
call fcn.00405548
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00658294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65851f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040529c
ret
Function at 0x665c80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [ebp - 0x10], 0x1e6
je 0x665ca5
cmp dword [ebp - 0x10], 0x24a
je 0x665ca5
xor eax, eax
jmp 0x665ca7
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x666e68
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x666efd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00666b10
sub eax, 1
jb 0x666ec6
add eax, 0xfffffff6
sub eax, 4
jb 0x666ecf
jmp 0x666ee7
mov dword [ebp - 0x10], 0xffffffff
jmp 0x666ee7
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x14]
cmp eax, 0xbb8
ja 0x666ee7
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x15
jne 0x666ea1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666f04
lea eax, [ebp - 4]
call fcn.00405278
ret

Function at 0x66d714
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x66d892
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x10]
push eax
push 0x12
mov eax, dword [0x7d6e98]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0041b530
test al, al
jne 0x66d86c
xor eax, eax
push ebp
push 0x66d865
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x20
call fcn.00403450
mov eax, dword [0x7d6e98]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x145]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00405310
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 9], 0
je 0x66d7c5
mov dword [ebp - 0x30], 0x1250
jmp 0x66d7cc
mov dword [ebp - 0x30], 0x1000
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
call fcn.0048f2e8
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x66d818
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
setne byte [ebp - 0xa]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d81f
mov eax, dword [ebp - 0x18]
call fcn.0048f39c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d899
lea eax, [ebp - 0x1c]
call fcn.004071f8
lea eax, [ebp - 0x14]
call fcn.00405278
lea eax, [ebp - 4]
call fcn.00405278
ret
Function at 0x66d8dc
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x66d98c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x66d971
push 0x10
mov eax, dword [ebp - 8]
call fcn.00405748
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x66d948
mov byte [ebp - 9], 0
jmp 0x66d968
mov eax, 0x66d99c
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
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d993
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040529c
ret

Function at 0x66d9a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x66da48
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x66da2d
push 0x20
mov eax, dword [ebp - 8]
call fcn.00405748
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x66da0c
mov byte [ebp - 9], 0
jmp 0x66da24
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66da4f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040529c
ret
Function at 0x66da58
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
mov eax, dword [ebp - 8]
call fcn.00405738
xor eax, eax
push ebp
push 0x66dafd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x66dae2
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00405748
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x66dac7
mov byte [ebp - 9], 0
jmp 0x66dad9
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66db04
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040529c
ret

Function at 0x66db0c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x18], eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x66db74
push 4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x66db6b
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x66db62
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x6b12f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x6b1338]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6b1311
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6b1321
or byte [ebp - 5], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6b1331
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x6c2e90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6c2efa
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.004054f8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a9e4
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c2f01
lea eax, [ebp - 0x14]
call fcn.00405278
ret

Function at 0x704cdc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x704dcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 1]
call fcn.00405460
lea eax, [ebp - 0x14]
mov edx, 0x704de4
call fcn.00405550
mov eax, dword [ebp - 0x14]
call fcn.00405748
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 6
ja case.0x704d36.0
jmp dword [eax*4 + 0x704d3d]
mov edx, dword [ebp - 0xc]
mov eax, 0x125
call fcn.005bfab4
jmp 0x704db7
mov edx, dword [ebp - 0xc]
mov eax, 0x127
call fcn.005bfab4
jmp 0x704db7
mov edx, dword [ebp - 0xc]
mov eax, 0x128
call fcn.005bfab4
mov eax, dword [ebp - 8]
mov byte [eax], 1
jmp 0x704db7
mov edx, dword [ebp - 0xc]
mov eax, 0x129
call fcn.005bfab4
jmp 0x704db7
mov edx, dword [ebp - 0xc]
mov eax, 0x12a
call fcn.005bfab4
jmp 0x704db7
mov edx, dword [ebp - 0xc]
mov eax, 0x9d
call fcn.005bfab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x704dd4
lea eax, [ebp - 0x14]
call fcn.00405278
ret
Function at 0x704de8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x704ec6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 3], 0
lea eax, [ebp - 0xc]
mov dl, byte [ebp - 1]
call fcn.00405460
lea eax, [ebp - 0xc]
mov edx, 0x704edc
call fcn.00405550
mov eax, dword [ebp - 0xc]
call fcn.00405748
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x704e53
mov eax, dword [0x7d7390]
mov eax, dword [eax]
mov eax, dword [eax + 0x4f0]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
jne 0x704e53
mov byte [ebp - 3], 1
cmp dword [ebp - 8], 4
jne 0x704e76
mov eax, dword [0x7d7390]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c0]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
jne 0x704e76
mov byte [ebp - 3], 1
lea edx, [ebp - 0x10]
mov eax, dword [0x7d6938]
mov eax, dword [eax]
call fcn.0040a0f8
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 1]
call fcn.00405460
mov eax, dword [ebp - 0x14]
pop edx
call fcn.0040588c
test eax, eax
jle 0x704ea5
mov byte [ebp - 3], 1
mov al, byte [ebp - 3]
mov byte [ebp - 2], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x704ecd
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040529c
ret