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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c416
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x597644]
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 0x455f6c
xor eax, eax
jmp 0x456172
cmp word [ebx], 0
je 0x455f65
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455f77
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x455f65
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dda00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x5519ec
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455fd2
test al, 1
je 0x455fd2
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.00431360
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x456122
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x456081
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x456081
cmp word [ebp - 0x858], 0x2e
jne 0x456081
mov ax, word [ebp - 0x856]
test ax, ax
je 0x45605c
cmp ax, 0x2e
jne 0x456081
cmp word [ebp - 0x854], 0
jne 0x456081
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x45618e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x456114
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00431c20
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x4560bc
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x4560bc
mov esi, dword [ebp - 0x888]
push esi
call fcn.00455f30
jmp 0x4560c8
mov esi, dword [ebp - 0x888]
push esi
call fcn.00455ea0
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x4560d9
xor edi, edi
jmp 0x4560f8
cmp dword [ebp - 0x424], 0
jne 0x4560e6
xor edi, edi
jmp 0x4560f8
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 0x456114
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x456019
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x456148
cmp eax, 0xffffffff
je 0x456148
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.00455920
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x45616d
cmp eax, 0xffffffff
je 0x45616d
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.004982ff
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x456148
Function at 0x457df0
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 0x457e54
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x457e46
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x457e46
push edx
call fcn.00412310
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x457e3f
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 0x457e53
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.0040dcb0
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457eba
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x457eba
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 0x457ea1
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 0x457eba
jg 0x457eb2
cmp dword [ebp - 8], 0x40000000
jbe 0x457eba
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45ce20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d458
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x597644]
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 0x45ce58
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x18]
mov dword [ebp - 4], 0
test eax, eax
jne 0x45ce8c
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x462470
push 0
push 0
call fcn.0050bffe
add esp, 0x18
mov dword [edi + 0x18], eax
test eax, eax
jne 0x45ce8c
xor bl, bl
jmp 0x45cf8f
mov eax, dword [ebp + 8]
push 0x38
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 8], eax
call fcn.0049836c
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
test esi, esi
je 0x45ced7
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 0x45ced9
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x45ceea
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
lea ebx, [edi + 0x20]
mov ecx, dword [ebx + 8]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x45cf0e
push 1
mov ecx, ebx
call fcn.00462d10
mov ecx, dword [ebx + 8]
lea eax, [ecx - 1]
and dword [ebx + 0xc], eax
mov ecx, dword [ebx + 0x10]
add ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [ebx + 4]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x45cf4b
push 0x28
call fcn.0049836c
mov ecx, dword [ebx + 4]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [ebx + 4]
mov eax, dword [eax + ecx]
lea ecx, [esi + 0x10]
mov byte [ebp + 0xb], 1
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 [ebx + 0x10]
test esi, esi
je 0x45cf8c
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45cf8c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x45cf8c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov bl, byte [ebp + 0xb]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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 0x45e870
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10630
call fcn.00498310
mov eax, dword [0x597644]
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 0x596410
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.004550a0
add esp, 0x10
call fcn.00434810
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.00434940
mov edi, dword [ebp - 0x10630]
test eax, eax
jne 0x45e989
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dda00
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 0x54fa2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45e989
mov eax, dword [ebp - 0x10624]
cmp eax, 1
je 0x45e96e
cmp eax, 2
jne 0x45e989
mov eax, dword [ebp - 0x10620]
test eax, eax
je 0x45e9ab
test al, 1
jne 0x45e989
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x45e9b4
xor esi, esi
test edi, edi
je 0x45e996
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.004982ff
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 0x45ea12
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
test eax, eax
je 0x45ea12
push 0xfffe
lea eax, [ebp - 0x1061c]
push 0
push eax
call fcn.004dda00
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 0x45e989
mov esi, 1
jmp 0x45e98b
Function at 0x45f8d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53dbd1
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x597644]
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.004dda00
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.00434810
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 0x45fa9e
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45fabc
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.0041dac0
add esp, 0xc
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x45fac6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x54fa2c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.0041d7d0
test al, al
jne 0x45fa02
push 0
push 0x54fa2c
lea ecx, [ebp - 0x21c]
call fcn.0040dcb0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0045e870
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 0x45fa38
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.00435a20
add esp, 0x24
test eax, eax
jne 0x45fa67
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.00456ec0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x45fa99
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.004982ff
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ada0
push 0x80004005
call fcn.0040ada0
int3
Function at 0x462620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e03b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x597644]
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.00456ec0
add esp, 4
cmp dword [0x5951fc], 0
je 0x462746
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x550368
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x46273c
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 0x462732
cmp ax, 6
je 0x462732
cmp ax, 0xc
je 0x462732
push str.IsWow64Process2
push 0x550700
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x462729
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 0x462729
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x220], cx
sete al
mov dword [0x59c620], eax
jmp 0x46273c
xor eax, eax
mov dword [0x59c620], eax
jmp 0x46273c
mov dword [0x59c620], 1
mov dword [0x5951fc], 0
cmp dword [0x59c620], 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 0x46279d
lea eax, [ebp - 0x218]
push eax
push str.shell_ext.dll_not_exist:__s
call fcn.00456ec0
add esp, 8
xor eax, eax
jmp 0x462823
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x46283e
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.0041dac0
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.00435a20
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 0x462821
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.004982ff
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ada0
int3
Function at 0x462850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e07b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x597644]
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.00456ec0
push 0x208
lea eax, [ebp - 0x218]
xor bl, bl
push 0
push eax
call fcn.004dda00
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.00456ec0
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x462908
push str.guardhp_is_not_exist
call fcn.00456ec0
add esp, 4
jmp 0x462a3f
lea eax, [ebp - 0x218]
push eax
call fcn.00475cd0
add esp, 4
test eax, eax
jne 0x46292d
push str.no_sign
call fcn.00456ec0
add esp, 4
jmp 0x462a3f
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.004282d0
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 0x462970
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00436f30
push 0xe
push str.___Pidludashi
mov ecx, eax
call fcn.00436f30
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.RunGuardHp_cmd_line:__s
call fcn.00456ec0
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.004bb7e0
test eax, eax
setne bl
movzx eax, bl
push eax
push str.launch::RunApp_ret:__d
call fcn.00456ec0
mov edx, dword [ebp - 0x21c]
add esp, 0x2c
cmp edx, 8
jb 0x462a3f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462a35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462a5b
push edx
push ecx
call fcn.00497eef
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.004982ff
mov esp, ebp
pop ebp
ret
call fcn.004e9178
int3
Function at 0x463f90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.00498310
mov eax, dword [0x597644]
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.004dda00
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.004dda00
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.004dda00
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.004dda00
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.00455410
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 0x4640c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.005085b4
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.0050f539
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x464145
inc esi
cmp esi, 0xa
jl 0x464012
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004982ff
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 0x464150
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040dcb0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004982ff
mov esp, ebp
pop ebp
ret
Function at 0x4641d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00498310
mov eax, dword [0x597644]
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 0x46422b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004982ff
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x4642fc
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x4642fc
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x464265
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x4642ca
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004dd480
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 0x4642fc
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x464280
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x4642fc
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004dd480
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.004982ff
mov esp, ebp
pop ebp
ret 4
Function at 0x4667f0
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 0x466816
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 0x46686d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x46687f
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x46687f
lea eax, [ebp - 8]
push eax
push 0x10c
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x46687f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0x80004005
jmp 0x4668d0
push 2
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x466888
mov dword [ebp - 4], 0x80004005
jmp 0x4668d0
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 0x4668dd
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 0x4669a0
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 0x4669c1
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 0x4669eb
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