joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4229a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.004883c0
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
mov eax, dword [0x4db494]
inc esi
add esp, 0xc
mov ecx, 0x4db494
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.__s___s
push eax
call fcn.0041dcb8
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov edi, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0xa
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x422a58
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0x18
jmp 0x422a7d
cmp dword [ebp + 0x10], ebx
je 0x422a7a
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x422a7a
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x422a90
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x422a9d
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422b09
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x206
push edi
lea eax, [ebp - 0x446]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x448], bx
call fcn.004883c0
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.004883c0
mov eax, dword [0x4db494]
mov esi, 0x4db494
add esp, 0x18
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call fcn.00422aad
call fcn.00422f55
test eax, eax
je 0x422c0d
mov eax, dword [0x4db494]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64e]
push ebx
push eax
mov word [ebp - 0x650], bx
call fcn.004883c0
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
lea eax, [ebp - 0xc]
push 0x4badc0
push eax
call fcn.0041dcb8
add esp, 0x18
mov edi, 0x104
push edi
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401aed
lea esi, [ebp - 8]
call fcn.0042271d
mov esi, dword [ebp + 8]
push esi
call fcn.004886c1
cmp eax, 3
pop ecx
jbe 0x422c00
add esi, 6
push esi
lea eax, [ebp - 8]
push eax
call fcn.00405235
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x422c1e
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401aed
mov edi, 0x104
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x422d16
lea ecx, [ebp - 0x240]
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x422d11
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x14]
je 0x422ce7
cmp eax, ebx
je 0x422ce7
cmp eax, 4
je 0x422ce7
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422ce7
call fcn.00422f55
test eax, eax
je 0x422ca9
mov eax, dword [0x4dc578]
cmp eax, ebx
je 0x422ca9
push edi
lea ecx, [ebp - 0x448]
push ecx
push dword [ebp - 4]
call eax
jmp 0x422cc0
mov eax, dword [0x4dc574]
cmp eax, ebx
je 0x422cdf
push edi
lea ecx, [ebp - 0x448]
push ecx
push ebx
push dword [ebp - 4]
call eax
cmp eax, ebx
je 0x422cdf
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx - 0xc]
jne 0x422cdf
lea eax, [ebp - 0x448]
push eax
push ecx
call fcn.004892cf
test eax, eax
pop ecx
pop ecx
je 0x422d00
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x422c60
jmp 0x422d07
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
je 0x422d11
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422d29
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
xor esi, esi
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x230], esi
call fcn.004883c0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x422dd9
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x422dd2
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
cmp dword [ebp - 0x228], ebx
je 0x422db7
cmp dword [ebp - 0x228], esi
je 0x422db7
cmp dword [ebp - 0x228], 4
je 0x422db7
lea eax, [ebp - 0x20c]
push str.kxetray.exe
push eax
call fcn.004892cf
test eax, eax
pop ecx
pop ecx
je 0x422dca
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x422d87
jmp 0x422dd1
mov dword [ebp - 4], 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x422de0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
xor esi, esi
push 0x228
lea eax, [ebp - 0x240]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x244], esi
call fcn.004883c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00401989
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x422f44
push edi
lea ecx, [ebp - 0x244]
push ecx
push eax
mov dword [ebp - 0x244], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x422f3e
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x14]
je 0x422ee2
cmp eax, esi
je 0x422ee2
cmp eax, 4
je 0x422ee2
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041dccb
mov eax, dword [eax]
push esi
push eax
call fcn.0048a568
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040151c
test bl, bl
je 0x422ee2
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
call fcn.0041dccb
mov eax, dword [eax]
pop ecx
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040151c
cmp ebx, 0xffffffff
je 0x422efb
push ebx
call edi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x422e59
jmp 0x422f3d
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041dccb
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xffffffffffffffff
push str.IsProcessRunningByDirectory_CreateFile_return:_d__error:_d__path:_ws
mov esi, 0x4dc90c
call fcn.0044866c
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040151c
mov dword [ebp - 0x10], 1
pop ebx
push dword [ebp - 0xc]
call edi
pop edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x422fa1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42300e
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x42300e
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x42300e
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp dword [ebp - 4], esi
je 0x42301c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
leave
ret
Function at 0x42337d
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
je 0x42339c
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov edi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.KillProcessByPid_TerminateProcess_return:_d__error:_d__pid:_d
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0x10
mov eax, edi
pop edi
pop esi
ret
Function at 0x423b5e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x4dceac], 1
jne 0x423b97
mov eax, dword [0x4db494]
or dword [0x4dceac], 1
mov ecx, 0x4db494
call dword [eax + 0xc]
add eax, 0x10
push 0x4b1b81
mov dword [0x4dcea8], eax
call fcn.0048a159
pop ecx
mov eax, dword [0x4dcea8]
cmp dword [eax - 0xc], 0
jne 0x423be1
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x423bdc
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x4dcea8
push esi
call fcn.00401aed
call fcn.0042271d
push str.drivers_
push esi
call fcn.00405235
pop esi
mov eax, dword [0x4dcea8]
add eax, 0xfffffff0
call fcn.00401648
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x423df2
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
mov word [ebp - 0x218], si
call fcn.004883c0
add esp, 0xc
push esi
push esi
push 3
push esi
push 1
push esi
push str..KAVBase
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x423e4d
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push 0x830020e0
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push str.SYSTEMCurrentControlSet_serviceskavbase
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042410f
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push str.system32driversKAVBase.sys
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp edi, 0xffffffff
je 0x423ea9
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x423f92
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.004883c0
push str.ALLUSERSPROFILE
call fcn.0048b0b2
add esp, 0x10
call fcn.004010df
cmp dword [esi + 0x14], edi
jne 0x423ff6
push edi
push 0x23
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
call fcn.004010df
cmp dword [esi + 0x14], edi
je 0x42407a
mov eax, dword [esi + 0x14]
push ebx
lea ebx, [eax - 1]
cmp eax, ebx
ja 0x424006
call fcn.00487373
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x424013
mov eax, dword [edi]
jmp 0x424015
mov eax, edi
movzx eax, word [eax + ebx*2]
cmp ax, 0x5c
pop ebx
je 0x424031
cmp ax, 0x2f
je 0x424031
push 0x4b9a60
push esi
call fcn.0040103b
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp al, 5
jne 0x42405e
push str.Application_Data
call fcn.004886c1
pop ecx
push eax
mov eax, esi
call fcn.00428151
cmp eax, 0xffffffff
jne 0x42405e
push str.Application_Data_
push esi
call fcn.0040103b
push str.kingsoftkis_
push esi
call fcn.0040103b
cmp dword [esi + 0x18], 8
jb 0x424071
mov edi, dword [edi]
push edi
call fcn.0042291d
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x424080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [esi], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x424109
push ebx
call fcn.0048732f
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4240fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b9a60
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4240fa
cmp dword [ebp - 0xc], ebx
je 0x4240fa
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi], ecx
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x424109
push dword [ebp - 4]
call fcn.0048843a
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret
Function at 0x42410f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x424195
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42415a
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call fcn.0042410f
cmp eax, esi
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x42419b
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x200
call edi
test eax, eax
je 0x424142
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
jmp 0x424195

Function at 0x4241ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.004883c0
add esp, 0xc
mov ecx, 0x4db494
call fcn.004016a0
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x424230
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00401aed
push str.kantivirus_
push esi
call fcn.00405235
push dword [esi]
call fcn.0042291d
mov dword [esp], str.kavsetup.log
push esi
call fcn.00405235
jmp 0x424235
call fcn.004015cc
mov eax, esi
pop esi
leave
ret

Function at 0x42423a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00401e62
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4242e7
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4242e6
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call fcn.00401ec1
mov esi, eax
mov dword [ebp - 8], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4242e6
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4242e6
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x424297
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x4242d1
xor eax, eax
jmp 0x4242d8
push eax
call fcn.0048a3c0
pop ecx
mov edx, esi
call fcn.00401ea1
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x424402
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push 0x2001f
push edi
push 0x4bd4a0
push SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], edi
mov word [ebp - 0x24], di
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4244cd
mov eax, dword [ebp - 8]
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00437ef1
mov ebx, eax
push ebx
push str.DeleteUUIDex_RecurseDeleteKey_:_d
mov esi, 0x4dc90c
call fcn.0044866c
cmp ebx, edi
pop ecx
pop ecx
jne 0x4244cd
lea eax, [ebp - 0x28]
call fcn.00423f92
push str.hg.dat
lea eax, [ebp - 0x28]
push eax
call fcn.0040103b
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x424493
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0048a568
test eax, eax
pop ecx
pop ecx
jne 0x4244c6
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4244ac
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ebx, eax
push ebx
push str.DeleteFile_hg.dat_return:_d
call fcn.0044866c
cmp ebx, edi
pop ecx
pop ecx
je 0x4244cd
mov dword [ebp - 0xc], 1
push edi
push 1
lea esi, [ebp - 0x28]
call fcn.0040114b
cmp dword [ebp - 4], edi
je 0x4244e6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424a35
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x424a57
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
leave
ret
mov dword [ebp - 4], 0x110
call fcn.004427c3
cmp eax, 8
jne 0x424a79
call fcn.004429cc
cmp eax, 2
jne 0x424a79
mov dword [ebp - 4], 0x10
push ebx
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x424b16
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
cmp eax, 0x431
je 0x424ac5
call ebx
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop ebx
jmp 0x424a54
push 2
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x424ab2
push dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x424b16
call ebx
push dword [ebp - 4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424948
add esp, 0x18
jmp 0x424ab4
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x424b32
cmp word [eax], si
je 0x424b32
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x424ab6
Function at 0x424b3e
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push str.CreateShellLink_start...
mov esi, 0x4dc90c
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0044866c
pop ecx
lea eax, [ebp - 4]
push eax
push 0x4b289c
push 1
push edi
push 0x4b28cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jl 0x424c12
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x424ba2
cmp word [eax], di
je 0x424ba2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4b28dc
push eax
call dword [ecx]
test eax, eax
jl 0x424c00
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
call fcn.00401989
lea eax, [ebp - 0xc]
call fcn.00422761
mov edi, dword [ebp - 0xc]
push edi
call fcn.0042291d
pop ecx
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
test ebx, ebx
setge al
mov edi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push str.CreateShellLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.0044866c
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4db494]
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
mov ecx, 0x4db494
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x4dc6ec]
add eax, 0xfffffff0
call fcn.00401648
mov esi, eax
add esi, 0x10
lea eax, [ebp - 0xc]
lea edi, [ebp - 4]
mov dword [ebp - 0xc], esi
call fcn.0040206d
lea eax, [esi - 0x10]
call fcn.0040151c
push str.kavmenu.dll
mov eax, edi
push eax
call fcn.00405235
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424cc6
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x424cc6
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
test edi, edi
je 0x424cc6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebx - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret