joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee4ec
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x54f3a0], bl
jne 0x4677cd
or dword [0x54f3a0], ebx
mov dword [ebp - 4], 0
call fcn.0045e690
push 0x4f6030
call fcn.004bc45e
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov edx, 0x54f3a8
call fcn.0045e660
push ebx
mov eax, 0x510884
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00407450
lea esi, [ebp - 0x48]
call fcn.00403d70
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00407350
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x46781d
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x467828
lea eax, [ebp - 0x2c]
push ebx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x54f3a0], bl
jne 0x46785f
or dword [0x54f3a0], ebx
mov byte [ebp - 4], 3
call fcn.0045e690
push 0x4f6030
call fcn.004bc45e
add esp, 4
mov ecx, dword [0x54f444]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x18], esi
jb 0x46788b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x46abe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee1ee
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x54f3a0], bl
jne 0x46ac3d
or dword [0x54f3a0], ebx
mov dword [ebp - 4], 0
call fcn.0045e690
push 0x4f6030
call fcn.004bc45e
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov edx, 0x54f3a8
call fcn.0045e660
push ebx
mov eax, 0x510884
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00407450
lea esi, [ebp - 0x48]
call fcn.00403d70
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00407350
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x46ac8d
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x46ac98
lea eax, [ebp - 0x2c]
push ebx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
cmp dword [ebp - 0x18], esi
jb 0x46acc5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x46c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x46c99f
mov dword [edi], 0
jmp 0x46c960
mov eax, 0x400000
cmp esi, 0x400000
ja 0x46c96f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x46c9a7
test ecx, ecx
je 0x46c99f
test esi, esi
jne 0x46c960
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x46ca1f
mov dword [edi], 0
jmp 0x46c9e0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x46c9ef
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x46ca27
test ecx, ecx
je 0x46ca1f
test esi, esi
jne 0x46c9e0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x46d020
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x550700], ecx
inc edx
cmp edx, 0x100
jb 0x46d020
cmp edx, 0x800
jae 0x46d0f9
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x550300]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x550700]
inc edx
mov dword [edx*4 + 0x5506fc], eax
cmp edx, 0x800
jb 0x46d0d0
lea esi, [ebp - 0x24]
mov dword [0x54ee68], 0x46fb00
call fcn.0046fc30
test eax, eax
je 0x46d1b6
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x54c4c0
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x46d14c
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x46d14c
cmp dword [ecx], ebx
je 0x46d184
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x46d138
or ecx, 0xffffffff
sub ecx, 0
je 0x46d19c
dec ecx
je 0x46d188
dec ecx
jne 0x46d1b6
cmp esi, 6
jb 0x46d1b6
jne 0x46d1ac
cmp dword [ebp - 4], 0xf
jb 0x46d1b6
mov dword [0x54ee68], 0x46fbb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x46d15b
cmp esi, 5
jb 0x46d1b6
jne 0x46d1ac
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x46d1b6
cmp eax, 0xa
jmp 0x46d1aa
cmp esi, 6
jb 0x46d1b6
jne 0x46d1ac
cmp dword [ebp - 4], 0x100c
je 0x46d1b6
mov dword [0x54ee68], 0x46fbb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4713b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x4713d2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x471400
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x471400
inc edi
cmp edi, edx
jb 0x4713f1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x471507
cmp eax, 3
jbe 0x471437
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x471474
cmp al, 0xff
je 0x471474
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4713e5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x47141b
movzx eax, byte [esi + 0x512980]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x512978], 0
mov al, byte [ecx + 4]
je 0x471460
test al, al
je 0x471460
cmp al, 0xff
jne 0x47141b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4713e5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x4714d7
movzx edx, byte [esi + 0x512980]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x4714be
cmp cl, 0xff
jne 0x4714d4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x471492
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x4713e5
cmp eax, 3
jbe 0x47151c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47f088
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
jns 0x47f09e
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x47f0aa
or edi, 1
push 1
call esi
test ax, ax
jns 0x47f0b6
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x47f0c2
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x47f0ce
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x47f22e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54b1b4]
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.004c24e0
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.Update.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.004ba3af
leave
ret

Function at 0x481be0
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 0x481c08
cmp ebx, dword [esi + 0x148]
je 0x481c08
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x148]
cmp ebx, eax
je 0x481cdf
push edi
test eax, eax
je 0x481c67
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.Update.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 0x481cde
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x481cde
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x481cde
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x481cde
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.Update.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 0x4822a6
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 0x4822fb
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 0x48235f
lea ecx, [esi + 0x1c4]
inc ebx
call sym.Update.exe_public:_int___thiscall_DuiLib::CStdPtrArray::GetSize_void_const
cmp ebx, eax
jl 0x4822c2
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4823c4
sub eax, 4
je 0x482363
dec eax
dec eax
jne 0x4823bb
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004c2d35
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 0x4823bb
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 0x4823bd
cmp dword [esi + 0x148], 0
je 0x4823bb
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.0047f088
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 0x4823bb
cmp dword [esi + 0x148], 0
je 0x482422
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x482422
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x482422
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.004bd48d
pop ecx
pop ecx
test eax, eax
je 0x482422
mov ecx, dword [esi + 0x148]
call sym.Update.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4823bb
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 0x48235f
Function at 0x484935
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x484943
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 0x4849fe
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 + 0x5012b8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x5012b8]
add edx, 8
sub edi, 8
dec esi
jne 0x484961
pop ebx
test edi, edi
je 0x484a17
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x5012b8]
inc edx
dec edi
jne 0x484a02
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x484ede
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 0x484f12
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 0x484f0d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x484f3a
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x484f23
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004bec60
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 0x485eb8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54b1b4]
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 0x485f60
movzx ecx, word [esi]
test cx, cx
je 0x485f60
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x485ef3
cmp cx, 0x5c
jne 0x485ef5
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x485ee7
cmp eax, esi
je 0x485f34
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004bd53b
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00485eb8
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004c265f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004c262e
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.004ba3af
leave
ret
Function at 0x4877c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x487841
cmp dword [esi + 4], 0xffffffff
jne 0x487841
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x510884
push edi
call fcn.004c262e
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x487813
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x487813
mov eax, 0x2000000
jmp 0x487846
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00484ceb
add esp, 0x10
test eax, eax
jne 0x487831
mov eax, dword [ebp + 0x10]
jmp 0x487846
push eax
call fcn.004873b5
mov dword [esi], eax
mov eax, dword [0x54d92c]
pop ecx
jmp 0x487846
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x48ef45
Capabilities:
Terminate process

Disassembly:
push 0x1e4
mov eax, 0x4ea523
call fcn.004bf4a7
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 0x48f04b
push 0x10
push str.Duilib
push 0x5024f4
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.004bf52a
ret 0x10
Function at 0x4982bf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x54b1b4]
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 0x498330
cmp dword [esi + 0x10], ebx
je 0x498330
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004c2680
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x498330
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.0047e564
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.004ba3af
leave
ret 0x10

Function at 0x49cb13
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 0x49cb7b
cmp dword [ebp + 8], 0x100
jne 0x49cb6a
cmp word [ebp + 0xc], 0xd
jne 0x49cb6a
cmp byte [esi + 0x10be], bl
je 0x49cb51
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49cb6a
cmp byte [esi + 0x10bf], bl
jne 0x49cb6a
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x49cb66
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 0x49cb7e
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