joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bf50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474b88
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004049e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004049e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 8]
push eax
call fcn.00404a10
mov dword [ebp - 0x64], eax
call fcn.0041c110
add esp, 0x28
mov byte [ebp - 0x65], al
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x41c00f
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a50
mov al, byte [ebp - 0x5d]
jmp 0x41c0f2
cmp dword [ebp - 0x54], 0x80000001
jne 0x41c032
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x41c032
mov dword [ebp - 0x54], SysStringLen
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00404e40
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c0a7
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404e40
push eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c09d
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404e40
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c09d
mov byte [ebp - 0x55], 1
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
and edx, 0x80000000
cmp edx, 0x80000000
je 0x41c0c2
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a50
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret
Function at 0x41c880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474b88
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4a86cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x55], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x4c]
call fcn.004049e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004049e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp + 8]
push eax
call fcn.00404a10
mov dword [ebp - 0x64], eax
call fcn.0041c110
add esp, 0x28
mov byte [ebp - 0x65], al
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x41c93f
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a50
mov al, byte [ebp - 0x5d]
jmp 0x41ca15
cmp dword [ebp - 0x54], 0x80000001
jne 0x41c962
lea edx, [ebp - 0x54]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x41c962
mov dword [ebp - 0x54], SysStringLen
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.00404e40
push eax
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c9ca
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404e40
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x55], al
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
and edx, 0x80000000
cmp edx, 0x80000000
je 0x41c9e5
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
mov byte [ebp - 0x5e], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404a50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404a50
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421737
mov esp, ebp
pop ebp
ret

Function at 0x41cc40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4201d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00403bc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x421737
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a86cc]
jne 0x421741
repz ret
jmp fcn.00428e3c

Function at 0x426372
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4263a3
call fcn.0042913c
mov dword [eax], esi
call fcn.00429129
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042227d
add esp, 0x14
push 0x16
pop eax
jmp 0x4263f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x42637f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4263d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042914f
pop ecx
call fcn.00429129
mov eax, dword [eax]
jmp 0x4263f8
test al, 0x10
jne 0x4263f6
test al, 1
je 0x4263f6
test byte [ebp + 0xc], 2
je 0x4263f6
call fcn.0042913c
mov dword [eax], 5
call fcn.00429129
mov dword [eax], 0xd
jmp 0x4263c7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x432c45
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042882c
and dword [ebp - 4], 0
cmp dword [0x4abd10], 0
mov ebx, eax
jne 0x432cf6
push 0x47c00c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432da7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x432da7
push eax
call fcn.004287ba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4abd10], eax
call esi
push eax
call fcn.004287ba
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4abd14], eax
call esi
push eax
call fcn.004287ba
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4abd18], eax
call esi
push eax
call fcn.004287ba
pop ecx
mov dword [0x4abd20], eax
test eax, eax
je 0x432cf6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004287ba
pop ecx
mov dword [0x4abd1c], eax
mov eax, dword [0x4abd1c]
cmp eax, ebx
je 0x432d4e
cmp dword [0x4abd20], ebx
je 0x432d4e
push eax
call fcn.00428835
push dword [0x4abd20]
mov esi, eax
call fcn.00428835
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x432d4e
test edi, edi
je 0x432d4e
call esi
test eax, eax
je 0x432d45
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432d45
test byte [ebp - 0xc], 1
jne 0x432d4e
or dword [ebp + 0x10], 0x200000
jmp 0x432d87
mov eax, dword [0x4abd14]
cmp eax, ebx
je 0x432d87
push eax
call fcn.00428835
pop ecx
test eax, eax
je 0x432d87
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x432d87
mov eax, dword [0x4abd18]
cmp eax, ebx
je 0x432d87
push eax
call fcn.00428835
pop ecx
test eax, eax
je 0x432d87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4abd10]
call fcn.00428835
pop ecx
test eax, eax
je 0x432da7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432da9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43fbdf
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 0x43fbf5
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x43fc01
or edi, 1
push 1
call esi
test ax, ax
jge 0x43fc0d
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x43fc19
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x43fc25
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x43fd72
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a86cc]
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.00421750
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.KZTui.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.00421737
leave
ret

Function at 0x442318
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 0x44233d
cmp ebx, dword [esi + 0x54]
je 0x44233d
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4423ff
push edi
test eax, eax
je 0x442390
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 + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.KZTui.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4423fe
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4423fe
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4423fe
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4423fe
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.KZTui.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 0x4425fc
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 + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.KZTui.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x44264b
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.KZTui.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 0x4426ac
mov ecx, edi
inc ebx
call sym.KZTui.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x44261a
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x442705
sub eax, 4
je 0x4426b0
dec eax
dec eax
jne 0x4426fc
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0046fc13
pop ecx
mov ecx, dword [esi + 0x50]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.KZTui.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 0x4426fc
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 0x4426fe
cmp dword [esi + 0x54], 0
je 0x4426fc
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 + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0043fbdf
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4426fc
cmp dword [esi + 0x54], 0
je 0x442754
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x442754
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x442754
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00424f17
pop ecx
pop ecx
test eax, eax
je 0x442754
mov ecx, dword [esi + 0x54]
call sym.KZTui.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4426fc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call sym.KZTui.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x4426ac
Function at 0x452f8e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4a86cc]
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 0x452fff
cmp dword [esi + 0x10], ebx
je 0x452fff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.0042f590
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x452fff
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.0043f15a
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.KZTui.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.00421737
leave
ret 0x10

Function at 0x45762f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x457697
cmp dword [ebp + 8], 0x100
jne 0x457686
cmp word [ebp + 0xc], 0xd
jne 0x457686
cmp byte [esi + 0x4da], bl
je 0x45766d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x457686
cmp byte [esi + 0x4db], bl
jne 0x457686
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x457682
push ebx
push ebx
push ebx
push str.return
push esi
call sym.KZTui.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x45769a
mov eax, dword [esi + 0x4d4]
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 0x460c21
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x460c2c
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x460ce7
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 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x483f68]
inc edx
sub edi, 8
dec esi
jne 0x460c4c
pop ebx
test edi, edi
je 0x460d00
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x483f68]
inc edx
dec edi
jne 0x460ceb
pop edi
not eax
pop esi
ret

Function at 0x461197
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 0x4611cb
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 0x4611c6
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4611f3
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4611dc
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004274c0
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 0x461f90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a86cc]
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 0x46203a
movzx ecx, word [esi]
test cx, cx
je 0x46203a
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x461fce
cmp cx, 0x5c
jne 0x461fd0
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x461fc2
cmp eax, esi
je 0x46200e
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0046fab3
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00461f90
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004249dc
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004249ae
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.00421737
leave
ret
Function at 0x46356b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4635e6
cmp dword [esi + 4], 0xffffffff
jne 0x4635e6
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x484564
push edi
call fcn.004249ae
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4635b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4635b8
mov eax, 0x2000000
jmp 0x4635eb
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00460fad
add esp, 0x10
test eax, eax
jne 0x4635d6
mov eax, dword [ebp + 0x10]
jmp 0x4635eb
push eax
call fcn.00463167
mov dword [esi], eax
mov eax, dword [0x4ac2ec]
pop ecx
jmp 0x4635eb
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x46b5f6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x46b61b
cmp eax, edi
jge 0x46b613
mov eax, esi
call fcn.0046afaa
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x46b63d
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x46b622
cmp ecx, 4
jge 0x46b65c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x46b64a
xor eax, eax
jmp 0x46b652
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x46b640
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x46b68e
mov eax, str.zlib_corrupt
call fcn.00468bc7
jmp 0x46b6c9
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x46b69e
mov eax, str.read_past_buffer
jmp 0x46b687
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x46b6b3
mov ecx, edi
call fcn.0046afd5
test eax, eax
je 0x46b6c9
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004274c0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x470ea0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x470ec2
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x470ec6
mov al, 1
jmp 0x470ec8
xor al, al
mov esp, ebp
pop ebp
ret