joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460aa8
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4ac003
call fcn.004a9484
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.00479200
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x4dc148]
mov edi, 0x4dc148
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.00408062
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x460b35
push 0x80070057
call fcn.0040804a
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x4c176c
lea eax, [ebp - 0x18]
push eax
call fcn.004083bc
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.0040dad6
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x4c1778
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x460c42
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.00479200
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x4dc148]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0045608d
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00408d5e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, dword [ebx + 0x94c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00408d5e
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0x514]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.004609e0
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00407f26
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407f26
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x460da0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x544], 0
cmp dword [esp + 8], 0x61
je 0x460db8
cmp dword [esp + 8], 0x41
jne 0x460dec
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x460dec
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0x514
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4
Function at 0x460df0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4ab1e5
call fcn.004a9484
push ecx
mov eax, dword [0x4dc148]
push esi
push edi
mov ecx, 0x4dc148
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.00408062
push 0x104
push eax
push dword [ebx + 0x514]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x460e3e
xor eax, eax
jmp 0x460e45
push esi
call fcn.00479b8e
pop ecx
lea edx, [ebp - 0x10]
call fcn.0040801e
lea edi, [ebp - 0x10]
call fcn.004609e0
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00407f26
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x463805
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4aabde
call fcn.004a9484
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4d70b4]
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 0x46385d
call fcn.00464f04
mov esi, eax
jmp 0x46395e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x46387a
call fcn.00464f04
jmp 0x463953
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x463870
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 0x4638c0
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4638b6
lea eax, [ebp - 0x424]
call fcn.00464885
mov eax, 0x8007000e
jmp 0x463979
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00463997
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x4638e4
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0046488e
jmp 0x4638f0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x46390b
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x46391c
mov esi, 0x8007000e
jmp 0x463955
call dword [0x4d70b4]
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 0x463870
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.004639bc
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x463977
lea eax, [ebp - 0x424]
call fcn.00464885
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x46483b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46484e
push 0x80004005
call fcn.0040804a
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 0x464855
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 0x464924
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4649eb
xor eax, eax
cmp dword [ebp - 8], esi
je 0x46496d
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x4649eb
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x4649c1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00464924
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x4649fe
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], pe_nt_image_headers32
call edi
test eax, eax
je 0x464995
cmp dword [ebp - 8], esi
je 0x4649db
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x4649f5
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x464a08
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x4649f7
Function at 0x466134
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ac9ad
call fcn.004a9484
sub esp, 0x10
mov eax, dword [0x4dc148]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x4dc148
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.004661f1
mov ebx, eax
test ebx, ebx
jne 0x466185
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x4661d5
push 0x28
call fcn.0043e0c4
test eax, eax
pop ecx
je 0x466199
push eax
call fcn.0044df16
jmp 0x46619b
xor eax, eax
test eax, eax
mov esi, eax
je 0x4661d5
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x4661ce
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00407f26
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 0x4661e2
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test esi, esi
je 0x4661ec
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x4661b3

Function at 0x4662d2
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.00479200
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 0x46637a
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 0x466373
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 0x466373
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 0x466e22
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4aab87
call fcn.004a9484
sub esp, 0x18
push esi
push edi
xor edi, edi
cmp dword [ebx + 0xd0], edi
je 0x467004
cmp dword [ebx + 0xec], edi
je 0x467004
mov dword [ebp - 0x10], edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], edi
call fcn.004081a1
push 0x4bd588
lea esi, [ebx + 0xf4]
mov byte [ebp - 4], 1
call fcn.0046577f
test eax, eax
lea esi, [ebp - 0x10]
jne 0x466e89
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00466464
jmp 0x466e97
push edi
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004536bd
cmp eax, edi
jne 0x466ebb
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407f26
cmp dword [ebp - 0x10], edi
je 0x466eb4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x467007
call dword [0x4d70b4]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0xbc]
cmp dword [eax + 0x18], 0x10
jb 0x466ed5
mov esi, dword [eax + 4]
jmp 0x466ed8
lea esi, [eax + 4]
cmp esi, edi
je 0x466eee
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x466ef2
xor eax, eax
jmp 0x466f08
lea eax, [edi + edi]
call fcn.00488da0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.0040a64e
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004081a1
mov byte [ebp - 4], 2
mov eax, dword [0x4dc148]
mov ecx, 0x4dc148
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0xd8]
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x466f3e
mov esi, dword [eax + 4]
jmp 0x466f41
lea esi, [eax + 4]
test esi, esi
je 0x466f57
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x466f5d
and dword [ebp - 0x1c], 0
jmp 0x466f76
lea eax, [edi + edi]
call fcn.00488da0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.0040a64e
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x1c], 0x10
jb 0x466f81
mov esi, dword [ebx + 8]
jmp 0x466f84
lea esi, [ebx + 8]
test esi, esi
je 0x466f9a
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x466f9e
xor eax, eax
jmp 0x466fb4
lea eax, [edi + edi]
call fcn.00488da0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.0040a64e
push dword [ebp - 0x1c]
push eax
push 0x4c0c10
lea eax, [ebp - 0x20]
call fcn.00408cd5
mov edi, dword [ebp - 0x20]
add esp, 0xc
push edi
push dword [ebp - 0x24]
lea esi, [ebp - 0x10]
call fcn.0040a70d
lea eax, [edi - 0x10]
call fcn.00407f26
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407f26
cmp dword [ebp - 0x10], 0
je 0x467004
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
lea esp, [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret
Function at 0x4685d4
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 0x4685f6
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 0x468677
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
cmp eax, 0x431
je 0x46863d
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
jmp 0x4685f3
push 2
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x468659
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x46862d
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 0x468651
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 0x46862f

Function at 0x468693
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 0x4686ad
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 0x4686dc
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 0x4686ff
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 0x4686d8
push esi
call ebx
xor esi, esi
jmp 0x4686d3
Function at 0x468706
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x46872b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x468754
push ebx
push edi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x468757
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp - 8]
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 - 0x24], esi
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push ebx
call edi
test eax, eax
je 0x46877f
cmp dword [ebp - 0x20], 4
jne 0x46877f
xor eax, eax
jmp 0x468752
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4687a6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x468752
mov dword [ebp - 4], esi
cmp esi, 0xbb8
jge 0x4687e7
lea eax, [ebp - 0x24]
push eax
push ebx
call edi
test eax, eax
je 0x4687d5
cmp dword [ebp - 0x20], 1
je 0x4687e0
cmp dword [ebp - 0x20], 4
je 0x4687e7
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
add esi, 0x64
jmp 0x4687a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4687e7
mov dword [ebp - 4], 0xe0000018
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 4]
jmp 0x468747
Function at 0x4693bf
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4aab45
call fcn.004a9484
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, 0x4dc148
call fcn.004081e4
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.00479200
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.00479b8e
test eax, eax
pop ecx
je 0x46945f
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.004083bc
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 0x46947f
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 0x469497
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 0x4694a6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4aacc1
call fcn.004a9484
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4dc148
mov dword [ebp - 0x10], edi
call fcn.004081e4
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.00479200
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x469534
lea eax, [ebp - 0x21c]
push eax
call fcn.00479b8e
test eax, eax
pop ecx
je 0x469534
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.004083bc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x469544
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4a9c11
call fcn.004a9484
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
xor edi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
push 0x4b08ec
push 1
push ebx
push 0x4b093c
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4695f4
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
push dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4b094c
push eax
call dword [ecx]
cmp eax, ebx
jl 0x4695f4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x18]
cmp eax, ebx
jl 0x4695f4
inc edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x46960a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x46961b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x469f22
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4ad133
call fcn.004a9484
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.0040a741
cmp eax, 0xc
jne 0x46a007
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004693bf
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
mov dword [esp], 0x4c27f0
push eax
call fcn.00408830
mov eax, dword [0x4dc148]
mov ecx, 0x4dc148
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push str._s_s.lnk
call fcn.00408cd5
add esp, 0xc
lea edi, [esi + 0x1c]
lea eax, [ebp - 0x18]
call fcn.004074cd
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x10]
push eax
call fcn.004694a6
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00469544
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x469fe8
push dword [esi]
lea ecx, [ebp - 0x10]
push str._s.lnk
call fcn.004314dc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00469ee8
add esp, 0x10
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407f26
lea eax, [edi - 0x10]
call fcn.00407f26
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407f26
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret