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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x49489c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49487d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49488c
or bl, 4
test esi, 0x20000000
je 0x494897
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x49b110
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x49b122
add esp, 0xfffffff0
call fcn.004044d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425338
mov eax, dword [0x559d1c]
mov dword [eax + 4], ebx
mov dword [eax], 0x49b4b4
mov eax, dword [0x559d30]
mov dword [eax + 4], ebx
mov dword [eax], 0x49b4c0
mov eax, ebx
call fcn.0049b4cc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419810]
call fcn.0040412c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419810]
call fcn.0040412c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419810]
call fcn.0040412c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419810]
call fcn.0040412c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419810]
call fcn.0040412c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x49784c
push eax
push 0
push 0
mov eax, dword [0x559fac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x457714]
call fcn.00458eac
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x457714]
call fcn.00458eac
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x457714]
call fcn.00458eac
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0049b9d0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49b850
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49b850
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x49b850
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49b25f
call fcn.0040452c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49b634
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b7df
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x49b7c0
mov dl, 1
mov eax, dword [0x419e74]
call fcn.0040412c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405090
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x49b7af
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004883f4
test al, al
je 0x49b7a2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x49b7f0
lea eax, [ebp - 0x254]
call fcn.0040b8f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49b7a2
xor eax, eax
push ebp
push 0x49b79b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x49b828
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x49b784
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405300
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x49b784
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b7a2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x49b6a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ea74
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b7e6
lea eax, [ebp - 0x260]
call fcn.00405090
ret

Function at 0x49c238
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x55d16c]
cmp byte [eax + 0xa5], 0
jne 0x49c2a9
cmp dword [0x55d184], 0
jne 0x49c26a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x49c1f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x55d184], eax
cmp dword [0x55d180], 0
jne 0x49c285
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x55d180], eax
cmp dword [0x55d188], 0
jne 0x49c2a9
push esp
push 0
push 0
push 0x49c198
push 0x3e8
push 0
call fcn.00407bcc
mov dword [0x55d188], eax
pop edx
ret
Function at 0x49c93c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x55d16c]
cmp dword [eax + 0x30], 0
je 0x49c9e6
cmp dword [ebx + 0x94], 0
jne 0x49c9e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x49c8cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x49c9e0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x49c9a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x49c9e0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c1f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x49c9b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x49d544
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x49d579
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405180
jmp 0x49d586
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004050e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x49e750
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x49e791
mov eax, esi
call fcn.004838c8
test al, al
je 0x49e791
mov eax, dword [ebx + 0x84]
call fcn.004835c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49e791
push 0
mov eax, dword [ebx + 0x84]
call fcn.004835c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4a333c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a336a
mov eax, ebx
call fcn.004a3df0
cmp dword [ebx + 0x40], 0
je 0x4a3363
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a33db
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a33cd
cmp dword [ebx + 8], 0
je 0x4a338c
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 0x4a339e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a33cd
cmp dword [ebx + 8], 0
je 0x4a337f
cmp eax, 3
je 0x4a33b1
dec eax
jne 0x4a337f
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 0x4a337f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a337f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a33f9
cmp dword [ebx + 0x14], 0xcc
je 0x4a33f9
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.004a3404
pop ebx
ret
Function at 0x4b4104
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4b4155
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4b413c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4b412c
jmp 0x4b4155
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4b413d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bf828
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x55d238
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4bf84a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4bf84c
shr eax, 1
dec edx
jne 0x4bf838
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4bf831
mov dword [0x556034], 1
pop esi
pop ebx
ret

Function at 0x4bf86c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [0x556034]
test al, al
jne 0x4bf88a
call fcn.004bf828
mov eax, 4
lea edx, [ebp - 8]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, dword [ebp - 4]
xor ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x55d238]
shr ecx, 8
xor ebx, ecx
mov dword [ebp - 4], ebx
inc edx
dec eax
jne 0x4bf892
mov edx, dword [ebp + 8]
dec edx
test edx, edx
jl 0x4bf8e2
inc edx
xor eax, eax
xor ebx, ebx
mov bl, byte [esi + eax]
mov ecx, dword [ebp - 4]
xor ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x55d238]
shr ecx, 8
xor ebx, ecx
mov dword [ebp - 4], ebx
inc eax
dec edx
jne 0x4bf8bf
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4f7354
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f74e3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
test ebx, ebx
je 0x4f74cd
cmp dword [ebx + 4], 0
je 0x4f74cd
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4f73a9
cmp eax, 0x14
jae 0x4f73af
jmp 0x4f74cd
jl 0x4f74cd
push 0
push 0
mov eax, ebx
call fcn.0041eb68
mov eax, dword [0x559ee0]
cmp byte [eax], 0
je 0x4f74bf
mov eax, dword [ebx + 4]
call fcn.004f6ab8
cmp al, 4
jne 0x4f74bf
xor edx, edx
push ebp
push 0x4f74b3
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10d]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 8]
mov edx, 0x105
call fcn.004056f8
mov eax, dword [ebp - 8]
call fcn.0040556c
push eax
mov eax, dword [0x5576b4]
push eax
push 0x4f74f4
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_GetTempFileNameA
inc dword [0x5576b4]
mov edx, dword [ebp - 8]
mov eax, 0x4f7500
call fcn.004056b0
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.004056f8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x25c]
call fcn.00403438
mov edx, 1
lea eax, [ebp - 0x25c]
call fcn.0040389c
call fcn.00402c94
push 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x25c]
call fcn.00403594
call fcn.00402c94
lea eax, [ebp - 0x25c]
call fcn.004035b4
call fcn.00402c94
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x49f618]
call fcn.0049fc10
mov dword [ebp - 4], eax
mov byte [edi], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f74cd
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.004f6fec
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f74ea
lea eax, [ebp - 8]
call fcn.00405090
ret

Function at 0x504cbc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403758
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x55a33c]
cmp byte [edx + 0xc], 0
je 0x504d20
mov edx, dword [0x55a32c]
cmp dword [edx], 2
jne 0x504d20
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x504d24
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 edi, eax
xor eax, eax
push ebp
push 0x504ddc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00504cbc
test al, al
je 0x504dbe
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00405180
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x504dbe
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc 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.0040556c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.0040556c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405288
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x504d77
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504de3
lea eax, [ebp - 0x2c]
call fcn.00405090
lea eax, [ebp - 0xc]
call fcn.00405090
ret

Function at 0x504ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00504a3c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040556c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x504f4e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x559fbc]
mov dl, 1
mov eax, dword [0x504934]
call fcn.0040ec78
call fcn.00404a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x504f58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040556c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x504fb0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x55a34c]
mov dl, 1
mov eax, dword [0x504934]
call fcn.0040ec78
call fcn.00404a00
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00504a6c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52eb80
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov esi, eax
or edi, 0xffffffff
test edx, edx
jne 0x52eba1
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
jmp 0x52eba3
mov ebx, edx
test ebx, ebx
je 0x52ebeb
push 0xf01ff
mov eax, esi
call fcn.0040556c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x52ebeb
push esp
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x52ebe5
mov eax, dword [esp + 4]
dec eax
je 0x52ebde
sub eax, 3
jne 0x52ebe2
mov edi, 1
jmp 0x52ebe5
xor edi, edi
jmp 0x52ebe5
or edi, 0xffffffff
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, edi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x52ebfc
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x7530
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EnumDependentServicesA
test eax, eax
jne 0x52edb1
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xea
jne 0x52edb5
mov eax, dword [ebp - 0x14]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x52edb5
xor edx, edx
push ebp
push 0x52edaa
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EnumDependentServicesA
test eax, eax
jne 0x52eca8
call fcn.00404aac
jmp 0x52edb5
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x52ed8b
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov esi, eax
lea edi, [ebp - 0x48]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
push 0x24
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x52ece9
call fcn.00404aac
jmp 0x52edb5
xor eax, eax
push ebp
push 0x52ed7b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x52ed5e
call fcn.00404aac
call fcn.00404aac
jmp 0x52edb5
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x52ed3f
call fcn.00404aac
call fcn.00404aac
jmp 0x52edb5
cmp dword [ebp - 0x60], 1
je 0x52ed64
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jbe 0x52ed5e
call fcn.00404aac
call fcn.00404aac
jmp 0x52edb5
cmp dword [ebp - 0x60], 1
jne 0x52ed19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ed82
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52edb1
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
ret
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52efec
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ebx, eax
mov byte [esp], 0
call sub.kernel32.dll_GetTickCount
mov ebp, eax
mov dword [esp + 4], 0x7530
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
je 0x52f12e
push 0x2c
mov eax, ebx
call fcn.0040556c
push eax
push edi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
je 0x52f115
lea eax, [esp + 8]
push eax
push ebx
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x52f115
cmp dword [esp + 0xc], 1
je 0x52f115
jmp 0x52f0be
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], eax
fild qword [esp + 0x24]
fdiv dword [0x52f13c]
call fcn.0040313c
mov esi, eax
cmp esi, 0x3e8
jae 0x52f088
mov esi, 0x3e8
jmp 0x52f095
cmp esi, 0x2710
jbe 0x52f095
mov esi, 0x2710
push esi
call sub.kernel32.dll_Sleep_1
lea eax, [esp + 8]
push eax
push ebx
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x52f115
cmp dword [esp + 0xc], 1
je 0x52f115
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [esp + 4]
ja 0x52f115
cmp dword [esp + 0xc], 3
je 0x52f05a
mov edx, ebx
mov eax, edi
call fcn.0052ebfc
lea eax, [esp + 8]
push eax
push 1
push ebx
call sub.advapi32.dll_ControlService
test eax, eax
je 0x52f115
jmp 0x52f10e
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [esp + 8]
push eax
push ebx
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x52f115
cmp dword [esp + 0xc], 1
je 0x52f115
call sub.kernel32.dll_GetTickCount
sub eax, ebp
cmp eax, dword [esp + 4]
ja 0x52f115
cmp dword [esp + 0xc], 1
jne 0x52f0e1
test ebx, ebx
je 0x52f128
cmp dword [esp + 0xc], 1
sete byte [esp]
push ebx
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [esp]
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x52f1d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x52f29e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x52f28d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, ebx
mov dword [ebp - 8], eax
jmp 0x52f28d
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x52f285
mov eax, dword [ebp - 8]
mov esi, dword [eax]
test esi, 0x80000000
je 0x52f261
and esi, 0xffff
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x52f272
add esi, ebx
add esi, 2
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
add dword [ebp - 8], 4
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x52f22b
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x52f2b4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x52f1ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8