joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4131f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x18a4
call fcn.0044e2b0
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x18a0], eax
mov eax, dword [esp + 0x18b0]
push esi
mov esi, edx
test edi, edi
jne 0x41322e
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18a0]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x18a4
ret
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x167c], eax
test esi, esi
je 0x41326b
push 0x104
push esi
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.0043e9ba
mov eax, dword [esp + 0x18bc]
add esp, 0x10
mov dword [esp + 0x220], eax
mov al, byte [esp + 0x18b0]
mov byte [esp + 0x224], al
cmp al, 3
jne 0x413339
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x23a], 1
mov dword [esp + 0x1c], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413341
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x1684]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.szTempDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41332c
push 0x104
add esi, 2
push esi
lea eax, [esp + 0x1688]
push 0x10e
push eax
call fcn.0043e4d6
lea ecx, [esp + 0x1690]
push ecx
push str.szSafeRunDir_:__s
call fcn.00404c20
push 0x103
lea edx, [esp + 0x169c]
push edx
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.0043e9ba
add esp, 0x28
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413341
mov byte [esp + 0x226], 0
lea edx, [esp + 0x10]
push edx
call fcn.00412fe0
add esp, 4
test eax, eax
je 0x413373
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x41335e
mov dword [edi + 8], eax
jmp 0x413370
cmp dword [ecx + 0xc], 0
je 0x41336d
mov ecx, dword [ecx + 0xc]
cmp dword [ecx + 0xc], 0
jne 0x413364
mov dword [ecx + 0xc], eax
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 0x18a4]
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x18a4
ret

Function at 0x413390
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4133d5
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x238
ret
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
xor edi, edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4133bc
mov edi, edi
lea ecx, [esp + 0x2c]
push 0x478fa0
push ecx
call fcn.0043ec25
add esp, 8
test eax, eax
je 0x413417
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4133f0
jmp 0x41341b
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x244]
push eax
push ebx
mov ecx, edi
call fcn.00413450
mov ecx, dword [esp + 0x244]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x238
ret
Function at 0x414210
Capabilities:
Delete file

Disassembly:
sub esp, 0xa1c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0xa14], eax
push ebx
push ebp
push esi
push edi
push str.Start_CopyFileBeforeQuit_function
call fcn.00404c20
add esp, 4
xor ebp, ebp
mov edi, 0x4950a0
push edi
push ebp
push str.i_:__d__pszSavedPath_:__s
call fcn.00404c20
add esp, 0xc
push 0x103
push edi
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0043e9ba
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414270
sub eax, edx
sar eax, 1
je 0x4142c9
mov eax, 0x494e98
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414290
sub eax, edx
sar eax, 1
je 0x4142c9
lea ecx, [esp + 0x220]
push ecx
mov ebx, 0x494e98
lea esi, [esp + 0x1c]
call fcn.0043adf0
test eax, eax
je 0x4142c9
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x208
inc ebp
cmp edi, 0x4966f8
jl 0x41423c
mov ecx, dword [esp + 0xa24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0xa1c
ret

Function at 0x414300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x104
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41435f
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x494c90
push eax
push eax
push str.szBkavDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41434d
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret
call fcn.00414390
push 0x494a88
push str._sUpdate
push 0x494c90
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov al, 1
pop ebx
add esp, 8
ret

Function at 0x414390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x104
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414408
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x494a88
push eax
push eax
push str.szBkavDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4143f9
push 0x103
push str.SystemSafeRun
push 0x104
push 0x494a88
call fcn.0043e4d6
add esp, 0x10
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x414426
push str.C:Program_FilesBkavProSafeRun
push 0x104
push 0x494a88
call fcn.0043efc3
add esp, 0xc
mov al, 1
pop ebx
add esp, 8
ret
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x414f20
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x244], eax
xor eax, eax
push ebx
push esi
push edi
push 0x208
push eax
lea ecx, [esp + 0x46]
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
call fcn.004416b0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0x4ac374
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x414fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ac374
push str.CreateFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x248
ret
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0x4ac590
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41503c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ac590
push str.CreateFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x248
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x10]
push edx
push 0x2c
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x4150c4
cmp dword [esp + 0xc], 0x2c
jne 0x4150c4
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x20a
lea edx, [esp + 0x48]
push edx
push edi
call ebx
test eax, eax
je 0x41511a
cmp dword [esp + 0xc], 0x20a
jne 0x41511a
mov ecx, dword [esp + 0x28]
xor eax, eax
push ecx
mov word [esp + 0x248], ax
lea edx, [esp + 0x21]
push edx
lea eax, [esp + 0x31]
push eax
push 0x4abad8
lea eax, [esp + 0x4c]
call fcn.00414d90
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x2c
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
jne 0x415057
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ac374
push str.ReadFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4ac374
call esi
push 0x4ac590
call esi
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x248
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ac590
jmp 0x4150d0
Function at 0x415470
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
call fcn.00407be0
test eax, eax
jne 0x415587
push 0x208
push eax
push 0x4ac158
call fcn.004416b0
add esp, 0xc
push 0x21c
push 0
push 0x4abd1c
call fcn.004416b0
add esp, 0xc
push 0x21c
push 0
push 0x4abf38
call fcn.004416b0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x4abf38
lea ecx, [esp + 0x18]
push ecx
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x415587
push 0x4abf38
push str._sSystemAK
push 0x104
push 0x4abd1c
call fcn.0043ed50
add esp, 0x10
call fcn.00414c00
push str.BkavAKServer_301195
mov ecx, 0x4abad8
call fcn.0043d0f0
test eax, eax
jne 0x415540
push str.ActivateServer_AK_fail_n
call fcn.00404c20
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
push str.ActivateServer_AK_OK_n
call fcn.00404c20
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
push 0
push 0
push 0x4abad8
push 0x415440
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0
push 0
push 0x4abad8
push 0x4168f0
push 0
push 0
call esi
push eax
call edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x415590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48ade8
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x640
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 esi, ecx
xor edi, edi
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x640], edi
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x644], edi
mov ebx, 1
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x650], 0x208
mov dword [ebp - 4], edi
call fcn.00406500
test eax, eax
je 0x4156cf
lea eax, [ebp - 0x640]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x4156cf
lea ecx, [ebp - 0x63c]
push ecx
push ebx
push edi
push str.Control_PanelDesktop
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4156cf
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x648]
push edx
push edi
push str.SCRNSAVE.EXE
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4156cf
push 0x104
lea ecx, [ebp - 0x430]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
call esi
test eax, eax
je 0x4156cf
push 0x104
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x638]
push eax
call esi
test eax, eax
je 0x4156cf
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x4156cf
push str.File_dang_la_screen_saver
call fcn.00404c20
add esp, 4
mov dword [ebp - 0x644], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004156ff
mov eax, dword [ebp - 0x644]
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 0x4157a0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x438
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x43c]
push ebp
push edi
push 0x428
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
push ebp
push ecx
mov dword [esp + 0x18], eax
call fcn.004416b0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x41586c
nop
mov eax, dword [esp + 0x2c]
cmp edi, eax
jbe 0x415802
mov ecx, dword [esp + 0x28]
add ecx, eax
cmp edi, ecx
jb 0x415813
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4157f0
jmp 0x41586c
lea eax, [esp + 0x30]
push eax
push str.me.szModule:__s
call fcn.00404c20
add esp, 8
test ebx, ebx
je 0x41583c
lea ecx, [esp + 0x30]
push ecx
push 0x104
push ebx
call fcn.0043efc3
add esp, 0xc
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41585a
lea edx, [esp + 0x230]
push edx
push 0x104
push edi
call fcn.0043efc3
add esp, 0xc
mov ebp, dword [esp + 0x2c]
push edi
push str.szModulePath:__s
call fcn.00404c20
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0043e4c7
add esp, 0x438
ret 4
Function at 0x416820
Capabilities:
Terminate process

Disassembly:
sub esp, 0x41c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
push esi
add eax, 0x244
push eax
push str._sBkavAKManager.exe
lea eax, [esp + 0x218]
push 0x104
push eax
mov esi, ecx
call fcn.0043ed50
push esi
push str._uh__i
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.0043ed50
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x234]
call fcn.00405680
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4168a3
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x41c
ret 4
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4168c4
cmp eax, 0x102
je 0x4168c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4168cd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x41c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043e4c7
add esp, 0x41c
ret 4
Function at 0x417490
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
xor edi, edi
push 0x208
mov esi, ecx
lea ecx, [esp + 0x52]
push edi
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
call fcn.004416b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
lea ebp, [esi + 0x460]
push bind
push ebp
mov dword [esp + 0x38], ebp
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41753c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.CreateFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
xor eax, eax
jmp 0x417647
push 0
push 0x80
push 3
push 0
push 1
lea ebp, [esi + 0x67c]
push bind
push ebp
mov dword [esp + 0x34], ebp
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417585
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.CreateFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x417647
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 0x2c
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
test eax, eax
je 0x417609
cmp dword [esp + 0x14], 0x2c
jne 0x417609
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x20a
lea edx, [esp + 0x58]
push edx
push ebx
call ebp
test eax, eax
je 0x417660
cmp dword [esp + 0x14], 0x20a
jne 0x417660
mov ecx, dword [esp + 0x38]
xor eax, eax
push ecx
mov word [esp + 0x258], ax
lea edx, [esp + 0x31]
push edx
lea eax, [esp + 0x41]
push eax
push esi
lea eax, [esp + 0x5c]
call fcn.00417310
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x2c
lea edx, [esp + 0x2c]
push edx
push edi
call ebp
test eax, eax
jne 0x4175a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str.ReadFile__ws_fail__d_n
call fcn.00404c20
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push edi
call esi
push ebx
call esi
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x254
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x1c]
push eax
jmp 0x417615
Function at 0x417670
Capabilities:
Print debug messages
Query environment variable

Disassembly:
sub esp, 0x240
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
push ebx
push ebp
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], str._APPDATA_
mov dword [esp + 0x28], str._USERPROFILE_
mov dword [esp + 0x2c], str._COMMONPROGRAMFILES_
mov dword [esp + 0x30], str._ALLUSERSPROFILE_
mov dword [esp + 0x34], str._TEMP_
mov dword [esp + 0x38], str._PROGRAMFILES_
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.___]
mov word [esp + eax + 0x40], cx
add eax, 2
test cx, cx
jne 0x4176e0
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
mov edx, dword [esp + ebx*4 + 0x18]
mov eax, dword [esp + edx*4 + 0x24]
push 0x104
lea ecx, [esp + 0x4c]
push ecx
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417723
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 6]
push edi
call fcn.0043e793
mov esi, eax
add esp, 4
test esi, esi
je 0x4177ac
push edi
push 0
push esi
call fcn.004416b0
lea eax, [esp + 0x4c]
mov edx, esi
mov ecx, eax
sub edx, ecx
add esp, 0xc
mov dword [esi], ebx
add edx, 4
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417760
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xab8]
push 0
lea edx, [esp + 0x40]
push edx
push 0
push 0
push edi
push esi
push 0x22e04d
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4177a3
push str.IOCTL_BC_INIT_SENSITIVE_FOLER_fail__r_n
call fcn.00404c20
add esp, 4
push esi
call fcn.0043e85d
add esp, 4
inc ebx
cmp ebx, 3
jl 0x4176fc
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x240
ret 4
Function at 0x417a20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push 0x1000
mov ebx, ecx
call fcn.0043e793
mov esi, eax
add esp, 4
test esi, esi
jne 0x417a62
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x20c
ret
push edi
push 0x1000
push 0
push esi
call fcn.004416b0
push 0x208
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.004416b0
push str.___
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.0043efc3
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0x24
push 0x104
lea edx, [esp + 0x18]
push edx
push str._ALLUSERSPROFILE_
call edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x10]
push 0x104
push ecx
mov dword [esi + 0xc], 0
call fcn.0043efc3
push 0x208
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.004416b0
push str.___
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0043efc3
add esp, 0x24
push 0x104
lea ecx, [esp + 0x18]
push ecx
push str._TEMP_
call edi
lea edx, [esp + 0xc]
push edx
lea eax, [esi + 0x21c]
push 0x104
push eax
mov dword [esi + 0x218], 3
call fcn.0043efc3
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.004416b0
push str.___
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.0043efc3
add esp, 0x24
push 0x104
lea eax, [esp + 0x18]
push eax
push str._USERPROFILE_
call edi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0x428]
push 0x104
push edx
mov dword [esi + 0x424], 1
call fcn.0043efc3
push str.___
mov dword [esi + 0x630], 6
lea edi, [esi + 0x634]
push 0x104
push edi
call fcn.0043efc3
add ebx, 0x244
push ebx
push 0x104
push edi
call fcn.0043f083
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x214]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x20c
ret

Function at 0x417be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push str.fEnable
push str.SYSTEMCurrentControlSetServicesBkavARParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x417c26
xor eax, eax
add esp, 0xc
ret
xor eax, eax
cmp dword [esp], eax
setne al
add esp, 0xc
ret
Function at 0x417c40
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [0x49673c]
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x244]
push ecx
lea edx, [esp + 0x20]
push edx
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x417dc1
mov esi, edi
call fcn.00417140
push str.BkavBCServer_188199
mov ecx, edi
call fcn.0043d0f0
test eax, eax
jne 0x417cb7
push str.ActivateServer_BC_fail_n
call fcn.00404c20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.ActivateServer_BC_OK_n
call fcn.00404c20
add esp, 4
mov ecx, str.BkavAR
call fcn.004082f0
xor ebp, ebp
test eax, eax
je 0x417d79
call fcn.00417be0
cmp eax, ebp
je 0x417d79
push 0x234
call fcn.0043ef53
add esp, 4
cmp eax, ebp
je 0x417cff
mov esi, eax
call fcn.00405030
jmp 0x417d01
xor eax, eax
mov ecx, edi
mov dword [edi + 0xaf0], eax
call fcn.00417a20
mov ebx, eax
cmp ebx, ebp
je 0x417d3b
mov esi, dword [edi + 0xaf0]
cmp esi, ebp
je 0x417d3b
push 0x1000
push 0x418b90
push str.BkavBCPort
call fcn.00405080
push ebx
call fcn.0043e85d
add esp, 4
push 0x234
call fcn.0043ef53
add esp, 4
cmp eax, ebp
je 0x417d55
mov esi, eax
call fcn.00405030
jmp 0x417d57
xor eax, eax
push ebp
push 0x418be0
push str.BkavARPort
xor ebx, ebx
mov esi, eax
mov dword [edi + 0xaf4], eax
call fcn.00405080
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x18
call fcn.0043ef53
add esp, 4
cmp eax, ebp
je 0x417d9a
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], edi
jmp 0x417d9c
xor eax, eax
mov dword [0x496740], eax
call fcn.0041a940
test al, al
jne 0x417dc1
push ebp
push ebp
push edi
push 0x4179f0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret