joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd10
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a4f0
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x24], esi
cmp eax, ebx
jne 0x40dd71
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], ebx
je 0x40deb6
cmp dword [ecx + 4], ebx
je 0x40deb6
cmp dword [ecx + 8], ebx
je 0x40deb6
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
je 0x40de69
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40de69
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x40de69
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push str.IsNewRule_dwFileSize:__d
call fcn.00404c20
add esp, 8
cmp ebx, 0x2c
jae 0x40de08
push str.IsNewRule_dwSizeMapping_error
jmp 0x40de61
mov ecx, dword [esi + 0x1c]
push ecx
mov edx, dword [esi + 0x10]
push edx
push str.IsNewRule_dwHeaderSize__dwVersion:__d__d
call fcn.00404c20
add esp, 0xc
cmp dword [esi + 0x10], 0x2c
jne 0x40de5c
cmp dword [esi + 0x1c], 2
jne 0x40de5c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push eax
mov ecx, dword [esi + 0x14]
push ecx
push str.IsNewRule_dwCRC:__x_m_dwCrc:__x
call fcn.00404c20
add esp, 0xc
mov edx, dword [esi + 0x14]
cmp edx, dword [ebx + 0x14]
je 0x40de69
push str.IsNewRule_dwCRC_error
call fcn.00404c20
mov dword [ebp - 0x28], 1
jmp 0x40de66
push str.IsNewRule_dwHeaderSize__dwVersion_error
call fcn.00404c20
add esp, 4
mov dword [ebp - 4], 0xfffffffe
call fcn.0040de90
mov esi, dword [ebp - 0x28]
push esi
push str.IsNewRule:__d
call fcn.00404c20
add esp, 8
mov eax, esi
jmp 0x40debb
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40e070
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x40e750
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov dword [esp + 4], 0x104
test eax, eax
jne 0x40e763
add esp, 0x10
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x40e773
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push bind
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40e839
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0043e793
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x40e825
push 0
push 0
push 0
push edi
mov byte [esi + ebp], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x40e825
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e825
push 0x5c
call fcn.0043ef53
add esp, 4
test eax, eax
je 0x40e825
call fcn.0040e070
mov esi, eax
test esi, esi
je 0x40e825
mov eax, dword [esp + 0x10]
push ebp
call fcn.0040e470
mov ecx, esi
call fcn.0040e4c0
mov ebp, eax
test ebp, ebp
jne 0x40e843
call fcn.0040e720
mov ebp, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x40e839
push ebp
call fcn.0043e85d
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
xor edi, edi
cmp edi, 0x14
jge 0x40e873
movzx eax, byte [edi + ebp]
push eax
push 0x479788
push 3
push ebx
call fcn.0043ed50
mov eax, dword [esp + 0x24]
sub eax, 2
add esp, 0x10
inc edi
add ebx, 4
mov dword [esp + 0x14], eax
cmp eax, 3
jae 0x40e845
call fcn.0040e720
push ebp
call fcn.0043e85d
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
call fcn.0043e85d
add esp, 4
pop edi
mov eax, ebx
sub eax, dword [esp + 0x20]
pop esi
pop ebp
sar eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x40eac0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jle 0x40eaef
mov eax, dword [ebx + esi*4]
push eax
push esi
push str.argv__d____s
call fcn.00404c20
inc esi
add esp, 0xc
cmp esi, edi
jl 0x40ead8
call fcn.00414390
call fcn.00414300
cmp edi, 2
jne 0x40eb9b
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str._install
push ecx
call esi
test eax, eax
jne 0x40eb53
push str.installing_BkavSystemService
call fcn.00404c20
add esp, 4
call fcn.00411320
test eax, eax
jne 0x40eccf
call fcn.00411990
call fcn.00402d60
test eax, eax
je 0x40eb46
push str.Cai_dat_serivce_thanh_cong.._r_n
jmp 0x40eb4b
push str.Cai_dat_service_khong_thanh_cong.._r_n
call fcn.0043f790
add esp, 4
mov edx, dword [ebx + 4]
push str.uSysSrv
push edx
call esi
test eax, eax
jne 0x40ec3e
call fcn.0040d0a0
test eax, eax
je 0x40eb85
push str.Update_service_successful
call fcn.00404c20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Update_Service_failed
call fcn.00404c20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 3
jne 0x40ec3e
mov edx, dword [ebx + 8]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ebb0
sub eax, esi
sar eax, 1
dec eax
cmp eax, 6
ja 0x40eccf
push 0xa
lea eax, [esp + 0x10]
push eax
push edx
call fcn.00440379
mov ecx, dword [ebx + 4]
add esp, 0xc
push 5
push 0x47c5b4
push ecx
mov esi, eax
call fcn.004403a5
add esp, 0xc
test eax, eax
jne 0x40ec04
push esi
call fcn.004115f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 4]
push 5
push 0x47c5bc
push edx
call fcn.004403a5
add esp, 0xc
test eax, eax
jne 0x40eccf
push str.Inject2_n
call fcn.00404c20
add esp, 4
push esi
call fcn.004116f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push str.MutexBkavSystemServiceNT
push edi
push 0x1f0001
mov dword [esp + 0x1c], str.BkavSystemService
mov dword [esp + 0x20], 0x40ece0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
cmp esi, edi
je 0x40ec8c
push str.Service_has_started
call fcn.00404c20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40ecb0
push eax
push str.dwError:__d
call fcn.00404c20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40eccf
call esi
push eax
push str.StartServiceCtrlDispatcher:__d
call fcn.00404c20
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x21c
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f333
push str.SystemAntiAdwareAntiAdware.dll
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0043f083
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.szAntiAdwarePath:__s
call fcn.00404c20
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f333
push str.ScanAdware
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f333
call eax
push str.End_pfnScanAdware
call fcn.00404c20
add esp, 4
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret

Function at 0x40f350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push str.SystemBkavReportCrash.dll
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0043f083
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.szReportCrashPath:__s
call fcn.00404c20
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f3ef
push str.BRC_Install
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f3ef
call eax
push str.End_pfnBrcInstall
call fcn.00404c20
add esp, 4
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
Function at 0x40f410
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 0x21c
call fcn.00407be0
test eax, eax
jne 0x40f4fe
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f4fe
push str.SystemAntiLeakBkavAlManager.dll
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0043f083
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.szAntiLeakPath:__s
call fcn.00404c20
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f4ba
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f4fe
push str.BkavAlManagerStart
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f4ea
call eax
push str.End_pfnAlMgrStart
call fcn.00404c20
add esp, 4
jmp 0x40f4fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_fail__d
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x230]
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x234
ret

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

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x21c
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f601
push str.SystemAntiLeakBkavAlManager.dll
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0043f083
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.szAntiLeakPath:__s
call fcn.00404c20
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f5bd
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f601
push str.StartDllSL
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f5ed
call eax
push str.End_pfnSideLoadingStart
call fcn.00404c20
add esp, 4
jmp 0x40f601
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_fail__d
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x230]
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x234
ret
Function at 0x40f620
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.004416b0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x21c
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f705
push str.SystemAdvancedScanBkavAdvancedScan.dll
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0043f083
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f6c1
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f705
push str.ScanByFunctionOne
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f6f1
call eax
push str.End_pfnAdvancedScan
call fcn.00404c20
add esp, 4
jmp 0x40f705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_fail__d
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x230]
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x234
ret

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

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.004416b0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x21c
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f805
push str.SystemWorkQueueBkavWQService.dll
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0043f083
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f7c1
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f805
push str.RunWQ
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f7f1
call eax
push str.End_pfnRunWQ
call fcn.00404c20
add esp, 4
jmp 0x40f805
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_fail__d
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x230]
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x234
ret
Function at 0x40f820
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.004416b0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.szBkavDir
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x21c
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f905
push str.SystemPCBSPCMainDll.dll
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0043f083
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f8c1
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f905
push str.BSPCFunc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f8f1
call eax
push str.End_pfnRunBSPC
call fcn.00404c20
add esp, 4
jmp 0x40f905
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_fail__d
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x230]
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x234
ret

Function at 0x40f920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x488], eax
xor eax, eax
push esi
push 0x40
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.004416b0
add esp, 0xc
call fcn.00407be0
test eax, eax
je 0x40fa2d
mov ecx, str.BkavSystemService64
call fcn.004082f0
test eax, eax
jne 0x40fa2d
push esi
push str._sBkavSystemService64.exe__install
lea ecx, [esp + 0x68]
push 0x104
push ecx
mov dword [esp + 0x28], 0x44
call fcn.0043ed50
lea edx, [esp + 0x70]
push edx
push str.szCmdLine:__s
call fcn.00404c20
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 8]
test eax, eax
je 0x40fa19
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_BkavSystemService64_error:__d
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x48c]
pop esi
xor ecx, esp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
Function at 0x40fd80
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
sub esp, 0x224
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push str.Bka.exe
lea eax, [esp + 0x18]
push 0x105
push eax
call fcn.0043f083
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00408f30
mov esi, eax
test esi, esi
je 0x40fea0
mov ecx, esi
call fcn.004090a0
test eax, eax
je 0x40fea0
cmp eax, 6
jae 0x40fea0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
call edi
mov ecx, esi
call fcn.004090a0
mov esi, eax
push esi
push str.threadCount_2:__d
call fcn.00404c20
add esp, 8
cmp esi, 8
jae 0x40fea0
call fcn.004086e0
test eax, eax
jne 0x40fea0
call fcn.00408e30
mov esi, eax
push esi
push str.dwBkavServicePID:__d
call fcn.00404c20
add esp, 8
test esi, esi
je 0x40fea0
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
push str.hBkavService:__d
call fcn.00404c20
add esp, 8
test esi, esi
je 0x40fea0
push 0x775
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call edi
push str.BkavService
call fcn.00408a60
add esp, 4
mov ecx, dword [esp + 0x228]
pop edi
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x224
ret

Function at 0x410010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x230], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push str.SystemSystemWatcherBkavSWMain.dll
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0043f083
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push str.szReportCrashPath:__s
call fcn.00404c20
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4100af
push str.SystemWatcherStart
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4100af
call eax
push str.End_pfnSWStart
call fcn.00404c20
add esp, 4
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x234
ret
Function at 0x4101c0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x460
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x45c], eax
push esi
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.004416b0
add esp, 0xc
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x246]
push eax
mov word [esp + 0x248], dx
call fcn.004416b0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x20]
push eax
push str.InstallPath
push str.SYSTEMCurrentControlSetServicesBkavSDF
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], 0x21c
mov dword [esp + 0x28], 1
call esi
test eax, eax
je 0x4102e9
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x10]
push eax
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0x208
call esi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410290
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x20]
push edx
push 1
push str.InstallPath
push str.SYSTEMCurrentControlSetServicesBkavSDF
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push str.fInstallFirt
push str.SYSTEMCurrentControlSetServicesBkavSDF
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.BkavSDF
call fcn.00408840
add esp, 4
mov ecx, dword [esp + 0x460]
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x460
ret