joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452b10
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539776
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x594624]
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 ebx, dword [ebp + 8]
test ebx, ebx
jne 0x452b4c
xor eax, eax
jmp 0x452d52
cmp word [ebx], 0
je 0x452b45
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452b57
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x452b45
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x54e47c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x452bb2
test al, 1
je 0x452bb2
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.0042ca60
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x452d02
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x452c61
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x452c61
cmp word [ebp - 0x858], 0x2e
jne 0x452c61
mov ax, word [ebp - 0x856]
test ax, ax
je 0x452c3c
cmp ax, 0x2e
jne 0x452c61
cmp word [ebp - 0x854], 0
jne 0x452c61
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x452d6e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x452cf4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0042d020
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x452c9c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x452c9c
mov esi, dword [ebp - 0x888]
push esi
call fcn.00452b10
jmp 0x452ca8
mov esi, dword [ebp - 0x888]
push esi
call fcn.00452a80
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x452cb9
xor edi, edi
jmp 0x452cd8
cmp dword [ebp - 0x424], 0
jne 0x452cc6
xor edi, edi
jmp 0x452cd8
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x452cf4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x452bf9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x452d28
cmp eax, 0xffffffff
je 0x452d28
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.00452440
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x452d4d
cmp eax, 0xffffffff
je 0x452d4d
push eax
call esi
mov eax, 1
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.00493dce
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x452d28
Function at 0x4549e0
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x454a44
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x454a36
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x454a36
push edx
call fcn.00412a20
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x454a2f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x454a43
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.0040e3c0
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454aaa
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x454aaa
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x454a91
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x454aaa
jg 0x454aa2
cmp dword [ebp - 8], 0x40000000
jbe 0x454aaa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x459120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x594624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x459158
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 8], eax
call fcn.00493e3c
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
test esi, esi
je 0x4591aa
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CUninstaller__AEXXZPAV3__std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x4591ac
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4591bd
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x4591df
push 1
lea ecx, [edi + 0x20]
call fcn.0045ef10
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x45921c
push 0x28
call fcn.00493e3c
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [eax + ecx]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_c5df9da8d23d344aa3ea63177abe343f___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x45925b
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x45e670
push 0
push 0
call fcn.0050903e
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x45925f
mov byte [ebp + 0xb], 0
test esi, esi
je 0x459284
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x459284
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x459284
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
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
Function at 0x45aac0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10630
call fcn.00493de0
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x414]
push esi
push edi
push 0x104
push eax
push 0x5933f0
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x414]
push eax
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00451bf0
add esp, 0x10
call fcn.0042fa80
neg eax
mov dword [ebp - 0x10630], 0
lea ecx, [ebp - 0x10630]
mov dword [ebp - 0x1062c], 0
sbb eax, eax
mov dword [ebp - 0x10628], 0
and eax, 0x100
or eax, 0x20019
push eax
lea eax, [ebp - 0x61c]
push eax
push SysReAllocString
call fcn.0042fbb0
mov edi, dword [ebp - 0x10630]
test eax, eax
jne 0x45abd9
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004daa30
add esp, 0xc
mov dword [ebp - 0x10620], 0x208
lea eax, [ebp - 0x10620]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x10624]
push eax
push 0
push 0x54ca30
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45abd9
mov eax, dword [ebp - 0x10624]
cmp eax, 1
je 0x45abbe
cmp eax, 2
jne 0x45abd9
mov eax, dword [ebp - 0x10620]
test eax, eax
je 0x45abfb
test al, 1
jne 0x45abd9
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x45ac04
xor esi, esi
test edi, edi
je 0x45abe6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493dce
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov word [ebp - 0x20c], ax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x45ac62
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
test eax, eax
je 0x45ac62
push 0xfffe
lea eax, [ebp - 0x1061c]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x1061c]
push 0x7fff
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1061c]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x45abd9
mov esi, 1
jmp 0x45abdb
Function at 0x45bb00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53af41
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x594624]
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, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.0042fa80
test eax, eax
mov edx, str.ComputerZ7.dll
mov ecx, str.ComputerZ7_x64.dll
lea eax, [ebp - 0x218]
cmove ecx, edx
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45bcce
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x45bcec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, str._u__s___s_
test ebx, ebx
mov eax, str.__s___s
cmove eax, ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041de00
add esp, 0xc
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x45bcf6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x54ca30
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.0041db10
test al, al
jne 0x45bc32
push 0
push 0x54ca30
lea ecx, [ebp - 0x21c]
call fcn.0040e3c0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0045aac0
mov edx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bc68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
push 0
push 0
push 0
push 0x1388
push 1
push 0
push esi
push str.regsvr32.exe
push 0
call fcn.00430a70
add esp, 0x24
test eax, eax
jne 0x45bc97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__tid:_d__CBandClient::RegisterBand_bRegister:_d_Param:_s
call fcn.00453ab0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x45bcc9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.00493dce
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
int3
Function at 0x45e820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b3cb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
push str.UnInstallShellExt
call fcn.00453ab0
add esp, 4
cmp dword [0x5921f4], 0
je 0x45e946
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x54d368
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x45e93c
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x248]
push ecx
movups xmmword [ebp - 0x248], xmm0
movups xmmword [ebp - 0x238], xmm0
call eax
mov ax, word [ebp - 0x248]
cmp ax, 9
je 0x45e932
cmp ax, 6
je 0x45e932
cmp ax, 0xc
je 0x45e932
push str.IsWow64Process2
push 0x54d700
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x45e929
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x45e929
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x220], cx
sete al
mov dword [0x599558], eax
jmp 0x45e93c
xor eax, eax
mov dword [0x599558], eax
jmp 0x45e93c
mov dword [0x599558], 1
mov dword [0x5921f4], 0
cmp dword [0x599558], 0
mov ecx, str.UtilsLdsCleanShell.dll
mov eax, str.UtilsLdsCleanShell_x64.dll
cmove eax, ecx
push eax
mov eax, dword [ebp - 0x21c]
push dword [eax + 8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45e99d
lea eax, [ebp - 0x218]
push eax
push str.shell_ext.dll_not_exist:__s
call fcn.00453ab0
add esp, 8
xor eax, eax
jmp 0x45ea23
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x45ea3e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x21c]
push str._u___s___s
push eax
call fcn.0041de00
mov esi, dword [ebp - 0x21c]
push 0
push 0
push 0
push 0x1388
push 1
push 0
push esi
push str.regsvr32.exe
push 0
call fcn.00430a70
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
mov edi, eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45ea21
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b4c0
int3
Function at 0x45ea50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b40b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.try_RemoveGuardHp
call fcn.00453ab0
push 0x208
lea eax, [ebp - 0x218]
xor bl, bl
push 0
push eax
call fcn.004daa30
add esp, 0x10
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Utilsguardhp.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push str.guardhp_path:__s
call fcn.00453ab0
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45eb08
push str.guardhp_is_not_exist
call fcn.00453ab0
add esp, 4
jmp 0x45ec3f
lea eax, [ebp - 0x218]
push eax
call fcn.00471250
add esp, 4
test eax, eax
jne 0x45eb2d
push str.no_sign
call fcn.00453ab0
add esp, 4
jmp 0x45ec3f
push 0x22
xor eax, eax
mov dword [ebp - 0x220], 0
push str._UnInstallDesk__LockHomePagePath_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00432180
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45eb70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00432000
push 0xe
push str.___Pidludashi
mov ecx, eax
call fcn.00432000
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.RunGuardHp_cmd_line:__s
call fcn.00453ab0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0x7d0
push 1
push 1
push 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004b63a0
test eax, eax
setne bl
movzx eax, bl
push eax
push str.launch::RunApp_ret:__d
call fcn.00453ab0
mov edx, dword [ebp - 0x21c]
add esp, 0x2c
cmp edx, 8
jb 0x45ec3f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ec35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ec5b
push edx
push ecx
call fcn.004939be
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
call fcn.004e61b8
int3
Function at 0x460190
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.00493de0
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.004daa30
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.004daa30
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.004daa30
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.004daa30
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.00451f50
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4602c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.005055f4
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.0050c579
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x460345
inc esi
cmp esi, 0xa
jl 0x460212
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x460350
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040e3c0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493dce
mov esp, ebp
pop ebp
ret
Function at 0x4603d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00493de0
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46042b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x4604fc
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x4604fc
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x460465
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x4604ca
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004da4b0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4604fc
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x460480
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x4604fc
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004da4b0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493dce
mov esp, ebp
pop ebp
ret 4
Function at 0x4628f0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x462916
mov eax, 0x80004003
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 4], eax
test eax, eax
jne 0x46296d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x46297f
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x46297f
lea eax, [ebp - 8]
push eax
push 0x10c
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x46297f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0x80004005
jmp 0x4629d0
push 2
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x462988
mov dword [ebp - 4], 0x80004005
jmp 0x4629d0
cmp dword [ebp + 0xc], 0
mov ecx, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, 1
cmovne eax, ecx
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 4]
neg eax
sbb ebx, ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
xor ecx, ecx
mov eax, 0x80004005
and ebx, 1
cmovne eax, ecx
mov dword [ebp - 4], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4629dd
push edi
call ebx
push esi
call ebx
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x462aa0
Capabilities:
Query service status

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 0x462ac1
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 0x462aeb
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 dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
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