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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.0045da90
push esi
mov esi, ecx
mov eax, dword [esi + 0x1fc08]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x419d03
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x78]
cmp dword [ebp - 4], 0
je 0x419c8d
lea eax, [ebp - 0x804]
push 0x800
push eax
push dword [ebp - 4]
call fcn.00424e92
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp + 8], 0
je 0x419cc5
mov eax, dword [esi + 0x1fc08]
mov ecx, esi
push dword [eax + 0x10]
call fcn.0041955e
test eax, eax
jne 0x419d03
push 0x10
push 0x40a37c
push 0x9d
call fcn.00424eff
pop ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x419d03
lea eax, [ebp - 0x804]
push eax
push 0x40a7e8
lea eax, [ebp - 0x1804]
push 0x1000
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, 0x45fc38
push 5
push eax
push eax
lea eax, [ebp - 0x1804]
push eax
push 0x40a7e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
leave
ret 4

Function at 0x419d08
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
mov esi, 0x104
push 0x40a834
mov dword [ebp - 8], ecx
push SysReAllocStringLen
mov dword [ebp - 0xc], esi
call edi
test eax, eax
je 0x419d51
lea eax, [ebp - 0x10]
push eax
push 0x40a810
push SysReAllocStringLen
call edi
test eax, eax
jne 0x419e02
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x45fc38
push dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
lea esi, [ebp - 0x114]
jbe 0x419e02
cmp byte [ebp - 0x114], 0x22
jne 0x419d94
lea esi, [ebp - 0x113]
push 0x22
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x419da5
mov byte [eax], bl
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov eax, dword [eax + 0x1fc08]
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
cmp dword [ebp - 4], ebx
je 0x419de0
lea eax, [ebp - 0x914]
push 0x800
push eax
push dword [ebp - 4]
call fcn.00424e92
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 5
lea eax, [ebp - 0x914]
push ebx
push eax
push esi
push 0x40a7e0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x419e0c
mov ecx, dword [ebp - 8]
push 2
call fcn.00417bb0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a6d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
push esi
push ebx
call fcn.0041a66d
mov eax, esi
add esp, 0xc
cdq
sub eax, edx
xor edi, edi
mov esi, eax
mov eax, dword [ebp + 0xc]
sar esi, 1
test esi, esi
mov dword [ebp + 8], eax
jle 0x41a724
lea eax, [ebp + 8]
push eax
call fcn.0041a6b8
add al, 0x11
pop ecx
xor al, byte [edi + ebx]
xor al, 2
mov byte [edi + ebx], al
inc edi
cmp edi, esi
jl 0x41a70b
and byte [esi + ebx], 0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41a980
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
push 0
push edi
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov ebx, dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0
push edi
mov dword [ebp - 0x14], eax
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x24]
neg eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [ebp - 8]
push edi
call fcn.0041a812
mov eax, dword [ebp - 8]
neg eax
push eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x20]
push dword [ebp - 4]
add eax, 0x16
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov ecx, esi
call fcn.0041aacc
mov eax, dword [ebp - 0x18]
push 0xcc0020
sub eax, dword [ebp - 0x20]
push 0
push 0
push dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 8]
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
push edi
call ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41aacc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0xc], eax
push eax
call ebx
push 0xcc0020
push 0x16
xor edi, edi
push 0x16
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push edi
push edi
push dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 4]
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a77e
push edi
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a77e
push edi
push 2
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a77e
push edi
push 3
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a77e
push edi
push 4
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a77e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x41aba5
mov ecx, esi
call fcn.0041b10e
cmp eax, 0xffffffff
je 0x41aba5
push 2
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a77e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
push edi
push edi
push 0x7f
mov dword [ebp + 0xc], eax
push dword [esi + 4]
mov dword [ebp - 4], 0x10
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, edi
je 0x41abeb
push 3
push edi
push edi
push 0x10
push 0x10
push eax
xor eax, eax
cmp dword [ebp + 0xc], edi
setne al
inc eax
inc eax
push eax
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawIconEx]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
dec eax
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
lea eax, [edi + eax + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x60]
sub eax, 0xc
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [0x47763c]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [0x4769ec]
push dword [ebp + 8]
call ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x24]
add esi, 0x70
push 0x48824
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41acdf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov eax, 0x4605b4
push edi
mov edi, dword [esp + 0xc]
push eax
push eax
mov esi, ecx
push edi
call fcn.004262c0
add esp, 0xc
lea eax, [esi + 0x70]
push 0x800
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 1
mov ecx, esi
call fcn.0041ac65
push 0
push 0
push edi
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_SetWindowRgn]
pop edi
pop esi
ret 4
Function at 0x41b448
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push ebx
xor ebx, ebx
push edi
push ebx
push dword [0x534a50]
mov dword [ebp - 0x14], ecx
push 0x1000
push dword [ebp + 8]
push 0x12
push 0x36
push ebx
push ebx
push 0x5600b94c
push ebx
push 0x40a91c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x10], edi
jne 0x41b48f
xor eax, eax
jmp 0x41b59d
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0x14
push 0x41e
push edi
call esi
push 0xa000a
push ebx
push 0x420
push edi
call esi
push ebx
push ebx
push 0x421
push edi
call esi
lea eax, [ebp - 0x368]
mov dword [ebp - 8], 1
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
sub dword [ebp - 8], eax
mov byte [ebp + 8], 0x10
mov byte [ebp + 9], 0x10
mov byte [ebp + 0xa], 0x10
mov dword [ebp - 0x20], 0x44d
mov dword [ebp - 0x1c], 0x43d
mov dword [ebp - 0x18], 0x43b
lea edi, [ebp - 0x5c]
cmp ebx, 2
mov dword [edi], ebx
jl 0x41b50b
mov eax, dword [ebp - 8]
add eax, ebx
lea eax, [ebp + eax + 8]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp + ebx + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov byte [edi + 8], 4
mov byte [edi + 9], cl
and dword [edi + 0xc], 0
test eax, eax
je 0x41b543
push 0x104
push dword [ebp - 4]
push eax
push dword [0x534a50]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
jmp 0x41b547
and dword [edi + 0x10], 0
add dword [ebp - 0xc], 4
add dword [ebp - 4], 0x104
inc ebx
add edi, 0x14
cmp ebx, 3
jl 0x41b4f9
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push 1
mov ecx, ebx
mov dword [ebx + 0xa1c], edi
call fcn.0041b31b
lea eax, [ebp - 0x5c]
push eax
push 3
push 0x414
push edi
call esi
push 8
push 0
push 0x454
push edi
call esi
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ebx
call fcn.0041c498
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x41bfc6
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
jl 0x41bfdb
cmp edi, dword [esi + 0xa10]
jl 0x41bfdd
xor edi, edi
mov eax, dword [esi + 0xa14]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [eax + eax*4]
shl eax, 5
and dword [eax + esi + 0x90], 0
mov eax, dword [esi + 0xa14]
lea eax, [eax + eax*4]
shl eax, 5
mov eax, dword [eax + esi + 0xa4]
test eax, eax
je 0x41c013
push 0
push eax
call ebx
lea eax, [edi + edi*4]
mov dword [esi + 0xa14], edi
shl eax, 5
mov dword [eax + esi + 0x90], 1
mov eax, dword [esi + 0xa14]
lea ecx, [eax + eax*4]
shl ecx, 5
cmp dword [ecx + esi + 0xa4], 0
jne 0x41c05b
push eax
mov ecx, esi
call fcn.0041be97
mov ecx, dword [esi + 0xa14]
lea ecx, [ecx + ecx*4]
shl ecx, 5
mov dword [ecx + esi + 0xa4], eax
mov ecx, esi
call fcn.0041b843
mov eax, dword [esi + 0xa14]
push 5
lea eax, [eax + eax*4]
shl eax, 5
push dword [eax + esi + 0xa4]
call ebx
mov eax, dword [esi + 0xa14]
mov ecx, esi
mov dword [0x475340], eax
call fcn.0041c3f2
pop edi
pop esi
pop ebx
ret 4
Function at 0x420e9b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x45e6bc
call fcn.0045dac0
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x421038
push esi
call fcn.00428b14
test eax, eax
pop ecx
je 0x420ed7
push 0xa
push edi
push edi
push esi
push 0x40a7e0
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x421038
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.004144da
mov esi, 0x40aa78
mov dword [ebp - 4], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004149e2
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.00411e66
test bl, bl
je 0x420f56
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, 0x40a478
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00419b2e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004145c2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
jmp 0x420fc6
mov esi, 0x40aa6c
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004149e2
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.00411e66
test bl, bl
je 0x420ffa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, 0x40a9c4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00419b2e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004145c2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00411e66
xor edi, edi
cmp ebx, edi
je 0x420ffc
lea ecx, [ebp - 0x10]
call fcn.00414ff9
mov esi, eax
cmp esi, edi
je 0x42102b
mov eax, dword [0x4972b8]
push ebx
push esi
push dword [eax + 0x10]
call fcn.0042b0b9
add esp, 0xc
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x42102b
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x421019
cmp dword [0x47538c], edi
je 0x421019
push edi
mov ecx, 0x4776b0
push dword [ebp + 8]
call fcn.004161d1
jmp 0x42102b
push edi
push edi
push edi
push 2
push dword [ebp + 8]
mov ecx, 0x4776b0
call fcn.004160a5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00411e66
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x423f2f
Capabilities:
Delete file
Delete registry key

Disassembly:
push esi
call fcn.00427b76
mov ecx, dword [0x463474]
cmp eax, ecx
je 0x423fbc
test ecx, ecx
je 0x423fa6
mov esi, SysReAllocStringLen
push esi
push 0xffffffffffffffff
push 0x40ad88
push 0x40ad80
push 0
call fcn.0042475d
add esp, 0x14
test eax, eax
je 0x423f76
call fcn.00423e94
push 0x40ad6c
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop esi
ret
and dword [0x463474], 0
call fcn.00427b86
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
push 0x40a37c
push 0xaa
call fcn.00424eff
pop ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
call fcn.00423e94
call fcn.00423c72
call fcn.00427b86
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x423fbe
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov al, byte [0x45fc38]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x41
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
pop ecx
xor eax, eax
cmp dword [0x463474], ebx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
je 0x42406c
cmp dword [ebp + 8], ebx
jne 0x424008
mov dword [ebp + 8], 0x40ad98
push 1
call fcn.00423c27
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x424065
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40ad90
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call fcn.0043a57e
add esp, 0x1c
dec al
neg al
sbb eax, eax
jmp 0x42410e
xor eax, eax
jmp 0x42410f
or edx, 0xffffffff
mov edi, 0x40ad6c
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x108]
sub edi, ecx
mov eax, ecx
mov dword [ebp - 4], esi
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 8], ebx
rep movsb byte es:[edi], byte [esi]
je 0x4240f7
mov edi, 0x40a0a0
mov ecx, edx
xor eax, eax
lea ebx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x108]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424114
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov al, byte [0x45fc38]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x41
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
pop ecx
xor eax, eax
cmp dword [0x463474], ebx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
je 0x4241bf
cmp dword [ebp + 8], ebx
jne 0x42415e
mov dword [ebp + 8], 0x40ad98
push 1
call fcn.00423c27
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x4241b8
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40ad90
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call fcn.0043a4c3
add esp, 0x18
dec al
neg al
sbb eax, eax
jmp 0x42425e
xor eax, eax
jmp 0x42425f
or edx, 0xffffffff
mov edi, 0x40ad6c
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x108]
sub edi, ecx
mov eax, ecx
mov dword [ebp - 4], esi
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 8], ebx
rep movsb byte es:[edi], byte [esi]
je 0x42424a
mov edi, 0x40a0a0
mov ecx, edx
xor eax, eax
lea ebx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x108]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424264
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov al, byte [0x45fc38]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edx
xor ebx, ebx
stosb byte es:[edi], al
push 0x41
xor eax, eax
cmp dword [0x463474], ebx
pop ecx
lea edi, [ebp - 0x10c]
mov dword [ebp - 8], edx
rep stosd dword es:[edi], eax
je 0x424389
cmp dword [ebp + 8], ebx
jne 0x4242b8
mov dword [ebp + 8], 0x40ad98
push 1
call fcn.00423c27
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x424382
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40ad90
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa0f]
mov byte [ebp - 0xa10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa10]
push 0x7ff
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.00439fe7
add esp, 0x24
cmp al, 1
jne 0x424382
lea edi, [ebp - 0xa10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
je 0x424382
mov esi, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
lea edi, [eax - 1]
mov eax, dword [esi]
cmp eax, edi
jb 0x42435d
mov eax, edi
push eax
lea eax, [ebp - 0xa10]
push eax
push dword [ebp + 0x10]
call fcn.004460c1
mov eax, dword [esi]
add esp, 0xc
cmp eax, edi
jb 0x424378
mov eax, edi
push 1
mov dword [esi], eax
pop eax
jmp 0x424435
xor eax, eax
jmp 0x424435
mov edi, 0x40ad6c
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, edx
cmp dword [ebp + 8], ebx
rep movsb byte es:[edi], byte [esi]
je 0x424413
mov edi, 0x40a0a0
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0x10c]
and ecx, edx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, edx
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret