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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x50c29c]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x464f34
mov edi, dword [eax + 4]
jmp 0x464f36
xor edi, edi
cmp edi, esi
jne 0x464f46
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x464f6b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x464f6b
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x464f6b
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push edi
mov ecx, ebx
mov dword [ebx + 0x438], esi
call fcn.004653fa
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x464f93
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4650b3
mov eax, dword [0x50c29c]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x464faa
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, edi
call fcn.0046559c
cmp dword [ebx + 0x428], esi
je 0x46504f
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x14]
je 0x464ff8
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x465030
push esi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x46504f
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x438], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x465094
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x465094
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x465094
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x50c29c]
cmp eax, esi
je 0x4650a4
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x467fa7
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x4d18e8
call fcn.004cc800
sub esp, 0x278
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x467fc8
xor eax, eax
jmp 0x46809f
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x467fc1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x264]
cmp esi, ebx
mov dword [ebp - 0x20], esi
je 0x467fc1
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x467fc1
lea eax, [ebp + 0xb]
lea edi, [esi + 2]
push eax
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
mov byte [ebp + 0xb], bl
call fcn.004681ea
mov edi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
mov dword [ebp - 4], ebx
call fcn.004681c9
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468085
cmp dword [ebp - 0x1c], edi
jne 0x468085
cmp edi, ebx
mov dword [ebp + 8], ebx
jbe 0x46806c
push dword [ebp + 8]
lea esi, [ebp - 0x30]
call fcn.004681c9
xor byte [eax], 0x4e
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jb 0x468056
push ebx
lea esi, [ebp - 0x30]
call fcn.004681c9
push eax
push dword [ebp + 0xc]
call fcn.00408e24
mov dword [ebp - 0x14], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x46809c
push dword [ebp - 0x2c]
call fcn.0049c179
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x469429
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4cfd83
call fcn.004cc800
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x5050d4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x469481
call fcn.0046aae8
mov esi, eax
jmp 0x469582
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x46949e
call fcn.0046aae8
jmp 0x469577
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x469494
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x4694e4
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4694da
lea eax, [ebp - 0x424]
call fcn.0046a467
mov eax, 0x8007000e
jmp 0x46959d
push 2
push eax
mov byte [ebp - 4], 2
call fcn.004695cf
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x469508
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004695ae
jmp 0x469514
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x46952f
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x469540
mov esi, 0x8007000e
jmp 0x469579
call dword [0x5050d4]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x469494
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.004695f4
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46959b
lea eax, [ebp - 0x424]
call fcn.0046a467
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x46a410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46a423
push 0x80004005
call fcn.00407cba
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x46a42a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46a4e5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00431392
mov edi, eax
cmp edi, esi
je 0x46a522
cmp dword [ebp - 8], esi
je 0x46a51e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x46a58f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x46a540
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0046a4e5
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x46a596
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], pe_nt_image_headers32
call edi
test eax, eax
je 0x46a52a
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x46a576
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x46a58d
push dword [ebp - 8]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x46a5a4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x46a58f

Function at 0x46ab25
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d2368
call fcn.004cc800
sub esp, 0x10
mov eax, dword [0x50a89c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x50a89c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.0046abe2
mov ebx, eax
test ebx, ebx
jne 0x46ab76
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x46abc6
push 0x28
call fcn.0041d94b
test eax, eax
pop ecx
je 0x46ab8a
push eax
call fcn.0042d6fa
jmp 0x46ab8c
xor eax, eax
test eax, eax
mov esi, eax
je 0x46abc6
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x46abbf
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00407b84
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x46abd3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x46abdd
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x46aba4
Function at 0x46acc3
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call fcn.0049c4d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46ad6b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x46ad64
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x46ad64
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x46c469
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4d46e8
call fcn.004cc800
sub esp, 0x24
push ebx
push edi
push str.datacheatcfg.dat
lea eax, [ebp - 0x20]
push eax
call fcn.00407e20
and dword [ebp - 4], 0
push str.HKEY_CURRENT_USER_softwarek52zip
lea eax, [ebp - 0x1c]
push eax
call fcn.00407e20
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0046c36e
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040812f
mov eax, dword [ebp - 0x20]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00408634
call fcn.0046b8a4
mov ebx, dword [eax + 4]
call fcn.0046b8a4
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
call fcn.0046b8a4
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
call fcn.0046b8a4
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.0046b8a4
mov edi, dword [eax + 0x14]
mov eax, dword [0x50a89c]
mov ecx, 0x50a89c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
push 0x4e592c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004085c1
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00430a9a
push eax
call fcn.00430b4e
lea eax, [ebp - 0x10]
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00406fea
lea edi, [esi + 4]
lea eax, [ebp - 0x1c]
call fcn.00406fea
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.00406fea
push 0x4e5928
lea eax, [esi + 0xc]
push eax
call fcn.00408034
push str.CLSID4839CB99_22A3_4F95_9972_8E35BB52DF38IMPLEMENTED_CATEGORIES2211057D_0906_49DF_ABF4_37652C71E0F2
lea eax, [esi + 0x14]
push eax
call fcn.00408034
lea edi, [esi + 0x10]
lea eax, [ebp - 0x14]
call fcn.00406fea
push 0
call fcn.0049d773
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
pop ecx
add eax, 0xfffffff0
mov dword [esi + 0x20], 0x1f
mov dword [esi + 0x18], 0xc
mov dword [esi + 0x24], ebx
call fcn.00407b84
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407b84
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407b84
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407b84
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00407b84
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46c9b7
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x2c]
push eax
mov dword [esp + 0x14], eax
call edi
mov ecx, esi
call sym.installer.exe_public:_bool___thiscall_kbase::kxThreadBase_class_kbase::Locker_::IsRunning_void_
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x46c9ea
or dword [esp + 0xc], 0xffffffff
jmp 0x46ca58
push ebp
push 8
call fcn.0041d94b
mov ebp, eax
xor eax, eax
cmp ebp, eax
pop ecx
jne 0x46ca05
mov dword [esp + 0x10], 0xfffffffa
jmp 0x46ca57
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
lea ecx, [esi + 0xc]
push ecx
push eax
push ebp
push sym.installer.exe_private:_static_unsigned_int___stdcall_kbase::kxThreadBase_class_kbase::Locker_::threadFun_void__
push eax
push eax
mov dword [ebp], esi
call fcn.0049f74f
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
je 0x46ca48
lea ebp, [esi + 0x14]
jmp 0x46ca3a
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call edi
cmp byte [esi + 4], 0
push ebp
je 0x46ca30
call ebx
jmp 0x46ca57
push ebp
call fcn.0049c179
pop ecx
mov dword [esp + 0x10], 0xfffffffe
pop ebp
push dword [esp + 0x10]
call ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x46caca
Capabilities:
Terminate thread

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [esi + 0x2c]
push ebp
call edi
lea ebx, [esi + 0x14]
push ebx
call edi
cmp byte [esi + 4], 0
jne 0x46caf7
mov dword [esp + 0x10], 0xfffffffd
jmp 0x46cb0f
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x46cb76
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
je 0x46cb9b
call fcn.0049f74f
add esp, 0x18
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x46d66f
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x46d691
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
leave
ret
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x46d712
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x431
je 0x46d6d8
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
jmp 0x46d68e
push 2
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x46d6f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46d6c8
push dword [ebp + 0x14]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x46d6ec
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x46d6ca

Function at 0x46d72e
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46d748
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x46d777
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x46d79a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x46d773
push esi
call ebx
xor esi, esi
jmp 0x46d76e
Function at 0x46d7a1
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x46d7c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46d813
push ebx
push esi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x46d7ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x46d839
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46d816
cmp dword [ebp - 0x1c], 4
jne 0x46d816
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x46d83f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x46d811
push ebx
call esi
jmp 0x46d7e8

Function at 0x46d844
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x46d869
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46d892
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x46d895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x46d8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x46d890
push 6
mov dword [ebp - 0x24], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
rep stosd dword es:[edi], eax
jmp 0x46d8f3
cmp dword [ebp - 0x20], 1
je 0x46d907
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x46d8e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 8]
jmp 0x46d885
Function at 0x46e20c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cfce1
call fcn.004cc800
sub esp, 0x214
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov ecx, 0x50a89c
call fcn.0040919f
xor esi, esi
mov dword [ebp - 4], ebx
inc esi
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x21e]
push ebx
push eax
mov word [ebp - 0x220], bx
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x220]
push eax
call fcn.0049cede
test eax, eax
pop ecx
je 0x46e2ac
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call fcn.00408034
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x46e2cc
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
pop ebx
je 0x46e2e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret

Function at 0x46e2f3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cfed9
call fcn.004cc800
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x50a89c
mov dword [ebp - 0x10], edi
call fcn.0040919f
push 0x208
lea eax, [ebp - 0x21a]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x21c], di
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46e381
lea eax, [ebp - 0x21c]
push eax
call fcn.0049cede
test eax, eax
pop ecx
je 0x46e381
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00408034
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret