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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ebe4c]
test eax, eax
jl 0x401053
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [ebp - 0x120]
push edx
mov dword [0x4ebe4c], 0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
call fcn.004982c0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x4010df
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x40112e
push str.GetNativeSystemInfo
push 0x4c5a20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40112e
lea edx, [ebp - 0x144]
push edx
call eax
mov eax, dword [ebp - 0x144]
cmp ax, 9
je 0x401115
cmp ax, 6
jne 0x40112e
mov eax, 1
mov dword [0x4ebe4c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x401410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b75cb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00425a60
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00425a60
add eax, 0x10
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x40147a
xor edi, edi
jmp 0x40148a
neg edi
sbb edi, edi
and edi, 0xffffff00
add edi, 0x200
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [esi + 0xc], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401880
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4019c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp ecx, esi
je 0x401a1b
push 0x20019
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0xc]
call fcn.00425330
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x401a1b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a1b
cmp dword [ebp - 8], 4
jne 0x401a1b
mov bl, 1
jmp 0x401a1d
xor bl, bl
test esi, esi
je 0x401a28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d4a
mov esi, dword [ebp - 4]
push eax
push eax
push 3
push eax
push str.MPChangeFromWhite
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x401d4a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4025e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00406670
test al, al
jne 0x402622
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402617
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x40264c
cmp eax, 0xffffffff
je 0x40264c
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.Codepage
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x402672
test ebx, ebx
je 0x402672
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x10]
cmp dword [ebx - 0xc], 0
je 0x40269b
test ebx, ebx
je 0x40269b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
cmp dword [ebx - 0xc], 0
je 0x4026c4
test ebx, ebx
je 0x4026c4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x18]
cmp dword [ebx - 0xc], 0
je 0x4026ed
test ebx, ebx
je 0x4026ed
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x402712
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.ShowSearchSuggestions
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x402738
test ebx, ebx
je 0x402738
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x24]
cmp dword [ebx - 0xc], 0
je 0x402761
test ebx, ebx
je 0x402761
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push 0x4c593c
push esi
call edi
test esi, esi
je 0x40276c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov eax, 0x100
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00406670
test al, al
jne 0x402ab6
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x402aad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x402ae0
cmp eax, 0xffffffff
je 0x402ae0
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.Codepage
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x402b06
test ebx, ebx
je 0x402b06
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
cmp dword [ebx - 0xc], 0
je 0x402b2f
test ebx, ebx
je 0x402b2f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x14]
cmp dword [ebx - 0xc], 0
je 0x402b58
test ebx, ebx
je 0x402b58
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x18]
cmp dword [ebx - 0xc], 0
je 0x402b81
test ebx, ebx
je 0x402b81
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x402ba6
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ShowSearchSuggestions
push esi
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x402bcc
test ebx, ebx
je 0x402bcc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x24]
cmp dword [ebx - 0xc], 0
je 0x402bf5
test ebx, ebx
je 0x402bf5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x4c593c
push esi
call edi
test esi, esi
je 0x402c00
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c10
Capabilities:
Delete registry key

Disassembly:
push ecx
push eax
push str.DefaultScope
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, 0x100
mov ecx, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopes
call fcn.00401b50
add esp, 0xc
test al, al
jne 0x402c36
xor al, al
pop ecx
ret
push str.SOFTWAREMicrosoftInternet_ExplorerUser_Preferences
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x402c4f
cmp eax, 2
jne 0x402c32
mov al, 1
pop ecx
ret

Function at 0x402df0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 8], 0
push edi
jne 0x402e42
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x402e42
cmp dword [esi], 0
je 0x402e42
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x402e42
test eax, eax
je 0x402e42
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x402e42
test eax, eax
je 0x402e42
push edi
push 0
push esi
push 0x402e90
push 0
push 0
call fcn.00492b82
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x402e42
cmp dword [edi], 0
je 0x402e42
mov al, 1
pop edi
ret
xor al, al
pop edi
ret
Function at 0x4034a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7550
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], 0x1388
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x40353c
call dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
call esi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x41c]
push eax
push 2
push edi
call ebx
push 4
lea ecx, [ebp - 0x41c]
push ecx
push 5
push edi
call ebx
push 4
lea edx, [ebp - 0x41c]
push edx
push 6
push edi
call ebx
push 4
lea eax, [ebp - 0x41c]
push eax
push 8
push edi
call ebx
call esi
mov ecx, dword [ebp - 0x418]
push 0
push 0x80080000
push 0
push 0
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x4035b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40351b
call esi
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 4
call esi
push 0
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x420]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
call esi
mov ecx, dword [ebp - 0x420]
add ecx, 0xffffff38
xor esi, esi
cmp ecx, 0x63
ja 0x403657
mov dword [ebp - 0x418], esi
push 0x400
lea edx, [ebp - 0x414]
push 0
push edx
call fcn.004982c0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x403657
xor eax, eax
je 0x403657
cmp dword [ebp - 0x418], eax
je 0x403657
push eax
lea edx, [ebp - 0x414]
call fcn.00411c70
cmp dword [ebp - 0x418], 0
jne 0x403600
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
test esi, esi
je 0x40351b
xor eax, eax
jmp 0x403520

Function at 0x403d50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
call fcn.00403db0
mov edi, 0x4f56a0
call fcn.00404040
pop edi
test al, al
jne 0x403d7e
xor eax, eax
pop ebp
ret 0x10
cmp byte [0x4f56ad], 0
je 0x403d9f
mov eax, dword [0x4f56c8]
mov byte [0x4f56ac], 0
cmp eax, 0xffffffff
je 0x403d9f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebp
ret 0x10
Function at 0x404040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf7b2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [edi + 0x2c], 1
jne 0x40407f
mov al, byte [edi + 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x10]
push eax
mov byte [edi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call esi
push 0x4f045e
push 0x20
mov dword [edi + 4], eax
call fcn.00493709
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4040d3
mov esi, eax
call fcn.00413b40
jmp 0x4040d5
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
push 4
push edi
push 0x4037e0
push 0
push 0
mov dword [edi], eax
mov dword [ebp - 0x10], 0
call fcn.00492b82
add esp, 0x18
mov dword [edi + 0x28], eax
cmp eax, 0xffffffff
je 0x404139
test eax, eax
je 0x404139
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x404139
test eax, eax
je 0x404139
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x404139
test eax, eax
je 0x404139
cmp dword [edi], 0
je 0x404139
mov byte [edi + 0xd], 1
mov byte [edi + 0xc], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4043a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.004982c0
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x4ce6b4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404456
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x404456
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x40444e
cmp eax, 0x103
jae 0x404456
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x40445b
mov ecx, 0x4c561c
push esi
call fcn.00425750
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x4044f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004a87d0
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2010], eax
cmp esi, ebx
je 0x4045bf
push 0x1fff
lea ecx, [ebp - 0x2003]
push ebx
push ecx
mov byte [ebp - 0x2004], bl
call fcn.004982c0
add esp, 0xc
lea edx, [ebp - 0x2014]
push edx
push esi
mov dword [ebp - 0x2014], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x4045bf
cmp eax, 0x1fff
ja 0x4045bf
lea ecx, [ebp - 0x2004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4045ae
lea edx, [ebp - 0x200c]
push edx
lea eax, [ebp - 0x2008]
push eax
push 0x4ce6b0
lea ecx, [ebp - 0x2004]
push ecx
mov dword [ebp - 0x2008], ebx
mov dword [ebp - 0x200c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4045ae
mov eax, dword [ebp - 0x2008]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x2010]
mov dword [edi], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x4045f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push str.SOFTWARE360TotalSecurityDeepScan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x404622
cmp eax, esi
je 0x40464f
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push esi
push str.DisableHRM
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404645
lea esi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp eax, str.SOFTWARE360TotalSecurityUserProfile
je 0x4051f6
push 0x20019
mov ecx, str.SOFTWARE360TotalSecurityUserProfile
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.00425330
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4051f6
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.ShowTrayIcon
push esi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4051f6
cmp dword [ebp - 0xc], 4
jne 0x4051f6
mov bl, 1
jmp 0x4051f8
xor bl, bl
test esi, esi
je 0x405203
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc678
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x4055c0
push esi
mov ecx, 0x4c561c
call fcn.00425750
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x4c6394
push eax
lea edx, [ebp + 8]
push edx
call fcn.00411960
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4055f4
push esi
mov ecx, 0x4c561c
call fcn.00425750
jmp 0x405604
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00425a60
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40562a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004982c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4061a7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
push 0x4c6444
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x406197
push str.RtlGetVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x4061f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004982c0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x406246
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x406248
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x4065b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 0x104
mov dword [ebp - 4], ecx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
jge 0x4065db
mov eax, esi
call fcn.00425920
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406643
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x40661b
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40661f
push ecx
push eax
call fcn.004938a4
add esp, 8
test eax, eax
jl 0x406639
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x406639
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00425ad0
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x406639
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
xor al, al
mov esp, ebp
pop ebp
ret 8