joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089c8
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42dde8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x40c]
test eax, eax
je 0x4089eb
push 0
push eax
call edi
mov dword [esi + 0x40c], 0
mov eax, dword [esi + 0x410]
test eax, eax
je 0x408a04
push 0
push eax
call edi
mov dword [esi + 0x410], 0
mov eax, dword [0x45ec34]
test eax, eax
je 0x408a64
lea ecx, [esp + 8]
call fcn.0040be00
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x45ec48
call fcn.00408e40
mov eax, dword [0x45ec50]
push 0
push 0x404840
push edi
push 0xec
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040bf20
mov edx, dword [esi + 0x350]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
push edx
call edi
mov eax, dword [esi + 0x21c]
push eax
call edi
mov ecx, dword [esi + 0x370]
push ecx
call edi
mov edx, dword [esi + 0x24]
push edx
call edi
mov eax, dword [esi + 0xa0]
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [esi + 4]
push edx
call edi
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10

Function at 0x408d80
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x45ec38]
sub esp, 0x1c
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x408e27
push 0x437398
push ebp
mov dword [0x45ec38], 1
call fcn.00409000
push ebp
push 0
push 0x408d10
call dword [sym.imp.MSVCRT.dll__beginthread]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x408e19
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xa
push esi
call edi
cmp eax, 0x102
jne 0x408e19
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x408e03
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x14], 0x519
je 0x408e34
push 0xa
push esi
call edi
cmp eax, 0x102
je 0x408dda
push 0x45ec20
push ebp
call fcn.00409000
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x408f80
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
lea eax, [esp + 8]
mov dword [esp + 8], 8
mov ecx, dword [esi + 0x390]
push eax
push ebp
push 0x1305
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x408fec
mov edx, dword [esi + 0x408]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov eax, dword [edx]
mov edi, dword [esp + 0x28]
push 0
push eax
call ebx
mov ecx, dword [edi]
push 5
push ecx
call ebx
mov edx, dword [esi + 0x390]
push 0
push ebp
push 0x130c
push edx
mov dword [esi + 0x408], edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret 4
Function at 0x4097c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x238
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24c]
push edi
xor ebx, ebx
push esi
mov edi, ecx
push ebx
push 0x18
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x4097fa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret 8
push esi
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x409823
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x238
ret 8
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x224
push eax
push esi
call sub.KERNEL32.DLL_Module32First
test eax, eax
je 0x4099ad
mov ebp, dword [esp + 0x24c]
xor esi, esi
lea ecx, [esp + 0x144]
push esi
push ecx
mov ecx, edi
mov dword [esp + 0x20], esi
call fcn.00409a00
lea edx, [esp + 0x144]
push edx
push ebp
push 0x437438
push edi
call fcn.00409000
add esp, 0x10
lea eax, [esp + 0x144]
mov ecx, edi
push eax
call fcn.004095b0
test eax, eax
jne 0x409985
push eax
mov dword [esp + 0x20], eax
call fcn.00414f40
mov edi, eax
add esp, 4
test edi, edi
je 0x409951
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
test al, 2
je 0x409923
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x148]
push esi
push edx
push ebp
mov ecx, edi
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0xfffffffe
jne 0x40991f
test esi, esi
jne 0x409943
mov eax, dword [esp + 0x3c]
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x409970
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x40993f
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push eax
lea ecx, [esp + 0x148]
push esi
push ecx
push ebp
mov ecx, edi
call dword [edx + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x40993f
mov eax, dword [esp + 0x1c]
inc eax
push eax
mov dword [esp + 0x20], eax
call fcn.00414f40
mov edi, eax
add esp, 4
test edi, edi
jne 0x4098a0
test esi, esi
je 0x409951
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
cmp ebx, 0xffffffff
je 0x4099a9
cmp ebx, 1
jl 0x409970
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x144]
push edi
push edx
push ebx
call fcn.00409c40
jmp 0x409981
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x144]
push eax
call fcn.00409600
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x424]
test eax, eax
je 0x409992
or ebx, 0xffffffff
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
call sub.KERNEL32.DLL_Module32Next
test eax, eax
jne 0x409845
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x238
ret 8
Function at 0x409f30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov edi, ecx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x409fa5
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x409f9e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
call fcn.004097c0
cmp eax, 0xffffffff
je 0x409f9b
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x409f63
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
or ebx, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x40a750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
push ebx
push esi
mov ebx, ecx
xor esi, esi
push esi
push esi
mov eax, dword [ebx + 0x3c]
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x418]
mov edx, dword [eax]
cmp edx, eax
mov dword [esp + 8], edx
je 0x40a961
push ebp
push edi
jmp 0x40a789
mov edx, dword [esp + 0x10]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xb8]
add edx, 0x110
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0xc8], edx
mov edx, dword [ebx + 0x3c]
push ecx
push esi
push 0x1007
push edx
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
mov edx, dword [ebx + 0x3c]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x8c]
mov eax, 1
push ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], eax
push esi
lea eax, [edi + 0xc]
push 0x1006
push edx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x40a89a
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x3c]
lea eax, [esp + 0x14]
push eax
push esi
push 0x1006
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 0x437648
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push ecx
jmp 0x40a941
cmp eax, esi
jg 0x40a8e8
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
push edx
push esi
push 0x1006
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], 0x43763c
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
push eax
jmp 0x40a941
cmp eax, 0xfffffffe
jne 0x40a947
mov edx, dword [ebx + 0x3c]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 1
push ecx
push esi
push 0x1006
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 2
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x84], 0x43762c
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x418]
mov eax, dword [eax]
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x40a785
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xcc
ret
Function at 0x40cc40
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [0x45ecd8]
sub esp, 0x208
test eax, eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [0x45f0b4], edi
jne 0x40cd34
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10c]
push 0x437844
push edx
call esi
lea eax, [esp + 8]
push str.Newkernel32.dll
push eax
call esi
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x110]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x40ccc7
pop edi
pop esi
add esp, 0x208
ret
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test esi, esi
jne 0x40ccfd
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
push 0x437828
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x45f0b4], eax
jne 0x40cd2a
push esi
mov dword [0x45f0b4], edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
mov eax, 1
mov dword [0x45ecd8], eax
pop edi
pop esi
add esp, 0x208
ret
Function at 0x40d340
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x40d366
mov eax, dword [esp + 4]
push 0x24
push 0x436428
push 0x437994
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40d3dd
jmp 0x40d3c5
cmp eax, 1
jne 0x40d385
mov ecx, dword [esp + 4]
push 0
push 0x436428
push 0x437960
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret
cmp eax, 2
jne 0x40d3a4
mov edx, dword [esp + 4]
push 0
push 0x436428
push 0x43792c
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret
cmp eax, 3
jne 0x40d3dd
mov eax, dword [esp + 4]
push 0x24
push 0x436428
push 0x4378ec
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40d3dd
push 5
push 0
push 0
push 0x4370c0
push 0x436318
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret

Function at 0x40d4f0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x314
push esi
call fcn.0040d490
test eax, eax
jne 0x40d5fa
mov eax, dword [esp + 0x324]
test eax, eax
jne 0x40d5e2
lea eax, [esp + 0xc]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ecx, dword [esp + 0x320]
lea edx, [esp + 0xc]
push ecx
push edx
push str.__s___s
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.004073a0
mov esi, dword [esp + 0x330]
add esp, 0x14
lea ecx, [esp + 4]
lea edx, [esp + 0x214]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40d5ab
mov eax, dword [esp + 4]
test eax, eax
jbe 0x40d5ab
cmp dword [esp + 8], 1
jne 0x40d5ab
lea ecx, [esp + 0x214]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40d5fa
push edi
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x114]
push ecx
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
add esp, 0x314
ret
mov ecx, dword [esp + 0x31c]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
pop esi
add esp, 0x314
ret
Function at 0x40d610
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
push 0
push str.360SafeBoxTrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
mov al, byte [0x45ec20]
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push str.sprotect.ini
push ecx
xor esi, esi
stosb byte es:[edi], al
call fcn.0040d6b0
add esp, 8
test eax, eax
je 0x40d671
lea edx, [esp + 0xc]
push edx
push esi
push str.Protect360
push str.protect
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d68f
test esi, esi
je 0x40d6a2
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x104
ret
test esi, esi
je 0x40d6a2
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x40d6b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push esi
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safebox.exe
push connect
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40d711
cmp dword [esp + 0xc], 1
jne 0x40d711
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d709
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop esi
neg eax
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x40d720
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push esi
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push connect
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40d781
cmp dword [esp + 0xc], 1
jne 0x40d781
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d779
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop esi
neg eax
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40d790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov al, byte [0x45ec20]
push ebx
push esi
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
xor ebx, ebx
stosw word es:[edi], ax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_ObjectsB69F34DD_F0F9_42DC_9EDD_957187DA688D
push connect
mov dword [esp + 0x24], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40d7d6
mov ebx, 1
lea edx, [esp + 0x1c]
push str.safemon_safemon.dll
push edx
call fcn.0040d720
mov esi, eax
mov eax, 4
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push str.SiteAccess
push str.SOFTWARE360Safe_safemon
push connect
xor edi, edi
mov dword [esp + 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d83a
test ebx, ebx
je 0x40d83a
test esi, esi
mov eax, 1
jne 0x40d83c
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x114
ret

Function at 0x40d850
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push edi
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d8d7
mov ecx, 0x104
lea eax, [esp + 8]
cmp byte [eax], 0
je 0x40d886
inc eax
dec ecx
jne 0x40d87b
jmp 0x40d8cc
test ecx, ecx
je 0x40d8cc
lea edx, [esp + 4]
test edx, edx
je 0x40d89b
mov eax, 0x104
sub eax, ecx
jmp 0x40d89f
mov eax, dword [esp + 4]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 8]
je 0x40d8cc
push esi
mov esi, str.360safe360safe.exe
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x40d8c3
mov byte [eax], cl
inc eax
dec edx
jne 0x40d8b4
jmp 0x40d8c7
test edx, edx
jne 0x40d8c8
dec eax
mov byte [eax], 0
pop esi
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x40d908
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040d450
add esp, 8
test eax, eax
jne 0x40d8f5
pop edi
add esp, 0x108
ret
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x40d908
pop edi
add esp, 0x108
ret
call fcn.0040d610
test eax, eax
jne 0x40d91e
mov eax, 1
pop edi
add esp, 0x108
ret
call fcn.0040d790
test eax, eax
jne 0x40d934
mov eax, 2
pop edi
add esp, 0x108
ret
call fcn.0040dc10
neg eax
sbb eax, eax
pop edi
and al, 0xfc
add eax, 3
add esp, 0x108
ret

Function at 0x40da50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
pop edi
je 0x40daa4
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp]
add esp, 0x54
ret
xor eax, eax
add esp, 0x54
ret
Function at 0x40dfe0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov al, byte [0x45ec20]
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
lea edx, [esp + 0x110]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.DataBasePath
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push connect
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
jne 0x40e056
lea ecx, [esp + 0x10c]
push str.Hosts
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp 0x40e076
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
push str.DriversetcHosts
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x218]
push esi
cmp ecx, 0x7fffffff
ja 0x40e0b0
mov eax, dword [esp + 0x218]
mov esi, ecx
test ecx, ecx
je 0x40e0b0
lea edx, [esp + 0xc]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x40e0a8
mov byte [eax], cl
inc eax
dec esi
jne 0x40e099
jmp 0x40e0ac
test esi, esi
jne 0x40e0ad
dec eax
mov byte [eax], 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop esi
je 0x40e0db
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40e0db
mov eax, 1
add esp, 0x210
ret
xor eax, eax
add esp, 0x210
ret
Function at 0x40e250
Capabilities:
Get session user name

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jne 0x40e278
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x14
mov ebp, dword [esp + 0x150]
cmp ebp, esi
jne 0x40e2b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40e2ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
lea ebp, [esp + 0x3c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 4
push ecx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x40e387
mov ebx, dword [esp + 0x14c]
cmp ebx, 2
je 0x40e2ef
cmp ebx, 1
jne 0x40e2fe
mov edx, dword [esp + 0x14]
push ebp
push 3
push edx
mov ecx, edi
call fcn.0040e1e0
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov edi, dword [sym.imp.KERNEL32.DLL_LocalFree]
test eax, eax
jne 0x40e37c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push 0
push edx
push 0
push 0
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x40e37c
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e387
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14

Function at 0x40e3e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
lea edx, [esp + 8]
push eax
push ecx
push edx
push str.antifilelib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40e431
mov eax, dword [esp]
test eax, eax
je 0x40e431
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret