joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a70
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412a80
sub eax, esi
push eax
push edx
push 0x43f20a
call fcn.0041a2b0
mov edi, dword [esp + 0x20]
add esp, 0xc
push 0x40
push 0x3000
push 0x400
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x412abd
pop edi
pop esi
add esp, 8
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x382
push esi
push edi
call ebx
test eax, eax
je 0x412b6a
lea ecx, [esp + 0x10]
push ecx
push 0x382
push 0x43f088
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x412b57
push 0x382
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x412b57
push 0
push 0
push 0
lea edx, [esi + 0x11e]
push edx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x382
push esi
push edi
call ebx
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
push 0x382
push esi
push edi
call ebx
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x412b90
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x412c1f
cmp dword [edi + 4], 0
lea esi, [edi + 4]
jne 0x412c1f
cmp dword [edi], 0
jne 0x412c1f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0
push 0
push esi
call ebx
test eax, eax
je 0x412bc7
cmp dword [esi], 0
jne 0x412bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x412bdf
push 8
push 1
push 0
push 0
push esi
call ebx
mov eax, dword [esi]
pop ebx
test eax, eax
je 0x412c1f
push edi
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x412c08
cmp dword [edi], 0
je 0x412c08
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x412c70
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x412ca0
cmp dword [eax + 4], 0
je 0x412ca0
mov eax, dword [eax]
test eax, eax
je 0x412ca0
mov edx, dword [esp + 8]
test edx, edx
je 0x412ca0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x412ca0
push 1
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret
xor eax, eax
ret
Function at 0x412f10
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x412e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret

Function at 0x412f30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x800], eax
lea eax, [esp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412f57
mov ecx, dword [0x434c38]
mov edx, dword [0x434c3c]
push 1
push 1
mov dword [eax], ecx
mov cx, word [0x434c40]
push str.BINARY
mov dword [eax + 4], edx
push 4
lea edx, [esp + 0x10]
push edx
push 0
mov word [eax + 8], cx
call fcn.004147f0
mov ecx, dword [esp + 0x818]
add esp, 0x18
xor ecx, esp
call fcn.0041a7bc
add esp, 0x804
ret
cmp dword [0x48a614], 0
jne 0x41314e
jmp 0x412f30
ret

Function at 0x412fb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x800], eax
lea eax, [esp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412fd7
mov ecx, dword [0x434c54]
mov edx, dword [0x434c58]
mov dword [eax], ecx
mov ecx, dword [0x434c5c]
push 1
mov dword [eax + 4], edx
mov dl, byte [0x434c60]
push 1
mov dword [eax + 8], ecx
push str.UNLOCKDRIVER
mov byte [eax + 0xc], dl
push 0x6a
lea eax, [esp + 0x10]
push eax
push 0
call fcn.004147f0
mov ecx, dword [esp + 0x818]
add esp, 0x18
xor ecx, esp
call fcn.0041a7bc
add esp, 0x804
ret
cmp dword [0x48760c], 0
jne 0x41313e
jmp 0x412fb0
ret

Function at 0x413040
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 4]
push eax
push 0x800
call esi
lea eax, [esp + 4]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413070
mov ecx, dword [0x434c88]
mov edx, dword [0x434c8c]
mov dword [eax], ecx
mov cx, word [0x434c90]
push 1
mov dword [eax + 4], edx
mov dl, byte [0x434c92]
push 1
mov word [eax + 8], cx
push str.RKDTYR
mov byte [eax + 0xa], dl
push 0x66
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004147f0
add esp, 0x18
lea ecx, [esp + 4]
push ecx
push 0x800
call esi
lea eax, [esp + 4]
dec eax
pop esi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4130d0
mov edx, dword [0x434c70]
mov ecx, dword [0x434c74]
push 1
mov dword [eax], edx
mov edx, dword [0x434c78]
push 1
mov dword [eax + 4], ecx
mov cl, byte [0x434c7c]
push str.RKDTYRBT
mov dword [eax + 8], edx
push 0x68
lea edx, [esp + 0x10]
push edx
push 0
mov byte [eax + 0xc], cl
call fcn.004147f0
mov ecx, dword [esp + 0x818]
add esp, 0x18
xor ecx, esp
call fcn.0041a7bc
add esp, 0x804
ret
cmp dword [0x48a610], 0
jne 0x41315e
jmp 0x413040
ret
Function at 0x413130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x800], eax
lea eax, [esp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412fd7
mov ecx, dword [0x434c54]
mov edx, dword [0x434c58]
mov dword [eax], ecx
mov ecx, dword [0x434c5c]
push 1
mov dword [eax + 4], edx
mov dl, byte [0x434c60]
push 1
mov dword [eax + 8], ecx
push str.UNLOCKDRIVER
mov byte [eax + 0xc], dl
push 0x6a
lea eax, [esp + 0x10]
push eax
push 0
call fcn.004147f0
mov ecx, dword [esp + 0x818]
add esp, 0x18
xor ecx, esp
call fcn.0041a7bc
add esp, 0x804
ret
cmp dword [0x48760c], 0
jne 0x41313e
jmp 0x412fb0
ret

Function at 0x413140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x800], eax
lea eax, [esp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412f57
mov ecx, dword [0x434c38]
mov edx, dword [0x434c3c]
push 1
push 1
mov dword [eax], ecx
mov cx, word [0x434c40]
push str.BINARY
mov dword [eax + 4], edx
push 4
lea edx, [esp + 0x10]
push edx
push 0
mov word [eax + 8], cx
call fcn.004147f0
mov ecx, dword [esp + 0x818]
add esp, 0x18
xor ecx, esp
call fcn.0041a7bc
add esp, 0x804
ret
cmp dword [0x48a614], 0
jne 0x41314e
jmp 0x412f30
ret

Function at 0x413150
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 4]
push eax
push 0x800
call esi
lea eax, [esp + 4]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413070
mov ecx, dword [0x434c88]
mov edx, dword [0x434c8c]
mov dword [eax], ecx
mov cx, word [0x434c90]
push 1
mov dword [eax + 4], edx
mov dl, byte [0x434c92]
push 1
mov word [eax + 8], cx
push str.RKDTYR
mov byte [eax + 0xa], dl
push 0x66
lea eax, [esp + 0x14]
push eax
push 0
call fcn.004147f0
add esp, 0x18
lea ecx, [esp + 4]
push ecx
push 0x800
call esi
lea eax, [esp + 4]
dec eax
pop esi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4130d0
mov edx, dword [0x434c70]
mov ecx, dword [0x434c74]
push 1
mov dword [eax], edx
mov edx, dword [0x434c78]
push 1
mov dword [eax + 4], ecx
mov cl, byte [0x434c7c]
push str.RKDTYRBT
mov dword [eax + 8], edx
push 0x68
lea edx, [esp + 0x10]
push edx
push 0
mov byte [eax + 0xc], cl
call fcn.004147f0
mov ecx, dword [esp + 0x818]
add esp, 0x18
xor ecx, esp
call fcn.0041a7bc
add esp, 0x804
ret
cmp dword [0x48a610], 0
jne 0x41315e
jmp 0x413040
ret
Function at 0x413160
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x101c
call fcn.0041bfd0
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
mov ebx, dword [esp + 0x1028]
push esi
mov esi, dword [esp + 0x1028]
push 0x1000
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041a230
push 0x391
push 0
push ebx
call fcn.0041a230
add esp, 0x18
push 0
push 6
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x4131ed
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413206
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x101c
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x41321a
xor byte [esp + eax + 0x20], 0xd
inc eax
cmp eax, ecx
jb 0x413210
push ebp
lea ebp, [esp + 0x24]
mov dword [esp + 0xc], ebp
xor eax, eax
push edi
cmp eax, 9
ja case.default.0x41322f
jmp dword [eax*4 + 0x413380]
mov esi, ebx
mov edi, 0xc7
jmp 0x4132b2
lea esi, [ebx + 0xc8]
mov edi, 0xc7
jmp 0x4132b2
lea esi, [ebx + 0x190]
mov edi, 0xc7
jmp 0x4132b2
lea esi, [ebx + 0x258]
mov edi, 0xc7
jmp 0x4132b2
lea esi, [ebx + 0x320]
mov edi, 0xe
jmp 0x4132b2
lea esi, [ebx + 0x32f]
mov edi, 0x14
jmp 0x4132b2
lea esi, [ebx + 0x344]
mov edi, 0x12
jmp 0x4132b2
lea esi, [ebx + 0x357]
mov edi, 0x20
jmp 0x4132b2
lea esi, [ebx + 0x378]
mov edi, 0x14
jmp 0x4132b2
lea esi, [ebx + 0x38d]
mov edi, 4
inc eax
push 0x434ca4
push ebp
mov dword [esp + 0x20], eax
call fcn.0041d4be
mov edx, eax
add esp, 8
mov dword [esp + 0x14], edx
test edx, edx
je 0x413326
mov eax, ebp
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4132d4
sub eax, ebp
mov ebp, eax
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x1c], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4132e8
sub eax, dword [esp + 0x1c]
sub ebp, eax
je 0x413314
cmp ebp, edi
jbe 0x4132fd
mov ebp, edi
mov edx, dword [esp + 0x10]
push ebp
push edx
push esi
call fcn.0041b468
mov edx, dword [esp + 0x20]
add esp, 0xc
mov byte [esi + ebp], 0
mov eax, dword [esp + 0x18]
add edx, 2
mov dword [esp + 0x10], edx
mov ebp, edx
jmp 0x413226
push edi
push ebp
push esi
call fcn.0041b468
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x320]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413350
sub eax, edx
xor ecx, ecx
cmp eax, 0xe
sete cl
mov eax, ecx
jmp 0x413367
xor eax, eax
mov ecx, dword [esp + 0x1028]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x101c
ret
Function at 0x4133b0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x18c
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
mov ebx, dword [esp + 0x194]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 8], eax
push 0xff
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10
lea ecx, [esp + 0x10]
push str.bkavsysinfo.sys
push ecx
mov byte [esp + 0x1b], 0
call fcn.0041c136
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00413160
add esp, 0x14
test eax, eax
je 0x41342e
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x18c
ret
push ebp
push esi
push edi
lea eax, [esp + 0x118]
push eax
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4134d4
mov esi, 1
xor edi, edi
lea ebp, [esp + 0x118]
mov ecx, dword [esp + 0x14]
test ecx, esi
je 0x4134cc
push 4
lea edx, [esp + 0x14]
push ebp
push edx
call fcn.0041b468
add esp, 0xc
lea eax, [esp + 0x10]
push eax
add ebp, 4
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4134cc
lea ecx, [esp + 0x10]
push ecx
call fcn.00406ad0
add esp, 4
test eax, eax
je 0x4134cc
push 4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x24], 0
call fcn.0041c136
push 0x10
lea ecx, [esp + 0x28]
push str.bkavsysinfo.sys
push ecx
call fcn.0041c136
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.00413160
add esp, 0x20
test eax, eax
jne 0x4134ef
inc edi
add esi, esi
cmp edi, 0x19
jl 0x413457
xor eax, eax
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x18c
ret
mov eax, 1
jmp 0x4134d6
Function at 0x413500
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x190
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push edi
mov edi, dword [esp + 0x19c]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x10], eax
push 0xff
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov byte [esp + 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10
lea ecx, [esp + 0x18]
push str.bkavsysinfo.sys
push ecx
mov byte [esp + 0x23], bl
call fcn.0041c136
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00413160
add esp, 0x14
test eax, eax
je 0x4135b6
mov ecx, dword [esp + 0x1a0]
lea eax, [edi + 0x320]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413591
cmp dl, bl
je 0x41358d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413591
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x413571
xor eax, eax
jmp 0x413596
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4135b6
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x190
ret
push ebp
push esi
lea eax, [esp + 0x11c]
push eax
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4136a6
lea ecx, [esp + 0x11c]
mov esi, 1
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
test edx, esi
je 0x41369a
mov eax, dword [esp + 0x14]
push 4
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041b468
add dword [esp + 0x20], 4
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41369a
lea eax, [esp + 0x10]
push eax
call fcn.00406ad0
add esp, 4
test eax, eax
je 0x41369a
push 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x28], bl
call fcn.0041c136
push 0x10
lea eax, [esp + 0x2c]
push str.bkavsysinfo.sys
push eax
call fcn.0041c136
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00413160
add esp, 0x20
test eax, eax
je 0x41369a
mov ecx, dword [esp + 0x1a8]
lea eax, [edi + 0x320]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413691
cmp dl, bl
je 0x41368d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413691
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x413671
xor eax, eax
jmp 0x413696
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4136c1
inc ebp
add esi, esi
cmp ebp, 0x19
jl 0x4135e2
xor eax, eax
mov ecx, dword [esp + 0x19c]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x190
ret
mov eax, 1
jmp 0x4136a8

Function at 0x413760
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4137a8
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x108
ret 8
mov edx, dword [esp + 0x114]
mov cl, byte [esp + 4]
push edx
mov byte [esi], cl
push str.:Program_filesBluPro
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041a7bc
add esp, 0x108
ret 8
Function at 0x4137e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
cmp ebp, 1
jbe 0x413818
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x413818
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 1
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41381f
pop ebp
xor eax, eax
pop ebx
ret 0x14
mov edx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
push edx
call edi
test eax, eax
je 0x413859
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
cmp dword [esp + 0x18], 1
jne 0x413850
cmp dword [esp + 0x20], ebp
jbe 0x41386a
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push esi
push eax
call edi
test eax, eax
je 0x413897
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

Function at 0x4138b0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 6
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x413908
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
test eax, eax
jne 0x41390d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x10
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x10

Function at 0x413920
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4139a0
lea ecx, [esp + 4]
push ecx
push 0x434478
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41395e
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x413a30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x118]
push edi
push esi
push str.szBkavDir
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004137e0
test eax, eax
jne 0x413a96
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x413a9b
mov cl, byte [esp + 8]
push edi
mov byte [esi], cl
push str.BkavPro
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0041a7bc
add esp, 0x108
ret 8

Function at 0x413bb0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x134]
push ebp
push eax
mov ebp, ecx
mov dword [esp + 8], eax
call fcn.004139b0
test eax, eax
jne 0x413bf4
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x130
ret 4
push edi
push 0x128
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0041a230
add esp, 0xc
mov ecx, ebp
call fcn.00413ae0
mov ecx, ebp
call fcn.00413920
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x413c44
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x413c48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413c9e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
mov eax, dword [esp + 0x1c]
cmp eax, 4
jbe 0x413c7e
push eax
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x413c7e
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.00412a70
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x413c50
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov dword [ebp + 0xc], eax
pop ebx
mov ecx, dword [esp + 0x134]
pop edi
pop ebp
xor ecx, esp
call fcn.0041a7bc
add esp, 0x130
ret 4

Function at 0x413e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413e93
xor eax, eax
ret
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
ret

Function at 0x413ff0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x3a
push 0
push esi
call fcn.0041a230
or eax, 0xffffffff
mov dword [esi + 0x25], eax
mov dword [esi + 0x29], eax
mov dword [esi + 0x2d], eax
mov dword [esi + 0x31], eax
mov dword [esi + 0x35], eax
mov byte [esi + 0x39], al
mov eax, dword [esp + 0x14]
push eax
push 1
push 0x3a
push esi
call fcn.0041ab5e
dec eax
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x414470
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [ecx + 4]
push edi
push 0x434d28
push eax
call fcn.0041bb78
mov edi, eax
add esp, 8
test edi, edi
je 0x41449c
mov ecx, dword [esi]
test ecx, ecx
jne 0x4144a3
push edi
call fcn.0041a842
add esp, 4
pop edi
xor eax, eax
pop esi
ret 8
lea edx, [esp + 0xc]
push edx
call fcn.00414030
push ecx
mov eax, edx
push eax
call fcn.00414070
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x41452c
push ebx
mov bl, 0x40
lea ecx, [esp + 0x10]
push ecx
call fcn.00414040
mov esi, eax
mov al, byte [esi + 0xa]
add esp, 4
cmp al, bl
jae 0x41450e
lea esp, [esp]
mov eax, dword [esi + 4]
test eax, eax
je 0x4144f5
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00414070
add esp, 8
add byte [esi + 0xa], bl
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00414070
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x4144e0
jmp 0x414524
push edi
sub al, bl
push 1
mov byte [esi + 0xa], al
push 0x3a
add esi, 0xb
push esi
call fcn.0041adba
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x4144c3
pop ebx
push edi
call fcn.0041a842
lea ecx, [esp + 0x10]
push ecx
call fcn.00414090
add esp, 8
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x4147c0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
test edi, edi
jbe 0x4147e5
mov cl, byte [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
mov dl, byte [eax + esi]
sub dl, 0x23
xor dl, cl
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jb 0x4147d4
pop esi
pop edi
ret