joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432552
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x1c], 0
je 0x4325bf
cmp dword [esi + 0x14], 0
je 0x4325bf
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00454dc0
mov ebx, esp
test ebx, ebx
je 0x4325bf
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x14]
push ebx
add ecx, 0x1b8
call fcn.00417056
mov ecx, dword [esi + 0x14]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43889a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x109c], edi
je 0x438904
cmp dword [ebp + 8], 0x100
jne 0x4388f3
cmp word [ebp + 0xc], 0xd
jne 0x4388f3
cmp byte [esi + 0x10a2], 0
je 0x4388da
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4388f3
cmp byte [esi + 0x10a3], 0
jne 0x4388f3
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4388ef
push edi
push edi
push edi
push str.return
push esi
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x438907
mov eax, dword [esi + 0x109c]
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 0x438ee7
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp esi, 0x4e
jne 0x438f0f
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, 8
jne 0x438fce
push ebx
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x438f87
push 0x20
pop edi
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push ebx
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0x1010003
jne 0x438f7c
xor eax, eax
inc eax
jmp 0x439048
cmp dword [ebp - 0x18], 0x2010003
jne 0x438fca
jmp 0x438f74
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
jl 0x438fb5
cmp eax, dword [ebp - 0xc]
jg 0x438fb5
cmp eax, dword [ebp - 0x10]
jl 0x438fb5
cmp eax, dword [ebp - 8]
jle 0x438fca
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.00439190
mov ebx, eax
mov eax, ebx
jmp 0x439048
mov eax, dword [ebp + 0xc]
mov ecx, 0x101
cmp esi, ecx
jne 0x43903c
cmp eax, 0x2e
je 0x439008
cmp eax, 8
je 0x439008
cmp eax, 0x1b
jne 0x43903c
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x14]
mov esi, eax
mov dword [ecx + 0x14dc], 3
jmp 0x43902d
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x14]
mov esi, eax
mov dword [ecx + 0x14dc], 2
mov ecx, dword [edi + 0x14]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDateTimeUI::UpdateText_void_
push ebx
push ebx
push 0x10
mov ecx, edi
call sym.STSGameSDK.exe_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
mov eax, esi
jmp 0x439048
push dword [ebp + 0x10]
mov ecx, edi
push eax
push esi
call sym.STSGameSDK.exe_protected_virtual:_long_int___thiscall_DuiLib::CWindowWnd::HandleMessage_unsigned_int__unsigned_int__long_int_
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43905b
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x46d596
call fcn.00453b73
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x14], eax
mov dword [eax + 0x14dc], ebx
cmp dword [edi + 8], ebx
jne 0x4390ed
lea eax, [ebp - 0xa8]
push eax
call fcn.00438cb6
mov ecx, dword [edi + 0x14]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call sym.STSGameSDK.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call sym.STSGameSDK.exe_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 + 0x14]
mov ecx, esi
call sym.STSGameSDK.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call sym.STSGameSDK.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call sym.STSGameSDK.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov esi, 0x14cc
test bl, bl
je 0x43912c
mov eax, dword [edi + 0x14]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x14]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x1c], 1
call fcn.00453b31
ret 4
Function at 0x43d567
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x36c], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x368], ecx
mov dword [ebx + 0x370], eax
test ecx, ecx
jne 0x43d5cf
call sym.STSGameSDK.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x43d5cf
call sym.STSGameSDK.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x14]
call sym.STSGameSDK.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x368]
test ecx, ecx
jne 0x43d5ec
mov ecx, edi
jmp 0x43d5f3
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call sym.STSGameSDK.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.STSGameSDK.exe_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 [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x43d636
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x43d631
push 5
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44342a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x443456
xor eax, eax
jmp 0x44349e
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
test eax, eax
je 0x44349d
push eax
mov dword [ebp - 4], esi
call fcn.00454db0
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
je 0x44349b
push esi
call fcn.00453ab5
pop ecx
xor esi, esi
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4434a4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x46d932
call fcn.00453b73
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call sym.STSGameSDK.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
lea ecx, [ebp - 0x94]
push esi
mov dword [ebp - 4], edi
call sym.STSGameSDK.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.STSGameSDK.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44354e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x44354e
and dword [ebp - 0x98], 0
push eax
call fcn.00454db0
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x98]
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebx]
je 0x443550
push esi
call fcn.00453ab5
pop ecx
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, esi
call fcn.00453b31
ret
Function at 0x443567
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.STSGameSDK.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
je 0x4435e4
push ebx
push edi
call sym.STSGameSDK.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push edi
test ebx, ebx
jne 0x4435a0
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4435b5
call sym.STSGameSDK.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x4435b9
xor eax, eax
jmp 0x4435e3
push esi
push eax
call fcn.00454db0
mov esi, eax
mov eax, dword [ebp + 0x10]
pop ecx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.00452bb0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x4451e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a3300]
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 0x44529e
movzx eax, word [esi]
test ax, ax
je 0x44529e
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x445228
cmp ax, 0x5c
jne 0x44522a
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x44521c
cmp edi, esi
je 0x445271
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00454220
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4452ae
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004451e8
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00453a03
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004539d4
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.004524fc
mov esp, ebp
pop ebp
ret
call fcn.004579c0
int3
Function at 0x445883
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4458ff
cmp dword [edi + 4], 0xffffffff
jne 0x4458ff
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x476d30
push esi
call fcn.004539d4
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x4458d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4458d1
mov eax, 0x2000000
jmp 0x445904
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00447d89
add esp, 0x10
test eax, eax
jne 0x4458ef
mov eax, dword [ebp - 4]
jmp 0x445904
push eax
call fcn.00448490
mov dword [edi], eax
mov eax, dword [0x4a682c]
pop ecx
jmp 0x445904
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x447e96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x447eca
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x447ec5
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x447ef1
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x447eda
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00452bb0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x448072
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x44812d
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
dec edi
jne 0x448090
pop edi
test esi, esi
je 0x448146
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x475300]
inc edx
dec esi
jne 0x448131
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x44f778
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x44f79c
cmp dword [esi + 8], edi
jge 0x44f794
push esi
call fcn.0044bb80
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x44f7c2
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x44f7a8
mov dword [esi + 8], edx
jmp 0x44f7d7
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x44f7cd
xor dl, dl
jmp 0x44f7d2
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x44f7c2
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x44f811
push str.zlib_corrupt
call fcn.0044baa9
add esp, 4
jmp 0x44f851
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x44f821
push str.read_past_buffer
jmp 0x44f807
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x44f83b
push edi
push ecx
push esi
call fcn.004522df
add esp, 0xc
test eax, eax
je 0x44f851
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00452bb0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x466f7f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0045bb76
mov dword [ebp - 0x14], eax
cmp dword [0x4a7804], esi
jne 0x467072
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x466fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x467152
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x467152
push 0x47fc24
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x467152
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a7804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a7808], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a780c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a7814], eax
test eax, eax
je 0x46706f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a7810], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x467097
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46708a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4670ac
push 4
pop eax
jmp 0x467154
cmp dword [ebp - 0x14], esi
je 0x4670ac
push dword [0x4a7804]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x467091
mov eax, dword [0x4a7810]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x46710a
cmp dword [0x4a7814], edi
je 0x46710a
push eax
call ebx
push dword [0x4a7814]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46710a
test eax, eax
je 0x46710a
call ecx
test eax, eax
je 0x4670ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4670ff
test byte [ebp - 8], 1
jne 0x46710a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x46713a
mov eax, dword [0x4a7808]
cmp eax, edi
je 0x467137
push eax
call ebx
test eax, eax
je 0x467137
call eax
mov esi, eax
test esi, esi
je 0x467137
mov eax, dword [0x4a780c]
cmp eax, edi
je 0x467137
push eax
call ebx
test eax, eax
je 0x467137
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a7804]
call ebx
test eax, eax
je 0x467152
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x467154
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret