joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4834b3
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4cefe6
call fcn.0045d02c
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0047aed9
and dword [esp + 0x1c], 0
mov ebp, 0x47c989
mov ebx, fcn.0047c8aa
push ebp
push ebx
mov edi, 0x148
push 2
lea eax, [esi + 0x210]
push edi
push eax
call fcn.0045f85c
push ebp
push ebx
push 4
lea eax, [esi + 0x4a0]
push edi
push eax
mov byte [esp + 0x30], 1
call fcn.0045f85c
push ebp
push ebx
push 4
lea eax, [esi + 0x9c0]
push edi
push eax
mov byte [esp + 0x30], 2
call fcn.0045f85c
mov ecx, dword [esp + 0x14]
mov dword [esi], vtable.SkinComboBox.0
mov dword [esi + 0x208], 0x1f4
mov dword [esi + 0x20c], 0x64
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x488567
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4d0296
call fcn.0045d02c
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0047aed9
and dword [esp + 0x1c], 0
mov ebp, 0x47c989
mov ebx, fcn.0047c8aa
push ebp
push ebx
mov edi, 0x148
push 2
lea eax, [esi + 0x210]
push edi
push eax
call fcn.0045f85c
push ebp
push ebx
push 4
lea eax, [esi + 0x4a0]
push edi
push eax
mov byte [esp + 0x30], 1
call fcn.0045f85c
push ebp
push ebx
push 4
lea eax, [esi + 0x9c0]
push edi
push eax
mov byte [esp + 0x30], 2
call fcn.0045f85c
mov ecx, dword [esp + 0x14]
mov dword [esi], vtable.SkinDatetime.0
mov dword [esi + 0x208], 0x1f4
mov dword [esi + 0x20c], 0x64
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x489ef1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x50cfb4], 0xffffffff
jne 0x489fbd
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x489fbd
mov eax, dword [ebp - 0x84]
dec eax
je 0x489f83
dec eax
jne 0x489fbd
mov eax, dword [ebp - 0x90]
push 3
pop ecx
sub eax, ecx
je 0x489fbd
dec eax
je 0x489f7b
dec eax
je 0x489f55
mov dword [0x50cfb4], 6
jmp 0x489fbd
mov eax, dword [ebp - 0x8c]
sub eax, 0
je 0x489f6f
dec eax
jne 0x489f49
mov dword [0x50cfb4], 5
jmp 0x489fbd
mov dword [0x50cfb4], 4
jmp 0x489fbd
mov dword [0x50cfb4], ecx
jmp 0x489fbd
cmp dword [ebp - 0x8c], 0
je 0x489fb6
cmp dword [ebp - 0x8c], 0xa
je 0x489faa
cmp dword [ebp - 0x8c], 0x5a
jne 0x489fbd
mov dword [0x50cfb4], 2
jmp 0x489fbd
mov dword [0x50cfb4], 1
jmp 0x489fbd
and dword [0x50cfb4], 0
mov eax, dword [0x50cfb4]
leave
ret
Function at 0x48a9b3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
push eax
call esi
push ebx
mov dword [ebp - 0xc], eax
call edi
push dword [ebp - 0x2c]
mov edi, eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [ebp - 0x1c], eax
call esi
xor ebx, ebx
push 0xcc0020
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
cmp dword [ebp - 4], ebx
je 0x48aa4f
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x48aa4f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [ebp + 8], ecx
je 0x48aaf1
mov eax, dword [ebp - 0x2c]
lea ebx, [eax - 1]
test eax, eax
je 0x48aae1
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp dword [ebp + 0xc], eax
je 0x48aadc
xor edx, edx
mov ecx, eax
mov dl, ah
shr ecx, 0x10
cmp al, dl
jne 0x48aa8b
cmp dl, cl
je 0x48aadc
movzx ecx, cl
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
movzx ecx, dl
fmul qword [0x4e09c8]
mov dword [ebp - 0x10], ecx
fild dword [ebp - 0x10]
movzx eax, al
fmul qword [0x4e09c0]
mov dword [ebp - 0x10], eax
faddp st(1)
fild dword [ebp - 0x10]
fmul qword [str.333333]
faddp st(1)
call fcn.0045d900
movzx eax, al
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, ebx
dec ebx
jmp 0x48aa66
mov eax, dword [ebp + 8]
dec dword [ebp + 8]
test eax, eax
jne 0x48aa60
xor ebx, ebx
push dword [ebp - 8]
push edi
call esi
cmp edi, ebx
je 0x48ab08
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x48ab08
xor edi, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x48ab24
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x48ab2e
push dword [ebp - 0xc]
call esi
cmp edi, ebx
je 0x48ab39
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x48ab4a
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x490755
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
cmp ecx, dword [esi + 0xc0]
lea eax, [esi + 0xc0]
je 0x490829
push ebx
xor ebx, ebx
mov dword [eax], ecx
mov eax, dword [0x510b64]
cmp ecx, ebx
push edi
jne 0x4907ba
cmp eax, ebx
je 0x49078e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x510b64], ebx
mov ecx, esi
xor edi, edi
call fcn.0049062b
test eax, eax
jle 0x49080f
mov eax, dword [esi + 0x90]
push 0x20
push ebx
mov ecx, dword [eax + edi*4]
call fcn.0048f28b
mov ecx, esi
inc edi
call fcn.0049062b
cmp edi, eax
jl 0x49079b
jmp 0x49080f
cmp eax, ebx
je 0x4907c5
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x49082d
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ecx, esi
mov dword [0x510b64], eax
mov dword [0x510b5c], esi
xor edi, edi
call fcn.0049062b
test eax, eax
jle 0x49080f
mov eax, dword [esi + 0x90]
push ebx
push 0x20
mov ecx, dword [eax + edi*4]
call fcn.0048f28b
mov ecx, esi
inc edi
call fcn.0049062b
cmp edi, eax
jl 0x4907f2
mov ecx, esi
call fcn.0049015e
or dword [esi + 0xf4], 0xffffffff
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004903e9
pop edi
pop ebx
pop esi
ret 4
Function at 0x490922
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4d0a88
call fcn.0045d02c
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov esi, dword [ecx + 0xa8]
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
and dword [ebp - 4], 0
push esi
mov dword [ebp - 0x2c], esi
call edi
and dword [ebp - 0x10], 0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], 1
jle 0x49097e
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xff00
jae 0x49097a
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jl 0x49095f
jmp 0x49097e
and dword [ebp - 0x18], 0
push esi
call edi
mov ebx, 0x400
cmp dword [ebp - 0x10], eax
jge 0x49099b
push ebx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
push esi
call edi
jmp 0x490986
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0x229
push dword [eax + 0xc4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x28], eax
mov eax, dword [0x50a49c]
mov dword [ebp - 0x14], 0xff00
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.USER32.dll_InsertMenuA]
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push dword [eax + 0xc4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x490a96
cmp dword [ebp - 0x18], ecx
je 0x490a08
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
push ecx
push ecx
push 0xc00
push eax
push esi
call edi
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xfeff]
cmp ecx, 0xa
jge 0x490a72
lea eax, [ebp - 0x12c]
push 0xff
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xffff0101
push eax
lea eax, [ebp - 0x1c]
push str._d__s
push eax
call fcn.00471a3b
add esp, 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push esi
call edi
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], eax
jne 0x490a7f
push 0x408
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x490a7f
push str.More_Windows...
push eax
push ebx
push dword [ebp - 0x10]
push esi
call edi
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0xffff0101
cmp eax, 0xa
jle 0x4909cf
and dword [ebp - 0x2c], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004717c9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x490fda
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], 1
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x49106b
push eax
push 2
mov ecx, esi
call fcn.004903e9
and dword [esi + 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x490f9d
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x510b60], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x88], 2
mov dword [0x50d0d0], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x90]
push dword [esi + 0xa0]
mov ecx, dword [ecx + eax*4]
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [0x510b60]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x510b60], 0
cmp dword [esi + 0x64], 1
je 0x490feb
mov eax, dword [esi + 0xf4]
mov ecx, esi
push eax
inc eax
neg eax
sbb eax, eax
and eax, 3
push eax
call fcn.004903e9
mov ecx, esi
call fcn.0049015e
pop esi
ret 4

Function at 0x492706
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x49271e
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret
Function at 0x496c5b
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x496ca7
cmp dword [esi + 8], 0
je 0x496ca7
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x496ca7
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

Function at 0x49902b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x499039
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x49911a
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4e2ccc]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4e2ccc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4e2ccc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4e2ccc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4e2ccc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4e2ccc]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4e2ccc]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4e2ccc]
xor eax, esi
inc edx
dec edi
jne 0x499056
pop ebx
cmp dword [ebp + 0x10], 0
je 0x49913b
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4e2ccc]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x499120
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x49991d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x499951
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49994c
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x499979
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x499962
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0045dac0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret
Function at 0x49a732
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x49a7b7
cmp dword [esi + 4], 0xffffffff
jne 0x49a7b7
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x500988
push edi
call fcn.0045d120
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x49a780
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x49a780
mov eax, 0x2000000
jmp 0x49a7bc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00499729
add esp, 0x10
test eax, eax
jne 0x49a79e
mov eax, dword [ebp - 4]
jmp 0x49a7bc
push eax
call fcn.00499bd5
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and eax, 0xfffc0000
add eax, 0x40000
jmp 0x49a7bc
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x49ab85
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49ac1c
mov cl, byte [eax]
test cl, cl
je 0x49ac1c
push esi
push edi
mov edi, eax
mov edx, eax
cmp cl, 0x2f
je 0x49abaf
cmp cl, 0x5c
jne 0x49abb1
mov edi, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x49aba5
cmp edi, eax
mov esi, edi
je 0x49abec
sub esi, eax
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0046aacb
and byte [ebp + esi - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0049ab85
add esp, 0x14
lea esi, [edi + 1]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0045d110
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0045d120
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x49b568
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x49b5a3
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp + 0xc]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x49b58d
mov dword [esi + 0xc], 0x30000
jmp 0x49b5c8
push edi
add eax, ecx
push dword [ebp + 8]
push eax
call fcn.0045dac0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
jmp 0x49b5ca
mov eax, dword [esi]
test eax, eax
je 0x49b5c1
lea ecx, [ebp + 0xc]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
jmp 0x49b5ca
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x49ba68
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x1c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret 4
Function at 0x4aa858
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0x18], edi
jne 0x4aa96c
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov ebx, eax
cmp ebx, edi
je 0x4aa96c
mov eax, dword [esp + 0x14]
sub eax, 0xf020
je 0x4aa95d
sub eax, 0x10
je 0x4aa938
sub eax, 0x30
je 0x4aa92b
sub eax, 0xc0
je 0x4aa8bc
mov eax, dword [esi]
push edi
push dword [esp + 0x18]
mov ecx, esi
push 0x112
call dword [eax + 0x24]
jmp 0x4aa967
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebp, 0xf120
test eax, 0x1000000
je 0x4aa8f3
push 0
push 0xf030
push ebx
call edi
push 3
push ebp
push ebx
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1cc]
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x4aa967
push 0
push 0xf020
push ebx
call edi
push 3
push ebp
push ebx
call edi
push 9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x6c]
jmp 0x4aa967
mov eax, dword [esi]
push edi
push edi
push 0x10
mov ecx, esi
call dword [eax + 0x20]
jmp 0x4aa967
push edi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0xf120
push ebx
call edi
push 3
push 0xf030
push ebx
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d4]
jmp 0x4aa967
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d0]
push 1
pop eax
jmp 0x4aa96e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4b6210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0045d8d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4b62db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4b62db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4b628e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4b6299
or bh, 8
and edi, 0x8000000
je 0x4b62b4
mov eax, dword [0x5121bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4b62db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b66b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b66db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4b66ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4b671a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4baf23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4baf5b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bdeaf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bde87
jmp 0x4baf67
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4