joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x400]
push ebx
sub esp, 0x41c
mov eax, dword [0x40a0b0]
mov dword [esp + 0x10], 0x3e8
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.Autostart
mov dword [esp + 4], str.AutoStart
mov dword [esp], str.Settings
call sub.kernel32.dll_GetPrivateProfileStringA
sub esp, 0x18
call fcn.00402980
test eax, eax
je 0x4040d4
mov esi, eax
jmp 0x404086
mov dword [esp], esi
call fcn.00402990
mov esi, eax
test eax, eax
je 0x4040d4
mov dword [esp], esi
call fcn.00402a00
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.kernel32.dll_lstrcmpA
sub esp, 8
test eax, eax
jne 0x404078
mov dword [esp], esi
call fcn.00405af0
mov ebx, eax
test eax, eax
je 0x404078
nop
mov dword [esp], ebx
call fcn.004056d0
mov dword [esp], ebx
call fcn.00405b20
mov ebx, eax
test eax, eax
jne 0x4040b0
mov dword [esp], esi
call fcn.00402990
mov esi, eax
test eax, eax
jne 0x404086
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4047d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x814]
lea esi, [ebp - 0x418]
push ebx
lea ebx, [ebp - 0x800]
sub esp, 0x83c
mov eax, dword [0x40a0b0]
mov dword [esp + 0x10], 0x3e8
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x408250
mov dword [esp + 4], str.Order
mov dword [esp], str.Settings
call sub.kernel32.dll_GetPrivateProfileStringA
sub esp, 0x18
jmp 0x404896
cmp eax, 1
jne 0x4048e7
mov eax, dword [ebp - 0x81c]
mov dword [esp + 4], str.Group_d
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004040e0
mov eax, dword [0x40a0b0]
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x408250
mov dword [esp + 4], edi
mov dword [esp], str.Groups
call sub.kernel32.dll_GetPrivateProfileStringA
sub esp, 0x18
cmp byte [ebp - 0x418], 0
je 0x404892
mov dword [esp], esi
call fcn.00402ca0
add ebx, dword [ebp - 0x818]
cmp ebx, esi
jae 0x4048e7
lea eax, [ebp - 0x818]
mov dword [esp + 4], str._d_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x81c]
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00403fd0
test eax, eax
jne 0x404828
mov eax, dword [0x40a0b0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], eax
mov dword [esp], 0xa
call fcn.00404720
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4056d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
mov ebx, eax
mov eax, dword [eax + 0x24]
sub esp, 4
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
mov edx, dword [ebx + 0x34]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x40a0c0]
sub esp, 8
test eax, eax
jne 0x405718
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [0x40a088]
mov dword [esp], eax
call sub.user32.dll_CloseWindow
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x405ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll__configure_narrow_argv]
call dword [sym.imp.ucrtbase.dll__initialize_narrow_environment]
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call dword [sym.imp.ucrtbase.dll__get_initial_narrow_environment]
mov ebx, eax
mov eax, dword [0x40003c]
cmp word [eax + 0x40005c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__set_app_type]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00406060
mov dword [esp], eax
call 0x405f50
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll_exit]

Function at 0x406060
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call fcn.00405f70
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4060ef
cmp al, 9
je 0x4060e0
cmp al, 0x20
je 0x4060e0
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
nop
cmp al, 0x5c
je 0x406148
cmp al, 0x22
je 0x406158
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x4060ef
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4060a0
test edi, 1
jne 0x4060a0
lea esi, [esi]
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x4060e0
cmp al, 0x20
je 0x4060e0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x406109
mov word [ebp - 0x2c], 1
mov dword [esp], 0
movzx esi, word [ebp - 0x2c]
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004048f0
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x4060b7
and dword [ebp - 0x6c], 1
jne 0x4060b0
xor edi, 1
jmp 0x4060b7
Function at 0x403530
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004032c0
Function at 0x48e150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call sym.EXE_FILE_NAME_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x48e1fe
push esi
push 0x4b8
call fcn.0049107c
push 0x4b8
mov esi, eax
push 0
push esi
call fcn.004d8c90
add esp, 0x10
mov ecx, esi
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::WindowImplBase::constructor_void_
mov dword [esi], vtable.MainFrame.1.0
mov dword [esi + 0x10], vtable.MainFrame.3.0
mov dword [esi + 0x20], vtable.MainFrame.0
mov dword [esi + 0x24], vtable.MainFrame.2.0
mov dword [esi + 0x28], vtable.MainFrame.4.0
call fcn.0048dd10
push 0
push 0x320
push 0x258
push 0
push 0
push 0x60000
push 0x10cf0000
push str.MenuTest
push 0
mov ecx, esi
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
mov ecx, esi
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 5
mov ecx, esi
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call sym.EXE_FILE_NAME_public:_static_int___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x48f010
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x18
mov edx, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x28], edx
mov dword [edi + 0x540], eax
mov dword [edi + 0x544], 0
test ecx, ecx
je 0x48f04a
push ecx
lea ecx, [edi + 0x30]
call fcn.0049b648
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x10]
mov dword [edi + 0x2c], eax
mov dword [ebp - 8], esi
test esi, esi
je 0x48f08c
mov eax, dword [0x5a5960]
cmp eax, dword [0x5a5964]
je 0x48f072
mov dword [eax], esi
add dword [0x5a5960], 4
jmp 0x48f081
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, 0x5a595c
call fcn.00490c60
mov eax, dword [esi]
mov ecx, esi
push 0x5a5958
call dword [eax]
mov ecx, dword [edi + 0x540]
test ecx, ecx
jne 0x48f09b
mov esi, dword [edi + 0x20]
jmp 0x48f0a9
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
mov esi, eax
lea ecx, [ebp - 0x18]
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
push 0
sub esp, 0x10
mov ecx, esp
movups xmm0, xmmword [eax]
push 0x88
push SysReAllocString
push 0
movups xmmword [ecx], xmm0
push esi
mov ecx, edi
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov esi, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
call ebx
test eax, eax
je 0x48f0ee
push esi
call ebx
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x48f0e2
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x492f55
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x52b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.004d8c90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00490dde
leave
ret

Function at 0x493f63
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x493f86
or esi, 2
push 1
call edi
test ax, ax
jns 0x493f92
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x493f9e
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x493faa
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4977fd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x497838
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x497838
cmp esi, dword [edi + 0xe8]
je 0x497838
cmp byte [edi + 0xe0], 0
jne 0x497838
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe8]
cmp esi, eax
je 0x497920
test eax, eax
je 0x4978a0
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0xe8]
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
and dword [edi + 0xe8], 0
test esi, esi
je 0x497920
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x497920
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x497920
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x497920
and dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0xe8], esi
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0xe8]
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
pop edi
pop esi
leave
ret 8
Function at 0x49e824
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x49e8d3
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x49e8d7
cmp dword [ebp - 0x1c], 0x10
jne 0x49e8a2
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x49e8a2
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call sym.EXE_FILE_NAME_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::TranslateMessage_struct_tagMSG__const_
pop ecx
test al, al
jne 0x49e8c4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x49e8d7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x49e86f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x49e8f5
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x49e8fa
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49e92c
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4b547f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x694], edi
je 0x4b54eb
cmp dword [ebp + 8], 0x100
jne 0x4b54da
cmp word [ebp + 0xc], 0xd
jne 0x4b54da
cmp byte [esi + 0x69a], 0
je 0x4b54bf
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b54da
cmp byte [esi + 0x69b], 0
jne 0x4b54da
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x4b54d6
push 1
push edi
push edi
push edi
push str.return
push esi
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
xor eax, eax
jmp 0x4b54ee
mov eax, dword [esi + 0x694]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x4b58f3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x52b008]
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 0x4b59ad
movzx eax, word [esi]
test ax, ax
je 0x4b59ad
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x4b5935
cmp dx, 0x5c
jne 0x4b5937
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4b5929
cmp edi, esi
je 0x4b5980
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.004dfe42
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4b59bb
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004b58f3
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004e40a8
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004e4077
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00490dde
leave
ret
call fcn.00491419
int3

Function at 0x4b5f7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4b5ffb
cmp dword [edi + 4], 0xffffffff
jne 0x4b5ffb
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4fc404
push esi
call fcn.004e4077
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4b5fcd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4b5fcd
mov eax, 0x2000000
jmp 0x4b6000
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b84d7
add esp, 0x10
test eax, eax
jne 0x4b5feb
mov eax, dword [ebp - 4]
jmp 0x4b6000
push eax
call fcn.004b8bf6
mov dword [edi], eax
mov eax, dword [0x5a7084]
pop ecx
jmp 0x4b6000
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x4b85e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4b8617
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b8612
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4b8641
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004d8ea0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4b87dd
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4b889c
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
sub edi, 1
jne 0x4b87f5
pop edi
test esi, esi
je 0x4b88b8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fbcd0]
inc edx
sub esi, 1
jne 0x4b88a0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4c72f9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.EXE_FILE_NAME_public_virtual:_void___thiscall_DuiLib::CControlUI::Move_struct_tagSIZE__bool_
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x4c7375
lea eax, [ebp - 0x14]
push eax
call fcn.004c6895
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6d8]
test eax, eax
je 0x4c7351
push 0
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c7375
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00490dde
leave
ret 0xc

Function at 0x4c7384
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x52b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4c740e
cmp dword [esi + 0x10], 0
je 0x4c740e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004f04f0
mov ebx, esp
test ebx, ebx
je 0x4c740e
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.0049b648
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call sym.EXE_FILE_NAME_public:_bool___thiscall_DuiLib::CPaintManagerUI::IsLayered_void_
test al, al
je 0x4c740e
mov ecx, dword [esi + 0x10]
call sym.EXE_FILE_NAME_public:_void___thiscall_DuiLib::CControlUI::Invalidate_void_
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490dde
leave
ret 0x10
Function at 0x4c7ab2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
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 sym.EXE_FILE_NAME_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_struct_tagRECT__bool_
mov ecx, dword [ebx + 0x6d8]
test ecx, ecx
je 0x4c7b36
lea eax, [ebp - 0x14]
push eax
call fcn.004c6895
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6d8]
test eax, eax
je 0x4c7b12
push 0
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c7b36
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.EXE_FILE_NAME_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490dde
leave
ret 0x14