joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402806
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x3b8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0049f6d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4028b7
mov byte [esi], bl
lea eax, [ebp - 0x3b4]
inc esi
lea ecx, [ebp - 0x108]
push eax
mov edx, esi
call fcn.00402735
pop ecx
lea eax, [ebp - 0x3b8]
push eax
push 0x20006
push ebx
push str.SOFTWAREK7_ComputingK7TotalSecurityProductsFireWallApplications
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028b5
push 0x2ac
lea eax, [ebp - 0x3b4]
push eax
push 3
push ebx
push esi
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x3b8]
xor ecx, ecx
inc ecx
test eax, eax
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret

Function at 0x402a89
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x11c], eax
xor eax, eax
push eax
push str.SoftwareK7_ComputingK7TotalSecurityCommonInfoFeatureStatus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x10c], al
call fcn.004991c0
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
je 0x402b0c
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x110]
push edi
call fcn.00499660
mov ecx, dword [ebp - 0x10c]
cmp eax, ebx
movzx ecx, cl
cmove ecx, ebx
push edi
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
mov ecx, str._s_FeatureInfo1.0
mov eax, str.Global_s_FeatureInfo1.0
cmovne eax, ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402a6e
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
je 0x402b8e
push esi
xor eax, eax
push eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x402b87
push dword [ebp - 0x118]
push esi
push dword [ebp - 0x11c]
call fcn.0049f810
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 0x114], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x10c], 0
jne 0x402b9c
push 0xfffffffffffffffe
pop eax
jmp 0x402bab
or eax, 0xffffffff
cmp byte [ebp - 0x114], 0
cmove ebx, eax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x402c5f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov ebx, ecx
xorps xmm0, xmm0
push 0
mov dword [esp + 0x14], ebx
movlpd qword [esp + 0x1c], xmm0
call fcn.004c8af7
mov dword [esp], str..dmp
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402df4
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp byte [esp + 0x4c], 0x2e
je 0x402d38
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.00402c43
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jg 0x402d0b
sub ecx, eax
cmp ecx, 0x278d00
jg 0x402d0b
add esi, dword [esp + 0x40]
adc ebx, 0
jmp 0x402d38
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402cda
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x402d5f
cmp esi, 0x40000000
jb 0x402df4
push str..dmp
push dword [esp + 0x14]
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402df4
cmp byte [esp + 0x4c], 0x2e
je 0x402ddd
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x168]
push 0x506968
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esi, dword [esp + 0x40]
sbb ebx, 0
jne 0x402ddd
cmp esi, 0x40000000
jb 0x402ded
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d98
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d307
mov esp, ebp
pop ebp
ret
Function at 0x4036f5
Capabilities:
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x34c]
stosd dword es:[edi], eax
xor ebx, ebx
and dword [ebp - 0x32c], ebx
mov esi, ecx
push 0x104
push ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x334], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0049ef70
push 0x208
xor edi, edi
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.0049ef70
add esp, 0x18
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x338], eax
test eax, eax
je 0x4038f3
push 0x13
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4038eb
lea eax, [ebp - 0x32c]
push eax
push ebx
push ebx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
jne 0x40382f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4038e8
push dword [ebp - 0x32c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x330], eax
test eax, eax
je 0x4038e8
lea ecx, [ebp - 0x32c]
push ecx
push dword [ebp - 0x32c]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
je 0x4038e8
push dword [ebp - 0x32c]
push 0x51c0dc
push dword [ebp - 0x330]
call fcn.0049fe79
add esp, 0xc
test eax, eax
push 1
pop eax
push dword [ebp - 0x330]
cmove ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4038e8
lea ecx, [ebp - 0x108]
call fcn.004035c7
test eax, eax
je 0x4038e8
push dword [ebp - 0x334]
lea eax, [ebp - 0x108]
push str._svccheck
push str.K7TSHlpr.exe
push eax
lea eax, [ebp - 0x310]
push str.__s_s___s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 0x318], 0
lea eax, [ebp - 0x310]
and dword [ebp - 0x314], 0
add esp, 0x18
mov dword [ebp - 0x344], eax
xor eax, eax
inc eax
mov dword [ebp - 0x34c], 0x278d00
mov dword [ebp - 0x328], eax
mov eax, 0xea60
push 3
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x328]
pop ecx
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x34c]
push eax
push 2
push esi
mov dword [ebp - 0x340], ecx
mov dword [ebp - 0x320], ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x4038e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4038e8
xor eax, eax
lea ebx, [eax + 1]
push esi
call edi
push dword [ebp - 0x338]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x403960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 0x804], 0
push eax
push ecx
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x804]
call fcn.0040391b
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x506bc8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
leave
ret

Function at 0x4039b5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x9c
lea eax, [ebp - 0xa0]
push esi
push 0
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0xa0], esi
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop esi
test eax, eax
je 0x403a06
cmp dword [ebp - 0x9c], 6
jb 0x403a06
xor eax, eax
inc eax
jmp 0x403a08
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d307
leave
ret

Function at 0x403a14
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a7e
cmp dword [ebp - 4], eax
je 0x403a7e
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x52a8b4
lea eax, [ebp - 0xc]
push eax
push 0
push str.AllowMultipleTSSessions
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x403a79
cmp dword [ebp - 0xc], 4
jne 0x403a7e
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x403d43
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov edi, ecx
call fcn.00403c30
mov ebx, eax
test ebx, ebx
jne 0x403d66
mov eax, 0x3f0
jmp 0x403e16
xor esi, esi
lea edx, [ebp - 8]
mov ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00403cd6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x403d96
push esi
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp - 8]
call edi
push 0x44
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x20]
mov dword [ebp - 0x64], str.winsta0default
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
push 0x400
push esi
push esi
push esi
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x403e00
cmp dword [ebp + 0xc], esi
je 0x403df4
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x1c]
call edi
jmp 0x403e08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push ebx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403e73
Capabilities:
Enumerate processes on remote desktop session host
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], esi
push eax
push 1
push edi
push edi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesA]
test eax, eax
je 0x403f17
mov esi, edi
cmp dword [ebp - 8], esi
jbe 0x403f14
mov eax, dword [ebp - 4]
mov edi, esi
add edi, edi
cmp dword [eax + edi*8], 0
je 0x403f0e
push str.explorer.exe
push dword [eax + edi*8 + 8]
call fcn.004c8c14
pop ecx
pop ecx
test eax, eax
jne 0x403f0e
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
mov eax, dword [ebp - 4]
push 8
mov dword [ebp - 0x14], ecx
push dword [eax + edi*8]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x403f0e
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
jne 0x403f03
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x10], eax
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
and dword [ebp - 0xc], 0
inc esi
cmp esi, dword [ebp - 8]
jb 0x403eab
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
je 0x403f26
push dword [ebp - 4]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x403f76
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
lea eax, [ebp - 0x108]
push esi
jb 0x403fa4
push str..Global_s
jmp 0x403fa9
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret

Function at 0x403feb
Capabilities:
Check os version

Disassembly:
mov ecx, 0x506d08
jmp fcn.00403f76

Function at 0x404224
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x4042ce
push edi
lea edi, [edx + 2]
xor edx, edx
push 3
lea eax, [ebx - 1]
pop ecx
div ecx
lea edx, [eax + 1]
push 4
pop eax
cmp ebx, eax
cmovb eax, ebx
mov dword [ebp + 8], eax
movzx eax, byte [edi - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi - 2]
movzx eax, byte [edi - 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
cmp dword [ebp + 8], 1
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
jle 0x40429d
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40429f
mov al, 0x3d
cmp dword [ebp + 8], 2
mov byte [esi + 2], al
jle 0x4042b6
movzx eax, byte [edi]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4042b8
mov al, 0x3d
mov byte [esi + 3], al
add edi, 3
add esi, 4
sub ebx, 3
sub edx, 1
jne 0x404247
pop edi
mov byte [esi], 0
pop esi
pop ebx
pop ebp
ret

Function at 0x405651
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Carnivore
push str.AntiVirus
push str.Products
push str.SoftwareK7_ComputingK7TotalSecurity
lea eax, [ebp - 0x108]
xor esi, esi
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00499480
mov edi, eax
test edi, edi
je 0x4056c1
push str.DisableTempAdvProt
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
push edi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret
Function at 0x4057d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Carnivore
push str.AntiVirus
push str.Products
push str.SoftwareK7_ComputingK7TotalSecurity
lea eax, [ebp - 0x108]
xor esi, esi
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00499480
mov edi, eax
test edi, edi
je 0x405840
push str.DisableTempBrowProt
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
push edi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret

Function at 0x40594f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Carnivore
push str.AntiVirus
push str.Products
push str.SoftwareK7_ComputingK7TotalSecurity
lea eax, [ebp - 0x108]
xor esi, esi
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00499480
mov edi, eax
test edi, edi
je 0x4059bf
push str.DisableTempExplProt
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
push edi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0049d307
leave
ret

Function at 0x405e6b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x51e844]
lea eax, [ebp - 0x108]
push esi
mov esi, dword [0x51e840]
push edi
push str.AntiVirus
push str.Products
push str.SoftwareK7_ComputingK7TotalSecurity
push 0x506f78
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00499480
mov edi, eax
test edi, edi
je 0x405eea
push esi
push ebx
push 7
push 0
push str.MetroAppDirs
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
push edi
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret
Function at 0x405ef9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, edx
mov dword [ebp - 4], esi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f49
push edi
push ebx
lea eax, [ebp - 8]
push eax
push esi
push str.CInjProcNames
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f49
inc eax
cmp dword [ebp - 8], 7
cmove esi, eax
cmp dword [ebp - 4], 0
je 0x405f58
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x405f5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, edx
mov dword [ebp - 4], esi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405faf
push edi
push ebx
lea eax, [ebp - 8]
push eax
push esi
push str.CInjDllNames
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405faf
inc eax
cmp dword [ebp - 8], 7
cmove esi, eax
cmp dword [ebp - 4], 0
je 0x405fbe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x406032
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x5073ec
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40607d
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.SelfProtection
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
cmp dword [ebp - 4], 0
je 0x40608c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x406091
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x5073ec
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4060cf
push str.SelfProtection
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
cmp dword [ebp - 4], 0
je 0x4060de
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4060e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
xor ebx, ebx
mov dword [ebp - 4], esi
push 0x5073ec
inc ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x51e8a0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40616e
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.K7ARAvailable
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0xc], esi
jne 0x406149
mov dword [0x51e8a0], esi
jmp 0x40616e
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x51e8a0
lea eax, [ebp - 0x10]
push eax
push esi
push str.K7AREnabled
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x40617d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x406183
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x51e8a0]
push esi
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0xf003f
push esi
push 0x5073ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406200
push edi
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.K7ARAvailable
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], esi
je 0x4061ff
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push str.K7AREnabled
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
pop edi
cmp dword [ebp - 4], 0
je 0x40620f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret