joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56af50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.005b4de0
add esp, 0xc
push 1
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x56afc4
xor al, al
jmp 0x56affa
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0x65bcd4
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x41c]
call fcn.0056b2f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 0xc

Function at 0x56b010
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0x80
jmp 0x56b031
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
ja 0x56b05f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x56b05d
jmp 0x56b05f
jmp 0x56b028
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jb 0x56b06b
xor eax, eax
jmp 0x56b0b9
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.005b4de0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jae 0x56b090
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x56b096
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005b5620
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x56b2f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.005b4de0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x56b338
xor al, al
jmp 0x56b3b4
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x56b363
xor al, al
jmp 0x56b3b4
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x56b38d
xor al, al
jmp 0x56b3b4
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x118]
call fcn.0056b1b0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005b7740
add esp, 8
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 8
Function at 0x56d380
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.005b4de0
add esp, 0xc
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.005b4de0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea edx, [ebp - 0x218]
push edx
call fcn.005b5990
add esp, 4
test eax, eax
jbe 0x56d423
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
call fcn.00414070
mov ecx, dword [ebp - 0x21c]
call fcn.00450a30
movzx ecx, al
test ecx, ecx
jne 0x56d44b
mov ecx, dword [ebp - 0x21c]
call fcn.0040e460
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x56d465
push str.Cookie_m_strTempPath_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
xor al, al
jmp 0x56d50b
mov ecx, dword [ebp - 0x21c]
call fcn.0056c830
movzx edx, al
test edx, edx
jne 0x56d48e
push str.Cookie_GetBrowserCookiesPath_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
xor al, al
jmp 0x56d50b
mov ecx, dword [ebp - 0x21c]
call fcn.0056ce20
movzx eax, al
test eax, eax
jne 0x56d4b7
push str.Cookie_ParseBrowserCookies_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
xor al, al
jmp 0x56d50b
mov ecx, dword [ebp - 0x21c]
call fcn.0056cf10
movzx ecx, al
test ecx, ecx
jne 0x56d4e0
push str.Cookie_FilterCookies_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
xor al, al
jmp 0x56d50b
mov ecx, dword [ebp - 0x21c]
call fcn.0056d2b0
movzx edx, al
test edx, edx
jne 0x56d509
push str.Cookie_InjectCookies_err
call fcn.00412530
push eax
call fcn.0040d040
add esp, 8
xor al, al
jmp 0x56d50b
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x5767c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
pop ebp
ret
Function at 0x5828e6
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x5828fc
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x582908
or edi, 1
push 1
call esi
test ax, ax
jge 0x582914
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x582920
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x58292c
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x582a97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005b4de0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.demo.exe_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.005b4b30
leave
ret

Function at 0x585192
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x5851ba
cmp ebx, dword [esi + 0x148]
je 0x5851ba
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x148]
cmp ebx, eax
je 0x585291
push edi
test eax, eax
je 0x585219
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x148]
mov ecx, esi
call sym.demo.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x148], edi
test ebx, ebx
je 0x585290
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x585290
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x585290
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x585290
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x148], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x148]
mov ecx, esi
call sym.demo.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x585846
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c4]
mov ecx, edi
xor ebx, ebx
call sym.demo.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x585895
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.demo.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 0x5858f9
mov ecx, edi
inc ebx
call sym.demo.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x585864
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x58595e
sub eax, 4
je 0x5858fd
dec eax
dec eax
jne 0x585955
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.005b9384
pop ecx
mov ecx, dword [esi + 0x144]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.demo.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 0x585955
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 0x585957
cmp dword [esi + 0x148], 0
je 0x585955
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.005828e6
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 0x585955
cmp dword [esi + 0x148], 0
je 0x5859bc
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x5859bc
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x5859bc
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.005b76d8
pop ecx
pop ecx
test eax, eax
je 0x5859bc
mov ecx, dword [esi + 0x148]
call sym.demo.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x585955
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call sym.demo.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x5858f9
Function at 0x593d3d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6b278c]
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 0x593dae
cmp dword [esi + 0x10], ebx
je 0x593dae
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.005beb90
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x593dae
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.00579c85
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.demo.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.005b4b30
leave
ret 0x10
Function at 0x598bc3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x109c], ebx
je 0x598c2b
cmp dword [ebp + 8], 0x100
jne 0x598c1a
cmp word [ebp + 0xc], 0xd
jne 0x598c1a
cmp byte [esi + 0x10a2], bl
je 0x598c01
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x598c1a
cmp byte [esi + 0x10a3], bl
jne 0x598c1a
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x598c16
push ebx
push ebx
push ebx
push str.return
push esi
call sym.demo.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x598c2e
mov eax, dword [esi + 0x109c]
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 0x59aed0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
cmp edi, 0x4e
jne 0x59aef1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp edi, 8
jne 0x59afb4
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 0x59af6e
push 0x20
pop esi
push esi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.005b4de0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x100e
push edi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x20], 0x1010003
jne 0x59af5b
xor eax, eax
inc eax
jmp 0x59af67
cmp dword [ebp - 0x20], 0x2010003
je 0x59af56
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jl 0x59af9c
cmp eax, dword [ebp - 0x14]
jg 0x59af9c
cmp eax, dword [ebp - 0x18]
jl 0x59af9c
cmp eax, dword [ebp - 0x10]
jle 0x59af64
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 8
call fcn.0059ac69
mov dword [ebp - 4], eax
jmp 0x59af64
mov ecx, dword [ebp + 0xc]
mov eax, 0x101
cmp edi, eax
jne 0x59b025
cmp ecx, 0x2e
je 0x59afca
cmp ecx, 8
jne 0x59b001
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 + 0x14e0], 2
mov ecx, dword [esi + 0x10]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDateTimeUI::UpdateText_void_
push ebx
push ebx
push 0x10
mov ecx, esi
call sym.demo.exe_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
mov eax, edi
jmp 0x59af67
cmp ecx, 0x1b
jne 0x59b025
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 + 0x14e0], 3
mov edi, eax
jmp 0x59afef
push dword [ebp + 0x10]
push ecx
push edi
mov ecx, esi
call sym.demo.exe_protected_virtual:_long_int___thiscall_DuiLib::CWindowWnd::HandleMessage_unsigned_int__unsigned_int__long_int_
jmp 0x59af67
Function at 0x59f0b4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x364], eax
mov dword [ebx + 0x368], edi
mov dword [ebx + 0x36c], ecx
cmp eax, edi
jne 0x59f112
call sym.demo.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp + 0x1c], edi
je 0x59f112
call sym.demo.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push dword [ebp + 0x1c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call sym.demo.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]
cmp ecx, edi
jne 0x59f130
mov ecx, dword [ebp + 0x18]
jmp 0x59f137
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call sym.demo.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x1c], eax
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
push edi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push connect
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp + 0x1c]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call sym.demo.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 0x59f179
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x59f174
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]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x5a493e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x84
lea ebp, [esp - 4]
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 8
mov eax, 0x638e40
call fcn.005bec7a
mov ebx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x94]
call sym.demo.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
push ebx
lea ecx, [ebp]
mov dword [ebp - 4], edi
call sym.demo.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp]
call sym.demo.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5a49e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.005b4b30
add ebp, 0x88
leave
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
cmp eax, edi
je 0x5a49b0
push eax
mov dword [ebp - 0x14], edi
call fcn.005b2e02
pop ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push dword [esi]
mov dword [ebp - 0x10], 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 - 0x14]
cmp eax, dword [esi]
je 0x5a4a32
push dword [ebp - 0x10]
call fcn.005b467e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call sym.demo.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, edi
jmp 0x5a49be
mov edi, dword [ebp - 0x10]
jmp 0x5a4a22
Function at 0x5a4b49
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.demo.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 0x5a4b6a
xor eax, eax
jmp 0x5a4bc8
push edi
call sym.demo.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 0x5a4b87
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x5a4b66
push esi
push edi
call sym.demo.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 0x5a4bc7
push ebx
push eax
call fcn.005b2e02
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.005b5620
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 0x5a4bcb
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 connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a4bf8
xor eax, eax
jmp 0x5a4c48
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 0x5a4c0e
xor eax, eax
jmp 0x5a4c47
push eax
mov dword [ebp - 8], ebx
call fcn.005b2e02
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 0x5a4c44
push dword [ebp - 4]
call fcn.005b467e
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret