joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aaa0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp word [0x4ba150], 0
mov dword [esp], 0
jne 0x40aada
push 0x4ba150
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x5c
cmp word [eax*2 + 0x4ba14e], cx
je 0x40aada
mov word [eax*2 + 0x4ba150], cx
push esi
mov esi, dword [esp + 0xc]
push 0x4ba150
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40acb0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x48b7b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
lea ecx, [esp]
call fcn.0041a310
push 0
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0
call fcn.0041a620
lea eax, [esp + 4]
push eax
call fcn.0040a060
mov eax, dword [eax]
push 0
push eax
mov byte [esp + 0x224], 1
call fcn.0041a840
add esp, 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x218], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, 0x103
sub edx, eax
lea eax, [esp + 8]
push edx
push str.drivers_bdfsfltr.sys
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ad62
push 4
lea edx, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp]
mov dword [esp + 0x218], 0xffffffff
call fcn.0041a340
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40b280
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b83c
push eax
mov dword fs:[0], esp
sub esp, 0x264
push esi
mov esi, dword [esp + 0x278]
mov eax, dword [esi]
mov eax, dword [eax - 8]
cmp eax, 3
jg 0x40b2c5
xor eax, eax
pop esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
add esp, 0x270
ret
push ebx
push ebp
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.00436032
mov ecx, dword [esp + 0x10]
xor ebx, ebx
push 0x5c
mov dword [esp + 0x280], ebx
mov edi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
dec edi
cmp eax, edi
jne 0x40b2f9
push 0x4b0b74
jmp 0x40b2fe
push 0x4b00b4
lea ecx, [esp + 0x14]
call fcn.0043606e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
xor eax, eax
cmp ebp, 0xffffffff
setne al
cmp eax, ebx
je 0x40b418
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x50]
push 0x4b0b70
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40b404
lea edx, [esp + 0x50]
push 0x4b0b7c
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40b404
mov al, byte [esp + 0x24]
push 0x4b00b0
test al, 0x10
push esi
je 0x40b3c4
lea eax, [esp + 0x1c]
push eax
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x50]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x288], 1
call sub.MFC42u.DLL_operator_2
push eax
mov byte [esp + 0x280], 2
call fcn.0040b280
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x27c], 1
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x27c], bl
lea ecx, [esp + 0x14]
jmp 0x40b3ff
lea eax, [esp + 0x24]
push eax
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x50]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x288], 3
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x27c], bl
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x40b32f
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x27c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x274]
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x270
ret
Function at 0x40b570
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 4]
xor esi, esi
push eax
mov dword [esp + 0x68], esi
call fcn.0041e3a0
add esp, 4
test eax, eax
je 0x40b67f
push edi
push 0x495ab8
lea ecx, [esp + 0xc]
call fcn.0043606e
mov edx, dword [esp + 8]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x18], ecx
mov word [esp + 0x50], 5
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x40b67f
lea eax, [esp + 8]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b67f
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
cmp dword [esp + 0x6c], 0xffffffff
jne 0x40b67f
lea ecx, [esp + 4]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
lea ecx, [esp + 4]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x40b6b0
Capabilities:
Check if file exists

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b6c6
pop edi
pop ecx
ret 4
push ebx
push ebp
push esi
xor esi, esi
push esi
push 0x40000080
push 3
push esi
push 3
push 0x100081
push str..360SelfProtection
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40b7e5
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ebp, [eax + eax + 0xa]
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b7e5
mov eax, ebp
shr eax, 1
cmp eax, 0x7fffffff
ja 0x40b7b4
test eax, eax
mov esi, eax
mov ecx, ebx
je 0x40b754
mov edi, str.___
sub edi, ebx
mov dx, word [edi + ecx]
test dx, dx
je 0x40b744
mov word [ecx], dx
add ecx, 2
dec esi
jne 0x40b730
jmp 0x40b748
test esi, esi
jne 0x40b74b
sub ecx, 2
mov edi, dword [esp + 0x18]
mov word [ecx], 0
cmp eax, 0x7fffffff
ja 0x40b7b4
test eax, eax
mov edx, eax
mov ecx, ebx
je 0x40b7b4
cmp word [ecx], 0
je 0x40b771
add ecx, 2
dec edx
jne 0x40b763
jmp 0x40b7b4
test edx, edx
je 0x40b7b4
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40b783
mov ecx, eax
sub ecx, edx
jmp 0x40b787
mov ecx, dword [esp + 0x18]
sub eax, ecx
mov esi, eax
lea eax, [ebx + ecx*2]
je 0x40b7b4
mov edx, edi
sub edx, eax
mov cx, word [edx + eax]
test cx, cx
je 0x40b7a8
mov word [eax], cx
add eax, 2
dec esi
jne 0x40b794
jmp 0x40b7ac
test esi, esi
jne 0x40b7af
sub eax, 2
mov word [eax], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0
push edx
push 0
push 0
push ebp
push ebx
push 0x222008
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret 4

Function at 0x40b800
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48b898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea eax, [esp + 8]
push 0
push eax
call fcn.004020b0
add esp, 8
push 0x495ae4
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x20], 0
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40b8c0
Capabilities:
Print debug messages
Read .ini file

Disassembly:
sub esp, 0x20c
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
mov dword [esp + 4], 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0041b340
add esp, 8
lea edx, [esp + 8]
push str.safemonparam.ini
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 8]
push ecx
push 0
push str.ProtectSelf
push str.param
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x20c
ret

Function at 0x40ba70
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48b8e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp]
mov dword [esp + 0x10], 0
push eax
call fcn.0041e3a0
add esp, 4
test eax, eax
je 0x40bb0a
lea ecx, [esp]
push esi
push ecx
lea ecx, [esp + 0xc]
call fcn.00436032
push str.deepscanBFSDRV.sys
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.0043606e
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40bb30
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b908
push eax
mov dword fs:[0], esp
sub esp, 0xc
call fcn.0040ba70
test eax, eax
je 0x40bb62
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea eax, [esp + 8]
push 0
push eax
call fcn.004020b0
add esp, 8
push str.BREGDRV.sys
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 0x20], 0
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bbc8
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push esi
lea ecx, [esp + 8]
call fcn.00444430
lea ecx, [esp + 8]
mov byte [esp + 0x18], 3
call fcn.00414d10
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 2
call fcn.00440c10
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40bc3c
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b967
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
mov esi, ecx
push str._wizard
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor ebx, ebx
cmp eax, ebx
je 0x40bde8
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0xc]
push str.IDS_WIZARD_CAPTION
push eax
mov dword [esp + 0xb8], ebx
call fcn.00436c30
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xb4], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0xb0], bl
call sub.MFC42u.DLL_CString::CString
push ebx
lea ecx, [esp + 0xc]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041bf90
lea edx, [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0xb0], 2
mov dword [esi + 0x20], edx
call sub.MFC42u.DLL_CDialog::DoModal
test eax, eax
je 0x40bd7d
lea ecx, [esp + 0x10]
call fcn.0041c6b0
test eax, eax
je 0x40bd7d
lea ecx, [esp + 0x10]
call fcn.0041c810
test eax, eax
je 0x40bcf6
push ebx
mov ecx, esi
call fcn.0040ce90
mov eax, dword [esp + 0x8c]
mov byte [esp + 0xb0], 4
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0xb0], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xb0], bl
call fcn.00435f7e
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
mov ecx, dword [esp + 0x8c]
mov byte [esp + 0xb0], 6
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0xb0], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xb0], bl
call fcn.00435f7e
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xa8]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x40ce90
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48bc00
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
push esi
push edi
mov edi, ecx
jne 0x40cf85
lea eax, [esp + 8]
push eax
call fcn.0040cad0
add esp, 4
mov esi, eax
mov eax, dword [esi]
mov dword [esp + 0x18], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40cf0f
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40cf0f
lea ecx, [esp + 0x20]
push ecx
call fcn.0040cd60
mov eax, dword [eax]
mov esi, dword [esi]
add esp, 4
push eax
push esi
push str.Path
push str.SectionPath
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0040d050
add esp, 4
mov ecx, edi
call fcn.0040c500
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.0040d130
add esp, 4
mov ecx, edi
call fcn.0040c500
call fcn.0041e500
test eax, eax
jne 0x40d02f
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
call fcn.0040d0c0
add esp, 4
mov ecx, edi
call fcn.0040c500
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x14
ret 4
mov ecx, edi
call fcn.0040c7c0
lea edx, [esp + 0x20]
push edx
call fcn.0040d050
push eax
mov dword [esp + 0x20], 1
call fcn.0040b280
or esi, 0xffffffff
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x20]
push eax
call fcn.0040d130
push eax
mov dword [esp + 0x20], 2
call fcn.0040b280
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call sub.MFC42u.DLL_CString::CString
call fcn.0041e500
test eax, eax
jne 0x40d010
lea ecx, [esp + 0x20]
push ecx
call fcn.0040d0c0
push eax
mov dword [esp + 0x20], 3
call fcn.0040b280
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0xc]
push edx
call fcn.0040cd60
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x40d820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp + 4]
push ebp
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServices360SelfProtection
push reloc.OLEAUT32.dll_SysReAllocString
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d956
mov cx, word [0x4b99c0]
push ebx
push esi
push edi
mov word [esp + 0x1c], cx
mov ecx, 0x81
lea edi, [esp + 0x1e]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
mov ebx, 0x208
push str.RULE_360SD
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x40d8a2
xor ebp, ebp
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push str.ImagePath
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x40d8d6
xor ebp, ebp
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x40d90a
xor ebp, ebp
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.TextOutCache
push edx
mov dword [esp + 0x28], ebx
call esi
pop edi
pop esi
test eax, eax
pop ebx
je 0x40d941
xor ebp, ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
add esp, 0x214
ret
xor eax, eax
pop ebp
add esp, 0x214
ret
Function at 0x40d960
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48bd7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebp
xor ebp, ebp
lea eax, [esp + 4]
push ebp
push eax
mov dword [esp + 0x10], 1
call fcn.004020b0
add esp, 8
push str.360sdu.dat
lea ecx, [esp + 8]
mov dword [esp + 0x428], ebp
call fcn.0043606e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d9bc
mov dword [esp + 8], ebp
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp word [eax], bp
je 0x40d9fb
add eax, 2
dec ecx
jne 0x40d9ee
jmp 0x40da46
cmp ecx, ebp
je 0x40da46
lea eax, [esp + 0x10]
test eax, eax
je 0x40da10
mov eax, 0x104
sub eax, ecx
jmp 0x40da14
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax*2 + 0x18]
je 0x40da46
mov esi, str.drivers360SelfProtection.sys
sub esi, eax
mov cx, word [esi + eax]
cmp cx, bp
je 0x40da3c
mov word [eax], cx
add eax, 2
dec edx
jne 0x40da28
jmp 0x40da40
cmp edx, ebp
jne 0x40da43
sub eax, 2
mov word [eax], bp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40da59
mov dword [esp + 0x14], ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x220]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov ecx, 0x104
lea eax, [esp + 0x220]
cmp word [eax], bp
je 0x40da9b
add eax, 2
dec ecx
jne 0x40da8e
jmp 0x40dae9
cmp ecx, ebp
je 0x40dae9
lea eax, [esp + 0x10]
test eax, eax
je 0x40dab0
mov eax, 0x104
sub eax, ecx
jmp 0x40dab4
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax*2 + 0x220]
je 0x40dae9
mov esi, str.driversHookport.sys
sub esi, eax
mov cx, word [esi + eax]
cmp cx, bp
je 0x40dadf
mov word [eax], cx
add eax, 2
dec edx
jne 0x40dacb
jmp 0x40dae3
cmp edx, ebp
jne 0x40dae6
sub eax, 2
mov word [eax], bp
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40db02
mov dword [esp + 8], ebp
lea ecx, [esp + 4]
mov dword [esp + 0x424], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x41c]
mov eax, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x40ee70
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x48c0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
mov dword [esp + 0x2c], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x84000000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push 0x400
mov ebx, eax
call sub.MFC42u.DLL_operatornew
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0xc], 0
push ecx
push 0x400
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
test esi, esi
je 0x40ef01
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x411e60
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [sym.imp.MSVCRT.dll_rand]
mov word [esp + 4], 0x32
mov word [esp + 6], 0x33
mov word [esp + 8], 0x34
mov word [esp + 0xa], 0x35
mov word [esp + 0xc], 0x36
mov word [esp + 0xe], 0x37
mov word [esp + 0x10], 0x38
mov word [esp + 0x12], 0x39
mov word [esp + 0x14], 0x41
mov word [esp + 0x16], 0x42
mov word [esp + 0x18], 0x43
mov word [esp + 0x1a], 0x44
mov word [esp + 0x1c], 0x45
mov word [esp + 0x1e], 0x46
mov word [esp + 0x20], 0x47
mov word [esp + 0x22], 0x48
mov word [esp + 0x24], 0x4a
mov word [esp + 0x26], 0x4b
mov word [esp + 0x28], 0x4c
mov word [esp + 0x2a], 0x4d
mov word [esp + 0x2c], 0x4e
mov word [esp + 0x2e], 0x50
mov word [esp + 0x30], 0x51
mov word [esp + 0x32], 0x52
mov word [esp + 0x34], 0x53
mov word [esp + 0x36], 0x54
mov word [esp + 0x38], 0x55
mov word [esp + 0x3a], 0x56
mov word [esp + 0x3c], 0x57
mov word [esp + 0x3e], 0x58
mov word [esp + 0x40], 0x59
mov word [esp + 0x42], 0x5a
or edx, 0xffffffff
test edx, edx
jl 0x411f56
cmp edx, 0x20
jl 0x411f72
call esi
mov ecx, eax
mov eax, 0x80010003
shl ecx, 5
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x411f4d
mov ax, word [esp + edx*2 + 4]
pop esi
add esp, 0x40
ret