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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x1c4]
xor ebx, ebx
call sym.Update.exe_public:_int___thiscall_DuiLib::CStdPtrArray::GetSize_void_const
test eax, eax
jle 0x4796f8
push ebx
lea ecx, [esi + 0x1c4]
mov byte [ebp - 1], 0
call sym.Update.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x47975c
lea ecx, [esi + 0x1c4]
inc ebx
call sym.Update.exe_public:_int___thiscall_DuiLib::CStdPtrArray::GetSize_void_const
cmp ebx, eax
jl 0x4796bf
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4797c1
sub eax, 4
je 0x479760
dec eax
dec eax
jne 0x4797b8
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004b9ee5
pop ecx
mov ecx, dword [esi + 0x144]
push VariantTimeToDosDateTime
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.Update.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4797b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4797ba
cmp dword [esi + 0x148], 0
je 0x4797b8
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x15c]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00476494
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4797b8
cmp dword [esi + 0x148], 0
je 0x47981f
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x47981f
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x47981f
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.004b4689
pop ecx
pop ecx
test eax, eax
je 0x47981f
mov ecx, dword [esi + 0x148]
call sym.Update.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4797b8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call sym.Update.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x47975c
Function at 0x47bcae
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x47bcbc
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x47bd77
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4f72e8]
add edx, 8
sub edi, 8
dec esi
jne 0x47bcda
pop ebx
test edi, edi
je 0x47bd90
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4f72e8]
inc edx
dec edi
jne 0x47bd7b
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x47c257
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 0x47c28b
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47c286
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x47c2b3
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x47c29c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004b5e30
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x47d231
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x47d2d9
movzx ecx, word [esi]
test cx, cx
je 0x47d2d9
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x47d26c
cmp cx, 0x5c
jne 0x47d26e
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x47d260
cmp eax, esi
je 0x47d2ad
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b4709
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0047d231
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b9808
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004b97d7
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b1681
leave
ret
Function at 0x47eb3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47ebba
cmp dword [esi + 4], 0xffffffff
jne 0x47ebba
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5062dc
push edi
call fcn.004b97d7
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x47eb8c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x47eb8c
mov eax, 0x2000000
jmp 0x47ebbf
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047c064
add esp, 0x10
test eax, eax
jne 0x47ebaa
mov eax, dword [ebp + 0x10]
jmp 0x47ebbf
push eax
call fcn.0047e72e
mov dword [esi], eax
mov eax, dword [0x541b2c]
pop ecx
jmp 0x47ebbf
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4862c3
Capabilities:
Terminate process

Disassembly:
push 0x1e4
mov eax, 0x4e1381
call fcn.004b6677
push 0xfffffffffffffff0
mov esi, ecx
call sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
xor ebx, ebx
push eax
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
push ebx
call sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esi + 4]
lea edi, [esi + 0x2c]
mov ecx, edi
call sym.Update.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::Init_struct_HWND____
lea eax, [esi + 0x24]
push eax
mov ecx, edi
call sym.Update.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddPreMessageFilter_class_DuiLib::IMessageFilterUI__
lea ecx, [ebp - 0x1ec]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_
mov eax, dword [esi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x24]
push ebx
push edi
lea edx, [esi + 0x28]
push edx
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call sym.Update.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x1f0], esp
call sym.Update.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], bl
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x1f0], ebx
jne 0x4863c9
push 0x10
push str.Duilib
push 0x4f8524
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0x1f0]
mov ecx, edi
call sym.Update.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AttachDialog_class_DuiLib::CControlUI__
lea eax, [esi + 0x20]
push eax
mov ecx, edi
call sym.Update.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddNotifier_class_DuiLib::INotifyUI__
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call sym.Update.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
xor eax, eax
call fcn.004b66fa
ret 0x10
Function at 0x48f63d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x48f6ae
cmp dword [esi + 0x10], ebx
je 0x48f6ae
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004b9830
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x48f6ae
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00475970
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.Update.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
leave
ret 0x10

Function at 0x493e44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10b8], ebx
je 0x493eac
cmp dword [ebp + 8], 0x100
jne 0x493e9b
cmp word [ebp + 0xc], 0xd
jne 0x493e9b
cmp byte [esi + 0x10be], bl
je 0x493e82
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x493e9b
cmp byte [esi + 0x10bf], bl
jne 0x493e9b
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x493e97
push ebx
push ebx
push ebx
push str.return
push esi
call sym.Update.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x493eaf
mov eax, dword [esi + 0x10b8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4963d7
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x28], ebx
cmp edi, 0x4e
jne 0x496402
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp edi, 8
jne 0x4964cf
push ebx
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x496489
push 0x20
pop esi
push esi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.004b96b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x100e
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0x1010003
jne 0x49646c
xor eax, eax
inc eax
jmp 0x496478
cmp dword [ebp - 0x18], 0x2010003
je 0x496467
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b1681
leave
ret 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x4964b7
cmp eax, dword [ebp - 0xc]
jg 0x4964b7
cmp eax, dword [ebp - 0x10]
jl 0x4964b7
cmp eax, dword [ebp - 8]
jle 0x496475
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 8
call fcn.0049616b
mov dword [ebp - 0x28], eax
jmp 0x496475
mov ecx, dword [ebp + 0xc]
mov eax, 0x101
cmp edi, eax
jne 0x496540
cmp ecx, 0x2e
je 0x4964e5
cmp ecx, 8
jne 0x49651c
push dword [ebp + 0x10]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [eax + 0x14f4], 2
mov ecx, dword [esi + 0x10]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDateTimeUI::UpdateText_void_
push ebx
push ebx
push 0x10
mov ecx, esi
call sym.Update.exe_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
mov eax, edi
jmp 0x496478
cmp ecx, 0x1b
jne 0x496540
push dword [ebp + 0x10]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x14f4], 3
mov edi, eax
jmp 0x49650a
push dword [ebp + 0x10]
push ecx
push edi
mov ecx, esi
call sym.Update.exe_protected_virtual:_long_int___thiscall_DuiLib::CWindowWnd::HandleMessage_unsigned_int__unsigned_int__long_int_
jmp 0x496478
Function at 0x49ae08
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0x368], 0
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x364], eax
mov dword [ebx + 0x36c], ecx
test eax, eax
jne 0x49ae70
call sym.Update.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xc]
test esi, esi
je 0x49ae70
call sym.Update.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call sym.Update.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
mov ecx, dword [ebx + 0x364]
test ecx, ecx
jne 0x49ae8d
mov ecx, edi
jmp 0x49ae94
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push SysReAllocString
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x49aed7
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x49aed2
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b1681
leave
ret 0x1c
Function at 0x4a5096
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x90
mov eax, 0x4e266c
call fcn.004b6677
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call sym.Update.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], edi
call sym.Update.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.Update.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a510d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
xor eax, eax
call fcn.004b66fa
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
cmp eax, edi
je 0x4a50f6
push eax
mov dword [ebp - 0x9c], edi
call fcn.0046b32d
pop ecx
push edi
lea ecx, [ebp - 0x9c]
push ecx
push dword [esi]
mov dword [ebp - 0x98], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [esi]
je 0x4a5170
push dword [ebp - 0x98]
call fcn.004b1e05
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Update.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, edi
jmp 0x4a5107
mov edi, dword [ebp - 0x98]
jmp 0x4a515d

Function at 0x4a530d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.Update.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4a532e
xor eax, eax
jmp 0x4a538c
push edi
call sym.Update.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a534b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4a532a
push esi
push edi
call sym.Update.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x4a538b
push ebx
push eax
call fcn.0046b32d
pop ecx
push dword [esi]
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004b5e30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4a538f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a53bc
xor eax, eax
jmp 0x4a540c
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp eax, ebx
jne 0x4a53d2
xor eax, eax
jmp 0x4a540b
push eax
mov dword [ebp - 8], ebx
call fcn.0046b32d
pop ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi]
mov dword [ebp - 4], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
je 0x4a5408
push dword [ebp - 4]
call fcn.004b1e05
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4abc26
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x4abc4b
cmp eax, esi
jge 0x4abc43
mov eax, edi
call fcn.004ab643
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x4abc78
mov eax, dword [edi + 0xc]
push ebx
mov dl, byte [edi + 0xc]
sub esi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, esi
inc ecx
mov dword [edi + 0xc], eax
test ebx, ebx
jg 0x4abc58
mov dword [edi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x4abc94
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x4abc85
xor dl, dl
jmp 0x4abc8a
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x4abc7b
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x4abcc6
mov eax, str.zlib_corrupt
call fcn.004a6f03
jmp 0x4abd02
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x4abcd6
mov eax, str.read_past_buffer
jmp 0x4abcbf
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x4abcec
push esi
call fcn.004ab786
pop ecx
test eax, eax
je 0x4abd02
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.004b5e30
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4b1681
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53f1e4]
jne 0x4b168b
repz ret
jmp fcn.004bdcd4