joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0670
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4b07b1
push esi
push edi
push 0x53cd08
call fcn.004eddf6
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x4b0700
mov esi, dword [ebx + 0x168]
jmp 0x4b06ec
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b06ec
push edi
call fcn.004b6e92
push eax
push 0x57b550
call fcn.004c4aa0
pop ecx
pop ecx
test eax, eax
je 0x4b06ec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x4b06ec
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x4b06ac
lea ecx, [ebx + 0x164]
call fcn.004fb58c
jmp 0x4b07af
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x4b07af
jmp 0x4b0716
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.004b168f
mov esi, dword [eax]
test esi, esi
jne 0x4b072f
xor ebx, ebx
jmp 0x4b0732
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b07a5
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b07a5
test edi, edi
je 0x4b0777
push esi
push 0x57b550
call fcn.004c4aa0
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x53ba7c
call fcn.004c4aa0
pop ecx
pop ecx
test eax, eax
je 0x4b07a5
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp + 8]
add esi, 0x164
push eax
mov ecx, esi
call fcn.0041d994
test eax, eax
jne 0x4b07a5
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00461188
cmp dword [ebp - 8], 0
jne 0x4b0713
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b40ab
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x525617
call fcn.005055da
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004d1136
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x4b40d9
push 0x54839c
jmp 0x4b411c
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.005035e0
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x4b410b
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00445429
lea ecx, [ebp - 0x7c]
call fcn.00498207
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x4b416d
push edi
lea ecx, [ebp - 0x7c]
call fcn.004f65ce
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x4b4153
inc edi
cmp edi, dword [esi - 0xc]
jl 0x4b4134
jmp 0x4b416d
movzx eax, bx
push eax
call fcn.0050868f
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.00491859
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.004ce24d
cmp dword [ebp + 0x10], 0
jne 0x4b4189
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.004dc812
lea ecx, [esi - 0x10]
call fcn.00473247
call fcn.0050565d
ret 0xc

Function at 0x4b46a2
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x84]
xor edx, edx
div ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x4b46c1
inc dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
xor edx, edx
div ecx
push ebx
mov ebx, eax
test edx, edx
je 0x4b46d9
inc ebx
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x4b4727
push edi
xor edi, edi
test ebx, ebx
jle 0x4b471b
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push eax
imul eax, edi
push ecx
imul ecx, dword [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, ebx
jl 0x4b46ea
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4b46e4
pop edi
pop ebx
leave
ret 0x18
Function at 0x4b9ed7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x581c58], 0
mov dword [ebp - 4], ecx
jne 0x4b9eed
xor eax, eax
jmp 0x4b9f27
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4b9efd
call fcn.00434678
mov esi, dword [eax + 0xc]
push edi
push dword [0x581778]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4b9f23
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4b9f2b
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4b9f49
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4b9f25
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0044a6ef
mov esi, eax
jmp 0x4b9f3b
Function at 0x4be917
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52aa1f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x57df70]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x57df70]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.005035e0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.0040bb55
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0044b109
cmp dword [esp + 0x10], 0xffffffff
je 0x4bea97
lea eax, [esp + 0x48]
push 0x55b07c
push eax
call fcn.00503fa6
pop ecx
pop ecx
test eax, eax
je 0x4bea76
lea eax, [esp + 0x48]
push 0x55b080
push eax
call fcn.00503fa6
pop ecx
pop ecx
test eax, eax
je 0x4bea76
lea eax, [esp + 0x18]
push 0x55b088
push eax
mov esi, edi
call fcn.0040bb55
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0040bb55
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0044b109
test byte [esp + 0x1c], 0x10
je 0x4bea4c
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004be917
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0044b109
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4be9b9
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x4beaa5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004cf21e
mov esp, ebp
pop ebp
ret
Function at 0x4c08ec
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4c0936
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c0936
call fcn.00499aaf
test eax, eax
je 0x4c0936
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00496cdd
xor eax, eax
inc eax
jmp 0x4c0b4e
cmp dword [ebx + 4], 0x100
push edi
jne 0x4c0b45
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4c0a33
push 0x11
call edi
test ax, ax
jl 0x4c0a33
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c0a33
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4c09a6
cmp eax, 0x20
jbe 0x4c0a33
cmp eax, 0x24
jbe 0x4c0999
cmp eax, 0x26
je 0x4c0999
cmp eax, 0x28
jne 0x4c0a33
call fcn.00499aaf
test eax, eax
je 0x4c0a33
mov ecx, esi
call fcn.00433c63
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.00499aaf
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4c09db
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00496cdd
jmp 0x4c0b40
call fcn.00484066
test eax, eax
je 0x4c0b40
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.004c942f
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4c0a09
xor edi, edi
jmp 0x4c0a0c
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.00484066
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4c0b40
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4c0b0f
sub eax, 0x12
je 0x4c0ae7
sub eax, 0xb
je 0x4c0a55
dec eax
dec eax
jne 0x4c0b45
push 0x12
call edi
test ax, ax
jl 0x4c0b45
push 0x11
call edi
test ax, ax
jl 0x4c0b45
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c0b45
call fcn.00499aaf
test eax, eax
jne 0x4c0b40
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.0043e51d
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.004b6e92
test eax, eax
je 0x4c0b40
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.004b6e92
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4c0b40
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c0afb
push 0
call fcn.0043e51d
mov ecx, esi
call fcn.004c613a
test eax, eax
je 0x4c0b45
mov ecx, esi
call fcn.004c613a
jmp 0x4c0b39
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.004b6e92
test eax, eax
je 0x4c0b45
push dword [esi + 0x20]
call edi
push eax
call fcn.004b6e92
push 0
push esi
mov ecx, eax
call fcn.004bfdd4
mov ecx, eax
call fcn.00433c63
xor eax, eax
inc eax
jmp 0x4c0b4d
push ebx
mov ecx, esi
call fcn.004471c3
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4c1fd5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
push str.UxTheme.dll
mov dword [esi], vtable.CMFCBaseVisualManager.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.0040e8ec
pop ecx
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x4c2090
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
push str.CloseThemeData
push dword [esi + 0x48]
mov dword [esi + 0x4c], eax
call edi
push str.DrawThemeBackground
push dword [esi + 0x48]
mov dword [esi + 0x50], eax
call edi
push str.GetThemeColor
push dword [esi + 0x48]
mov dword [esi + 0x54], eax
call edi
push str.GetThemeSysColor
push dword [esi + 0x48]
mov dword [esi + 0x58], eax
call edi
push str.GetCurrentThemeName
push dword [esi + 0x48]
mov dword [esi + 0x5c], eax
call edi
push str.GetWindowTheme
push dword [esi + 0x48]
mov dword [esi + 0x60], eax
call edi
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.0049043f
jmp 0x4c20a5
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
pop edi
mov eax, esi
pop esi
ret

Function at 0x4c2536
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, SysReAllocString
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x4c2566
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4c258c
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x4c258f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x4c257f
jmp 0x4c2581
Function at 0x4c3340
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x529cc4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57df70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0xc
mov dword [esp + 0x18], ebx
call fcn.004aa755
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, ebx
je 0x4c339c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x4c339e
xor eax, eax
mov byte [esp + 0x30], bl
mov dword [ebp], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4c3444
mov edi, dword [ebp]
cmp esi, dword [edi + 4]
je 0x4c3405
mov eax, dword [edi]
push esi
push eax
call fcn.005039c5
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x4c3402
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.005035e0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov eax, dword [eax]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c342b
cmp dword [esp + 0x40], esi
je 0x4c3444
mov esi, dword [ebp]
cmp dword [esi + 4], ebx
je 0x4c3444
mov eax, dword [esi]
push ebx
push eax
call fcn.005039c5
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4c7c46
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x10
mov eax, 0x52bcfb
call fcn.00505571
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push 0x23
push edi
mov dword [ebp - 0x10], esi
call fcn.004b2b87
pop ecx
pop ecx
mov dword [ebp - 4], esi
xor ebx, ebx
push 0x94
lea eax, [ebp - 0x1c]
inc ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0041428d
mov esi, eax
mov dword [ebp - 4], ebx
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.0041428d
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.004bf4ff
pop ecx
pop ecx
mov byte [ebp - 4], 3
push edi
call fcn.004f9e1e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0044b109
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0044b109
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0044b109
push dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x4c7cf1
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.0042665e
pop ecx
push 0x95
lea eax, [ebp - 0x14]
push eax
call fcn.0041428d
mov esi, eax
mov dword [ebp - 4], 4
push 0x90
lea eax, [ebp - 0x18]
push eax
call fcn.0041428d
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
call fcn.004bf4ff
pop ecx
pop ecx
mov byte [ebp - 4], 6
push edi
call fcn.004f9e1e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.0044b109
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0044b109
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0044b109
push dword [edi]
call ebx
test eax, eax
jne 0x4c7d71
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [edi]
call fcn.0042665e
pop ecx
mov eax, edi
call fcn.00505649
ret
Function at 0x4c7f8f
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x51f30a
call fcn.00505571
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4c8068
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4c8068
cmp ebx, 0x43
je 0x4c7fd1
cmp ebx, 0x2d
jne 0x4c8068
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c8068
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004d1136
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00424709
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00473247
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.004cec41
call fcn.00505649
ret 4
Function at 0x4cf21e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57df70]
jne 0x4cf228
repz ret
jmp fcn.0050a364

Function at 0x4d18ac
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52bf8b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57df70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], esi
cmp dword [ebp + 0xc], esi
je 0x4d18eb
mov ecx, dword [ebp + 0xc]
jmp 0x4d1900
lea eax, [esp + 0x18]
push eax
call fcn.00483360
pop ecx
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
call fcn.004fbdc2
mov dword [esp + 0x30], 2
test byte [esp + 0x10], bl
je 0x4d1926
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x18]
call fcn.0044b109
cmp byte [ebp + 8], 0
je 0x4d19d1
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00447ef1
pop ecx
pop ecx
test al, al
jne 0x4d19dc
lea eax, [esp + 0x20]
push eax
mov ecx, 0x55b7b4
call fcn.004fbdc2
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.004bf4ff
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
push str.___minimize
push ecx
mov esi, eax
call fcn.0040bb55
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.0044b109
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.0044b109
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push ebx
push 0x55b0d4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.0044b109
jmp 0x4d19fe
push dword [ebp + 0xc]
push esi
call fcn.00447ef1
pop ecx
pop ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, 0x55b0d4
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push esi
push SysReAllocString
call ebx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0044b109
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d8d72
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x4d8d94
or eax, 0xffffffff
jmp 0x4d8d99
mov eax, dword [0x57b134]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x57c588
call fcn.004c4aa0
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4d8e36
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4d8e36
cmp edi, ebx
je 0x4d8deb
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x57c640
call fcn.004c4aa0
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x4d8e3f
test ebx, ebx
je 0x4d8e22
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x4d8e36
cmp dword [ebp - 4], 0
je 0x4d8e22
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x4d8e38
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x4d8e36
test edi, edi
je 0x4d8e36
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x4d8e36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x4d8e36
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x4d8e38