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

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

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

Disassembly:
push 0xffffffffffffffff
push 0x48b4e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
lea ecx, [esp]
call fcn.0041a5b0
push 0
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0
call fcn.0041a8c0
lea eax, [esp + 4]
push eax
call fcn.0040a130
mov eax, dword [eax]
push 0
push eax
mov byte [esp + 0x224], 1
call fcn.0041aae0
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 0x40ae32
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.0041a5e0
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40b350
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b56c
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 0x40b395
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.00436102
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 0x40b3c9
push 0x4b0b7c
jmp 0x40b3ce
push 0x4b00bc
lea ecx, [esp + 0x14]
call fcn.0043613e
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 0x40b4e8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x50]
push 0x4b0b78
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40b4d4
lea edx, [esp + 0x50]
push 0x4b0b84
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40b4d4
mov al, byte [esp + 0x24]
push 0x4b00b8
test al, 0x10
push esi
je 0x40b494
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.0040b350
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 0x40b4cf
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 0x40b3ff
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 0x40b640
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b5a8
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.0041e530
add esp, 4
test eax, eax
je 0x40b74f
push edi
push 0x495ae8
lea ecx, [esp + 0xc]
call fcn.0043613e
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 0x40b74f
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 0x40b74f
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 0x40b74f
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 0x40b780
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 0x40b796
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 0x40b8b5
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 0x40b8b5
mov eax, ebp
shr eax, 1
cmp eax, 0x7fffffff
ja 0x40b884
test eax, eax
mov esi, eax
mov ecx, ebx
je 0x40b824
mov edi, str.___
sub edi, ebx
mov dx, word [edi + ecx]
test dx, dx
je 0x40b814
mov word [ecx], dx
add ecx, 2
dec esi
jne 0x40b800
jmp 0x40b818
test esi, esi
jne 0x40b81b
sub ecx, 2
mov edi, dword [esp + 0x18]
mov word [ecx], 0
cmp eax, 0x7fffffff
ja 0x40b884
test eax, eax
mov edx, eax
mov ecx, ebx
je 0x40b884
cmp word [ecx], 0
je 0x40b841
add ecx, 2
dec edx
jne 0x40b833
jmp 0x40b884
test edx, edx
je 0x40b884
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40b853
mov ecx, eax
sub ecx, edx
jmp 0x40b857
mov ecx, dword [esp + 0x18]
sub eax, ecx
mov esi, eax
lea eax, [ebx + ecx*2]
je 0x40b884
mov edx, edi
sub edx, eax
mov cx, word [edx + eax]
test cx, cx
je 0x40b878
mov word [eax], cx
add eax, 2
dec esi
jne 0x40b864
jmp 0x40b87c
test esi, esi
jne 0x40b87f
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 0x40b8d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48b5c8
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.004020c0
add esp, 8
push 0x495b14
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 0x40b990
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.0041b5e0
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 0x40bb40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48b610
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.0041e530
add esp, 4
test eax, eax
je 0x40bbda
lea ecx, [esp]
push esi
push ecx
lea ecx, [esp + 0xc]
call fcn.00436102
push str.deepscanBFSDRV.sys
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.0043613e
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 0x40bc00
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b638
push eax
mov dword fs:[0], esp
sub esp, 0xc
call fcn.0040bb40
test eax, eax
je 0x40bc32
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.004020c0
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 0x40bc98
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.004747c0
lea ecx, [esp + 8]
mov byte [esp + 0x18], 3
call fcn.00415140
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 2
call fcn.00432300
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 0x40bd0c
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b6d9
push eax
mov dword fs:[0], esp
sub esp, 0xd0
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 0x40bf92
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 + 0xe8], ebx
call fcn.00436d00
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xe4], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0xe0], bl
call sub.MFC42u.DLL_CString::CString
push ebx
lea ecx, [esp + 0xc]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041c060
lea edx, [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0xe0], 2
mov dword [esi + 0x20], edx
call sub.MFC42u.DLL_CDialog::DoModal
test eax, eax
je 0x40beba
lea ecx, [esp + 0x10]
call fcn.0041c610
test eax, eax
je 0x40beba
lea ecx, [esp + 0x10]
call fcn.0041c980
test eax, eax
je 0x40bdc6
push ebx
mov ecx, esi
call fcn.0040d160
mov eax, dword [esp + 0xbc]
mov byte [esp + 0xe0], 4
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa0]
mov byte [esp + 0xe0], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
lea edx, [esp + 0x98]
neg ecx
sbb ecx, ecx
mov byte [esp + 0xe0], 5
and ecx, edx
call fcn.0043c420
mov dword [esp + 0x10], 0x495bb4
mov dword [esp + 0x70], 0x495ba8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x98]
neg ecx
sbb ecx, ecx
mov byte [esp + 0xe0], 6
and ecx, eax
call fcn.00432300
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
neg ecx
sbb ecx, ecx
mov byte [esp + 0xe0], 7
and ecx, edx
call fcn.0043b1d0
lea ecx, [esp + 0x10]
mov byte [esp + 0xe0], bl
call fcn.0043604e
lea ecx, [esp + 8]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
add esp, 0xdc
ret
mov eax, dword [esp + 0xbc]
mov byte [esp + 0xe0], 9
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa0]
mov byte [esp + 0xe0], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
lea edx, [esp + 0x98]
neg ecx
sbb ecx, ecx
mov byte [esp + 0xe0], 0xa
and ecx, edx
call fcn.0043c420
mov dword [esp + 0x10], 0x495bb4
mov dword [esp + 0x70], 0x495ba8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x98]
neg ecx
sbb ecx, ecx
mov byte [esp + 0xe0], 0xb
and ecx, eax
call fcn.00432300
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
neg ecx
sbb ecx, ecx
mov byte [esp + 0xe0], 0xc
and ecx, edx
call fcn.0043b1d0
lea ecx, [esp + 0x10]
mov byte [esp + 0xe0], bl
call fcn.0043604e
lea ecx, [esp + 8]
mov dword [esp + 0xe0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xd8]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret
Function at 0x40d160
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b9d0
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 0x40d255
lea eax, [esp + 8]
push eax
call fcn.0040cda0
add esp, 4
mov esi, eax
mov eax, dword [esi]
mov dword [esp + 0x18], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d1df
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40d1df
lea ecx, [esp + 0x20]
push ecx
call fcn.0040d030
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.0040d320
add esp, 4
mov ecx, edi
call fcn.0040c7d0
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.0040d400
add esp, 4
mov ecx, edi
call fcn.0040c7d0
call fcn.0041e690
test eax, eax
jne 0x40d2ff
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
call fcn.0040d390
add esp, 4
mov ecx, edi
call fcn.0040c7d0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x14
ret 4
mov ecx, edi
call fcn.0040ca90
lea edx, [esp + 0x20]
push edx
call fcn.0040d320
push eax
mov dword [esp + 0x20], 1
call fcn.0040b350
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.0040d400
push eax
mov dword [esp + 0x20], 2
call fcn.0040b350
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call sub.MFC42u.DLL_CString::CString
call fcn.0041e690
test eax, eax
jne 0x40d2e0
lea ecx, [esp + 0x20]
push ecx
call fcn.0040d390
push eax
mov dword [esp + 0x20], 3
call fcn.0040b350
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.0040d030
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 0x40daf0
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 0x40dc26
mov cx, word [0x4b9760]
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 0x40db72
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 0x40dba6
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 0x40dbda
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 0x40dc11
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 0x40dc30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48bb4b
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.004020c0
add esp, 8
push str.360sdu.dat
lea ecx, [esp + 8]
mov dword [esp + 0x428], ebp
call fcn.0043613e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc8c
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 0x40dccb
add eax, 2
dec ecx
jne 0x40dcbe
jmp 0x40dd16
cmp ecx, ebp
je 0x40dd16
lea eax, [esp + 0x10]
test eax, eax
je 0x40dce0
mov eax, 0x104
sub eax, ecx
jmp 0x40dce4
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax*2 + 0x18]
je 0x40dd16
mov esi, str.drivers360SelfProtection.sys
sub esi, eax
mov cx, word [esi + eax]
cmp cx, bp
je 0x40dd0c
mov word [eax], cx
add eax, 2
dec edx
jne 0x40dcf8
jmp 0x40dd10
cmp edx, ebp
jne 0x40dd13
sub eax, 2
mov word [eax], bp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd29
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 0x40dd6b
add eax, 2
dec ecx
jne 0x40dd5e
jmp 0x40ddb9
cmp ecx, ebp
je 0x40ddb9
lea eax, [esp + 0x10]
test eax, eax
je 0x40dd80
mov eax, 0x104
sub eax, ecx
jmp 0x40dd84
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax*2 + 0x220]
je 0x40ddb9
mov esi, str.driversHookport.sys
sub esi, eax
mov cx, word [esi + eax]
cmp cx, bp
je 0x40ddaf
mov word [eax], cx
add eax, 2
dec edx
jne 0x40dd9b
jmp 0x40ddb3
cmp edx, ebp
jne 0x40ddb6
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 0x40ddd2
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 0x40f140
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x48be78
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 0x40f1d1
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 0x412270
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 0x412366
cmp edx, 0x20
jl 0x412382
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 0x41235d
mov ax, word [esp + edx*2 + 4]
pop esi
add esp, 0x40
ret