joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e570
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push edi
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x40e5f0
cmp dword [esp + 0x10], 2
je 0x40e5ac
xor eax, eax
add esp, 0x11c
ret
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x40e5c4
mov eax, dword [esp + 8]
test eax, eax
jne 0x40e5ee
add esp, 0x11c
ret
cmp eax, 5
jne 0x40e5db
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x40e5fc
xor eax, eax
add esp, 0x11c
ret
cmp eax, 6
ja 0x40e60b
cmp eax, 5
jae 0x40e5f0
xor eax, eax
add esp, 0x11c
ret
ja 0x40e60b
mov eax, 1
add esp, 0x11c
ret
test eax, eax
jne 0x40e5f0
cmp word [esp + 0x114], 4
jae 0x40e5f0
xor eax, eax
add esp, 0x11c
ret

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

Disassembly:
sub esp, 0x628
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, 0x42dd30
mov eax, dword [esi]
lea ecx, [esp + 0x220]
push eax
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push ecx
call fcn.00406540
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x428]
lea ecx, [esp + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x22c]
push str.ImagePath
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], 0x208
call edi
test eax, eax
jne 0x40e6de
lea eax, [esp + 0x18]
push 0x104
lea ecx, [esp + 0x42c]
push eax
push ecx
call fcn.004062e0
add esp, 0xc
test eax, eax
je 0x40e6de
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e6de
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00404ef0
add esp, 0xc
test eax, eax
je 0x40e6de
mov eax, dword [esp + 0x10]
shr eax, 0x10
cmp eax, 0xc
je 0x40e6f8
add esi, 4
cmp esi, 0x42dd38
jb 0x40e633
pop edi
xor eax, eax
pop esi
add esp, 0x628
ret
pop edi
mov eax, 1
pop esi
add esp, 0x628
ret
Function at 0x40e710
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
push esi
call fcn.0040e570
test eax, eax
jne 0x40e72d
mov eax, 2
pop esi
add esp, 0x210
ret
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0xc]
push str.Drivers_safeboxkrnl.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e76e
lea eax, [esp + 0xc]
push eax
push str.SafeBoxKrnl
call fcn.0040e850
add esp, 8
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
push str..360SafeBox
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e7bb
mov ecx, dword [esp + 0x218]
lea edx, [esp + 0xc]
push ecx
push edx
push str.SafeBoxKrnl
call fcn.00406200
add esp, 0xc
test eax, eax
je 0x40e834
xor eax, eax
pop esi
add esp, 0x210
ret
push edi
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
push 0
push 0
push 0x45af209c
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x40e809
cmp dword [esp + 4], 1
jb 0x40e809
xor eax, eax
pop esi
add esp, 0x210
ret
mov edx, dword [esp + 0x218]
lea eax, [esp + 0xc]
push edx
push eax
push str.SafeBoxKrnl
call fcn.00406200
add esp, 0xc
test eax, eax
je 0x40e834
mov eax, 3
pop esi
add esp, 0x210
ret
mov eax, dword [0x42f1d0]
pop esi
or al, 0x10
mov dword [0x42f1d0], eax
mov eax, 1
add esp, 0x210
ret
Function at 0x40e850
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x624
test eax, eax
push esi
je 0x40e9a4
mov esi, dword [esp + 0x630]
test esi, esi
je 0x40e9a4
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x220]
push 0x104
push eax
call fcn.00406540
add esp, 0x10
lea ecx, [esp + 0x10]
push esi
push str.___s
push 0x208
push ecx
call fcn.004025c0
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x218]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e9ac
mov esi, dword [esp + 0xc]
mov dword [esp + 4], eax
lea edx, [esp + 8]
push edi
lea eax, [esp + 0x424]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.ImagePath
push esi
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e939
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e939
lea edx, [esp + 0x14]
lea eax, [esp + 0x424]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40e96a
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
lea eax, [esp + 0x14]
push edx
push eax
push 2
push 0
push str.ImagePath
push esi
call edi
test eax, eax
je 0x40e96a
mov eax, dword [0x42f1d0]
or al, 8
mov dword [0x42f1d0], eax
push str.DeleteFlag
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
push str.Start
push esi
mov dword [esp + 0x20], 1
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test esi, esi
pop edi
je 0x40e9a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x624
ret
mov eax, dword [0x42f1d0]
pop esi
or al, 4
mov dword [0x42f1d0], eax
add esp, 0x624
ret
Function at 0x40e9f0
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
sub esp, 0x418
mov ecx, 0x82
xor eax, eax
push esi
push edi
lea edi, [esp + 0x10]
push str.safemon_safeboxkrnl.sys
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
push 0x208
push eax
call fcn.00405320
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea ecx, [esp + 0x218]
push ecx
call esi
test eax, eax
jne 0x40ea58
mov eax, dword [0x42f1d0]
pop edi
or al, 2
pop esi
mov dword [0x42f1d0], eax
xor eax, eax
add esp, 0x418
ret
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x10]
push str.Drivers_safeboxkrnl.sys
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x10]
push ecx
call esi
xor esi, esi
test eax, eax
je 0x40eafb
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.00404ef0
add esp, 0xc
test eax, eax
je 0x40eaed
mov eax, dword [esp + 8]
mov edi, 0x20003
cmp eax, edi
jae 0x40eaed
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x21c]
push eax
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.00404ef0
add esp, 0xc
test eax, eax
je 0x40eaed
cmp dword [esp + 8], edi
jae 0x40eafb
mov eax, dword [0x42f1d0]
or al, 2
mov dword [0x42f1d0], eax
pop edi
mov eax, 1
pop esi
add esp, 0x418
ret
lea edx, [esp + 0x10]
push esi
lea eax, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40eaed
mov eax, dword [0x42f1d0]
pop edi
or al, 1
pop esi
mov dword [0x42f1d0], eax
xor eax, eax
add esp, 0x418
ret

Function at 0x40ec40
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
call fcn.0040e570
test eax, eax
je 0x40ec90
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp]
push str.Drivers_safeboxkrnl.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ec90
lea eax, [esp]
push eax
push str.SafeBoxKrnl
call fcn.0040e850
add esp, 8
add esp, 0x208
ret

Function at 0x40f1f0
Capabilities:
Parse url

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
cmp esi, edx
je 0x40f240
mov eax, dword [esp + 0xc]
cmp eax, edx
je 0x40f240
push eax
push edx
mov ecx, 1
push edx
push esi
mov dword [eax], 0x3c
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x34], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x40f250
Capabilities:
Check http status code

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
lea edi, [ebx + 0x220]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push edi
push 0x13
push esi
mov ecx, ebx
call fcn.0040f1b0
test eax, eax
je 0x40f2e2
mov eax, dword [edi]
cmp eax, 0xc8
je 0x40f308
cmp eax, 0x197
jne 0x40f2e2
call ebp
push 0
push 7
push 0x2eee
push esi
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
test eax, eax
je 0x40f2ee
cmp eax, 0x4c7
je 0x40f2d8
cmp eax, 0x2f00
jne 0x40f2e2
mov eax, dword [ebx + 0x21c]
test eax, eax
jne 0x40f2e2
jmp 0x40f279
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov dword [edi], 0xc8
pop edi
mov dword [esp + 0xc], 1
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x40f580
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
mov ecx, dword [esp + 0x41c]
push edi
push eax
push 5
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0040f1b0
test eax, eax
je 0x40f5b7
mov dword [esp + 0x10], 1
push 4
mov ecx, esi
call fcn.0040f680
mov eax, dword [esi + 0x21c]
xor ebx, ebx
cmp eax, edi
jne 0x40f657
push ebp
mov ebp, dword [esp + 0x428]
mov ecx, dword [esp + 0x424]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push 0x400
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40f656
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f656
cmp ebp, 0xffffffff
je 0x40f61e
lea edx, [esp + 0x1c]
push 0
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, ebx
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x40f63d
mov edx, dword [esp + 0x10]
push 5
push edx
push edi
mov ecx, esi
call fcn.0040f6b0
mov eax, dword [esp + 0x14]
inc ebx
test eax, eax
je 0x40f64c
cmp edi, dword [esp + 0x10]
jae 0x40f656
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x40f5d8
pop ebp
push 6
mov ecx, esi
call fcn.0040f680
mov ecx, dword [esi + 0x21c]
xor eax, eax
test ecx, ecx
pop edi
pop esi
sete al
pop ebx
add esp, 0x410
ret 8
Function at 0x4113c0
Capabilities:
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x423d8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x42707c
mov dword [esp + 0x10], 0x17
call fcn.004119b0
lea ecx, [esi + 0x84]
mov byte [esp + 0x10], 0x16
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 0x15
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 0x14
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 0x13
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0x11
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 0x10
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 0xf
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0xe
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xd
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0xb
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411580
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
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [esp]
neg eax
sbb eax, eax
not eax
and eax, ecx
add esp, 0xc
ret
Function at 0x411680
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
mov eax, dword [esp + 0xc]
push 4
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x411f60
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [ecx + 0x6c], edx
lea edx, [esp + 4]
push edx
push 0
push ecx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
push 0x411ef0
push 0
push 0
mov dword [ecx + 0x70], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret 0xc
Function at 0x412220
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423e11
push eax
mov dword fs:[0], esp
sub esp, 0x434
push edi
mov edi, ecx
call fcn.00405520
test eax, eax
je 0x4123ac
push ebx
push ebp
mov ebp, dword [esp + 0x450]
push esi
lea esi, [edi + 0x78]
push ebp
mov ecx, esi
xor ebx, ebx
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
push str._s.tmp
push ecx
mov dword [esp + 0x458], ebx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov byte [esp + 0x450], 1
call fcn.00411fa0
lea ecx, [esp + 0x220]
call fcn.0040f0f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x228]
mov byte [esp + 0x454], 2
call fcn.0040f320
test eax, eax
je 0x412363
mov edx, ebp
lea ecx, [esp + 0x18]
mov esi, 0x104
lea eax, [esp + 0x18]
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x412306
mov word [eax], cx
add eax, 2
dec esi
jne 0x4122f2
jmp 0x41230a
test esi, esi
jne 0x41230d
sub eax, 2
lea edx, [esp + 0x18]
mov word [eax], 0
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x412363
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
je 0x412363
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412363
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00402310
add esp, 8
test eax, eax
je 0x412363
push ebp
call esi
test eax, eax
je 0x412363
mov ebx, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x220]
mov byte [esp + 0x44c], 1
call fcn.0040f140
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x44c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
pop edi
mov dword fs:[0], ecx
add esp, 0x440
ret 8
Function at 0x412d30
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x82c
mov ax, word [0x42f1ac]
push ebp
push esi
mov ebp, ecx
push edi
mov word [esp + 0x428], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42a]
push str.LibUp.ini
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x42c]
push 0x208
push ecx
stosw word es:[edi], ax
call fcn.00405320
mov dx, word [0x42d03c]
add esp, 0xc
lea ecx, [esp + 0xc]
push 1
push edx
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0xc]
push str.http:__update.360safe.com_safe_urlini.cab
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x412dfa
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x630]
lea edx, [esp + 0x630]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x428]
push ecx
push 0x104
push edx
push eax
push str.urlver
push str.360safe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x630]
lea ecx, [ebp + 0x24]
push eax
call sub.MFC42u.DLL_CString::operator_2
pop edi
pop esi
pop ebp
add esp, 0x82c
ret
mov dx, word [0x42f1ac]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
mov word [esp + 0x220], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
mov esi, 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x42c]
lea edx, [esp + 0x1c]
push ecx
push esi
push edx
push eax
push str.libver2
push str.360safe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ebx, [ebp + 0x20]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_2
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x224]
lea edx, [esp + 0x224]
rep stosd dword es:[edi], eax
mov ecx, str.1.0.0.1001
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
lea eax, [esp + 0x224]
sub ecx, edx
mov dx, word [ecx + eax]
test dx, dx
je 0x412eb5
mov word [eax], dx
add eax, 2
dec esi
jne 0x412ea1
jmp 0x412eb9
test esi, esi
jne 0x412ebc
sub eax, 2
mov word [eax], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x224]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push str.libver
push str.Software360SafeLiveUp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x224]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jl 0x412f11
lea edx, [esp + 0x224]
mov ecx, ebx
push edx
call sub.MFC42u.DLL_CString::operator_2
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
push str.360safe.exe
rep stosd dword es:[edi], eax
lea eax, [esp + 0x430]
push 0x208
push eax
call fcn.00405320
lea ecx, [esp + 0x28]
push 0x208
lea edx, [esp + 0x43c]
push ecx
push edx
call fcn.00404e00
add esp, 0x18
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x1c]
push eax
call sub.MFC42u.DLL_CString::operator_2
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x82c
ret
Function at 0x413210
Capabilities:
Delete file
Delete registry value

Disassembly:
sub esp, 0x208
push edi
push str.360safeup.exe
push str.Software360safeUpdate
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ax, word [0x42f1ac]
mov ecx, 0x81
mov word [esp + 4], ax
xor eax, eax
lea edi, [esp + 6]
push str.360safeup.exe
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x208
push ecx
stosw word es:[edi], ax
call fcn.00405320
add esp, 0xc
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
add esp, 0x208
ret

Function at 0x41332e
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x828
mov dx, word [0x42f1ac]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], dx
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x62c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62e]
mov edx, str.1.0.0.1001
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0x104
mov edi, 0x104
lea eax, [esp + 0x14]
sub edx, ecx
mov cx, word [edx + eax]
test cx, cx
je 0x4133bf
mov word [eax], cx
add eax, 2
dec edi
jne 0x4133ab
jmp 0x4133c3
test edi, edi
jne 0x4133c6
sub eax, 2
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov word [eax], 0
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push str.libver
push str.Software360SafeLiveUp
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
lea edx, [esp + 0x14]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator_2
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x424]
push str.360safe.exe
rep stosd dword es:[edi], eax
lea eax, [esp + 0x630]
push 0x208
push eax
call fcn.00405320
lea ecx, [esp + 0x430]
push 0x208
lea edx, [esp + 0x63c]
push ecx
push edx
call fcn.00404e00
add esp, 0x18
lea eax, [esp + 0x424]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov cx, word [0x42f1ac]
xor eax, eax
mov word [esp + 0x21c], cx
mov ecx, 0x81
lea edi, [esp + 0x21e]
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, str.1.0.0.1001
mov edi, 0x104
lea eax, [esp + 0x21c]
sub ecx, edx
mov dx, word [ecx + eax]
test dx, dx
je 0x4134b1
mov word [eax], dx
add eax, 2
dec edi
jne 0x41349d
jmp 0x4134b5
test edi, edi
jne 0x4134b8
sub eax, 2
mov word [eax], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x21c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push str.urlver
push str.Software360SafeLiveUp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call ebx
lea eax, [esp + 0x21c]
lea ecx, [esi + 0x18]
push eax
call sub.MFC42u.DLL_CString::operator_2
pop edi
pop esi
pop ebx
add esp, 0x828
ret