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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x214
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a9efe
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [esp + 0x10]
push ecx
call fcn.0051ec40
mov edi, dword [esp + 0x22c]
push edi
lea edx, [esp + 0x14]
push edx
call fcn.00522b90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00401000
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 1
push eax
push 2
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4a9ebb
push esi
call ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
push ecx
push eax
call fcn.004010e0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
lea edx, [esp + 0x10]
push edx
call fcn.00522920
push edi
call fcn.005224a0
lea eax, [eax + eax + 2]
push eax
push 2
call ebx
mov esi, eax
test esi, esi
je 0x4a9ef4
push esi
call ebp
push edi
push eax
call fcn.00522140
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8

Function at 0x4aa9f0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20c
push esi
lea eax, [esp + 4]
push eax
push ecx
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4aaa44
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [0x58afb8]
test eax, eax
je 0x4aaa39
mov edx, dword [esp + 0x214]
lea ecx, [esp + 8]
push ecx
push edx
call fcn.0051f5c0
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
add esp, 0x20c
ret 8

Function at 0x4aba20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x430
push edi
lea eax, [esp + 0x220]
push eax
xor edi, edi
call fcn.0051ec40
lea ecx, [esp + 0xc]
push ecx
call fcn.0051ec40
mov edx, dword [esp + 0x438]
push edx
lea eax, [esp + 0x224]
push eax
call fcn.00522b90
test esi, esi
je 0x4aba66
push esi
lea ecx, [esp + 0x10]
push ecx
call fcn.00522b90
jmp 0x4aba70
lea edx, [esp + 0xc]
push edx
call fcn.005229a0
mov ecx, dword [esp + 0x444]
mov eax, dword [esp + 0x440]
push 0
push 0
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x448]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x23c]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x4abab3
lea edi, [eax + 1]
lea ecx, [esp + 0xc]
push ecx
call fcn.00522920
lea edx, [esp + 0x220]
push edx
call fcn.00522920
mov eax, edi
pop edi
add esp, 0x430
ret 0x10
Function at 0x4ac7d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x58b3b8], bl
push edi
lea eax, [ebx + 3]
je 0x4ac7e7
mov eax, 7
push 0x8000000
push 3
push eax
mov eax, dword [esp + 0x24]
push accept
push eax
call fcn.004a72d0
mov edi, eax
cmp edi, 0xffffffff
je 0x4ac903
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4ac830
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ac8fc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
or edx, ecx
jne 0x4ac865
lea eax, [esp + 0x18]
push eax
push 1
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4ac8fc
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
test ecx, ecx
jg 0x4ac8fc
jl 0x4ac87a
cmp eax, 0x80000000
jae 0x4ac8fc
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4ac8fb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4ac8f4
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x4ac8ee
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, dword [esp + 0x10]
jne 0x4ac8f4
cmp ecx, dword [esp + 0x14]
jne 0x4ac8f4
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4ac8f4
mov ebx, dword [esp + 0xc]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4

Function at 0x4acde0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
mov dword [esp + 0x14], ebp
call ebx
mov esi, eax
test esi, esi
je 0x4ace8c
push edi
lea eax, [esi*4]
push eax
call fcn.004a2340
mov edi, eax
push edi
push esi
call ebx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ace85
mov ebp, dword [0x58af64]
xor ebx, ebx
xor esi, esi
movzx eax, word [edi + esi*4]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
and eax, 0x3ff
push 0x58
push eax
call ebp
test eax, eax
je 0x4ace5b
test dword [esp + 0x24], 0x8000000
je 0x4ace5b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4ace56
mov edx, dword [edi + esi*4]
mov dword [eax], edx
or ebx, 2
jmp 0x4ace6b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4ace68
mov ecx, dword [edi + esi*4]
mov dword [eax], ecx
or ebx, 1
cmp ebx, 3
jne 0x4ace78
mov dword [esp + 0x10], 1
add esi, 1
cmp esi, dword [esp + 0x14]
jne 0x4ace26
mov ebp, dword [esp + 0x10]
push edi
call fcn.004a23a0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x4ad1e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4ad1ec
lea eax, [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 0xc

Function at 0x4ad260
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4ad2a0
mov ebp, dword [esp + 0x14]
cmp edi, 0xffffffff
mov esi, edi
jbe 0x4ad27e
or esi, 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad2ac
cmp dword [esp + 0x18], esi
jne 0x4ad2ac
sub edi, esi
add ebx, esi
test edi, edi
jne 0x4ad274
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x4af080
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jge 0x4af098
mov esi, 2
push 0x11
call edi
test ax, ax
jge 0x4af0a4
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4af0b0
or esi, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x4af1a0
Capabilities:
Create thread

Disassembly:
cmp dword [0x58b334], 0
je 0x4af1b6
push str.create_thread_n
call fcn.0048dc10
add esp, 4
push ebx
push esi
push edi
push 0x58b5e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x58b3e0]
test esi, esi
je 0x4af231
cmp esi, dword [0x58b3e4]
mov eax, dword [esi]
mov dword [0x58b3e0], eax
jne 0x4af1e8
mov ecx, dword [esi + 4]
mov dword [0x58b3e4], ecx
jmp 0x4af1f0
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
push 0x58b5e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
push 0x58b5e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x58b3e8]
push eax
push str.new_thread___d__n
push 0xff00ffff
call fcn.0048dc30
add esp, 0xc
push 0x1c
call fcn.004a2340
mov esi, eax
mov ebx, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ecx
push 0
push 0
push 1
push 0
mov edi, dword [0x58af18]
call edi
test eax, eax
jne 0x4af29f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_event__d
push str.os_event_create
push 0x1acd
push str.._srcos.c
call fcn.0048dda0
push 0
push 0
push 1
push 0
mov dword [esi + 0x14], eax
call edi
test eax, eax
je 0x4af27f
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x4af110
push 0
mov dword [esi + 0x18], eax
add dword [0x58b3e8], 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x4af229
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_thread__d:__p
push str.os_thread_create
push 0x1a7c
push str.._srcos.c
call fcn.0048dda0
int3
Function at 0x4b07b0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jge 0x4b07c8
mov esi, 4
push 0x11
call edi
test ax, ax
jge 0x4b07d4
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b07e0
or esi, 2
push 0x5b
call edi
test ax, ax
jge 0x4b07ec
or esi, 8
push 0x5c
call edi
test ax, ax
jge 0x4b07f8
or esi, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x4b24e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
xor ebp, ebp
cmp edi, 0x40
jb 0x4b25ce
push esi
push edi
call fcn.004a2340
push ebp
push ebp
push ebp
push ebx
mov esi, eax
call fcn.004ac4b0
test eax, eax
je 0x4b25ac
push ebp
lea eax, [esp + 0xc]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b258a
cmp dword [esp + 8], edi
jne 0x4b2568
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x38]
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov dword [eax + 4], edx
movzx ecx, byte [esi + 0x29]
movzx edx, byte [esi + 0x28]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x20]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
push str.serial_number__I64x__sector_size__u__sectors_per_cluster__u__version__u._u_n
call fcn.0048dc10
add esp, 0x1c
push esi
mov ebp, 1
call fcn.004a23a0
pop esi
mov eax, ebp
pop ebp
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_read_all_refs_boot_record__u_n
call fcn.0048dc10
add esp, 8
push esi
call fcn.004a23a0
pop esi
mov eax, ebp
pop ebp
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_read_refs_boot_record__u_n
call fcn.0048dc10
add esp, 8
push esi
call fcn.004a23a0
pop esi
mov eax, ebp
pop ebp
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_file_pointer_to_refs_boot_record__u_n
call fcn.0048dc10
add esp, 8
push esi
call fcn.004a23a0
pop esi
mov eax, ebp
pop ebp
pop ecx
ret 4
push edi
push str.bad_refs_sector_size__u_n
call fcn.0048dc10
add esp, 8
mov eax, ebp
pop ebp
pop ecx
ret 4
Function at 0x4b5c60
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
lea ebx, [edi + 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0xac]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
cmp esi, ebp
je 0x4b5d5b
cmp dword [esi + 8], ebp
je 0x4b5cef
lea ebx, [ebx]
cmp dword [edi + 0x48], ebp
je 0x4b5cbc
mov edx, dword [edi]
push ebp
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 4]
push ecx
push edx
mov dword [edi + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4b5ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jmp 0x4b5d37
lea eax, [edi + 4]
push eax
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b5d2c
mov eax, dword [esp + 0xc]
add dword [esi + 4], eax
sub dword [esi + 8], eax
cmp dword [esi + 8], ebp
jne 0x4b5c90
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi]
push ebx
mov dword [edi + 0xac], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.004a23a0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0xac]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebp
jne 0x4b5c85
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b5d45
pop esi
pop ebp
mov dword [edi + 0x48], 1
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
push ebp
push 3
push eax
call ecx
mov edx, dword [edi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4b5d60
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
xor ebx, ebx
lea esp, [esp]
cmp dword [esi + 0x44], ebx
jne 0x4b5e33
cmp dword [esi + 0x40], ebx
je 0x4b5dd1
mov eax, dword [esi + 0x30]
mov ecx, esi
mov dword [esi + 0x40], ebx
call fcn.004b54a0
test eax, eax
je 0x4b5da3
mov eax, dword [esi + 0x30]
push eax
call fcn.004a23a0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
jmp 0x4b5e33
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2c], ebx
mov ecx, dword [esi + 0x30]
jne 0x4b5e94
push edi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x58]
push edx
call ebp
jmp 0x4b5e33
cmp dword [esi + 0x34], ebx
je 0x4b5e26
mov eax, dword [esi + 0x3c]
cmp eax, 8
jb 0x4b5eaa
cmp eax, 0x800000
ja 0x4b5eaa
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4b5dfa
push eax
call fcn.004a23a0
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a2340
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x30], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
add edx, 4
sub eax, 4
mov dword [esi + 0x34], edx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], 1
jmp 0x4b5e33
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x44], 4
cmp dword [esi + 0x38], ebx
je 0x4b5e61
mov ecx, dword [esi]
push ebx
lea edx, [esp + 0x10]
push edx
lea eax, [esi + 0x18]
push eax
push ecx
mov dword [esi + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4b5ec1
mov eax, dword [esp + 0xc]
add dword [esi + 0x34], eax
sub dword [esi + 0x44], eax
jmp 0x4b5d70
mov ecx, dword [esi + 0x44]
lea edx, [esi + 0x18]
push edx
mov edx, dword [esi + 0x34]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5ece
mov eax, dword [esp + 0xc]
add dword [esi + 0x34], eax
sub dword [esi + 0x44], eax
jmp 0x4b5d70
push ecx
call fcn.004a23a0
lea edx, [esi + 0x64]
push edx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
push ebx
push 3
push eax
call ecx
mov edx, dword [esi + 0x50]
push edx
call ebp
pop edi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jmp 0x4b5ed9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b5eaa
pop edi
pop ebp
mov dword [esi + 0x38], 1
pop ebx
pop ecx
ret
Function at 0x4b6800
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x218
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor edi, edi
call fcn.0051ec40
lea esi, [esp + 0x10]
call fcn.004b56c0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, eax
mov dword [esp + 0xc], esi
call ebp
sub eax, esi
cmp eax, 0xea60
ja 0x4b6937
push ebx
mov ebx, dword [0x58af1c]
mov ecx, dword [esp + 0x1c]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b68a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_pipe_failed__d_n
call fcn.0048dc10
add esp, 8
call fcn.004b5520
test eax, eax
je 0x4b6936
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
jbe 0x4b6842
jmp 0x4b6936
push 0xb8
call fcn.004a2340
push 0xb8
mov edi, eax
push 0
push edi
call fcn.00545659
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
lea edx, [edi + 0x64]
push edx
call ebx
lea eax, [edi + 0x7c]
push eax
call ebx
lea ecx, [edi + 0x94]
push ecx
call ebx
mov dword [edi], esi
call fcn.004aa020
mov dword [edi + 0x14], eax
call fcn.004aa020
mov edx, dword [esp + 0x22c]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x230]
mov dword [edi + 0x5c], edx
mov dword [edi + 0x60], eax
call fcn.004aa020
mov dword [edi + 0x50], eax
call fcn.004aa020
mov dword [edi + 0x54], eax
call fcn.004aa020
push edi
push 0x4b6460
mov dword [edi + 0x58], eax
call fcn.004af1a0
mov edx, edi
mov dword [edi + 0x4c], eax
call fcn.004b67c0
test eax, eax
jne 0x4b6936
push edi
call fcn.004b5800
xor edi, edi
pop ebx
lea ecx, [esp + 0x10]
push ecx
call fcn.00522920
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x218
ret 8

Function at 0x4b6bb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x24
push edi
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4b6c13
lea edx, [esp + 0x30]
push edx
push 0x24
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [0x581e70]
test eax, eax
je 0x4b6c0c
mov ecx, dword [esp + 0x20]
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4b6c0b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
add esp, 0x24
ret 8
Function at 0x4b6c20
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x220
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4b6d20
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.004b6b20
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x20
lea ecx, [esp + 0x30]
push ecx
push edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4b6c89
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4b6c86
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.004b6bb0
push esi
call ebp
push 0x10000
lea ecx, [esp + 0x30]
push ecx
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4b6ce5
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4b6cd4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x430
je 0x4b6cd4
call ebx
push eax
mov eax, dword [0x581de4]
mov edx, dword [eax + 0x1050]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x220
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x4b6d12
call esi
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x220
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop edi
add esp, 0x220
ret
Function at 0x4b6d50
Capabilities:
Start service

Disassembly:
sub esp, 0x204
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4b6e20
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004b6b20
push 0x10
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4b6df1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4b6de1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.start_service__08x_n
call fcn.0048dc10
add esp, 8
call edi
cmp eax, 0x420
je 0x4b6de0
call edi
push eax
mov eax, dword [0x581de4]
mov edx, dword [eax + 0x1048]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop edi
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
push ebx
call ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop ebx
add esp, 0x204
ret

Function at 0x4b6e50
Capabilities:
Stop service

Disassembly:
sub esp, 0x220
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4b6ef2
push ebx
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004b6b20
push 0x20
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4b6ec3
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4b6eb3
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004b6bb0
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x220
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x220
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x581de4]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a78c0
add esp, 0x14
pop edi
add esp, 0x220
ret