joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c866
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x43c88b
push 0xfffffffffffffffa
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 8], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x43c8a9
mov ecx, esi
call fcn.0043ca21
lea ecx, [esi + 0x134]
call fcn.00462f7e
jmp 0x43c9d9
test ebx, 0xffff0000
jne 0x43c908
mov edi, 0x4b7634
lea eax, [ebp - 0x104]
push edi
push 0x4b7630
push str.SM__TEMP.AVI
push eax
call fcn.0042e02f
movzx eax, bx
push edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0042dfba
add esp, 0x20
test eax, eax
je 0x43c970
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x134]
push eax
call fcn.00462e44
test eax, eax
lea eax, [ebp - 0x104]
jmp 0x43c966
lea ecx, [esi + 0x134]
push ebx
call fcn.00462e44
test eax, eax
jne 0x43c97b
mov edi, 0x4b7634
lea eax, [ebp - 0x104]
push edi
push 0x4b7630
push str.SM__TEMP.AVI
push eax
call fcn.0042e02f
push edi
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0042dfba
add esp, 0x20
test eax, eax
je 0x43c970
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x134]
push eax
call fcn.00462e44
test eax, eax
lea eax, [ebp - 0x104]
push eax
jne 0x43c974
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
xor eax, eax
jmp 0x43c9dc
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
mov ecx, dword [esi + 0x1ec]
or word [esi + 0x12e], 0xffff
or dword [esi + 0x128], 0xffffffff
and ecx, 1
xor eax, eax
cmp cl, 1
mov word [esi + 0x12c], ax
mov word [esi + 0x130], ax
je 0x43c9c5
push 6
push dword [esi + 0x158]
push dword [esi + 0x154]
push eax
push eax
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x1ec]
and eax, 4
cmp al, 4
jne 0x43c9d9
mov ecx, esi
call fcn.0043ca9a
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43ca9a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x124], eax
jne 0x43caf9
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
push esi
push 0x43cafc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
movzx ecx, word [esi + 0x118]
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0xac]
or ecx, 0x10000
push eax
push ecx
push 0x111
push eax
mov dword [esi + 0x124], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret
Function at 0x44554c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
mov esi, ecx
push 0x400
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0x15c], 0
jne 0x4455b5
mov ebx, dword [ebp + 8]
push 1
push dword [eax + 0x14]
add eax, 0xf4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0042c4e3
add esp, 0x14
jmp 0x4455ce
mov ecx, esi
call fcn.00427506
push dword [esi + 0xac]
mov ebx, dword [ebp + 8]
push ebx
push 0x1795
push eax
call edi
push 0
push 0
push 0x31
push dword [esi + 0xac]
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
push dword [eax + 0xf0]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 0x18], eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp + 8], 0
push 2
mov edx, eax
pop ecx
and edx, ecx
mov dword [ebp - 0x20], eax
cmp dl, cl
jne 0x44562b
mov dword [ebp + 8], ecx
push 1
mov edx, eax
pop ecx
and edx, ecx
cmp dl, cl
jne 0x445639
mov dword [ebp + 8], ecx
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x44564a
or dword [ebp + 8], 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x44565a
or dword [ebp + 8], 0x20
jmp 0x44565e
or dword [ebp + 8], 0x10
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x44566e
or byte [ebp + 9], 8
and eax, 0xb
cmp al, 0xb
jne 0x445679
or dword [ebp + 8], 0x20
mov ecx, esi
call fcn.0042783d
test eax, eax
je 0x445688
or byte [ebp + 0xa], 2
push dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov eax, 0x2000
push dword [ebp - 8]
and ecx, eax
cmp ecx, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
jne 0x4456b6
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x14]
or ax, 0x2010
push eax
jmp 0x4456c2
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov esi, dword [esi + 0x14]
push dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
add esi, 0x160
push eax
push esi
push ebx
call fcn.0042df2b
add esp, 0x18
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push ebx
call edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44a094
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 0x44a0e0
cmp dword [esi + 8], 0
je 0x44a0e0
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x44a0e0
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 0x44a12b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4cce98]
push edi
xor edi, edi
cmp eax, edi
jne 0x44a28a
mov eax, 0x4cce70
push 0x28
push edi
push eax
mov dword [0x4cce98], eax
call fcn.00411780
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.imagehlp.dll
mov dword [0x4cce70], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x4cce74], eax
je 0x44a288
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
mov dword [0x4cce78], eax
push dword [0x4cce74]
call esi
push str.SymSetOptions
mov dword [0x4cce7c], eax
push dword [0x4cce74]
call esi
push str.SymGetOptions
mov dword [0x4cce80], eax
push dword [0x4cce74]
call esi
push str.SymLoadModule
mov dword [0x4cce84], eax
push dword [0x4cce74]
call esi
push str.SymGetModuleInfo
mov dword [0x4cce88], eax
push dword [0x4cce74]
call esi
push str.SymGetSymFromName
mov dword [0x4cce8c], eax
push dword [0x4cce74]
call esi
push str.BindImage
mov dword [0x4cce90], eax
push dword [0x4cce74]
call esi
mov dword [0x4cce94], eax
push 8
lea eax, [ebp - 8]
push edi
push eax
call fcn.00411780
mov eax, dword [0x4cce78]
add esp, 0xc
cmp eax, edi
mov word [ebp - 8], 9
pop esi
je 0x44a276
lea ecx, [ebp - 8]
push ecx
call eax
cmp dword [0x4cce78], edi
je 0x44a276
cmp word [ebp - 8], 9
jb 0x44a276
mov eax, dword [0x4cce7c]
cmp eax, edi
je 0x44a252
push edi
push edi
push dword [0x4cce70]
call eax
mov eax, dword [0x4cce84]
cmp eax, edi
je 0x44a26f
cmp dword [0x4cce80], edi
je 0x44a26f
call eax
and eax, 7
push eax
call dword [0x4cce80]
mov eax, dword [0x4cce98]
jmp 0x44a28a
push dword [0x4cce74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4cce74], edi
xor eax, eax
pop edi
leave
ret
Function at 0x44a725
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0a30
push 0x415fa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x44a761
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp word [eax], 0x5a4d
je 0x44a77d
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x44a80b
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x24], esi
cmp dword [esi], 0x4550
je 0x44a794
push 0xbf
jmp 0x44a770
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x44a7a4
push 0xc0
jmp 0x44a770
movzx eax, ax
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ebx
movzx eax, word [esi + 6]
cmp ebx, eax
jae 0x44a81d
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x20]
lea edi, [ecx + eax*8]
push str..detour
push edi
call fcn.00415c60
pop ecx
pop ecx
test eax, eax
jne 0x44a813
mov esi, dword [edi + 0xc]
xor ecx, ecx
cmp esi, ecx
je 0x44a81d
cmp dword [edi + 0x10], ecx
je 0x44a81d
mov eax, dword [ebp - 0x1c]
add esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x30
jb 0x44a81d
cmp dword [esi + 4], 0x727444
jne 0x44a81d
cmp dword [esi + 8], ecx
jne 0x44a804
mov dword [esi + 8], eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x44a82e
inc ebx
jmp 0x44a7ae
or dword [ebp - 4], 0xffffffff
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45094e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x495a0d
call fcn.00411508
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xfc], ebx
jne 0x450a44
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xfc], eax
jne 0x450a44
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00411780
add esp, 0xc
lea eax, [ebp - 0x128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.00413e30
pop ecx
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, str.winhlp32.exe
push esi
call fcn.00413e30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x450a08
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x450a2e
push 0x6a
push esi
call edi
cmp eax, ebx
je 0x450a2e
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xfc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x459c2a
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ccf38]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x459c50
cmp dword [0x4ccf30], ebx
jne 0x459c50
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x459e0f
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff2
jne 0x459d7b
mov edi, dword [ebp + 8]
cmp dword [edi + 0x6a0], ebx
je 0x459c6e
xor eax, eax
jmp 0x459e23
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
mov esi, 0x4ccf10
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x459ccd
push dword [0x4ccf30]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
or dword [0x4b8998], 0xffffffff
or dword [0x4b89a0], 0xffffffff
or dword [0x4b899c], 0xffffffff
push ebx
push 1
mov dword [0x4ccf30], ebx
push dword [ebp + 0xc]
push edi
call fcn.00456ffc
add esp, 0x10
jmp 0x459d73
cmp dword [0x4b8998], ebx
jne 0x459cea
push dword [ebp - 4]
lea ebx, [edi + 8]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00458c8d
jmp 0x459d00
push dword [ebp - 4]
lea ebx, [edi + 0x354]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00458d17
add esp, 0x14
cmp dword [0x4b89a0], eax
mov dword [0x4b899c], eax
je 0x459d6e
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.00458d49
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
push edi
push esi
push ebx
call fcn.00458c60
add esp, 0x14
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4b899c]
mov dword [0x4b89a0], eax
xor eax, eax
pop esi
jmp 0x459e23
cmp ecx, 0xfffd
jne 0x459da8
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push 0x37
push 0xfffe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4ccf38], eax
jmp 0x459c67
cmp ecx, 0xfffe
jne 0x459e0b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00459256
mov eax, dword [0x4b89a4]
add esp, 0x10
cmp eax, 0xffffffff
je 0x459c67
push ebx
push eax
push dword [0x4ccf34]
push dword [ebp + 0xc]
call fcn.00458ae2
add esp, 0x10
jmp 0x459c67
push dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push 0x113
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop ebx
leave
ret
Function at 0x4680a1
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x4963e8
call fcn.00411508
push ecx
push ebx
push esi
push edi
lea esi, [ebp + 8]
push dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0043b6e4
mov al, byte [ebp + 0x1f]
xor esi, esi
lea ecx, [ebx + 0x30]
push esi
mov dword [ebp - 4], esi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
pop edi
mov dword [ebx], 0x4a2190
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x468a24
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.00466dd8
test al, al
jne 0x468a55
cmp word [esi + 0x16], 8
jae 0x468a5c
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.00416b60
pop ecx
pop ecx
xor al, al
jmp 0x468c2c
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.0045f7f8
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x468ade
cmp ax, 0x18
jne 0x468ade
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x468b32
mov ecx, esi
call fcn.0045f7f8
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x468b04
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00468f6e
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x468bf6
cmp word [esi + 0x16], 8
je 0x468bf6
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x468bec
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x468bca
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.0045f920
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.00461e09
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x468b7c
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x468b73
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x468c29
cmp word [ebp - 0xa], di
jbe 0x468c29
push edi
lea ecx, [ebp - 0x3c]
call fcn.00468f9a
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x468bfc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46cae0
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.00411fd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46cbab
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 0x46cbab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46cb5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x46cb69
or bh, 8
and edi, 0x8000000
je 0x46cb84
mov eax, dword [0x4ce35c]
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 0x46cbab
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 0x46cf80
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 0x46cfab
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 0x46cfcf
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 0x46cfea
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