joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x434
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x430], eax
push ebp
lea eax, [esp + 0x220]
push eax
xor ebp, ebp
call fcn.00401210
lea ecx, [esp + 0xc]
push ecx
call fcn.00401210
push edi
lea edx, [esp + 0x224]
push edx
call fcn.00527430
test esi, esi
je 0x4ae45d
push esi
lea eax, [esp + 0x10]
push eax
call fcn.00527430
jmp 0x4ae467
lea ecx, [esp + 0xc]
push ecx
call fcn.00527240
mov eax, dword [esp + 0x440]
mov edx, dword [esp + 0x43c]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x238]
push ebx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x4ae4a3
lea ebp, [eax + 1]
lea edx, [esp + 0xc]
push edx
call fcn.00523250
lea eax, [esp + 0x220]
push eax
call fcn.00523250
mov ecx, dword [esp + 0x434]
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0054962d
add esp, 0x434
ret 8

Function at 0x4af330
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x5981a0], bl
push edi
lea eax, [ebx + 3]
je 0x4af347
mov eax, 7
push 0x8000000
push 3
push eax
mov eax, dword [esp + 0x24]
push closesocket
push eax
call fcn.004a9740
mov edi, eax
cmp edi, 0xffffffff
je 0x4af463
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4af390
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4af45c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
or edx, ecx
jne 0x4af3c5
lea eax, [esp + 0x18]
push eax
push 1
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4af45c
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 0x4af45c
jl 0x4af3da
cmp eax, 0x80000000
jae 0x4af45c
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4af45b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4af454
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 0x4af44e
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, dword [esp + 0x10]
jne 0x4af454
cmp ecx, dword [esp + 0x14]
jne 0x4af454
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x4af454
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 0x4af940
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 0x4af9ec
push edi
lea eax, [esi*4]
push eax
call fcn.004a48f0
mov edi, eax
push edi
push esi
call ebx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4af9e5
mov ebp, dword [0x597d30]
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 0x4af9bb
test dword [esp + 0x24], 0x8000000
je 0x4af9bb
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4af9b6
mov edx, dword [edi + esi*4]
mov dword [eax], edx
or ebx, 2
jmp 0x4af9cb
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4af9c8
mov ecx, dword [edi + esi*4]
mov dword [eax], ecx
or ebx, 1
cmp ebx, 3
jne 0x4af9d8
mov dword [esp + 0x10], 1
add esi, 1
cmp esi, dword [esp + 0x14]
jne 0x4af986
mov ebp, dword [esp + 0x10]
push edi
call fcn.004a4950
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret 8

Function at 0x4afd40
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0xc], 0
jne 0x4afd4f
lea eax, [esp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
push 0
push 0
call fcn.0054a130
add esp, 0x18
ret 0xc

Function at 0x4afdc0
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 0x4afe00
mov ebp, dword [esp + 0x14]
cmp edi, 0xffffffff
mov esi, edi
jbe 0x4afdde
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 0x4afe0c
cmp dword [esp + 0x18], esi
jne 0x4afe0c
sub edi, esi
add ebx, esi
test edi, edi
jne 0x4afdd4
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 0x4b1e10
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 0x4b1e28
mov esi, 2
push 0x11
call edi
test ax, ax
jge 0x4b1e34
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b1e40
or esi, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x4b1ef0
Capabilities:
Create thread

Disassembly:
cmp dword [0x598128], 0
je 0x4b1f06
push str.create_thread_n
call fcn.0048f080
add esp, 4
push ebx
push esi
push edi
push 0x598de0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5981c8]
test esi, esi
je 0x4b1f81
cmp esi, dword [0x5981cc]
mov eax, dword [esi]
mov dword [0x5981c8], eax
jne 0x4b1f38
mov ecx, dword [esi + 4]
mov dword [0x5981cc], ecx
jmp 0x4b1f40
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
push 0x598de0
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 0x598de0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5981d0]
push eax
push str.new_thread___d__n
push 0xff00ffff
call fcn.0048f0a0
add esp, 0xc
push 0x1c
call fcn.004a48f0
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 [0x597cd8]
call edi
test eax, eax
jne 0x4b1fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_event__d
push str.os_event_create
push 0x1b50
push str.._srcos.c
call fcn.0048f230
push 0
push 0
push 1
push 0
mov dword [esi + 0x14], eax
call edi
test eax, eax
je 0x4b1fcf
mov dword [esi + 0x18], eax
add dword [0x5981d0], 1
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4b1e60
lea edx, [esp + 0x24]
push 0
push 0
mov dword [esp + 0x28], edx
call fcn.0054a130
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
jne 0x4b1f79
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 0x1aff
push str.._srcos.c
call fcn.0048f230
int3
Function at 0x4b3020
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4b3047
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
push esi
push str.GetLastActivePopup__p_n
call fcn.0048f080
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 0x4b30b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow_failed__08x_n
call fcn.0048f080
add esp, 8
cmp byte [0x597ef6], 0
je 0x4b30b2
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 0x4b30b0
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 0x4b30d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetActiveWindow_failed__08x_n
call fcn.0048f080
add esp, 8
push 0xffffffffffffffec
push esi
call dword [0x597df0]
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 0x4b3118
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow2_failed__08x_n
call fcn.0048f080
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 0x4b3130
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 0x4b3148
mov esi, 4
push 0x11
call edi
test ax, ax
jge 0x4b3154
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x4b3160
or esi, 2
push 0x5b
call edi
test ax, ax
jge 0x4b316c
or esi, 8
push 0x5c
call edi
test ax, ax
jge 0x4b3178
or esi, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x4b5790
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 0x4b58e8
push esi
push edi
call fcn.004a48f0
push ebp
push ebp
push ebp
push ebx
mov esi, eax
call fcn.004af030
test eax, eax
je 0x4b58c2
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 0x4b589c
cmp dword [esp + 0x10], edi
jne 0x4b5876
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 0x4b5850
add eax, 1
sub edi, 1
jne 0x4b57f3
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.0048f080
add esp, 0x1c
push esi
lea ebp, [edi + 1]
call fcn.004a4950
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.0048f080
mov ebp, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.004a4950
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.0048f080
add esp, 8
push esi
call fcn.004a4950
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.0048f080
add esp, 8
push esi
call fcn.004a4950
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.0048f080
add esp, 8
push esi
call fcn.004a4950
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.0048f080
add esp, 8
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4b9120
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 0x4b921b
cmp dword [esi + 8], ebp
je 0x4b91af
lea ebx, [ebx]
cmp dword [edi + 0x48], ebp
je 0x4b917c
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 0x4b91a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jmp 0x4b91f7
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 0x4b91ec
mov eax, dword [esp + 0xc]
add dword [esi + 4], eax
sub dword [esi + 8], eax
cmp dword [esi + 8], ebp
jne 0x4b9150
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.004a4950
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 0x4b9145
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b9205
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 0x4b9220
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 0x4b92f3
cmp dword [esi + 0x40], ebx
je 0x4b9291
mov eax, dword [esi + 0x30]
mov ecx, esi
mov dword [esi + 0x40], ebx
call fcn.004b8900
test eax, eax
je 0x4b9263
mov eax, dword [esi + 0x30]
push eax
call fcn.004a4950
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
jmp 0x4b92f3
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x2c], ebx
mov ecx, dword [esi + 0x30]
jne 0x4b9354
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 0x4b92f3
cmp dword [esi + 0x34], ebx
je 0x4b92e6
mov eax, dword [esi + 0x3c]
cmp eax, 8
jb 0x4b936a
cmp eax, 0x800000
ja 0x4b936a
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4b92ba
push eax
call fcn.004a4950
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a48f0
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 0x4b92f3
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x44], 4
cmp dword [esi + 0x38], ebx
je 0x4b9321
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 0x4b9381
mov eax, dword [esp + 0xc]
add dword [esi + 0x34], eax
sub dword [esi + 0x44], eax
jmp 0x4b9230
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 0x4b938e
mov eax, dword [esp + 0xc]
add dword [esi + 0x34], eax
sub dword [esi + 0x44], eax
jmp 0x4b9230
push ecx
call fcn.004a4950
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 0x4b9399
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b936a
pop edi
pop ebp
mov dword [esi + 0x38], 1
pop ebx
pop ecx
ret
Function at 0x4b9d00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x21c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
xor edi, edi
call fcn.004aeca0
test eax, eax
jne 0x4b9e7d
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00401210
lea esi, [esp + 0x14]
call fcn.004b8b40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [0x597cdc]
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
push ecx
mov dword [esp + 0x2c], eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b9dda
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_pipe_failed__d_n
call fcn.0048f080
add esp, 8
call fcn.004b8980
test eax, eax
je 0x4b9e70
cmp dword [esp + 0x238], edi
je 0x4b9e70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x4b9e70
push 0x3e8
call ebp
mov edx, dword [esp + 0x1c]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4b9d70
push 0xb8
call fcn.004a48f0
push 0xb8
mov edi, eax
push 0
push edi
call fcn.00549d20
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
lea eax, [edi + 0x64]
push eax
call ebx
lea ecx, [edi + 0x7c]
push ecx
call ebx
lea edx, [edi + 0x94]
push edx
call ebx
mov dword [edi], esi
call fcn.004ac8f0
mov dword [edi + 0x14], eax
call fcn.004ac8f0
mov ecx, dword [esp + 0x234]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x230]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], ecx
call fcn.004ac8f0
mov dword [edi + 0x50], eax
call fcn.004ac8f0
mov dword [edi + 0x54], eax
call fcn.004ac8f0
push edi
push 0x4b9920
mov dword [edi + 0x58], eax
call fcn.004b1ef0
mov edx, edi
mov dword [edi + 0x4c], eax
call fcn.004b9c80
test eax, eax
jne 0x4b9e70
push edi
call fcn.004b8ca0
xor edi, edi
lea edx, [esp + 0x14]
push edx
call fcn.00523250
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0054962d
add esp, 0x21c
ret 0xc
Function at 0x4ba140
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.0048f080
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 0x4ba208
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 0x4ba1d3
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 [0x58df78]
test eax, eax
je 0x4ba1ef
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x18], eax
je 0x4ba1e7
push 0xa
call ebp
call esi
sub eax, edi
cmp eax, ebx
jb 0x4ba1a0
mov ecx, dword [esp + 0x48]
push ecx
push str.wait_for_service_state__u_timeout_n
call fcn.0048f080
add esp, 8
jmp 0x4ba1ef
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 0x4ba270
Capabilities:
Delete service
Stop service
Terminate process

Disassembly:
sub esp, 0x224
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x4ba3bb
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.004ba090
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x24
lea ecx, [esp + 0x30]
push ecx
push ebp
call ebx
mov esi, eax
test esi, esi
jne 0x4ba2d1
push 4
lea edx, [esp + 0x30]
push edx
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x4ba317
mov edx, esi
call fcn.004ba220
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test edi, edi
je 0x4ba30c
push 0xea60
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ba305
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
jmp 0x4ba31d
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10000
lea ecx, [esp + 0x30]
push ecx
push ebp
call ebx
mov esi, eax
test esi, esi
je 0x4ba37c
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4ba371
cmp dword [esp + 0x238], eax
je 0x4ba371
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x430
je 0x4ba371
call ebx
push eax
mov eax, dword [0x58deec]
mov edx, dword [eax + 0x1050]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push esi
call edi
push ebp
call edi
pop edi
pop esi
pop ebx
jmp 0x4ba3e7
cmp dword [esp + 0x238], 0
je 0x4ba3b3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x4ba3b3
call esi
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push ebp
call edi
pop edi
pop esi
pop ebx
jmp 0x4ba3e7
cmp dword [esp + 0x22c], 0
je 0x4ba3e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58deec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004a9e40
add esp, 0x14
push 0
push str.InstallService
call fcn.004fdc30
mov ecx, dword [esp + 0x224]
pop ebp
xor ecx, esp
call fcn.0054962d
add esp, 0x224
ret 4