joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446690
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x438], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x428], edi
test eax, eax
jne 0x4466cb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret 0x14
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x42c]
push ecx
push ebx
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x42c], ebx
push ecx
push ebx
push ebx
push 4
push dword [ebp + 0xc]
mov dword [ebp - 0x418], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x4468a2
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 2
je 0x446711
cmp esi, 1
jne 0x4467b0
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x4467b0
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x424], ebx
push ecx
lea ecx, [ebp - 0x424]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4467b0
mov esi, dword [ebp - 0x424]
sub esi, 1
js 0x4467ad
mov ebx, dword [ebp - 0x428]
mov edi, esi
shl edi, 5
nop word [eax + eax]
mov eax, dword [ebp - 0x430]
cmp dword [edi + eax + 4], 3
jne 0x44679d
test ebx, ebx
je 0x446790
cmp dword [edi + eax + 0x14], 0
jne 0x44679d
add eax, 0xc
push ebx
add eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetTrusteeNameW]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x44679d
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
sub edi, 0x20
sub esi, 1
jns 0x446760
mov edi, dword [ebp - 0x428]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
push 0x208
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x458], xmm0
movups xmmword [ebp - 0x448], xmm0
call fcn.0046f230
add esp, 0xc
mov dword [ebp - 0x434], 0x104
test edi, edi
je 0x446825
lea eax, [ebp - 0x430]
mov dword [ebp - 0x420], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push 3
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x458]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x446894
push 0
push dword [ebp - 0x41c]
push 0
push 0
push 4
push dword [ebp + 0xc]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 0x41c]
inc ebx
test eax, eax
je 0x446894
push eax
call esi
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4468a1
push eax
call esi
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.004621f8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4480a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x261c
call fcn.00462660
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.0046f230
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
add esp, 0xc
push 0x4f103c
push dword [esi]
push eax
call edi
cmp dword [esi + 8], 0
je 0x448174
push 0x800
lea eax, [ebp - 0xe1c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0xe1c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x161c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0xe1c]
push 0x4f93f0
push eax
lea eax, [ebp - 0x161c]
push eax
call edi
push 0
push 0
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp - 0x161c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push 0x4f926c
call fcn.00448550
test eax, eax
je 0x4482ba
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f9404
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4481cf
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1e1c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4f93f0
push eax
lea eax, [ebp - 0x1e1c]
push eax
call edi
push 0
push 0
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp - 0x1e1c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push 0x4f926c
call fcn.00448550
test eax, eax
je 0x4482ba
push 0x800
lea eax, [ebp - 0x261c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4f9420
push eax
lea eax, [ebp - 0x261c]
push eax
call edi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x61c]
push str.Uninstall.exe
push dword [esi]
push eax
call edi
push 1
push 0
lea eax, [ebp - 0x61c]
mov ecx, esi
push eax
lea eax, [ebp - 0x261c]
push eax
push 0
lea eax, [ebp - 0x61c]
push eax
push 0x4f9438
call fcn.00448550
test eax, eax
je 0x4482ba
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004621f8
mov esp, ebp
pop ebp
ret
Function at 0x4482d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x261c
call fcn.00462660
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.0046f230
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
add esp, 0xc
push 0x4f103c
push dword [esi]
push eax
call edi
cmp dword [esi + 8], 0
je 0x4483a4
push 0x800
lea eax, [ebp - 0xe1c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0xe1c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x161c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0xe1c]
push 0x4f9448
push eax
lea eax, [ebp - 0x161c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp - 0x161c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push 0x4f38bc
call fcn.00448550
test eax, eax
je 0x4484ea
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f38bc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4483ff
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1e1c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4f9448
push eax
lea eax, [ebp - 0x1e1c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp - 0x1e1c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push 0x4f38bc
call fcn.00448550
test eax, eax
je 0x4484ea
push 0x800
lea eax, [ebp - 0x261c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x4f945c
push eax
lea eax, [ebp - 0x261c]
push eax
call edi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x61c]
push str.Uninstall.exe
push dword [esi]
push eax
call edi
push 1
push 0
lea eax, [ebp - 0x61c]
mov ecx, esi
push eax
lea eax, [ebp - 0x261c]
push eax
push 0
lea eax, [ebp - 0x61c]
push eax
push 0x4f9474
call fcn.00448550
test eax, eax
je 0x4484ea
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004621f8
mov esp, ebp
pop ebp
ret
Function at 0x4488b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00462660
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.0046f230
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x4f93f0
push eax
lea eax, [ebp - 0x1804]
push eax
call edi
lea eax, [ebp - 0x1804]
push eax
call fcn.00408990
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4f9448
push eax
lea eax, [ebp - 0x2004]
push eax
call edi
lea eax, [ebp - 0x2004]
push eax
call fcn.00408990
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x1004]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x4f93f0
push eax
lea eax, [ebp - 0x2804]
push eax
call edi
lea eax, [ebp - 0x2804]
push eax
call fcn.00408990
push 0x800
lea eax, [ebp - 0x3004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x1004]
push 0x4f9448
push eax
lea eax, [ebp - 0x3004]
push eax
call edi
lea eax, [ebp - 0x3004]
push eax
call fcn.00408990
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.004621f8
mov esp, ebp
pop ebp
ret
Function at 0x448a10
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00462660
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.0046f230
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x4f38bc
push eax
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
call fcn.00408a00
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4f9404
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00408a00
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4f9484
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.0046f230
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x4f38bc
push eax
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
call fcn.00408a00
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4f9404
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00408a00
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.0046f230
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4f9484
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004621f8
mov esp, ebp
pop ebp
ret

Function at 0x448be0
Capabilities:
Set registry value

Disassembly:
cmp dword [ecx + 4], 0
jne fcn.004491d0
jmp fcn.00448bf0
Function at 0x449b00
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x449c84
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046f230
mov eax, dword [0x52636c]
add esp, 0xc
test eax, eax
js 0x449b4d
xor ecx, ecx
test eax, eax
setne cl
jmp 0x449c08
push 0x118
xorps xmm0, xmm0
mov dword [0x52636c], 0
lea eax, [ebp - 0x324]
mov dword [ebp - 0x32c], 0
push 0
push eax
movups xmmword [ebp - 0x34c], xmm0
movups xmmword [ebp - 0x33c], xmm0
call fcn.0046f230
add esp, 0xc
mov dword [ebp - 0x328], 0x11c
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x449bbe
lea eax, [ebp - 0x328]
mov dword [ebp - 0x328], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x449c06
push str.GetNativeSystemInfo
push 0x4f0918
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x449c06
lea ecx, [ebp - 0x34c]
push ecx
call eax
mov ax, word [ebp - 0x34c]
cmp ax, 9
je 0x449bf5
cmp ax, 6
jne 0x449c06
mov dword [0x52636c], 1
mov ecx, 1
jmp 0x449c08
xor ecx, ecx
test ecx, ecx
mov edx, str.wallpaperhelperHardwareProtect.sys
mov eax, str.wallpaperhelperHardwareProtect_x64.sys
cmove eax, edx
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x449c84
lea eax, [ebp - 0x20c]
push eax
call fcn.0044da60
add esp, 4
test eax, eax
je 0x449c84
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push 0
push ecx
push 1
push eax
push eax
call fcn.0044c570
add esp, 0x18
test eax, eax
jns 0x449c98
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InstallDrv_error:_d__m_strServiceName_s__path_s
call fcn.00434210
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004621f8
mov esp, ebp
pop ebp
ret 4
Function at 0x44c720
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x44c741
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x44c76b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x44c890
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e89cc
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x128], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x44c8f6
mov ebx, 0x80004003
jmp 0x44ca9d
push 0xf01ff
push ebx
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x124], ebx
test ebx, ebx
jne 0x44c91d
mov ebx, 0x80004005
jmp 0x44ca96
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], eax
test esi, esi
jne 0x44c949
mov dword [ebp - 0x114], esi
jmp 0x44c99e
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44c950
sub esi, ecx
lea eax, [ebp - 0x110]
push 0x80
push eax
sar esi, 1
lea eax, [ebp - 0x114]
inc esi
push esi
push eax
call fcn.00404fc0
lea eax, [esi + esi]
push eax
push dword [ebp - 0x118]
push eax
push dword [ebp - 0x114]
call fcn.0044cc10
push eax
call fcn.00407730
mov esi, dword [ebp - 0x114]
add esp, 0x24
mov byte [ebp - 4], 2
call fcn.00408340
mov ecx, eax
test ecx, ecx
je 0x44cabb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
push esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.004077d0
test al, al
jne 0x44c9fc
test esi, esi
jne 0x44c9db
xor ecx, ecx
jmp 0x44c9ef
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44c9e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x118]
call fcn.004071e0
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x44ca19
push eax
call fcn.0048a965
add esp, 4
mov esi, dword [ebp - 0x118]
cmp dword [esi - 0xc], 0
je 0x44ca3b
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x120], eax
jmp 0x44ca3d
xor eax, eax
push eax
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x44ca62
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ebx, 0x80004005
cmp dword [ebp - 0x118], eax
cmovne ebx, eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44ca8a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405a80
int3
Function at 0x44cad0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x44cb0f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x44cb2a
mov edi, 0x80004005
jmp 0x44cb61
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push ebx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push ebx
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004621f8
mov esp, ebp
pop ebp
ret
Function at 0x44f360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f3eb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x44f3ad
cmp eax, 2
jne 0x44f3c9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x44f3e5
test ecx, ecx
je 0x44f3e0
test cl, 1
jne 0x44f3c9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x44f3e5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004621f8
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004621f8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x450c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x527494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
movq qword [ebp - 0xc], xmm0
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.0044f960
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x450ceb
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x450cab
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450cc9
call fcn.00415f90
mov esi, eax
test esi, esi
js 0x450ce4
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x450ce2
call fcn.00415f90
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x450ced
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x450ced
xor esi, esi
test edi, edi
je 0x450cf8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004621f8
mov esp, ebp
pop ebp
ret
Function at 0x452e70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e912f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x527494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x452ec5
mov dword [esi], 0x4fce5c
mov dword [esi + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
lea edi, [esi + 4]
push 0
push edi
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00457850
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042ea10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x452f41
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.004c0eee
add esp, 4
mov dword [ebx + 4], eax
jmp 0x452f43
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [edi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8