joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ffb0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d9418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
push ebp
push esi
xor esi, esi
push edi
mov ecx, 0x507fec
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x2c]
push ebx
call fcn.004900f0
mov edi, eax
test edi, edi
jne 0x490010
mov dword [ebx + 0x1c], 1
jmp 0x490097
push 0x28
call fcn.0049fa24
add esp, 4
test eax, eax
jne 0x490033
push 0x4f7e44
lea ecx, [esp + 0x2c]
xor al, al
push ecx
mov byte [esp + 0x30], al
call fcn.004b1663
push eax
call fcn.00441450
mov esi, eax
test esi, esi
je 0x490097
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx]
push eax
push ecx
push edi
push esi
call edx
test eax, eax
je 0x49008f
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov dword [esp + 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4900a4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4900b0
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push esi
call edx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4900d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x490170
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x208
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0xe]
push ebx
push eax
mov word [esp + 0x14], bx
call fcn.004a4620
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x490209
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 2
push ebx
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp esi, ebx
mov dword [edi], eax
je 0x490202
mov ecx, dword [edi + 8]
push ecx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 4], eax
je 0x490202
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
add esp, 0x208
ret
Function at 0x490650
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d9a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [esp + 0x18], esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], ebx
call fcn.0048e9b0
push eax
mov ecx, str.svrid_reg_path
call fcn.0048e620
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x2021f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x4906c2
mov esi, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4906e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x490708
cmp esi, ebx
je 0x4906f1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
lea ecx, [esp + 0x1c]
push ecx
call fcn.0048e9b0
push eax
mov ecx, str.svrid_reg_key
call fcn.0048e620
mov edx, dword [esp + 0x34]
mov edi, dword [edx + 0xc]
cmp edi, ebx
mov ebp, dword [eax]
jne 0x490734
push 0x80004005
call fcn.00401020
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
lea eax, [eax + eax + 2]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push ebp
push esi
call edi
test eax, eax
mov eax, dword [esp + 0x1c]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490778
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x4907a5
test esi, esi
je 0x4906f1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x34]
mov ebp, dword [ecx + 0x10]
test ebp, ebp
jne 0x4907ba
push 0x80004005
call fcn.00401020
push ebp
call ebx
lea edx, [eax + eax + 2]
push edx
push ebp
push 1
push 0
push str.desc
push esi
call edi
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
push 4
lea ecx, [esp + 0x38]
push ecx
push 4
push 0
push str.time
push esi
mov dword [esp + 0x4c], eax
call edi
mov edx, dword [ebx + 8]
push 4
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.user_type
push esi
mov dword [esp + 0x4c], edx
call edi
test esi, esi
je 0x490811
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x4922a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
jne 0x4922b8
mov eax, 0x13a
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4922cc
mov eax, 0x13b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 8]
push eax
call fcn.0048d7d0
add esp, 8
test eax, eax
je 0x4922ec
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 8]
push eax
call fcn.0048d5e0
add esp, 8
test eax, eax
jne 0x4922e6
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
mov ecx, dword [esi + 8]
call fcn.0048d320
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub esp, 0x410
push esi
push edi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493287
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push eax
mov dword [esp + 0x2c], 0x200
call edi
test eax, eax
jne 0x49326e
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004931d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49328d
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push eax
mov dword [esp + 0x2c], 0x200
call edi
test eax, eax
je 0x493230
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4932a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d79bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
push ebx
push esi
xor esi, esi
push 0x7fe
lea eax, [esp + 0x1e]
push esi
push eax
mov word [esp + 0x24], si
call fcn.004a4620
add esp, 0xc
mov ebx, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0x400
call fcn.00493170
mov eax, dword [ebp + 8]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x4933b4
jmp 0x493317
xor esi, esi
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
call fcn.004034e0
mov dword [esp + 0x824], esi
mov esi, dword [edi + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
call fcn.004933d0
mov ecx, edi
mov ebx, eax
call fcn.00444150
mov dword [esi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov dword [esp + 0x824], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49337a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
add eax, 1
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x493315
mov ecx, dword [esp + 0x81c]
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x493470
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d799b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push esi
xor esi, esi
push 0x7fe
lea eax, [esp + 0x26]
push esi
push eax
mov word [esp + 0x2c], si
call fcn.004a4620
add esp, 0xc
mov ebx, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x400
call fcn.00493170
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x493592
jmp 0x4934f2
xor esi, esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.004034e0
mov dword [esp + 0x82c], esi
mov esi, dword [edi + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.004933d0
mov ecx, edi
mov ebx, eax
call fcn.00444150
mov dword [esi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov dword [esp + 0x82c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x493555
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 8]
add eax, 1
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx]
push eax
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4934f0
mov ecx, dword [esp + 0x824]
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4944b0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4944d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebp
pop ecx
ret
push esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push ebx
push ebp
push 1
push 2
push 0x10
push 0x32
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x494568
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
je 0x49451e
call esi
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebp
pop ecx
ret
mov edx, dword [esp + 0x18]
push 2
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x494552
mov eax, dword [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push ebx
push ebp
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x494568
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xc]
push edx
push 1
push esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x4945a0
Capabilities:
Delete service

Disassembly:
push esi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4945ba
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
push edi
push 0x10000
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4945e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x49460c
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret
Function at 0x494620
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x494644
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x24]
push esi
push 0x14
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x494670
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
add esp, 0x1c
ret
xor eax, eax
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4946a9
cmp dword [esp + 0xc], 4
je 0x4946e2
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4946d6
push ebx
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
pop ebx
pop esi
pop edi
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
Function at 0x4946f0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x3c
push ebx
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x494716
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x48]
push esi
push 0x24
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
jne 0x494743
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x3c
ret
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x494790
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call ebx
push esi
call ebx
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 0x3c
ret
xor eax, eax
push ebp
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call edi
test eax, eax
je 0x4947e7
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4947d0
cmp dword [esp + 0x18], 1
je 0x4947f1
push 0x64
call ebp
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
jne 0x4947d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4947f5
mov edi, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop ebp
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 0x3c
ret
Function at 0x4962a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d6f9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [esp + 0x230]
xor ebx, ebx
mov dword [esp + 0x228], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x228], ebx
push ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x1a
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea ecx, [esp + 0x1e]
push ebx
push ecx
mov word [esp + 0x24], bx
call fcn.004a4620
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x496340
sub eax, edx
sar eax, 1
je 0x496382
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x496363
sub eax, edx
sar eax, 1
lea edx, [esp + 0x18]
mov ebx, eax
push edx
mov eax, esi
call fcn.00403b90
xor ebx, ebx
mov dword [esp + 0xc], ebx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x22c], 1
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4963b1
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x228], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4963ce
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x220]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x4963f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d6f5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
push edi
mov edi, dword [esp + 0x22c]
xor esi, esi
mov dword [esp + 0x224], esi
mov dword [esp + 8], esi
mov eax, dword [0x507fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x507fec
call edx
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [esp + 0x16]
mov dword [esp + 0x228], esi
push esi
push eax
mov dword [esp + 0x14], 1
mov word [esp + 0x1c], si
call fcn.004a4620
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49649c
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x496477
sub eax, edx
sar eax, 1
je 0x49649c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x10]
call fcn.004035b0
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x4964c0
Capabilities:
Access peb ldr_data
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x4d5ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
xor edi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0xc]
push eax
push 0x4dc984
push 1
push ebx
push 0x4dc9a4
mov byte [esp + 0x30], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4965a2
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x50]
push ecx
call eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4dc9b4
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jl 0x4965a2
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
cmp eax, ebx
jl 0x4965a2
lea edi, [ebx + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4965bc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4965d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret