joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push esi
mov esi, edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
add eax, 0xca
cmp word [eax], 0
push edi
mov edi, ecx
jne 0x40248a
xor eax, eax
jmp 0x4025fb
push ebp
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4024b2
xor eax, eax
jmp 0x4025fa
push ebx
mov ebx, edi
imul ebx, ebx, 0x2c
push 0
push 0
push ebx
push ebp
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x2c
lea eax, [ebx + edx + 0x4f0]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
test eax, eax
jne 0x4024f1
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x14], 0x2c
je 0x4024fc
mov dword [esp + 0x10], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebx
je 0x4025ad
mov ecx, dword [esi + 8]
cmp word [ecx + 0x2d4], bx
je 0x4025f5
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x4025f5
push 0x104
push ebp
lea edx, [esp + 0x24]
push 0x105
push edx
call fcn.0043e9ba
add esp, 0x10
cmp dword [esi + edi*4 + 0xc], ebx
jne 0x402558
push 0x20a
call fcn.0043e739
add esp, 4
mov dword [esi + edi*4 + 0xc], eax
mov eax, dword [esi + edi*4 + 0xc]
push 0x104
push ebp
push 0x105
push eax
call fcn.0043e9ba
mov ecx, dword [esi + edi*4 + 0xc]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
xor edx, edx
mov word [ecx + 0x208], dx
mov ecx, dword [esi + 8]
push ebx
push 0x40000000
add ecx, 0x2d4
xor eax, eax
push ecx
mov word [esp + 0x240], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025b1
xor eax, eax
jmp 0x4025f9
imul edi, edi, 0x20a
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x20a
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4025e0
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x14], 0x20a
je 0x4025ee
mov dword [esp + 0x10], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x21c
ret 4
Function at 0x402620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489e48
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
jne 0x40266f
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 0xc
mov dword [ebp - 0x1c], 1
push 0x1388
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402659
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x2c
mov ecx, dword [ebx + 8]
lea edx, [esi + ecx + 0x509]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0040a8d0
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebx + 8]
add eax, 0xca
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4026d9
mov dword [ebp - 0x1c], 0
jmp 0x402721
mov dword [ebp - 0x1c], 1
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0x2c
mov edx, dword [ebx + 8]
lea eax, [esi + edx + 0x4f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40270d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0x2c
je 0x40271a
mov dword [ebp - 0x1c], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.00402747
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489d20
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
jne 0x4027af
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 0xc
mov dword [ebp - 0x1c], 1
push 0x1388
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402799
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x2c
mov ecx, dword [ebx + 8]
mov dl, byte [ebp + 0x10]
mov byte [esi + ecx + 0x508], dl
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
mov eax, dword [ebx + 8]
add eax, 0xca
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40280d
mov dword [ebp - 0x1c], 0
jmp 0x402855
mov dword [ebp - 0x1c], 1
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0x2c
mov edx, dword [ebx + 8]
lea eax, [esi + edx + 0x4f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402841
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0x2c
je 0x40284e
mov dword [ebp - 0x1c], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040287b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452a70
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1048
call fcn.0044e2b0
mov eax, dword [0x48e050]
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
cmp dword [0x4adbd0], 0
mov edi, ecx
mov esi, edx
je 0x402d3c
lea eax, [ebp - 0x1054]
push eax
push 1
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1058], 0x814
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d3c
lea ecx, [ebp - 0x1058]
push ecx
lea edx, [ebp - 0xc40]
push edx
push eax
push eax
mov eax, dword [ebp - 0x1054]
push str.szSafeRunBackup
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x1054]
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x402d3c
push 0x400
push 0x4576d8
lea edx, [ebp - 0xc40]
push 0x40a
push edx
call fcn.0043e4d6
add esp, 0x10
test eax, eax
jne 0x402d3c
push 0x400
push esi
lea eax, [ebp - 0xc40]
push 0x40a
push eax
call fcn.0043e4d6
add esp, 0x10
test eax, eax
jne 0x402d3c
push esi
push str.pszFileOut_:__s
call fcn.00404c20
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 8
push ebx
push ebx
push 0x400
lea ecx, [ebp - 0x1050]
push ecx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x402d3c
push ebx
push ebx
push 0x400
lea edx, [ebp - 0x428]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0xc40]
push eax
push ebx
push ebx
call esi
test eax, eax
je 0x402d3c
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x1050]
push edx
mov dword [ebp - 4], ebx
call dword [0x4adbd0]
jmp 0x402d3f
or eax, 0xffffffff
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.0043e4c7
mov esp, ebp
pop ebp
ret
Function at 0x402d60
Capabilities:
Create service
Modify service
Persist via windows service
Query or enumerate registry value
Start service

Disassembly:
sub esp, 0x428
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
push str.SvcInstall
call fcn.00404c20
add esp, 4
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov dword [esp + 0x20], 0x104
xor bl, bl
mov dword [esp + 0x1c], str.Bkav_System_service._If_this_service_is_disable__you_will_not_run_features_Bkav.
mov word [esp + 0x24], ax
call fcn.004416b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.004416b0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f5f
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.szBkavDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e31
push 0x103
push 0x457924
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.0043e4d6
add esp, 0x10
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x402f5f
push 0x4576d8
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0043f083
add esp, 0xc
push 0x457934
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.0043f083
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push str.__s_
lea ecx, [esp + 0x228]
push 0x104
push ecx
call fcn.0043ed50
lea edx, [esp + 0x230]
push edx
push str.szServicesPath_:__s
call fcn.00404c20
add esp, 0x18
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x402f5f
push str.schSCManager___NULL
call fcn.00404c20
add esp, 4
call fcn.00412570
push 0
push 0
push 0
push 0
push str.BkavSystemServiceGroup
lea eax, [esp + 0x234]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.BkavSystemService
push str.BkavSystemService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x402f79
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x402f4a
push str.Service_da_duoc_cai_dat.._r_n
call fcn.00404c20
add esp, 4
call fcn.004125b0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x428
ret
call esi
push eax
push str.CreateService:__d
call fcn.00404c20
add esp, 8
call fcn.004125b0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x428
ret
push str.schService___NULL
call fcn.00404c20
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.004125b0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x428
ret
Function at 0x403070
Capabilities:
Encode data using xor

Disassembly:
or edx, 0xffffffff
cmp dword [0x496700], 0
jne 0x403081
call fcn.00402fd0
xor eax, eax
test esi, esi
jle 0x4030ab
jmp 0x403090
movzx ecx, byte [eax + edi]
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x492930]
inc eax
cmp eax, esi
jl 0x403090
mov eax, edx
not eax
ret

Function at 0x403110
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [esi + 4]
push eax
call fcn.0043e4bc
push 0x400
mov dword [esi + 4], 0
call fcn.0043e739
add esp, 8
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x403140
xor eax, 0xedb88320
test al, 1
je 0x40314d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40314f
shr eax, 1
test al, 1
je 0x40315c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40315e
shr eax, 1
test al, 1
je 0x40316b
shr eax, 1
xor eax, 0xedb88320
jmp 0x40316d
shr eax, 1
test al, 1
je 0x40317a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40317c
shr eax, 1
test al, 1
je 0x403189
shr eax, 1
xor eax, 0xedb88320
jmp 0x40318b
shr eax, 1
test al, 1
je 0x403198
shr eax, 1
xor eax, 0xedb88320
jmp 0x40319a
shr eax, 1
test al, 1
je 0x4031a7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4031a9
shr eax, 1
mov edx, dword [esi + 4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x100
jl 0x403132
ret

Function at 0x4031c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor ecx, ecx
mov dword [esi], 0xffffffff
test edx, edx
jbe 0x403201
mov esi, dword [eax + 4]
push ebx
or eax, 0xffffffff
push ebp
lea esp, [esp]
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [esi + ebx*4]
inc ecx
cmp ecx, edx
jb 0x4031e0
mov esi, dword [esp + 0x10]
pop ebp
mov dword [esi], eax
pop ebx
mov ecx, dword [esi]
not ecx
mov dword [esi], ecx
xor eax, eax
pop esi
ret 4
Function at 0x403210
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, 0x100c
call fcn.0044e2b0
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x1008], eax
mov eax, dword [esp + 0x1010]
push edi
push 0
push 0x8000027
push 3
push 0
push 1
push bind
push eax
mov dword [esp + 0x20], 0
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40326a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
jmp 0x4032d6
push 0
lea eax, [esp + 0xc]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4032d6
push ebx
push ebp
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4032d4
xor ecx, ecx
test edx, edx
jbe 0x4032b8
mov eax, dword [esi]
movzx ebx, byte [esp + ecx + 0x14]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [ebx*4 + 0x491648]
inc ecx
mov dword [esi], eax
cmp ecx, edx
jb 0x403296
push 0
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403288
pop ebp
pop ebx
test edi, edi
je 0x4032e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
mov eax, dword [esp + 4]
not ecx
mov dword [esi], ecx
mov ecx, dword [esp + 0x100c]
pop edi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x100c
ret
Function at 0x403c40
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea eax, [esi + 0x270]
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push 0x80
push 4
push ebx
push 1
lea eax, [esi + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x1c]
push eax
push str.CreateFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
jmp 0x403d96
mov eax, dword [esi + 0x14]
imul eax, ebp
add eax, dword [esi + 0x240]
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFilePointer_fail__d_n
call fcn.00404c20
add esp, 8
jmp 0x403d8f
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x403d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x1c]
push eax
push str.WriteFile_entry__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
jmp 0x403d8f
cmp ebp, dword [esi + 0x248]
jl 0x403d8f
push 0
push 0
push 0
inc ebp
push edi
mov dword [esi + 0x248], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFilePointer_fail__d_n
call fcn.00404c20
add esp, 8
jmp 0x403d8f
mov edx, dword [esi + 0x240]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esi + 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x403d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x1c]
push eax
push str.WriteFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
jmp 0x403d8f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], 0xa00000
jbe 0x403db4
mov ecx, esi
call fcn.00403870
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8
Function at 0x404840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x214], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4048ad
mov eax, dword [esp]
test eax, eax
je 0x4048ad
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push str.szBkavDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4048c4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x218
ret
push 0x103
push str.AppLog_
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0043e4d6
push 0x103
push str.BkavSystemService.log
lea ecx, [esp + 0x24]
push 0x104
push ecx
call fcn.0043e4d6
lea edx, [esp + 0x2c]
push edx
push 0x104
push esi
call fcn.0043efc3
mov eax, dword [esp + 0x2c]
add esp, 0x2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x218
ret
Function at 0x404930
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x489e20
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2450
call fcn.0044e2b0
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x2458], esi
xor eax, eax
mov word [ebp - 0x230], ax
push 0x206
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x22e]
push ecx
call fcn.004416b0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x2468], dx
xor eax, eax
mov dword [ebp - 0x2466], eax
mov dword [ebp - 0x2462], eax
mov dword [ebp - 0x245e], eax
mov word [ebp - 0x245a], ax
mov dword [ebp - 4], ebx
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4049c4
sub eax, edx
sar eax, 1
je 0x404b68
cmp eax, 0x400
ja 0x404b68
lea esi, [ebp - 0x450]
call fcn.00404840
test eax, eax
je 0x404b68
mov dword [ebp - 4], 0xfffffffe
push ebx
push 0x80
push 4
push ebx
push 2
push 4
mov eax, esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404b6f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x404a68
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x450]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push 4
push ebx
push 2
push 4
lea edx, [ebp - 0x450]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x404a1d
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2468]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x2468]
call fcn.00408de0
xor ecx, ecx
mov word [ebp - 0x2450], cx
push 0x1ffe
push ebx
lea edx, [ebp - 0x244e]
push edx
call fcn.004416b0
mov eax, dword [ebp - 0x2458]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0x457d54
lea edx, [ebp - 0x2450]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov dword [ebp - 0x2454], ebx
lea eax, [ebp - 0x2450]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404ae0
sub eax, edx
sar eax, 1
push ebx
lea ecx, [ebp - 0x2454]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x2450]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
mov ecx, dword [0x457d64]
mov dword [ebp - 0x24], ecx
mov dx, word [0x457d68]
mov word [ebp - 0x20], dx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b25
sub eax, edx
sar eax, 1
push ebx
lea ecx, [ebp - 0x2454]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x24]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.00404b5c
jmp 0x404b6f
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043e4c7
mov esp, ebp
pop ebp
ret
Function at 0x404ce0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test edi, edi
jne 0x404ced
xor eax, eax
add esp, 0xc
ret
push 0
lea eax, [esp + 4]
push eax
push 0
push 1
push 0
push 0
push 0
push str.SoftwareBkav
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404ce7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.szFirewallDir
push eax
call esi
test eax, eax
je 0x404d47
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
cmp dword [esp + 0xc], 1
jne 0x404d86
mov eax, dword [esp + 0x14]
add eax, eax
cmp dword [esp + 8], eax
jbe 0x404d5e
mov dword [esp + 8], eax
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push edi
lea eax, [esp + 0x14]
push eax
push 0
push str.szFirewallDir
push ecx
call esi
test eax, eax
je 0x404d8d
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop esi
add esp, 0xc
ret

Function at 0x405080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push 0x457f98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
je 0x405152
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FilterConnectCommunicationPort
push eax
call edi
mov dword [esi + 0x22c], eax
mov eax, dword [esi + 8]
push str.FilterGetMessage
push eax
call edi
mov ecx, dword [esi + 8]
push str.FilterSendMessage
push ecx
mov dword [esi + 0x220], eax
call edi
mov edx, dword [esi + 8]
push str.FilterReplyMessage
push edx
mov dword [esi + 0x224], eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esi + 0x228], eax
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x14]
push 0x104
push edx
mov dword [esi + 0x230], eax
call fcn.0043efc3
add esp, 0xc
mov byte [esi + 0x21c], 0
pop edi
test ebx, ebx
je 0x40512d
push ebp
call fcn.0043e793
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x405152
push ebp
push ebx
push eax
call fcn.00441730
add esp, 0xc
mov dword [esi + 0x10], ebp
push 0
push 0
push esi
push 0x405160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x405152
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebp
ret 0xc
xor al, al
pop ebp
ret 0xc

Function at 0x4053e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
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 + 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret