joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492fea
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4930ba
push 0x104
push esi
call fcn.004b685a
add eax, 0xfffffffc
pop ecx
pop ecx
cmp eax, 0xff
ja 0x4930ba
mov eax, dword [0x50248c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x502490]
mov dword [ebp - 8], eax
mov ax, word [esi]
mov word [ebp - 0xc], ax
push dword [ebp - 0xc]
call fcn.004a46cd
pop ecx
cmp eax, 1
je 0x49304d
push 0x70
jmp 0x4930bc
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x493094
cmp dword [ebp - 0x10], ebx
ja 0x493094
jb 0x493090
cmp dword [ebp - 0x14], 0x11e1a300
ja 0x493094
push 0x6f
jmp 0x4930bc
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4930b6
push esi
call fcn.0049e9f8
pop ecx
test al, al
je 0x4930b6
xor eax, eax
jmp 0x4930bd
push 0x6c
jmp 0x4930bc
push 0x65
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x4931a4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov ebx, 0x80
push ebx
push 3
push 0
push 1
mov edi, 0x80000000
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4931db
xor eax, eax
jmp 0x493323
push 0
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4931f3
mov byte [ebp + 0xb], 1
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
jne 0x493218
push 0
push ebx
push 3
push 0
push 1
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x493218
mov byte [ebp + 0xb], 1
xor eax, eax
cmp byte [ebp + 0xb], al
jne 0x493231
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x493231
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x14], eax
je 0x49323a
mov byte [ebp + 0xb], 1
and dword [ebp + 0xc], 0
cmp byte [ebp + 0xb], 0
jne 0x493305
mov edi, 0x541444
push edi
mov esi, 0x100000
push esi
call fcn.004b60d0
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x493274
push edi
push esi
call fcn.004b60d0
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x49327a
mov byte [ebp + 0xb], 1
jmp 0x4932e9
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4932df
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x4932df
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4932df
cmp dword [ebp + 8], ebx
je 0x4932df
cmp eax, dword [ebp + 8]
jne 0x4932df
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.004b2f9e
add esp, 0xc
test eax, eax
jne 0x4932df
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jb 0x493283
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
setne byte [ebp + 0xb]
cmp dword [ebp - 8], ebx
je 0x4932f7
push dword [ebp - 8]
call fcn.004b5d21
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x493305
push dword [ebp + 0xc]
call fcn.004b5d21
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x49331b
push dword [ebp - 4]
call esi
xor eax, eax
cmp byte [ebp + 0xb], al
sete al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49339e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4933cd
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x4933cf
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x493a03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push edi
xor edi, edi
cmp ecx, edi
jne 0x493a18
xor eax, eax
jmp 0x493a5c
mov eax, dword [esi + 4]
lea edx, [ebp + 8]
push edx
mov edx, dword [esi + 0xc]
or edx, 0x20019
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493a5a
mov esi, dword [esi + 8]
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x493a51
xor edi, edi
inc edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x493a9c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x493b02
push esi
call fcn.004b5d07
pop ecx
test eax, eax
je 0x493b02
push esi
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.0040b640
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
push 2
push 1
push edi
mov ecx, ebx
call fcn.004935a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x20c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x493adb
jmp 0x493af1
Function at 0x493b26
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x10
mov eax, 0x4e6183
call fcn.004b51ee
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x14], esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], esp
call fcn.00467e58
cmp al, bl
je 0x493c3c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
call edi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x541380]
mov dword [ebp + 0xc], eax
call esi
push eax
push dword [ebp + 0xc]
call fcn.00428ce0
pop ecx
pop ecx
test eax, eax
jne 0x493bd2
push dword [ebp - 0x18]
push dword [0x541380]
call esi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00428bb0
add esp, 0xc
test eax, eax
jne 0x493bd2
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00467e9a
mov al, bl
call fcn.004b52c6
ret
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x493bbe
push dword [ebp - 0x18]
mov dword [ebp + 8], ebx
push dword [0x541380]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call edi
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x493c33
push dword [ebp - 0x18]
push dword [0x541380]
call esi
cmp eax, dword [ebp + 8]
jne 0x493c33
mov byte [ebp - 0xd], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0xd]
jmp 0x493bbe
Function at 0x493c9a
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebp - 0x258], 0
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x4c]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.0043e503
push ebx
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.0043e503
lea eax, [ebp - 0x25c]
push eax
push 0x20007
push 0
lea eax, [ebp - 0x254]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493dc4
push str.QHActiveDefense
push ebx
call fcn.004b571f
pop ecx
pop ecx
test eax, eax
jne 0x493d41
push str.LaunchProtected
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x258]
push 4
pop ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x268]
push eax
mov edi, str.DeleteFlag
push edi
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x493dc0
push edi
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x493dc0
push ebx
lea eax, [ebp - 0x258]
push eax
push ebx
push edi
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov al, 1
jmp 0x493dc6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret
Function at 0x493dd5
Capabilities:
Start service

Disassembly:
push 0x1c
mov eax, 0x4e61be
call fcn.004b51ee
mov dword [ebp - 0x1c], ecx
push 0x20000000
xor edi, edi
push edi
push edi
mov byte [ebp - 0xd], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x493ef4
push 0x20000012
push str.QHProtected
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x493edf
mov dword [ebp - 0x14], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push str.Global6B975C4C_B187_4194_B04A_B414FD8D91C3__
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, edi
setne cl
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], str.install
mov dword [ebp - 0x24], ecx
call esi
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x84]
cmp eax, edi
jne 0x493ebd
cmp ecx, 0x420
jne 0x493ed3
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
push str.GlobalF0D6272E_5BAD_4ecf_980E_05D3D9EA697E__
push edi
push 2
lea ecx, [ebp - 0x1c]
call fcn.0046eeea
test eax, eax
je 0x493ea2
push 0x4e20
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004618fb
cmp esi, edi
je 0x493ed3
cmp dword [ebp - 0x24], edi
je 0x493ed0
push 0xea60
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 0xd], bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004618fb
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
cmp dword [ebp - 0x18], edi
je 0x493ef4
push dword [ebp - 0x18]
call esi
mov al, byte [ebp - 0xd]
call fcn.004b52c6
ret
Function at 0x493efd
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x6c0
mov eax, 0x4e61d9
call fcn.004b528d
mov esi, dword [ebp + 8]
mov dword [ebp - 0x688], esi
xor ebx, ebx
mov dword [ebp - 0x684], ebx
call fcn.0046a40c
test eax, eax
je 0x49401c
xor eax, eax
mov word [ebp - 0x244], ax
push 0x206
push ebx
lea eax, [ebp - 0x242]
push eax
call fcn.004b4620
add esp, 0xc
push 0x104
lea eax, [ebp - 0x244]
push eax
push str._windir__system32_regsvr32.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp - 0x67c], ax
push 0x436
push ebx
lea eax, [ebp - 0x67a]
push eax
call fcn.004b4620
add esp, 0xc
push esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x67c]
cmp dword [ebp + 0xc], ebx
je 0x493f97
push str.__s___s___s_
jmp 0x493f9c
push str.__s___s__u___s_
push 0x438
push eax
call fcn.00411380
add esp, 0x14
mov dword [ebp - 0x28], ebx
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
push ebx
lea eax, [ebp - 0x6c8]
push eax
call fcn.004b4620
add esp, 0xc
mov dword [ebp - 0x6cc], 0x44
xor eax, eax
mov word [ebp - 0x69c], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6cc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x67c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x684], eax
cmp eax, ebx
je 0x4940ac
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
jmp 0x4940ac
mov esi, str.DllRegisterServer
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, str.DllUnregisterServer
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x28]
cmp dword [ebp + 0xc], ebx
jne 0x494042
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x680], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x4940de
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 8
push ebx
push dword [ebp - 0x688]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x680], esi
cmp esi, ebx
je 0x4940a6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4940a6
call eax
test eax, eax
jl 0x494099
mov dword [ebp - 0x684], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x680], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x684]
jmp 0x4940e0
xor eax, eax
call fcn.004b52e9
ret
Function at 0x4943d3
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xa0c], ecx
call fcn.00492d63
mov dword [ebp - 0xa10], eax
test eax, eax
je 0x4944be
push 0x202
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004b4620
push 0x800
lea eax, [ebp - 0xa08]
push 0
push eax
call fcn.004b4620
add esp, 0x18
test esi, esi
je 0x49445b
push esi
call fcn.004b5d07
pop ecx
test eax, eax
je 0x49445b
push esi
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.0040b640
jmp 0x49447d
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0xa14], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4944be
push edi
push dword [ebp - 0xa10]
lea eax, [ebp - 0xa08]
push 0x4f9538
push 0x400
push eax
call fcn.0043e544
mov ecx, dword [ebp - 0xa0c]
add esp, 0x14
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push eax
push 4
lea eax, [ebp - 0xa08]
push eax
call fcn.00494209
jmp 0x4944c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b46ff
leave
ret 0x14

Function at 0x4945b0
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x4e6209
call fcn.004b51ee
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0xfe
mov dword [ebp - 0x14], esi
cmp dword [0x536040], eax
je 0x494606
cmp eax, esi
je 0x494606
push esi
lea ecx, [ebp - 0x14]
push ecx
push 2
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0043f1fb
call fcn.004b52c6
ret
Function at 0x494d91
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x4e8493
call fcn.004b51ee
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040c7d0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
add esi, 8
sar eax, 3
test eax, eax
jbe 0x494e27
mov edi, str._s_c
push ebx
mov ecx, esi
call fcn.00493457
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00445817
add esp, 0x10
push ebx
mov ecx, esi
call fcn.00493457
add eax, 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x494dfa
push 0
lea ecx, [ebp - 0x10]
call fcn.004452a8
jmp 0x494e17
push ebx
mov ecx, esi
call fcn.00493457
add eax, 4
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00445817
add esp, 0x10
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebx
sar eax, 3
cmp ebx, eax
jb 0x494dc1
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004452a8
lea eax, [ebp - 0x14]
push eax
push 2
push ebx
push 0x504a10
push 0x80000002
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x494e96
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c8a0
push eax
push 7
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x494e96
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d610
mov al, bl
call fcn.004b52c6
ret
xor bl, bl
jmp 0x494e82

Function at 0x494fbb
Capabilities:
Check if file exists

Disassembly:
push 0x210
mov eax, 0x4e7264
call fcn.004b5257
mov eax, ecx
sub eax, 0xffffff80
push str.360rcbase.dat
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00445250
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x495010
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d610
xor eax, eax
call fcn.004b52da
ret
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004b4620
push 1
push 0x208
lea eax, [ebp - 0x218]
push eax
push ebx
mov edi, 0x504dec
push edi
mov esi, 0x504dd0
push esi
call fcn.0049291f
add esp, 0x24
test eax, eax
jne 0x495065
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040d610
mov eax, ebx
jmp 0x49500a
lea eax, [ebp - 0x218]
push eax
push edi
push esi
call fcn.00492afd
add esp, 0xc
mov ebx, eax
jmp 0x495052
Function at 0x4958b6
Capabilities:
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x424
mov eax, 0x4e64ed
call fcn.004b5257
xor edi, edi
mov esi, 0x208
push esi
lea eax, [ebp - 0x420]
push edi
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x424], edi
call fcn.004b4620
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004b4620
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.Directory_shellexContextMenuHandlersSD360
mov ebx, 0x80000000
push ebx
call edi
test eax, eax
jne 0x495937
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
push str.CLSID086F171D_5ED1_4ED2_B736_CFF3AD6A128E
push ebx
call edi
test eax, eax
jne 0x495963
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x424]
call fcn.0046a40c
test eax, eax
mov eax, dword [ebp - 0x428]
je 0x495979
push str.MenuEx64.dll
jmp 0x49597e
push str.MenuEx.dll
push dword [eax + 0x80]
lea eax, [ebp - 0x218]
push 0x4f9538
push esi
push eax
call fcn.00411380
add esp, 0x14
cmp dword [ebp - 0x424], 2
jne 0x495a1d
and dword [ebp - 0x42c], 0
lea eax, [ebp - 0x42c]
push eax
push 1
push 0
push str.CLSID086F171D_5ED1_4ED2_B736_CFF3AD6A128EInprocServer32
push ebx
call edi
test eax, eax
jne 0x495a04
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0x50ea0c
push dword [ebp - 0x42c]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004b571f
pop ecx
pop ecx
test eax, eax
je 0x495a2d
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.00493efd
pop ecx
pop ecx
cmp byte [0x53fe3c], 0
jne 0x495acf
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x430], 1
call fcn.004413bb
xor edi, edi
mov dword [ebp - 4], edi
push str.UserProfile
mov esi, str.software360TotalSecurity
push esi
lea eax, [ebp - 0x428]
push str._s_s
push eax
call fcn.00461c09
add esp, 0x10
lea eax, [ebp - 0x424]
push eax
push esi
mov esi, 0x80000002
push esi
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x495aa3
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], edi
push 4
lea eax, [ebp - 0x430]
push eax
push 4
push str.MenuScan
push dword [ebp - 0x428]
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0044209e
mov al, 1
call fcn.004b52da
ret