joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3340
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4b3367
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
push esi
push str.GetLastActivePopup__p_n
call fcn.0048f0a0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_OpenIcon]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4b33d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow_failed__08x_n
call fcn.0048f0a0
add esp, 8
cmp byte [0x598ed6], 0
je 0x4b33d2
push ebx
push edi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
cmp edi, ebx
je 0x4b33d0
push ebp
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push ebx
push edi
call ebp
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push edi
call ebp
pop ebp
pop edi
pop ebx
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
jne 0x4b33f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetActiveWindow_failed__08x_n
call fcn.0048f0a0
add esp, 8
push 0xffffffffffffffec
push esi
call dword [0x598dd0]
movzx eax, al
push 3
push 0
shr eax, 3
push 0
and eax, 1
push 0
neg eax
push 0
sbb eax, eax
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x4b3438
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow2_failed__08x_n
call fcn.0048f0a0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
ret 4

Function at 0x4b3450
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 0x4b3468
mov esi, 4
push 0x11
call edi
test ax, ax
jge 0x4b3474
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b3480
or esi, 2
push 0x5b
call edi
test ax, ax
jge 0x4b348c
or esi, 8
push 0x5c
call edi
test ax, ax
jge 0x4b3498
or esi, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x4b5a90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, eax
xor ebp, ebp
cmp edi, 0x40
mov ebx, ecx
mov dword [esp + 0x10], ebp
jb 0x4b5be8
push esi
push edi
call fcn.004a47f0
push ebp
push ebp
push ebp
push ebx
mov esi, eax
call fcn.004af390
test eax, eax
je 0x4b5bc2
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5b9c
cmp dword [esp + 0x10], edi
jne 0x4b5b76
lea ecx, [esi + 3]
mov edx, str.ReFS
lea edi, [ebp + 4]
mov eax, ecx
sub edx, ecx
movzx ebx, byte [edx + eax]
movzx ebp, byte [eax]
sub ebp, ebx
jne 0x4b5b50
add eax, 1
sub edi, 1
jne 0x4b5af3
mov eax, dword [esp + 0x20]
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.0048f0a0
add esp, 0x1c
push esi
lea ebp, [edi + 1]
call fcn.004a4850
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4
push 4
push ecx
push str.bad_ReFS_signature:__t_n
call fcn.0048f0a0
mov ebp, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.004a4850
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_read_all_refs_boot_record__u_n
call fcn.0048f0a0
add esp, 8
push esi
call fcn.004a4850
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_read_refs_boot_record__u_n
call fcn.0048f0a0
add esp, 8
push esi
call fcn.004a4850
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
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.0048f0a0
add esp, 8
push esi
call fcn.004a4850
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4
push edi
push str.bad_refs_sector_size__u_n
call fcn.0048f0a0
add esp, 8
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4b9410
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 0x4b950b
cmp dword [esi + 8], ebp
je 0x4b949f
lea ebx, [ebx]
cmp dword [edi + 0x48], ebp
je 0x4b946c
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 0x4b9490
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jmp 0x4b94e7
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 0x4b94dc
mov eax, dword [esp + 0xc]
add dword [esi + 4], eax
sub dword [esi + 8], eax
cmp dword [esi + 8], ebp
jne 0x4b9440
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.004a4850
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 0x4b9435
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b94f5
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 0x4b9510
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 0x4b95e3
cmp dword [esi + 0x40], ebx
je 0x4b9581
mov eax, dword [esi + 0x30]
mov ecx, esi
mov dword [esi + 0x40], ebx
call fcn.004b8bf0
test eax, eax
je 0x4b9553
mov eax, dword [esi + 0x30]
push eax
call fcn.004a4850
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
jmp 0x4b95e3
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2c], ebx
mov ecx, dword [esi + 0x30]
jne 0x4b9644
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 0x4b95e3
cmp dword [esi + 0x34], ebx
je 0x4b95d6
mov eax, dword [esi + 0x3c]
cmp eax, 8
jb 0x4b965a
cmp eax, 0x800000
ja 0x4b965a
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4b95aa
push eax
call fcn.004a4850
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a47f0
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 0x4b95e3
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x44], 4
cmp dword [esi + 0x38], ebx
je 0x4b9611
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 0x4b9671
mov eax, dword [esp + 0xc]
add dword [esi + 0x34], eax
sub dword [esi + 0x44], eax
jmp 0x4b9520
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 0x4b967e
mov eax, dword [esp + 0xc]
add dword [esi + 0x34], eax
sub dword [esi + 0x44], eax
jmp 0x4b9520
push ecx
call fcn.004a4850
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 0x4b9689
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b965a
pop edi
pop ebp
mov dword [esi + 0x38], 1
pop ebx
pop ecx
ret
Function at 0x4b9fb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x21c
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
xor edi, edi
call fcn.004af000
test eax, eax
jne 0x4ba111
push ebp
push esi
lea eax, [esp + 0x10]
push eax
call fcn.00401210
lea esi, [esp + 0x10]
call fcn.004b8e30
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 0x4ba105
push ebx
mov ebx, dword [0x598cbc]
lea ecx, [ecx]
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 0x4ba06e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_pipe_failed__d_n
call fcn.0048f0a0
add esp, 8
call fcn.004b8c70
test eax, eax
je 0x4ba104
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
jbe 0x4ba010
jmp 0x4ba104
push 0xb8
call fcn.004a47f0
push 0xb8
mov edi, eax
push 0
push edi
call fcn.00549fc0
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.004acc70
mov dword [edi + 0x14], eax
call fcn.004acc70
mov edx, dword [esp + 0x230]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x234]
mov dword [edi + 0x5c], edx
mov dword [edi + 0x60], eax
call fcn.004acc70
mov dword [edi + 0x50], eax
call fcn.004acc70
mov dword [edi + 0x54], eax
call fcn.004acc70
push edi
push 0x4b9c10
mov dword [edi + 0x58], eax
call fcn.004b2210
mov edx, edi
mov dword [edi + 0x4c], eax
call fcn.004b9f70
test eax, eax
jne 0x4ba104
push edi
call fcn.004b8f90
xor edi, edi
pop ebx
lea ecx, [esp + 0x10]
push ecx
call fcn.00401230
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.005498cd
add esp, 0x21c
ret 8

Function at 0x4ba3d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x24
push ebx
push edi
push str.terminate_service..._n
xor ebx, ebx
call fcn.0048f0a0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 4
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4ba456
lea edx, [esp + 0x34]
push edx
push 0x24
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call dword [0x58ef58]
test eax, eax
je 0x4ba44f
mov ecx, dword [esp + 0x24]
push esi
push ecx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4ba44e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4ba447
push str.Service_terminated_n
call fcn.0048f0a0
add esp, 4
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0x24
ret 8
Function at 0x4ba460
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x38]
push esi
push eax
xor esi, esi
push str.wait_for_service_state__u..._n
mov dword [esp + 0xc], esi
call fcn.0048f0a0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esp, 8
push 4
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [esp + 0x34], eax
je 0x4ba528
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebp
push edi
call esi
mov edi, eax
call esi
mov ebx, dword [esp + 0x44]
sub eax, edi
cmp eax, ebx
jae 0x4ba4f3
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
call dword [0x58ef58]
test eax, eax
je 0x4ba50f
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x18], eax
je 0x4ba507
push 0xa
call ebp
call esi
sub eax, edi
cmp eax, ebx
jb 0x4ba4c0
mov ecx, dword [esp + 0x48]
push ecx
push str.wait_for_service_state__u_timeout_n
call fcn.0048f0a0
add esp, 8
jmp 0x4ba50f
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x28
ret 0x10
mov eax, esi
pop esi
add esp, 0x28
ret 0x10
Function at 0x4ba540
Capabilities:
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x204], eax
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4ba668
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004ba320
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4ba61f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4ba5ed
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.start_service__08x_n
call fcn.0048f0a0
add esp, 8
cmp dword [esp + 0x21c], 0
je 0x4ba5ec
call ebx
cmp eax, 0x420
je 0x4ba5ec
call ebx
push eax
mov eax, dword [0x58eecc]
mov edx, dword [eax + 0x1048]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
pop ebx
push 4
push 0xea60
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004ba460
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.005498cd
add esp, 0x208
ret 4
cmp dword [esp + 0x218], 0
je 0x4ba64b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov edx, dword [eax + 0x103c]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.005498cd
add esp, 0x208
ret 4
cmp dword [esp + 0x210], 0
je 0x4ba694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
mov ecx, dword [esp + 0x208]
pop edi
xor ecx, esp
call fcn.005498cd
add esp, 0x208
ret 4
Function at 0x4ba6b0
Capabilities:
Stop service

Disassembly:
sub esp, 0x224
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x220], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4ba823
push ebx
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004ba320
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 0x4ba7da
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4ba78e
push 1
push 0xea60
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004ba460
test eax, eax
jne 0x4ba7ba
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004ba3d0
test eax, eax
jne 0x4ba7ba
cmp dword [esp + 0x234], eax
je 0x4ba7ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov edx, dword [eax + 0x104c]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005498cd
add esp, 0x224
ret 4
cmp dword [esp + 0x234], 0
je 0x4ba7ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x104c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005498cd
add esp, 0x224
ret 4
cmp dword [esp + 0x234], 0
je 0x4ba806
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005498cd
add esp, 0x224
ret 4
cmp dword [esp + 0x22c], 0
je 0x4ba84f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.005498cd
add esp, 0x224
ret 4
Function at 0x4ba870
Capabilities:
Delete service

Disassembly:
sub esp, 0x208
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4ba959
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004ba320
push 0
call fcn.004ba6b0
push 0x10000
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 0x4ba91b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4ba911
cmp dword [esp + 0x218], eax
je 0x4ba911
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x430
je 0x4ba910
call edi
push eax
mov eax, dword [0x58eecc]
mov edx, dword [eax + 0x1050]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
pop edi
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
jmp 0x4ba985
cmp dword [esp + 0x218], 0
je 0x4ba952
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x4ba952
call esi
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push ebx
call ebp
pop esi
pop ebp
jmp 0x4ba985
cmp dword [esp + 0x210], 0
je 0x4ba985
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push 0
push str.InstallService
call fcn.004fdf70
mov ecx, dword [esp + 0x208]
pop ebx
xor ecx, esp
call fcn.005498cd
add esp, 0x208
ret 4
Function at 0x4ba9b0
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
sub esp, 0x428
mov eax, dword [0x597f98]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [esp + 0x430]
mov ecx, dword [esp + 0x434]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call ebx
mov esi, eax
test esi, esi
je 0x4baa38
lea edx, [esp + 0x230]
push edx
call fcn.004ba320
push 0
call fcn.004ba6b0
push 0x10000
lea eax, [esp + 0x234]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4baa31
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push str.InstallService
call fcn.004fdf70
push str.install_service..._n
mov dword [esp + 0x14], 0x1e
call fcn.0048f0a0
add esp, 4
push 2
push 0
push 0
call ebx
mov ebx, dword [esp + 0x43c]
mov esi, eax
test esi, esi
je 0x4bab6f
mov ebp, dword [sym.imp.ADVAPI32.dll_CreateServiceW]
jmp 0x4baa80
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401210
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
xor edi, edi
call fcn.004ba220
lea edx, [esp + 0x230]
push edx
call fcn.004ba320
mov eax, dword [esp + 0x24]
push edi
push edi
push edi
push edi
push edi
push eax
push edi
push 2
push 0x10
push 2
lea ecx, [esp + 0x258]
push ecx
mov edx, ecx
push edx
push esi
call ebp
test eax, eax
je 0x4baadf
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.004ba540
jmp 0x4bab34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4baaf4
push ebx
call fcn.004ba540
jmp 0x4bab34
cmp dword [esp + 0x10], 0
je 0x4bab14
cmp eax, 0x430
jne 0x4bab14
sub dword [esp + 0x10], 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4bab39
test ebx, ebx
je 0x4bab34
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0x1c]
push eax
call fcn.00401230
test edi, edi
jne 0x4bab95
push str.install_service..._n
call fcn.0048f0a0
add esp, 4
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4baa80
test ebx, ebx
je 0x4bab95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eecc]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1d0
add esp, 0x14
push 1
push str.InstallService
call fcn.004fdf70
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005498cd
add esp, 0x428
ret 0xc
Function at 0x4bb7a0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x50]
xor ebx, ebx
cmp esi, ebx
je 0x4bb7f1
push ebp
cmp dword [esi + 0xc], ebx
mov ebp, dword [esi]
je 0x4bb82b
cmp dword [edi + 0x58], ebx
je 0x4bb7f7
mov edx, dword [edi + 0x30]
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x1c]
push ecx
push edx
mov dword [edi + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4bb81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x4bb86f
mov dword [edi + 0x38], 1
pop ebp
pop edi
pop esi
pop ebx
ret 4
lea eax, [edi + 0x1c]
push eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bb855
mov eax, dword [esp + 0x14]
add dword [esi + 8], eax
sub dword [esi + 0xc], eax
cmp dword [esi + 0xc], ebx
jne 0x4bb7b8
mov edx, dword [esi + 4]
push edx
call fcn.004a4850
push esi
call fcn.004a4850
cmp ebp, ebx
mov dword [edi + 0x50], ebp
jne 0x4bb844
mov dword [edi + 0x54], ebx
cmp ebp, ebx
mov esi, ebp
jne 0x4bb7b1
pop ebp
pop edi
pop esi
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4bb7e9
push str.write_pending..._n
call fcn.0048f0a0
add esp, 4
pop ebp
mov dword [edi + 0x58], 1
pop edi
pop esi
pop ebx
ret 4