joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48aeb7
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x57bf70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x48aef0
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x48af17
cmp dword [0x57fd78], 0
jne 0x48af17
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x48af0a
push 0x12
call esi
test bx, ax
je 0x48af0e
mov eax, edi
jmp 0x48af86
push edi
call fcn.005087bf
pop ecx
jmp 0x48af86
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005038f0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x48af40
call fcn.00497382
call fcn.00498614
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418014
leave
ret 4

Function at 0x48b355
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 0x48b49d
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x48b495
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00449760
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
call fcn.004fd8b7
push str.advancedsystemrepairpro.exe
lea esi, [ebp - 0x244]
call fcn.0048809f
cmp eax, 0xffffffff
je 0x48b474
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 0x48b465
push 0x5590e4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x48b446
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.0040bac6
push ebx
push edi
call dword [eax + 8]
cmp eax, ebx
je 0x48b465
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x48b474
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x244]
call fcn.00434d80
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x240]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48b3bf
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x48b4ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.0050592d
ret
Function at 0x48fc3b
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.00461a2b
xor ebx, ebx
push ebx
push 0x559098
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 4], ebx
call fcn.004d78d9
cmp eax, 0xffffffff
jne 0x48fd1e
push ebx
push 0x532bc4
lea ecx, [ebp - 0x4d0]
call fcn.004d78d9
cmp eax, 0xffffffff
jne 0x48fd1e
push ebx
push 0x532bc0
lea ecx, [ebp - 0x4d0]
call fcn.004d78d9
cmp eax, 0xffffffff
jne 0x48fd1e
push edi
lea ecx, [ebp - 0x4d4]
call fcn.00461a2b
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 0x48fd01
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov esi, eax
call fcn.00471a40
mov ecx, dword [ebp - 0x4d0]
add ecx, 0xfffffff0
call fcn.00471a40
mov eax, esi
call fcn.0050592d
ret
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004e3d13
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00471a40
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 0x48fd48
mov esi, dword [ebp - 0x4cc]
jmp 0x48fceb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov esi, eax
jmp 0x48fceb

Function at 0x492b64
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x581a30], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x492b93
or dword [0x581a30], 1
mov ecx, 0x581a2c
call fcn.00413928
push 0x52cbd5
call fcn.0050429f
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x492b9f
call fcn.00497382
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x492c18
cmp dword [eax + 0x20], 0
je 0x492c18
test eax, eax
je 0x492bb6
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x492c18
mov eax, dword [edi + 4]
dec eax
je 0x492bf7
dec eax
je 0x492bcd
dec eax
jne 0x492c18
mov esi, 0x428e
jmp 0x492bfc
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x492bfc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x492bfc
add esi, 3
jmp 0x492bfc
mov esi, 0x3ea0
push esi
mov ecx, 0x581a2c
call fcn.004d45cc
test eax, eax
je 0x492b9a
mov eax, dword [0x581a2c]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x492c1a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x496578
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4965c2
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4965c2
call fcn.00414ab5
test eax, eax
je 0x4965c2
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00499117
xor eax, eax
inc eax
jmp 0x4967da
cmp dword [ebx + 4], 0x100
push edi
jne 0x4967d1
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4966bf
push 0x11
call edi
test ax, ax
jl 0x4966bf
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4966bf
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x496632
cmp eax, 0x20
jbe 0x4966bf
cmp eax, 0x24
jbe 0x496625
cmp eax, 0x26
je 0x496625
cmp eax, 0x28
jne 0x4966bf
call fcn.00414ab5
test eax, eax
je 0x4966bf
mov ecx, esi
call fcn.0047a1af
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.00414ab5
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x496667
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00499117
jmp 0x4967cc
call fcn.004e8e76
test eax, eax
je 0x4967cc
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00463b24
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x496695
xor edi, edi
jmp 0x496698
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.004e8e76
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4967cc
mov eax, dword [ebx + 8]
sub eax, 9
je 0x49679b
sub eax, 0x12
je 0x496773
sub eax, 0xb
je 0x4966e1
dec eax
dec eax
jne 0x4967d1
push 0x12
call edi
test ax, ax
jl 0x4967d1
push 0x11
call edi
test ax, ax
jl 0x4967d1
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4967d1
call fcn.00414ab5
test eax, eax
jne 0x4967cc
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004598f0
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00405b2b
test eax, eax
je 0x4967cc
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.00405b2b
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4967cc
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x496787
push 0
call fcn.004598f0
mov ecx, esi
call fcn.004c7594
test eax, eax
je 0x4967d1
mov ecx, esi
call fcn.004c7594
jmp 0x4967c5
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.00405b2b
test eax, eax
je 0x4967d1
push dword [esi + 0x20]
call edi
push eax
call fcn.00405b2b
push 0
push esi
mov ecx, eax
call fcn.004c3e42
mov ecx, eax
call fcn.0047a1af
xor eax, eax
inc eax
jmp 0x4967d9
push ebx
mov ecx, esi
call fcn.00483a3c
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x49b090
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x528474
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
push 0xc
mov dword [esp + 0x18], esi
call fcn.004991f5
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, esi
je 0x49b0e9
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
jmp 0x49b0eb
xor eax, eax
mov byte [esp + 0x30], 0
mov dword [ebp], eax
mov dword [esp + 0x30], esi
mov esi, dword [ebx]
mov edi, dword [ebp]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 4]
je 0x49b136
mov eax, dword [edi]
push esi
push eax
call fcn.00503cd5
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x49b133
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.005038f0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
push 5
add edx, 0xfffffff3
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x20]
push edx
add ecx, 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.004fdc2e
mov esi, dword [ebp]
test eax, eax
jne 0x49b1b6
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
je 0x49b1d2
mov eax, dword [esi]
push edi
push eax
call fcn.00503cd5
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi], eax
cmp edi, ecx
jbe 0x49b19e
mov edx, edi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.005038f0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
cmp dword [esi + 4], 0
je 0x49b1d2
mov eax, dword [esi]
push 0
push eax
call fcn.00503cd5
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x4a23b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x4a2426
ja 0x4a23c9
cmp esi, dword [esp + 0x20]
jae 0x4a242a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x4a23e5
jb 0x4a23e1
cmp ecx, 0x10000
jae 0x4a23e5
mov edi, ecx
jmp 0x4a23ea
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2426
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4a2426
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x4a23c9
ja 0x4a2426
cmp esi, dword [esp + 0x20]
jb 0x4a23c9
cmp esi, dword [esp + 0x20]
jne 0x4a2447
cmp ebp, ebx
jne 0x4a2447
or esi, ebp
je 0x4a243f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x4a7899
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x522b8d
call fcn.00505841
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4a7972
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4a7972
cmp ebx, 0x43
je 0x4a78db
cmp ebx, 0x2d
jne 0x4a7972
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a7972
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00413928
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.0043a51f
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00471a40
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00490c7e
call fcn.00505919
ret 4
Function at 0x4af3ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00414d8f
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x4af467
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call edi
push str.GetThemeColor
push dword [esi + 0x48]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x48]
mov dword [esi + 0x58], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x48]
mov dword [esi + 0x5c], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x48]
mov dword [esi + 0x60], eax
call edi
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.004b3d9a
jmp 0x4af47c
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
pop edi
mov eax, esi
pop esi
ret

Function at 0x4af498
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.00454c5c
mov ebx, eax
cmp ebx, esi
je 0x4af505
lea ecx, [ebp - 0x20c]
call fcn.004a4afe
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418014
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4af523
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004af498
cmp eax, esi
jne 0x4af56a
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 0x4af50d
lea ecx, [ebp - 0x20c]
call fcn.004a4afe
push dword [ebp - 0x214]
mov ecx, edi
call fcn.0045929e
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.004a4afe
mov eax, esi
jmp 0x4af4f4
Function at 0x4b0cf0
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 0x4b0d24
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4b0dcf
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4b0d41
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x4b0d1d
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 0x4b0d1d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x4b0db3
mov eax, dword [ebp - 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x4b0d86
mov ecx, 0x2710
cmp eax, ecx
jbe 0x4b0d88
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 0x4b0db9
cmp dword [ebp - 0x1c], ebx
ja 0x4b0d60
call esi
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
ja 0x4b0db9
cmp dword [ebp - 0x2c], 2
je 0x4b0d6a
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 0x4b32b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x4b32cf
call fcn.00497382
call fcn.004b9935
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4b32ef
xor eax, eax
jmp 0x4b340a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b32e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4b32e8
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004991f5
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4b32ca
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x4b334c
mov ecx, edi
call fcn.004aae26
jmp 0x4b3351
call fcn.004b4e91
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x4b3363
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x4b337e
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x4b33f6
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x4b33cd
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x4b33c0
test eax, eax
jbe 0x4b33c0
push eax
mov ecx, 0x578ff4
call fcn.0049aeab
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x4b3397
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x4b33f6
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.0043fd85
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b3457
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.00449760
lea eax, [ebp - 0x10]
push 0x559098
push eax
mov esi, edi
mov dword [ebp - 0x18], ebx
call fcn.004e8983
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x214]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.0043fc75
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.004c5c04
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00434d80
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00434d80
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x214]
call fcn.00434d80
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.00418014
add ebp, 0x20c
leave
ret
Function at 0x4b4bd6
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.0044cef8
lea edi, [esi + 0x4d8]
push 5
mov ecx, edi
call fcn.0044cef8
lea esi, [ebp - 0xc]
call fcn.00459989
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 0x4d593a
push ebx
push ebx
call fcn.00503698
add esp, 0x18
lea esi, [ebp - 0xc]
mov dword [edi + 0x74], eax
call fcn.00459989
push ebx
push 0x1388
push 0x75
push dword [edi + 0x20]
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c3f54
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 4
mov eax, 0x5283b2
call fcn.00505841
mov edi, ecx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov esi, ebx
call fcn.00486d46
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
mov dword [ebp - 0x10], 1
je 0x4c4011
mov esi, dword [ebx]
call fcn.0046542a
test al, al
je 0x4c4011
mov eax, dword [ebx]
push edi
push dword [ebp + 0x10]
push dword [eax]
call fcn.00503970
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], edi
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4c3fce
mov edi, dword [ebp + 0x10]
jmp 0x4c400a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4c4008
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx]
call fcn.0046542a
test al, al
je 0x4c4008
mov eax, dword [ebx]
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4c4011
xor edi, edi
mov esi, dword [ebx]
call fcn.0046542a
mov eax, ebx
call fcn.00505919
ret 0xc