joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485341
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, SysReAllocStringLen
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x485378
xor eax, eax
jmp 0x4854c0
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 0x485390
mov byte [ebp + 0xb], 1
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
jne 0x4853b5
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 0x4853b5
mov byte [ebp + 0xb], 1
xor eax, eax
cmp byte [ebp + 0xb], al
jne 0x4853ce
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x4853ce
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x14], eax
je 0x4853d7
mov byte [ebp + 0xb], 1
and dword [ebp + 0xc], 0
cmp byte [ebp + 0xb], 0
jne 0x4854a2
mov edi, 0x4fc148
push edi
mov esi, 0x100000
push esi
call fcn.004994d7
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x485411
push edi
push esi
call fcn.004994d7
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x485417
mov byte [ebp + 0xb], 1
jmp 0x485486
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 0x48547c
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 0x48547c
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x48547c
cmp dword [ebp + 8], ebx
je 0x48547c
cmp eax, dword [ebp + 8]
jne 0x48547c
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0049a55f
add esp, 0xc
test eax, eax
jne 0x48547c
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jb 0x485420
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
setne byte [ebp + 0xb]
cmp dword [ebp - 8], ebx
je 0x485494
push dword [ebp - 8]
call fcn.0049961b
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x4854a2
push dword [ebp + 0xc]
call fcn.0049961b
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x4854b8
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 0x4854fe
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x48552b
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 0x48552d
xor eax, eax
pop esi
ret 4
Function at 0x4858f1
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
xor ebx, ebx
mov dword [eax], ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004697cd
cmp al, bl
je 0x4859fa
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
call edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x4fc090]
mov dword [ebp + 0xc], eax
call esi
push eax
push dword [ebp + 0xc]
call fcn.00453830
pop ecx
pop ecx
test eax, eax
jne 0x48598c
push dword [ebp - 0xc]
push dword [0x4fc090]
call esi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00453730
add esp, 0xc
test eax, eax
jne 0x48598c
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0046980d
pop edi
pop esi
mov al, bl
pop ebx
leave
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, ebx
je 0x48597d
cmp eax, 0xffffffff
je 0x48597d
push dword [ebp - 0xc]
mov dword [ebp + 8], ebx
push dword [0x4fc090]
call esi
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
call edi
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4859f1
push dword [ebp - 0xc]
push dword [0x4fc090]
call esi
cmp eax, dword [ebp + 8]
jne 0x4859f1
mov byte [ebp - 1], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
jmp 0x48597d
Function at 0x485a57
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x1f0]
and dword [ebp - 0x70], 0
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp + 0x19c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x6c], ax
lea eax, [ebp + 0x19c]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.004197e0
push ebx
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.004197e0
lea eax, [ebp - 0x80]
push eax
push 1
push 0
lea eax, [ebp - 0x6c]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x485b33
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x70]
push 4
pop ebx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
mov edi, str.DeleteFlag
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x485b2f
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x485b2f
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov al, 1
jmp 0x485b35
xor al, al
mov ecx, dword [ebp + 0x1e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497941
add ebp, 0x1e8
leave
ret
Function at 0x485b4d
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
sub esp, 0x668
lea ebp, [esp - 4]
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x668], eax
push 0x54
mov eax, 0x4be2aa
call fcn.00498149
mov esi, dword [ebp + 0x674]
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.00485531
test eax, eax
je 0x485c75
xor eax, eax
mov word [ebp + 0x438], ax
push 0x206
push ebx
lea eax, [ebp + 0x43a]
push eax
call fcn.00497680
add esp, 0xc
push 0x104
lea eax, [ebp + 0x438]
push eax
push str._windir__system32_regsvr32.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp], ax
push 0x436
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00497680
add esp, 0xc
push esi
lea eax, [ebp + 0x438]
push eax
lea eax, [ebp]
cmp dword [ebp + 0x678], ebx
je 0x485bf3
push str.__s___s___s_
jmp 0x485bf8
push str.__s___s__u___s_
push 0x438
push eax
call fcn.00415b00
add esp, 0x14
mov dword [ebp + 0x654], ebx
xor eax, eax
lea edi, [ebp + 0x658]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
push ebx
lea eax, [ebp - 0x5c]
push eax
call fcn.00497680
add esp, 0xc
mov dword [ebp - 0x60], 0x44
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp + 0x654]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x485d01
push dword [ebp + 0x658]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x654]
call esi
jmp 0x485d01
mov esi, str.DllRegisterServer
lea edi, [ebp + 0x654]
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 + 0x640]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x654]
cmp dword [ebp + 0x678], ebx
jne 0x485caa
lea edi, [ebp + 0x640]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x485d27
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 8
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x485cfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x485cfb
call eax
test eax, eax
jl 0x485cf1
mov dword [ebp - 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
jmp 0x485d29
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x668]
xor ecx, ebp
call fcn.00497941
add ebp, 0x66c
leave
ret
Function at 0x485ed8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], 0xfe
cmp dword [0x4f687c], eax
je 0x485f27
test eax, eax
je 0x485f27
push 0
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xc]
call fcn.004086f0
leave
ret

Function at 0x4862d7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0x4fc0d8
lea ecx, [ebp - 4]
call fcn.00418850
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
add esi, 8
sar eax, 3
xor ebx, ebx
test eax, eax
jbe 0x486367
mov edi, str._s_c
push ebx
mov ecx, esi
call fcn.004855ce
push 0
push dword [eax]
lea eax, [ebp - 4]
push edi
push eax
call fcn.00418a20
add esp, 0x10
push ebx
mov ecx, esi
call fcn.004855ce
add eax, 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x48633d
push 0
lea ecx, [ebp - 4]
call fcn.004283c0
jmp 0x486359
push ebx
mov ecx, esi
call fcn.004855ce
add eax, 4
push 0
push dword [eax]
lea eax, [ebp - 4]
push edi
push eax
call fcn.00418a20
add esp, 0x10
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebx
sar eax, 3
cmp ebx, eax
jb 0x486305
xor edi, edi
push edi
lea ecx, [ebp - 4]
call fcn.004283c0
lea eax, [ebp - 8]
push eax
push 2
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4863d6
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 4]
call fcn.00404370
push eax
push 7
push edi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x4863d6
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404d30
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor bl, bl
jmp 0x4863c4
Function at 0x4866fc
Capabilities:
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x208
push esi
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.00497680
push esi
lea eax, [ebp + 0x198]
push edi
push eax
call fcn.00497680
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.Directory_shellexContextMenuHandlersSD360
mov ebx, SysReAllocStringLen
push ebx
call edi
test eax, eax
jne 0x486777
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], 1
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push str.CLSID086F171D_5ED1_4ED2_B736_CFF3AD6A128E
push ebx
call edi
test eax, eax
jne 0x48679a
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x74]
call fcn.00485531
test eax, eax
mov eax, dword [ebp - 0x7c]
je 0x4867ad
push str.MenuEx64.dll
jmp 0x4867b2
push str.MenuEx.dll
push dword [eax + 0x5c]
lea eax, [ebp + 0x198]
push str._s_s
push esi
push eax
call fcn.00415b00
add esp, 0x14
cmp dword [ebp - 0x74], 2
jne 0x48682d
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str.CLSID086F171D_5ED1_4ED2_B736_CFF3AD6A128EInprocServer32
push ebx
call edi
test eax, eax
jne 0x486817
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x4d67f4
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00498d33
pop ecx
pop ecx
test eax, eax
je 0x48683d
lea eax, [ebp + 0x198]
push 1
push eax
call fcn.00485b4d
pop ecx
pop ecx
cmp byte [0x4faa30], 0
jne 0x4868bc
push 0x4fc0d8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 1
call fcn.00418850
push str.UserProfile
mov esi, str.software360TotalSecurity
push esi
lea eax, [ebp - 0x7c]
push 0x4cee58
push eax
call fcn.00476549
and dword [ebp - 0x74], 0
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x48689c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x74], 0
mov edi, dword [ebp - 0x7c]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push str.MenuScan
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea ecx, [edi - 0x10]
call fcn.00404d30
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00497941
add ebp, 0x3a4
leave
ret
Function at 0x486fb5
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.0048668a
test al, al
je 0x48704a
push 0x4fc0d8
lea ecx, [ebp - 4]
call fcn.00418850
lea eax, [ebp - 8]
push eax
call fcn.0046eeed
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 4]
push str.__s_safemon_s___start
push eax
call fcn.004048a0
mov ecx, dword [ebp - 8]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00404d30
mov esi, dword [ebp - 4]
push 0
push esi
push 0
push ecx
mov ecx, esp
push str.QHSafeTray
call fcn.00404050
push ecx
mov ecx, esp
push 0x4cf018
call fcn.00404050
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0040b9b0
push eax
call fcn.0040bfc0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040c410
lea ecx, [esi - 0x10]
call fcn.00404d30
pop esi
leave
ret

Function at 0x48704d
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x487134
cmp dword [ebp + 0xc], ebx
je 0x487134
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 8]
call fcn.00404050
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 8]
call fcn.00405c60
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x487129
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0x4d689c
push esi
push eax
call fcn.004067a0
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004067a0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00404d30
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push str.Path
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi - 0x10]
call fcn.00404d30
pop edi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00404d30
pop esi
pop ebx
leave
ret
Function at 0x487138
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x400]
sub esp, 0x480
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x3fc], eax
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00497680
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.00497680
add esp, 0x18
push 0x4fc0d8
lea ecx, [ebp - 0x1c]
call fcn.00418850
mov edi, 0x400
push edi
lea ecx, [ebp - 0x1c]
call fcn.00404390
push 0x4d67f4
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.00404050
lea eax, [ebp - 0x20]
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x487291
push 0x208
lea eax, [ebp + 0x1f4]
push esi
push eax
mov dword [ebp - 0x28], 0x104
call fcn.00497680
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.Path
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x487288
mov eax, dword [ebp - 0x24]
dec eax
jne 0x48722c
lea eax, [ebp + 0x1f4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404050
push eax
lea ecx, [ebp - 0x18]
call fcn.00404570
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00404d30
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.safemonQHWatchdog.exe
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x487291
push ebx
call fcn.0046e427
pop ecx
test eax, eax
je 0x487291
push ebx
lea eax, [ebp - 0x14]
push str.__s___install
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x487291
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00404d30
mov ecx, dword [ebp + 0x3fc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497941
add ebp, 0x400
leave
ret
Function at 0x48815b
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
call fcn.0048531f
test al, al
je 0x48823e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00497680
push str.temp_files
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004067a0
add esp, 0x18
push str.safemonWscReg.exe
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00404d30
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48823e
push esi
push 0x4fc0d8
lea ecx, [ebp - 0x80]
call fcn.00418850
mov esi, 0x104
push esi
lea ecx, [ebp - 0x80]
call fcn.00404b90
push esi
push eax
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x48820f
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
jmp 0x488238
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.00404c40
push str.AV360_Total_SecurityUpgrade.exe
lea ecx, [ebp - 0x80]
call fcn.00405c60
mov esi, dword [ebp - 0x80]
push esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.004878f5
lea ecx, [esi - 0x10]
call fcn.00404d30
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.00497941
add ebp, 0x190
leave
ret

Function at 0x4885a8
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4f4de0]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push eax
call fcn.00497680
add esp, 0xc
push 1
push 0
lea eax, [ebp + 0x18c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4885fe
xor al, al
jmp 0x488652
xor eax, eax
push esi
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00497680
add esp, 0xc
push str.lnk1
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x4fa998
call fcn.00473572
push dword [eax]
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00404d30
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
pop esi
call fcn.00497941
add ebp, 0x398
leave
ret