joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a118
Capabilities:
Encode data using xor

Disassembly:
rol byte [ebx - 0x17230741], 0
add dword [edi], ecx
test bl, ch
lea ecx, [ebp - 0x24]
mov esi, dword [0xfffa8253]

Function at 0x47a5c1
Capabilities:
Encode data using xor

Disassembly:
test byte [ebp + 0x17], al
xchg ecx, eax
push 0xfffffffffffffffa
push dword [ebx]
dec dword [ecx + 0x39590446]
jle 0x47a5d9
jbe 0x47a608
push 0xc
call fcn.00421059
inc esi
or byte [ecx + 0x4b8b117e], cl
inc dword [esi + 8]
mov dword [esi + 0x11], edi
mov ecx, dword [ebx + 4]
push dword [ecx + edi*4]
add al, 0xff
xor al, 0xb9
mov ecx, eax
call 0x3456b2c
pop edx
enter 0x2083, 0
and dword [eax], 0
mov esi, dword [esi + 0xc890f03]
mov eax, 0x87e3b47
jb 0x47a5d3
jmp 0x47a608
pop edi
add ebx, ebp
add dh, byte [ebx]
rcr byte [0x43db3353], cl
cmp dword [ebp], ebx
rcr al, 0xec
mov edi, ecx
mov eax, dword [esi]
mov dword [edi], eax
lea ecx, [edi + 0x10]
adc eax, 0x47893943
add al, 0x8b
inc eax
mov ebx, dword [ebp - 0x58]
sub byte [esi + eax*2], bl
or al, 0x89
inc edi
or al, 0x8d
inc esi
adc byte [eax - 0x18], dl
ret 0xf8f8

Function at 0x48cc0c
Capabilities:
Encode data using xor

Disassembly:
push 0x48f80212
adc al, byte [edx]
clc
dec eax
inc esp
push eax
adc byte [ebx - 0x577f3a00], cl
add dword [ebp + ebp - 0x7bea00ff], eax
cmc
dec eax
dec ebp
jnp 0x48cc0d
adc al, 0xf9
add eax, 0x4d8b1d74
or al, 0xa1
adc byte [eax + 0x4c], ch
mov esi, dword [ecx]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
cmp byte [esi + 0x558b0f84], 0
je 0x48cc52
call [esi - 0x7b7939e8]
jnp 0x7647ccb3
adc al, 0x68
xor al, byte [edx]
clc
dec eax
inc esp
push eax
adc bh, bh
adc eax, 0x4d48f584
pop esi
jnp 0x48cc58
adc al, 0xf9
add eax, 0x4d8b1d74
or al, 0xa1
adc byte [eax + 0x4c], ch
mov ecx, dword [ebx - 0x747477fc]
cmp dword [eax + 0x2c], 0
je 0x48cc92
sub al, 0x75
sbb bh, bh
jne 0x48ccac
push 0x53
inc esp
push eax
adc bh, bh
adc eax, 0x4d48f584
cmp dword [0xf84c6860], 0x10
xor dword [ebx - 0x40f0ef8b], ecx
inc eax
or byte [edi + ebx - 0x18], dh
dec eax
clc
mov dword [ebp - 8], edi
Function at 0x86b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0086b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x86b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86b06a
add dl, dl
jne 0x86b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86b0dc
xor eax, eax
add dl, dl
jne 0x86b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86b17d
add dl, dl
jne 0x86b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x86b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x86b075
mov eax, 1
add dl, dl
jne 0x86b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x86b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x86b0e1
sub eax, ebx
mov ebx, 1
jne 0x86b128
mov ecx, 1
add dl, dl
jne 0x86b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x86b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x86b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x86b136
cmp eax, 0x7d00
jae 0x86b16d
cmp eax, 0x500
jb 0x86b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x86b075
cmp eax, 0x7f
ja 0x86b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x86b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86b19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x86b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4017e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x244
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
mov ebp, dword [esp + 0x250]
push edi
push 0x228
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0x22c
call fcn.004aaf30
add esp, 0xc
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401844
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004a6859
add esp, 0x244
ret
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4018bd
lea edx, [esp + 0x3c]
push edx
push ebp
call fcn.004a6c9d
add esp, 8
test eax, eax
jne 0x4018ae
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401874
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x401890
mov eax, dword [esp + 0x20]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x4018ae
cmp ecx, edi
jbe 0x401899
call fcn.004a7f7d
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, esi
call fcn.0040c900
lea eax, [esp + 0x18]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401853
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24c]
and eax, 0xfffffffc
pop edi
neg eax
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004a6859
add esp, 0x244
ret
Function at 0x4018f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x428
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
mov ebp, dword [esp + 0x434]
push esi
push edi
xor esi, esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetTopWindow]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401944
mov eax, esi
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a6859
add esp, 0x428
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jbe 0x40195d
call fcn.004a7f7d
mov ebx, dword [ebp]
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], edi
jbe 0x40196d
call fcn.004a7f7d
mov eax, dword [ebp]
test ebx, ebx
je 0x401978
cmp ebx, eax
je 0x40197d
call fcn.004a7f7d
cmp esi, edi
je 0x4019f6
test ebx, ebx
jne 0x4019ee
call fcn.004a7f7d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x401996
call fcn.004a7f7d
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi]
jne 0x4019d1
mov ecx, dword [esp + 0x14]
push 0x208
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x20]
push str.__Google_Chrome
push edx
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x4019d1
mov dword [esp + 0x18], 1
test ebx, ebx
jne 0x4019f2
call fcn.004a7f7d
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4019e6
call fcn.004a7f7d
add esi, 4
jmp 0x401960
mov eax, dword [ebx]
jmp 0x40198c
mov eax, dword [ebx]
jmp 0x4019dc
mov eax, dword [esp + 0x14]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401940
mov eax, dword [esp + 0x18]
jmp 0x401926
Function at 0x401a20
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
push 0x11c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
xor esi, esi
call fcn.004aaf30
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401b91
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401aaf
lea edx, [esp + 4]
push edx
call eax
jmp 0x401aba
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x38], 2
jne 0x401b91
mov eax, dword [esp + 0x2c]
cmp eax, 4
jbe 0x401b91
cmp eax, 5
jne 0x401b02
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x401ae5
cmp eax, 1
jne 0x401b2c
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004a6859
add esp, 0x144
ret
cmp eax, 6
jne 0x401b79
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x401b4d
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004a6859
add esp, 0x144
ret
test eax, eax
jne 0x401b79
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004a6859
add esp, 0x144
ret
cmp eax, 1
jne 0x401b6f
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004a6859
add esp, 0x144
ret
cmp eax, 2
jne 0x401b79
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004a6859
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004a6859
add esp, 0x144
ret
Function at 0x401d50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
test eax, eax
jne 0x401d5b
pop edi
pop ecx
ret
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e1a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x401e13
cmp eax, 0xa00000
jg 0x401e13
inc eax
push eax
call fcn.00498c53
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x401e13
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push eax
call fcn.004aaf30
mov eax, dword [edi]
mov ecx, dword [ebx]
add esp, 0xc
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401df3
mov edx, dword [esp + 8]
cmp edx, dword [edi]
jne 0x401df3
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [ebx]
xor edi, edi
test eax, eax
je 0x401e06
push eax
call fcn.004a6d91
add esp, 4
mov dword [ebx], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x402750
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c3c78
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x4cf374
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.0040f300
mov eax, dword [esp + 0x30]
push 0x4cbc38
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], ebx
push ecx
mov dword [esp + 0x20], ebx
call fcn.004a6ee5
add esp, 0xc
test eax, eax
jne 0x4028b7
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4028b7
push 2
push ebx
push eax
call fcn.004a6fc2
mov edx, dword [esp + 0x20]
push edx
call fcn.004a71e4
mov edi, eax
add esp, 0x10
cmp edi, 0xa00000
jle 0x402826
mov eax, dword [esp + 0x14]
push eax
call fcn.004a7586
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x1c], ebx
call fcn.0040ec90
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4028ec
lea ecx, [edi + 2]
push ecx
call fcn.00498c53
mov edx, dword [esp + 0x18]
push ebx
push ebx
push edx
mov esi, eax
call fcn.004a6fc2
mov eax, dword [esp + 0x24]
push eax
push edi
push 1
push esi
call fcn.004a74f2
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0x20
push ebx
push ebx
push edi
push esi
push ebx
push 0xfde9
call ebp
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x402885
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040f0e0
mov edx, dword [esp + 0x18]
push ebx
push edx
push edi
push esi
push 0
push 0xfde9
call ebp
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040e540
push esi
call fcn.00498c5e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004a7586
add esp, 8
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.0040ec90
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x402910
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c3c48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e5d60]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0040f300
mov ecx, dword [esp + 0x24]
push 0x4cbc6c
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x24], 0
push edx
mov dword [esp + 0x34], 0
call fcn.004a6ee5
add esp, 0xc
test eax, eax
jne 0x4029f7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4029f7
push 0
push 0
push eax
call fcn.004a6fc2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
lea eax, [esi + 2]
push eax
call fcn.00498c53
add esp, 4
push 0
push 0
push esi
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
push 0
push 0xfde9
call ebx
mov ecx, dword [esp + 0x28]
push ecx
push esi
push 1
push edi
call fcn.004a7783
push edi
call fcn.00498c5e
mov edx, dword [esp + 0x3c]
push edx
call fcn.004a7586
add esp, 0x18
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x403a90
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareBkav_CorporationHomeVN
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
cmp eax, esi
je 0x403aed
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push edx
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403ae2
lea esi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x403b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.SoftwareBkav_CorporationHomeVN
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
cmp eax, esi
je 0x403b7e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 4
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403b73
cmp dword [esp + 8], 4
jne 0x403b73
cmp dword [esp + 0xc], 1
jne 0x403b73
lea esi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x40ed40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ed59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ed94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40ed90
lea ebx, [ebx]
cmp esi, eax
jae 0x40ed94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40ed80
cmp esi, eax
jb 0x40ed9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40f9a0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x824
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x820], eax
or eax, 0xffffffff
mov dword [0x4eb628], eax
mov dword [0x4eb62c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.004aaf30
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.004aaf30
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x432]
push edx
mov word [esp + 0x434], cx
call fcn.004aaf30
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x646]
push ecx
mov word [esp + 0x648], ax
call fcn.004aaf30
add esp, 0x30
push 0x208
push 0x4eb940
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea edx, [esp + 0x61c]
push edx
push 0x104
lea eax, [esp + 0x41c]
push eax
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0x104
lea edx, [esp + 0x224]
push edx
push 0x4eb940
call fcn.004a8438
lea eax, [esp + 0x24]
add esp, 0x24
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fa90
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x40fab0
xor ecx, ecx
mov word [eax], cx
lea edx, [esp]
push edx
lea eax, [esp + 0x20c]
push eax
push 0x4d345c
push 0x208
push 0x4ebd50
call fcn.004a8658
lea ecx, [esp + 0x424]
push ecx
push 0x104
push 0x4ec160
call fcn.004a8254
lea edx, [esp + 0x638]
push edx
push 0x104
push 0x4ec368
call fcn.004a8254
push 0x4cbe94
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x23c]
push ecx
push str._s_s_s.lnk
push 0x208
push 0x4ec570
call fcn.004a8658
add esp, 0x44
push 0x4ebd50
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.004a6859
add esp, 0x824
ret

Function at 0x4108e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test esi, esi
jne 0x4108ed
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 ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4108e7
mov edx, dword [esp]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push ebx
push edx
call edi
test eax, eax
je 0x41093c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x41094a
cmp eax, 2
jne 0x41097e
mov eax, dword [esp + 0x14]
add eax, eax
cmp dword [esp + 8], eax
jbe 0x41095a
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push eax
call edi
test eax, eax
je 0x410985
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0xc
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
add esp, 0xc
ret
Function at 0x4109a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
test ebx, ebx
jne 0x4109ad
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_CorporationHomeVN
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4109a7
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 dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push edi
push eax
call esi
test eax, eax
je 0x410a07
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, 4
cmp dword [esp + 0xc], eax
jne 0x410a00
cmp dword [esp + 8], eax
jne 0x410a00
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push ebx
lea eax, [esp + 0x14]
push eax
push 0
push edi
push ecx
call esi
test eax, eax
je 0x410a43
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]
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x410a60
Capabilities:
Set registry value

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push 0
push 6
push 0
push 0
push 0
push str.SoftwareBkav_CorporationHomeVN
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410aae
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x410ab2
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x410ad0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push 0x7d0
push str..pipeHomevn_service
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x410af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 8
ret
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeHomevn_service
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410b4d
mov ecx, dword [edi]
push 0
lea eax, [esp + 8]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410b46
push 0
lea edx, [esp + 0xc]
push edx
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], 0
jne 0x410b6a
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop esi
add esp, 8
ret