joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b9b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b9e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b9c9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b9d8
or bl, 4
test esi, 0x20000000
je 0x44b9e3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452090
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4520a2
add esp, 0xfffffff0
call fcn.00403b00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a860
mov eax, dword [0x457edc]
mov dword [eax + 4], ebx
mov dword [eax], 0x452434
mov eax, dword [0x457ee8]
mov dword [eax + 4], ebx
mov dword [eax], 0x452440
mov eax, ebx
call fcn.0045244c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e868
push eax
push 0
push 0
mov eax, dword [0x45802c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c2b4]
call fcn.0041da28
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c2b4]
call fcn.0041da28
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c2b4]
call fcn.0041da28
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045286c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452748
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452748
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452748
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4521df
call fcn.00403b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45252c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4526d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4526b8
mov dl, 1
mov eax, dword [0x412f5c]
call fcn.004037ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040452c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4526a7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004400a8
test al, al
je 0x45269a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4526e8
lea eax, [ebp - 0x254]
call fcn.0040a01c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45269a
xor eax, eax
push ebp
push 0x452693
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452720
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45267c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040479c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45267c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040479c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45269a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45259d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416a50
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4526de
lea eax, [ebp - 0x260]
call fcn.0040452c
ret

Function at 0x45300c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x459bb0]
cmp byte [eax + 0xa5], 0
jne 0x45307d
cmp dword [0x459bc8], 0
jne 0x45303e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452fc8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x459bc8], eax
cmp dword [0x459bc4], 0
jne 0x453059
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x459bc4], eax
cmp dword [0x459bcc], 0
jne 0x45307d
push esp
push 0
push 0
push 0x452f6c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x459bcc], eax
pop edx
ret
Function at 0x453174
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45318b
add esp, 0xfffffff0
call fcn.00403b00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a860
mov eax, dword [0x458018]
cmp word [eax + 2], 0
jne 0x4531b3
mov eax, dword [0x458018]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045484c
mov eax, dword [0x4580c4]
cmp word [eax + 2], 0
jne 0x4531cd
mov eax, dword [0x4580c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454a44
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412b40]
call fcn.004037ac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cd94]
call fcn.0042423c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453354
mov eax, dword [0x457f3c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042460c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454fe4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x457f3c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d6e4
test eax, eax
je 0x4532c2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409a10
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d70c
test eax, eax
je 0x4532d6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040479c
mov eax, dword [0x457e30]
cmp byte [eax], 0
jne 0x45330a
mov eax, ebx
call fcn.0045347c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004551c0
mov eax, ebx
call fcn.00455b84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45334a
call fcn.00403b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4536fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x459bb0]
cmp dword [eax + 0x30], 0
je 0x4537a6
cmp dword [ebx + 0x94], 0
jne 0x4537a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45368c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4537a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453766
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4537a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414ea8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453775
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454308
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45433d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040461c
jmp 0x45434a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404580
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45539c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4553dd
mov eax, esi
call fcn.0043b724
test al, al
je 0x4553dd
mov eax, dword [ebx + 0x84]
call fcn.0043b44c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4553dd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b44c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x455e0c
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455e1b
mov al, 1
ret
xor eax, eax
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x49ab28]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.0046e3e0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40105f
cmp dword [esp + 4], 6
jb 0x40105f
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0046c1d2
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor eax, eax
call fcn.0046c1d2
add esp, 0xa0
ret

Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
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
je 0x4010a8
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
test eax, eax
je 0x4010a2
push esi
lea ecx, [esp + 8]
push ecx
push 0x4a1e34
lea edx, [esp + 0x14]
push edx
push 0
push str.AllowMultipleTSSessions
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x4010ee
cmp dword [esp + 8], 4
jne 0x4010a2
mov eax, 1
add esp, 0xc
ret
Function at 0x401fa0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push ebp
mov ebp, dword [esp + 8]
test edi, edi
je 0x402004
test ebp, ebp
je 0x402004
mov ecx, dword [ebp]
cmp ecx, 8
jb 0x402004
cmp dword [edi], 0x4b374454
jne 0x402004
push ebx
mov ebx, 1
push esi
lea esi, [ecx - 8]
cmp dword [edi + 4], ebx
jne 0x402002
lea edx, [edi + 8]
mov ecx, 0x76dcce6e
test esi, esi
jbe 0x401ff2
lea ebx, [ebx]
xor byte [eax + edx], cl
shr ecx, 4
add eax, ebx
imul ecx, ecx, 0x82b7831e
cmp eax, esi
jb 0x401fe0
push esi
push edx
push edi
call fcn.00471360
add esp, 0xc
mov dword [ebp], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x403040
Capabilities:
Read pipe
Write pipe

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeK7AGNT0623F4BA_EB94_42c8_A95E_5D1ADA983484
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f7e
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x402fdd
push 0x2710
push str..pipeK7AGNT0623F4BA_EB94_42c8_A95E_5D1ADA983484
call ebx
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeK7AGNT0623F4BA_EB94_42c8_A95E_5D1ADA983484
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x402f44
lea edi, [ebp + 0xc]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x402fe2
mov eax, dword [esp + 0x28]
mov dword [ebx], 0x4b374147
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
test ebp, ebp
je 0x402fbd
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
lea edx, [ebx + 0xc]
push edx
call fcn.0046c470
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x402fec
xor edi, edi
jmp 0x403013
cmp esi, 0xffffffff
jne 0x402f7e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea edx, [esp + 0x24]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov edi, eax
neg edi
sbb edi, edi
neg edi
cmp esi, 0xffffffff
je 0x40301f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
jmp 0x402f10
Function at 0x404563
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Carnivore
push dword [0x499014]
lea eax, [ebp - 0x108]
push dword [0x499010]
xor esi, esi
push dword [section..data]
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046a720
mov edi, eax
test edi, edi
je 0x4045d8
push dword [0x499054]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046c1d2
leave
ret

Function at 0x4046ef
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Carnivore
push dword [0x499014]
lea eax, [ebp - 0x108]
push dword [0x499010]
xor esi, esi
push dword [section..data]
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046a720
mov edi, eax
test edi, edi
je 0x404764
push dword [0x499058]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046c1d2
leave
ret

Function at 0x40487b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Carnivore
push dword [0x499014]
lea eax, [ebp - 0x108]
push dword [0x499010]
xor esi, esi
push dword [section..data]
push str._s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046a720
mov edi, eax
test edi, edi
je 0x4048f0
push dword [0x49905c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046c1d2
leave
ret
Function at 0x404de5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x499014]
lea eax, [ebp - 0x108]
push dword [0x499010]
push dword [section..data]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046a720
mov edi, eax
test edi, edi
je 0x404e60
push dword [ebp + 0xc]
push esi
push 7
push 0
push dword [0x499090]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046c1d2
leave
ret

Function at 0x404e6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
and dword [ebp - 4], edi
push edi
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfo
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ebb
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push edi
push str.CInjProcNames
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404ebb
cmp dword [ebp - 8], 7
jne 0x404ebb
inc edi
cmp dword [ebp - 4], 0
je 0x404eca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x404ecf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
and dword [ebp - 4], edi
push edi
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfo
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f1c
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push edi
push str.CInjDllNames
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404f1c
cmp dword [ebp - 8], 7
jne 0x404f1c
inc edi
cmp dword [ebp - 4], 0
je 0x404f2b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor edi, edi
and dword [ebp - 4], edi
push edi
push str.SYSTEMCurrentControlSet_servicesK7SentryConfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f74
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push str.SelfProtection
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404f74
inc edi
cmp dword [ebp - 4], 0
je 0x404f83
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x404f88
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
and dword [ebp - 4], esi
push esi
push str.SYSTEMCurrentControlSet_servicesK7SentryConfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fc3
push str.SelfProtection
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x404fc3
inc esi
cmp dword [ebp - 4], 0
je 0x404fd2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x404fd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
inc ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSet_servicesK7SentryConfig
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40505f
push edi
push 4
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.K7ARAvailable
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
call esi
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x405042
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40505e
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.K7AREnabled
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
mov dword [ebp - 0x10], ebx
pop edi
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x405070
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret

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

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