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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x436ed4
mov eax, esi
call fcn.0044c67c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x436ed4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x436ed4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x437013
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x436f14
cmp eax, 0x108
ja 0x436f14
mov eax, esi
call fcn.0044c67c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43700a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x437013
jmp 0x43700a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x436ff3
cmp eax, 0x20a
ja 0x436ff3
test byte [esi + 0x50], 0x80
jne 0x436f46
sub eax, 0x203
je 0x436f43
sub eax, 3
je 0x436f43
sub eax, 3
jne 0x436f46
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x436f5a
dec eax
je 0x436f6f
dec eax
je 0x436f8c
dec eax
je 0x436f6f
jmp 0x436f93
mov ecx, ebx
mov eax, dword [0x45c0d8]
mov eax, dword [eax]
mov edx, esi
call fcn.00455ed0
jmp 0x43700a
cmp byte [esi + 0x5d], 1
jne 0x436f85
mov eax, esi
mov si, 0xffed
call fcn.0040343c
jmp 0x437013
or word [esi + 0x54], 1
jmp 0x43700a
and word [esi + 0x54], 0xfffe
jmp 0x43700a
mov eax, dword [0x45db10]
cmp byte [eax + 0x20], 0
je 0x43700a
mov eax, dword [0x45db10]
cmp dword [eax + 0x1c], 0
je 0x43700a
mov eax, dword [ebx]
mov edx, dword [0x45db10]
cmp eax, dword [edx + 0x1c]
jne 0x43700a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044c5c0
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040343c
jmp 0x437013
cmp eax, 0xb00b
jne 0x43700a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004357a8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a580
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43a59c
cmp dword [esi + 4], 0
je 0x43a5c9
test byte [ebx + 0x55], 1
jne 0x43a5bb
mov eax, ebx
call fcn.00439120
test eax, eax
jne 0x43a5bb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43a6d9
mov edx, esi
mov eax, ebx
call fcn.0043a0a4
jmp 0x43a6d9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43a6d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c3f0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00436dbc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043a580
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c3f0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a6d9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440dac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45c240]
cmp byte [eax + 0xc], 0
je 0x440f19
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440f12
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45db64], 0
jne 0x440e00
push 0x440f20
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440f28
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db64], eax
cmp dword [0x45bc18], 0
jne 0x440efb
push 0x440f38
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45bc18], eax
cmp dword [0x45bc18], 0
je 0x440efb
push 0x440f44
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db68], eax
push 0x440f54
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db6c], eax
push 0x440f68
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db70], eax
push 0x440f80
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db74], eax
push 0x440f98
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db78], eax
push 0x440fac
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db7c], eax
push 0x440fc4
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db80], eax
push 0x440fdc
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db84], eax
push 0x440ff8
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db88], eax
push 0x441004
mov eax, dword [0x45bc18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440f19
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f78
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x444df3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004041e8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c580]
test si, 4
je 0x44c544
or bl, 1
test si, 8
je 0x44c54e
or bl, 4
test si, 1
je 0x44c558
or bl, 8
test si, 2
je 0x44c562
or bl, 0x10
test si, 0x10
je 0x44c56c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c57b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44c584
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c5bc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c59d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c5ac
or bl, 4
test esi, 0x20000000
je 0x44c5b7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452c64
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452c76
add esp, 0xfffffff0
call fcn.0040354c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419460
mov eax, dword [0x45bf0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x453008
mov eax, dword [0x45bf18]
mov dword [eax + 4], ebx
mov dword [eax], 0x453014
mov eax, ebx
call fcn.00453020
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
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, 0x44f43c
push eax
push 0
push 0
mov eax, dword [0x45c05c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ae8c]
call fcn.0041c2d0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ae8c]
call fcn.0041c2d0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ae8c]
call fcn.0041c2d0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453440
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45331c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45331c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45331c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452db3
call fcn.004035a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453100
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 0x4532ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45328c
mov dl, 1
mov eax, dword [0x411b74]
call fcn.00403210
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f78
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45327b
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.0044110c
test al, al
je 0x45326e
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, 0x4532bc
lea eax, [ebp - 0x254]
call fcn.00408c08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45326e
xor eax, eax
push ebp
push 0x453267
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 0x4532f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453250
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041e8
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 0x453250
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45326e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453171
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415650
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 0x4532b2
lea eax, [ebp - 0x260]
call fcn.00403f78
ret

Function at 0x453be0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45dbb0]
cmp byte [eax + 0xa5], 0
jne 0x453c51
cmp dword [0x45dbc8], 0
jne 0x453c12
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453b9c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbc8], eax
cmp dword [0x45dbc4], 0
jne 0x453c2d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbc4], eax
cmp dword [0x45dbcc], 0
jne 0x453c51
push esp
push 0
push 0
push 0x453b40
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dbcc], eax
pop edx
ret
Function at 0x453d48
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453d5f
add esp, 0xfffffff0
call fcn.0040354c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419460
mov eax, dword [0x45c048]
cmp word [eax + 2], 0
jne 0x453d87
mov eax, dword [0x45c048]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004554c8
mov eax, dword [0x45c0f4]
cmp word [eax + 2], 0
jne 0x453da1
mov eax, dword [0x45c0f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004556c0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411758]
call fcn.00403210
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b63c]
call fcn.004212c0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453f28
mov eax, dword [0x45bf6c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421690
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455c60
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45bf6c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c2bc
test eax, eax
je 0x453e96
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004085e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c2e4
test eax, eax
je 0x453eaa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041e8
mov eax, dword [0x45be70]
cmp byte [eax], 0
jne 0x453ede
mov eax, ebx
call fcn.00454050
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455e3c
mov eax, ebx
call fcn.00456800
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453f1e
call fcn.004035a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4542d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45dbb0]
cmp dword [eax + 0x30], 0
je 0x45437a
cmp dword [ebx + 0x94], 0
jne 0x454374
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454260
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454374
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 0x45433a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454374
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.00413ac0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454349
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454edc
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 0x454f11
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.00404068
jmp 0x454f1e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fcc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456018
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456059
mov eax, esi
call fcn.0043c6f4
test al, al
je 0x456059
mov eax, dword [ebx + 0x84]
call fcn.0043c3f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456059
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c3f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4571a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x45c0d8]
mov eax, dword [eax]
call fcn.0045521c
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
ja 0x4571b3
pop esi
pop ebx
ret
Function at 0x401370
Capabilities:
Enumerate services
Get process heap flags
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x44]
push ebx
sub esp, 0x6c
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.advapi32.dll_EnumDependentServicesW]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], edx
call ebx
sub esp, 0x18
test eax, eax
jne 0x401410
mov edi, eax
xor ecx, ecx
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
je 0x401440
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_ControlService]
mov ecx, dword [ebp - 0x50]
sub esp, 0xc
mov edi, eax
jmp 0x4013d8
mov ecx, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x54]
sub esp, 0x18
test eax, eax
je 0x4013d8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4013d8
mov dword [ebp - 0x58], ecx
lea ebx, [ecx + 4]
xor esi, esi
mov eax, dword [ebx]
mov dword [esp], 0x68
mov dword [esp + 4], eax
call sym._output_string
mov dword [esp + 8], 0xf003f
mov eax, dword [ebx - 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x4014ff
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
call sym._StopService
mov edx, dword [ebp - 0x54]
mov edi, eax
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
sub esp, 4
test edi, edi
je 0x401520
inc esi
add ebx, 0x24
cmp dword [ebp - 0x40], esi
ja 0x4014ad
mov ecx, dword [ebp - 0x58]
test edi, edi
jne 0x401412
jmp 0x4013d8
mov eax, dword [ebx]
mov dword [esp], 0x69
mov dword [esp + 4], eax
call sym._output_string
jmp 0x401503
Function at 0x401ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401f1b
cmp byte [esi + ebx - 1], 0xa
je 0x401eef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401fe0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x2038
call fcn.00401050
sub esp, eax
mov ebx, edx
mov eax, dword [esp + eax]
mov dword [esp + 8], 0xf003f
mov dword [ebp - 0x2030], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x4021b0
mov dword [esp + 8], 0xf003f
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
mov dword [ebp - 0x202c], eax
sub esp, 0xc
test eax, eax
je 0x4021d0
lea eax, [ebp - 0x201c]
lea edi, [ebp - 0x2018]
mov dword [esp + 4], ebx
mov dword [ebp - 0x201c], 0x1000
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_GetServiceDisplayNameW]
sub esp, 0x10
cmp word [ebp - 0x2018], 0
jne 0x4020a0
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x402090
cmp dword [ebp - 0x2030], 2
mov dword [esp + 4], edi
jne 0x402110
mov dword [esp], 0x6f
call sym._output_string
mov edx, dword [ebp - 0x202c]
mov eax, esi
call sym._StopService
mov ebx, eax
test eax, eax
je 0x402160
mov dword [esp + 4], edi
mov dword [esp], 0x70
call sym._output_string
mov eax, dword [ebp - 0x202c]
mov edi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6c
call sym._output_string
mov eax, dword [ebp - 0x202c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_StartServiceW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402180
mov dword [esp + 4], edi
mov dword [esp], 0x6d
call sym._output_string
jmp 0x4020e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call sym._output_error_string
mov ebx, eax
test eax, eax
je 0x4021f8
xor ebx, ebx
jmp 0x4020e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
call sym._output_error_string
mov ebx, eax
test eax, eax
jne 0x402178
mov dword [esp + 4], edi
mov dword [esp], 0x6e
call sym._output_string
jmp 0x4020e0
mov dword [esp], 0x6a
xor ebx, ebx
call sym._output_string
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x6b
xor ebx, ebx
call sym._output_string
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], 0x71
call sym._output_string
jmp 0x4020e0