joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aaa69
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4aaaa1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a8b20
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a8af8
jmp 0x4aaaad
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ac15b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ac19d
call fcn.004b2101
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ac19d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ac194
xor eax, eax
jmp 0x4ac1a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ac1ab
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b2631
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b265f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b267d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b2597
jmp 0x4b267d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b267d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b2597
test edi, edi
mov eax, edi
jne 0x4b2667
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401460
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esp + 8]
test eax, eax
mov dword [ecx], eax
je 0x40148c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40148c
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401530
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x904
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
test eax, eax
je 0x4015f3
mov ecx, str.PromptConfig.ini
mov byte [esp + 4], 0
test ecx, ecx
je 0x4015f3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x108]
push str.PromptConfig.ini
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x4015db
lea edx, [esp + 0x108]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x108]
push str.PromptConfig.ini
lea edx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x108]
push 0x104
lea ecx, [esp + 8]
push eax
push ecx
jmp 0x4015ea
push 0x104
lea edx, [esp + 8]
push str.PromptConfig.ini
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [esp + 4]
push eax
push 2
push str.PromptType
push str.360Shadu
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 3
pop edi
jb 0x401615
mov eax, 2
add esp, 0x904
ret
Function at 0x402960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x42f810]
push ebx
push esi
push edi
test eax, eax
je 0x402983
mov ecx, dword [0x42f814]
test ecx, ecx
jne 0x402aed
lea eax, [ebp - 0x400]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x400]
push ecx
call edi
mov eax, dword [0x42f818]
xor esi, esi
test eax, eax
jle 0x4029c4
lea edx, [ebp - 0x400]
push edx
call edi
mov eax, dword [0x42f818]
inc esi
cmp esi, eax
jl 0x4029b1
lea eax, [ebp - 0x400]
push str.MiniUI.dll
lea ecx, [ebp - 0x400]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x400]
test edx, edx
je 0x402a8c
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402a90
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x400]
push ecx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x400]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x402a90
lea eax, [ebp - 0x400]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x400]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
xor eax, eax
jmp 0x402a9d
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f814], eax
jne 0x402ab3
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x42f810], eax
jne 0x402aed
mov eax, dword [0x42f814]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x42f814], 0
xor eax, eax
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call eax
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x42f808]
push ebx
push esi
push edi
test eax, eax
jne 0x402c49
lea eax, [ebp - 0x400]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x400]
push ecx
call edi
mov eax, dword [0x42f80c]
xor esi, esi
test eax, eax
jle 0x402b5a
lea edx, [ebp - 0x400]
push edx
call edi
mov eax, dword [0x42f80c]
inc esi
cmp esi, eax
jl 0x402b47
lea eax, [ebp - 0x400]
push str.360Common.dll
lea ecx, [ebp - 0x400]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x400]
test edx, edx
je 0x402c22
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402c26
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x400]
push ecx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x400]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x402c26
lea eax, [ebp - 0x400]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x400]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
xor eax, eax
jmp 0x402c33
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f808], eax
jne 0x402c49
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov dword [0x42f804], eax
mov eax, dword [0x42f808]
push str.Get360ProductHistoryManager
push eax
call esi
mov ecx, dword [0x42f808]
push str.Create360FireWareStateFunction
push ecx
mov dword [0x42f800], eax
call esi
lea esp, [ebp - 0x40c]
mov dword [0x42f7fc], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x42f810]
push ebx
push esi
push edi
test eax, eax
je 0x4045a3
mov ecx, dword [0x42f814]
test ecx, ecx
jne 0x404705
lea eax, [ebp - 0x400]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x400]
push ecx
call edi
mov eax, dword [0x42f818]
xor esi, esi
test eax, eax
jle 0x4045e4
lea edx, [ebp - 0x400]
push edx
call edi
mov eax, dword [0x42f818]
inc esi
cmp esi, eax
jl 0x4045d1
lea eax, [ebp - 0x400]
push str.MiniUI.dll
lea ecx, [ebp - 0x400]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x400]
test edx, edx
je 0x4046ac
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4046b0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x400]
push ecx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x400]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x4046b0
lea eax, [ebp - 0x400]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x400]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
xor eax, eax
jmp 0x4046bd
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f814], eax
je 0x4046f1
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x42f810], eax
jne 0x404705
mov eax, dword [0x42f814]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x42f814], 0
mov eax, 2
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call eax
test eax, eax
je 0x4046f1
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
push eax
call dword [ecx + 0x38]
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x42f804]
push ebx
push esi
push edi
test eax, eax
jne 0x4048c7
mov eax, dword [0x42f808]
test eax, eax
jne 0x404879
lea eax, [ebp - 0x400]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x400]
push ecx
call edi
mov eax, dword [0x42f80c]
xor esi, esi
test eax, eax
jle 0x404797
lea edx, [ebp - 0x400]
push edx
call edi
mov eax, dword [0x42f80c]
inc esi
cmp esi, eax
jl 0x404784
lea eax, [ebp - 0x400]
push str.360Common.dll
lea ecx, [ebp - 0x400]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x400]
test edx, edx
je 0x40485f
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404863
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x400]
push ecx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x400]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x404863
lea eax, [ebp - 0x400]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x400]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
xor eax, eax
jmp 0x404870
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f808], eax
je 0x4048b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360CommonInstance
push eax
call esi
mov dword [0x42f804], eax
mov eax, dword [0x42f808]
push str.Get360ProductHistoryManager
push eax
call esi
mov ecx, dword [0x42f808]
push str.Create360FireWareStateFunction
push ecx
mov dword [0x42f800], eax
call esi
mov dword [0x42f7fc], eax
mov eax, dword [0x42f804]
test eax, eax
jne 0x4048c7
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call eax
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x405867
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4058f6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x4058f6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov ebx, esp
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push ebx
call fcn.00420d80
add esp, 8
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40db50
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], 0
mov ebx, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x208]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40dbb7
mov byte [eax + 1], 0
test ebx, ebx
je 0x40dc96
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40dc96
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420e60
add esp, 4
test eax, eax
je 0x40dc96
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x40dc96
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
add esp, 8
mov eax, 1
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x208]
push 5
push edx
push eax
push ebx
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esp, [ebp - 0x214]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dd20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x40dcd0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret 4
Function at 0x411320
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x41137c
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41137c
push 0x42d960
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
mov edi, esi
test eax, eax
jne 0x41135d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 1
push 0x42d95c
jmp 0x41136c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 1
push ebx
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x411660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
mov dword [ebp - 4], ebx
test eax, eax
je 0x411844
mov ecx, str.Modules360cav.dll
mov byte [ebp - 0x108], bl
test ecx, ecx
je 0x411749
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0xa0c]
push str.Modules360cav.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41172f
lea edx, [ebp - 0xa0c]
push 0x800
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0xa0c]
push str.Modules360cav.dll
lea edx, [ebp - 0xa0c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0xa0c]
push 0x104
lea ecx, [ebp - 0x108]
push eax
push ecx
jmp 0x411740
push 0x104
lea edx, [ebp - 0x108]
push str.Modules360cav.dll
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4117ff
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x108]
push ecx
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea edx, [ebp - 0x108]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00420f30
add esp, 4
test eax, eax
jne 0x4117fc
lea eax, [ebp - 0x108]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.00420d70
push eax
push edi
call fcn.00420d80
mov eax, dword [ebp - 4]
add esp, 8
lea esp, [ebp - 0xa18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x411844
push str.CHeckExistAntiVirusA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41183d
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
call eax
mov dword [ebp - 4], eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0xa18]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411b20
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
sub esp, 0xf14
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push 0x208
push eax
push str.7A113666_6FED_4AC9_891C_D74E6BBCD6B0
xor esi, esi
mov dword [esp + 0x1c], ebx
call fcn.004203b0
lea ecx, [esp + 0x124]
add esp, 0xc
test ecx, ecx
je 0x411d14
lea edx, [esp + 0x320]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x320]
test edx, edx
rep stosd dword es:[edi], eax
je 0x411d14
mov ecx, 0x200
lea edi, [esp + 0x720]
mov byte [esp + 0x320], al
rep stosd dword es:[edi], eax
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x411c11
lea ecx, [esp + 0x720]
push 0x800
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x720]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x118]
lea ecx, [esp + 0x720]
push eax
lea edx, [esp + 0x724]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x720]
push 0x400
lea ecx, [esp + 0x324]
push eax
push ecx
jmp 0x411c26
lea edx, [esp + 0x118]
push 0x400
lea eax, [esp + 0x324]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea ecx, [esp + 0x320]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, esi
je 0x411d14
lea edx, [esp + 0xc]
mov dword [esp + 0xc], esi
push edx
push str.SoftWareBitDefender
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0xc]
cmp edx, esi
je 0x411d14
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push esi
push edx
call ebp
test eax, eax
jne 0x411cdd
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
push 3
lea ecx, [esp + 0x1c]
push 0x42d9a8
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x411cd1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
inc esi
push 0x104
push edx
push esi
push eax
call ebp
test eax, eax
je 0x411c96
jmp 0x411cd9
mov dword [esp + 0x14], 1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebp
je 0x411d14
mov eax, dword [esp + 0xf24]
test eax, eax
je 0x411d14
mov edx, dword [esp + 0xf28]
mov byte [eax], 0
push edx
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0041fe60
add esp, 0xc
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xf14
ret 8
Function at 0x411d30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push 0x42f83c
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
mov eax, 1
je 0x411d8e
mov eax, esi
pop edi
pop esi
add esp, 0x408
ret