joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba60a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x48
mov eax, 0x523779
call fcn.00505874
mov dword [ebp - 0x14], ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], esi
call fcn.00421b99
mov edi, dword [0x57fbf0]
mov ebx, dword [0x57fbf4]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004794bd
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00423ffe
mov dword [ebp - 0x1c], esi
mov esi, vtable.CBitmap.0
mov dword [ebp - 0x20], esi
push ebx
push edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004712e3
test eax, eax
jne 0x4ba6aa
push 0xffffffffffffffff
push 0
push 0x3e8a
call fcn.0048b29a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.00443383
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00420b1a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004cc4bb
xor eax, eax
call fcn.00505919
ret
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.004c0aab
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], eax
push 0x57fb74
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
call fcn.00437ab0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004824cb
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004c0aab
call fcn.00451e8e
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ba66d
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4ba72b
push 0xffffffffffffffff
push eax
push 0x3e8a
call fcn.0048b29a
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4ba67b
lea ecx, [ebp - 0x20]
call fcn.00471821
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4ba74d
push 0xffffffffffffffff
push eax
push 0x3e8a
call fcn.0048b29a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.00443383
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00420b1a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004cc4bb
xor eax, eax
inc eax
jmp 0x4ba6a4
Function at 0x4bd592
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00439fb7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4bd5cb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00487b4e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4c23f1
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x52a8d4
call fcn.005058aa
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.005038f0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x4c2539
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4c2531
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00436002
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
call fcn.0045e458
push str.advancedsystemrepairpro.exe
lea esi, [ebp - 0x244]
call fcn.004bbd91
cmp eax, 0xffffffff
je 0x4c2510
push dword [ebp - 0x238]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x254], edi
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x4c2501
push 0x5590e4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x4c24e2
lea ecx, [ebp - 0x248]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [ebp - 0x248], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea esi, [ebp - 0x260]
call fcn.0041d117
push ebx
push edi
call dword [eax + 8]
cmp eax, ebx
je 0x4c2501
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4c2510
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x244]
call fcn.0049e5f8
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c245b
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4c2548
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.0050592d
ret
Function at 0x4c28a6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x54
mov eax, 0x51c754
call fcn.00505874
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.00421b99
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004794bd
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00423ffe
mov edi, vtable.CBitmap.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
push dword [esi + 0x54]
lea eax, [ebp - 0x60]
push dword [esi + 0x50]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.004712e3
cmp eax, ebx
jne 0x4c293d
push 0xffffffffffffffff
push ebx
push 0x3e8a
call fcn.0048b29a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], edi
call fcn.00443383
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00420b1a
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.004cc4bb
xor eax, eax
call fcn.00505919
ret 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004c0aab
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x40], eax
push 0x57fb74
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.00437ab0
push ebx
push ecx
push ecx
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], esp
push eax
mov ecx, esi
call fcn.0048914b
push 0xff
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push ebx
push eax
mov ecx, esi
call fcn.0041ffc9
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004ae47b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
call fcn.004c0aab
call fcn.00451e8e
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c2900
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4c29ef
push 0xffffffffffffffff
push ebx
push 0x3e8a
call fcn.0048b29a
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4c290d
lea ecx, [ebp - 0x20]
call fcn.00471821
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp eax, ebx
jne 0x4c2a11
push 0xffffffffffffffff
push ebx
push 0x3e8a
call fcn.0048b29a
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], edi
call fcn.00443383
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00420b1a
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.004cc4bb
xor eax, eax
inc eax
jmp 0x4c2935
Function at 0x4c6efc
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x4c6f7c
cmp dword [ebp + 0xc], ecx
jne 0x4c6f7c
cmp dword [ebx + 0x94], ecx
jne 0x4c6f7c
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x4c6f72
cmp eax, 0xffffffff
je 0x4c6f72
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.00436903
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x4c6f7c
xor eax, eax
jmp 0x4c70bc
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x4c6fb7
cmp dword [ebp + 0xc], 0
jne 0x4c6fb7
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.00436903
test eax, eax
jne 0x4c6f6b
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x4c6fdd
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x4c6fdd
cmp eax, 0xffffffff
je 0x4c6fdd
cmp dword [ebx + 0x90], ecx
jne 0x4c6fdd
cmp dword [ebx + 0xa8], ecx
je 0x4c6f6b
push dword [ebx + 0x6c]
push 0x57a438
call fcn.004300c1
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x4c7016
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x4c707c
push edi
jmp 0x4c7077
push dword [ebx + 0x6c]
push 0x579304
call fcn.004300c1
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x4c7042
cmp eax, edi
je 0x4c7042
cmp dword [0x57fd5c], edi
jne 0x4c7042
push 1
push ebx
mov ecx, eax
call fcn.004c8ed0
jmp 0x4c706f
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4c705a
push edi
call fcn.0043d35e
cmp eax, edi
je 0x4c705a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x4c6f6b
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4c707c
push ebx
call fcn.004ba16b
cmp dword [ebx + 0x6c], edi
je 0x4c70b9
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045193f
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4cc8b0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0x30
mov eax, 0x52887c
call fcn.00505841
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push esi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4cc9b8
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x4cc9b8
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push ebx
call esi
test eax, eax
je 0x4cc9a3
cmp dword [ebp - 0x38], 1
je 0x4cc9b8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4cc954
push dword [ebp - 0x24]
call edi
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x4cc9a3
cmp dword [ebp - 0x38], 1
je 0x4cc9a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x2bf20
ja 0x4cc9a3
cmp dword [ebp - 0x38], 3
je 0x4cc926
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4cc9a3
jmp 0x4cc99d
push 0x3e8
call edi
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x4cc9a3
cmp dword [ebp - 0x38], 1
je 0x4cc9a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x2bf20
ja 0x4cc9a3
cmp dword [ebp - 0x38], 1
jne 0x4cc96d
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x18]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049e5f8
call fcn.00505919
ret

Function at 0x4ce083
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0xf0000000
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x4ce0ab
cmp dword [edi], 0
jne 0x4ce0bd
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x4ce0e1
push dword [ebp + 0xc]
lea esi, [ebp - 8]
push dword [ebp + 8]
call fcn.004c423e
lea eax, [edi + 4]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4ce10f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
xor eax, eax
inc eax
push 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 3
push ecx
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
push dword [edi + 4]
call esi
pop esi
pop ebx
leave
ret 8
Function at 0x4ce37a
Capabilities:
Enumerate processes

Disassembly:
push 0x234
mov eax, 0x52884c
call fcn.005058aa
and dword [ebp - 0x23c], 0
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.005038f0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x240], esi
and dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x4ce3ff
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4ce3fb
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.005045e5
pop ecx
pop ecx
test eax, eax
je 0x4ce416
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4ce3d9
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ce40e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.0050592d
ret
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ce425
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4ce410

Function at 0x4d0670
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x5237aa
call fcn.005058aa
mov esi, ecx
lea edi, [esi + 0x14]
push edi
lea ecx, [ebp - 0x4d0]
call fcn.004c80a3
xor ebx, ebx
push ebx
push 0x559098
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 4], ebx
call fcn.0048de5d
cmp eax, 0xffffffff
jne 0x4d0753
push ebx
push 0x532bd4
lea ecx, [ebp - 0x4d0]
call fcn.0048de5d
cmp eax, 0xffffffff
jne 0x4d0753
push ebx
push 0x532bd0
lea ecx, [ebp - 0x4d0]
call fcn.0048de5d
cmp eax, 0xffffffff
jne 0x4d0753
push edi
lea ecx, [ebp - 0x4d4]
call fcn.004c80a3
mov edi, dword [ebp - 0x4d4]
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
push edi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4d0736
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov esi, eax
call fcn.00425e0a
mov ecx, dword [ebp - 0x4d0]
add ecx, 0xfffffff0
call fcn.00425e0a
mov eax, esi
call fcn.0050592d
ret
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.0044524c
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00425e0a
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push ebx
push dword [ebp - 0x4d0]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4d077d
mov esi, dword [ebp - 0x4cc]
jmp 0x4d0720
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov esi, eax
jmp 0x4d0720
Function at 0x4d0888
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d08a0
mov edi, dword [esi + 0xc]
jmp 0x4d08e0
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d08b9
call fcn.004d6694
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d08ce
call fcn.004d6694
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d08e0
call fcn.004d6694
call fcn.00439fb7
cmp dword [eax + 0x3c], 0
je 0x4d08f5
push edi
mov ecx, ebx
call fcn.004e8f5f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004556a8
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4d0913
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d091f
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4d4517
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp esi, edi
jne 0x4d454b
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4d45f6
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4d4568
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x4d4544
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
call edi
test eax, eax
je 0x4d4544
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x4d45da
mov eax, dword [ebp - 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x4d45ad
mov ecx, 0x2710
cmp eax, ecx
jbe 0x4d45af
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call edi
test eax, eax
je 0x4d45e0
cmp dword [ebp - 0x1c], ebx
ja 0x4d4587
call esi
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
ja 0x4d45e0
cmp dword [ebp - 0x2c], 2
je 0x4d4591
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
mov eax, 0x3e8
pop ebx
pop edi
xor edx, edx
pop esi
leave
ret
Function at 0x4d7111
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52952f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x57bf70]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005038f0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.0049f1e2
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0049e5f8
cmp dword [esp + 0x10], 0xffffffff
je 0x4d7291
lea eax, [esp + 0x48]
push 0x55908c
push eax
call fcn.005042b6
pop ecx
pop ecx
test eax, eax
je 0x4d7270
lea eax, [esp + 0x48]
push 0x559090
push eax
call fcn.005042b6
pop ecx
pop ecx
test eax, eax
je 0x4d7270
lea eax, [esp + 0x18]
push 0x559098
push eax
mov esi, edi
call fcn.0049f1e2
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0049f1e2
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0049e5f8
test byte [esp + 0x1c], 0x10
je 0x4d7246
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004d7111
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0049e5f8
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d71b3
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x4d729f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0040ef12
mov esp, ebp
pop ebp
ret
Function at 0x4e0396
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x57bf70]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x52a06b
call fcn.00505841
xor eax, eax
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x206
push eax
lea eax, [ebp + 2]
xor ecx, ecx
push eax
mov word [ebp], cx
call fcn.005038f0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea ecx, [ebp]
call fcn.00436002
lea eax, [ebp - 0x10]
push 0x559098
push eax
mov esi, edi
mov dword [ebp - 0x18], ebx
call fcn.0049f1e2
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x214]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.0042401f
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.0046c5c1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0049e5f8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0049e5f8
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x214]
call fcn.0049e5f8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040ef12
add ebp, 0x20c
leave
ret
Function at 0x4e6d4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0x90]
call fcn.004d2ca8
lea edi, [esi + 0x4d8]
push 5
mov ecx, edi
call fcn.004d2ca8
lea esi, [ebp - 0xc]
call fcn.00466473
push ebx
push 0x19
push 0x77
push dword [edi + 0x20]
call dword [eax + 8]
mov eax, dword [edi + 0x20]
push ebx
push ebx
push eax
push 0x459811
push ebx
push ebx
call fcn.0050369e
add esp, 0x18
lea esi, [ebp - 0xc]
mov dword [edi + 0x74], eax
call fcn.00466473
push ebx
push 0x1388
push 0x75
push dword [edi + 0x20]
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ea19f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x57bf70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.004ea156
mov ebx, eax
cmp ebx, esi
je 0x4ea20c
lea ecx, [ebp - 0x20c]
call fcn.00424585
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ef12
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4ea22a
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004ea19f
cmp eax, esi
jne 0x4ea271
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4ea214
lea ecx, [ebp - 0x20c]
call fcn.00424585
push dword [ebp - 0x214]
mov ecx, edi
call fcn.004f0820
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.00424585
mov eax, esi
jmp 0x4ea1fb