joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438104
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a4300]
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 0x43812c
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, 8
jne 0x4381eb
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 0x4381a4
push 0x20
pop edi
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.004523e0
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 0x438199
xor eax, eax
inc eax
jmp 0x438265
cmp dword [ebp - 0x18], 0x2010003
jne 0x4381e7
jmp 0x438191
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 0x4381d2
cmp eax, dword [ebp - 0xc]
jg 0x4381d2
cmp eax, dword [ebp - 0x10]
jl 0x4381d2
cmp eax, dword [ebp - 8]
jle 0x4381e7
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.004383ad
mov ebx, eax
mov eax, ebx
jmp 0x438265
mov eax, dword [ebp + 0xc]
mov ecx, 0x101
cmp esi, ecx
jne 0x438259
cmp eax, 0x2e
je 0x438225
cmp eax, 8
je 0x438225
cmp eax, 0x1b
jne 0x438259
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 0x43824a
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 0x438265
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.004516e1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438278
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x46e7b9
call fcn.00452d53
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 0x43830a
lea eax, [ebp - 0xa8]
push eax
call fcn.00437ed3
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 0x438349
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.00452d11
ret 4
Function at 0x43c78d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a4300]
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 0x43c7f5
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 0x43c7f5
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 0x43c812
mov ecx, edi
jmp 0x43c819
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 0x43c85c
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x43c857
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.004516e1
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x44260c
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 0x442638
xor eax, eax
jmp 0x442680
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 0x44267f
push eax
mov dword [ebp - 4], esi
call fcn.00453f90
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 0x44267d
push esi
call fcn.00452c95
pop ecx
xor esi, esi
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0x8c
mov eax, 0x46ece5
call fcn.00452d53
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 0x442730
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x442730
and dword [ebp - 0x98], 0
push eax
call fcn.00453f90
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 0x442732
push esi
call fcn.00452c95
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.00452d11
ret
Function at 0x442749
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 0x4427c6
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 0x442782
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x442797
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 0x44279b
xor eax, eax
jmp 0x4427c5
push esi
push eax
call fcn.00453f90
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.00451d90
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 0x4443ca
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a4300]
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 0x444480
movzx eax, word [esi]
test ax, ax
je 0x444480
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x44440a
cmp ax, 0x5c
jne 0x44440c
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4443fe
cmp edi, esi
je 0x444453
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00453400
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x444490
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004443ca
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00452be3
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00452bb4
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.004516e1
mov esp, ebp
pop ebp
ret
call fcn.00456c20
int3
Function at 0x444a65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x444ae1
cmp dword [edi + 4], 0xffffffff
jne 0x444ae1
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x477d50
push esi
call fcn.00452bb4
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x444ab3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x444ab3
mov eax, 0x2000000
jmp 0x444ae6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00446f6e
add esp, 0x10
test eax, eax
jne 0x444ad1
mov eax, dword [ebp - 4]
jmp 0x444ae6
push eax
call fcn.00447675
mov dword [edi], eax
mov eax, dword [0x4a782c]
pop ecx
jmp 0x444ae6
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44707b
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 0x4470af
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 0x4470aa
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4470d6
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x4470bf
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.00451d90
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 0x447249
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x447257
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 0x447312
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 + 0x476320]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
dec edi
jne 0x447275
pop edi
test esi, esi
je 0x44732b
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x476320]
inc edx
dec esi
jne 0x447316
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x44e95d
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 0x44e981
cmp dword [esi + 8], edi
jge 0x44e979
push esi
call fcn.0044ad65
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 0x44e9a7
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 0x44e98d
mov dword [esi + 8], edx
jmp 0x44e9bc
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x44e9b2
xor dl, dl
jmp 0x44e9b7
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x44e9a7
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 0x44e9f6
push str.zlib_corrupt
call fcn.0044ac8e
add esp, 4
jmp 0x44ea36
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x44ea06
push str.read_past_buffer
jmp 0x44e9ec
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x44ea20
push edi
push ecx
push esi
call fcn.004514c4
add esp, 0xc
test eax, eax
je 0x44ea36
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00451d90
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 0x46809c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a4300]
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.0045af76
mov dword [ebp - 0x14], eax
cmp dword [0x4a8804], esi
jne 0x46818f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46811c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46826f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46826f
push 0x480c44
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46826f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a8804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a8808], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a880c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8814], eax
test eax, eax
je 0x46818c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8810], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4681b4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4681a7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4681c9
push 4
pop eax
jmp 0x468271
cmp dword [ebp - 0x14], esi
je 0x4681c9
push dword [0x4a8804]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4681ae
mov eax, dword [0x4a8810]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x468227
cmp dword [0x4a8814], edi
je 0x468227
push eax
call ebx
push dword [0x4a8814]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x468227
test eax, eax
je 0x468227
call ecx
test eax, eax
je 0x46821c
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 0x46821c
test byte [ebp - 8], 1
jne 0x468227
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x468257
mov eax, dword [0x4a8808]
cmp eax, edi
je 0x468254
push eax
call ebx
test eax, eax
je 0x468254
call eax
mov esi, eax
test esi, esi
je 0x468254
mov eax, dword [0x4a880c]
cmp eax, edi
je 0x468254
push eax
call ebx
test eax, eax
je 0x468254
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a8804]
call ebx
test eax, eax
je 0x46826f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x468271
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret
Function at 0x401c86
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401cd4
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x401ce5
push 0xd
pop eax
jmp 0x401d0f
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401ce8
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40245a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x417358]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00401c45
mov ebx, eax
cmp ebx, esi
je 0x4024ca
lea ecx, [ebp - 0x70]
call fcn.00401bd0
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405cbe
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4024e2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040245a
cmp eax, esi
jne 0x402514
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x4024d2
lea ecx, [ebp - 0x70]
call fcn.00401bd0
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401b75
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00401bd0
mov eax, esi
jmp 0x4024b0
Function at 0x4045ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
push 0
push 9
mov esi, ecx
push 0x110a
push dword [esi + 0x38]
call ebx
mov ecx, dword [esi + 0x104]
mov ecx, dword [esi + ecx*8 + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0xc]
push edi
push eax
push ecx
call dword [edx + 0x20]
cmp eax, 1
jne 0x40462b
xor eax, eax
inc eax
jmp 0x404749
cmp dword [esp + 0xc], 0
je 0x404623
push 0x1058
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x404747
push ebp
push 0x58
push 0
lea ebp, [edi + 0x58]
push edi
mov byte [ebp], 0
call fcn.00406270
mov dword [edi], 0x58
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [edi + 4], eax
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], 0x104
mov dword [edi + 0x34], 0x880004
mov eax, dword [0x4184ac]
push edi
mov dword [edi + 0xc], eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
cmp eax, 1
jne 0x404736
push ebp
call fcn.00407031
push 0x5c
push ebp
call fcn.00406f15
add esp, 0xc
test eax, eax
je 0x4046bd
push 0x2e
push eax
call fcn.00406e42
pop ecx
pop ecx
test eax, eax
jne 0x4046c9
push str..txt
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4046f0
push 0x24
push dword [0x4184b4]
push dword [0x4184b8]
push dword [esi + 4]
call sub.K7UI.dll_Ordinal_13
cmp eax, 6
jne 0x404736
push 0
push 9
push 0x110a
push dword [esi + 0x38]
call ebx
push 0x7f02
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
push dword [esp + 0x10]
mov dword [esp + 0x1c], eax
push dword [esp + 0x18]
push dword [esi + 0x38]
push ebp
call fcn.004051af
add esp, 0x10
push dword [esp + 0x18]
call ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret