joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d0c0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.TEXT
push 0x84
push 0
mov ebx, ecx
mov dword [ebp - 0x260], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40d145
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d145
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40d145
cmp eax, 0x2000
ja 0x40d145
push eax
push esi
push ebx
call fcn.00452bb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x25c]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d180
mov eax, dword [str..json]
push 0
push 0x80
push 3
mov dword [ecx], eax
mov ax, word [0x4826ac]
push 0
push 0
mov word [ecx + 4], ax
lea eax, [ebp - 0x25c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d1d4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x260]
push eax
push 0x2000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [ebp - 0x260]
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x40d520
Capabilities:
Get mac address on windows
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x14], edx
push str.8.8.8.8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterface]
test eax, eax
je 0x40d567
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push ebx
push 0x288
mov dword [ebp - 0xc], 0x288
call fcn.00453a23
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40d592
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
cmp eax, 0x6f
jne 0x40d5b8
push ebx
call fcn.00454bdd
push dword [ebp - 0xc]
call fcn.00453a23
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x40d5cf
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
test eax, eax
jne 0x40d61c
mov eax, dword [ebp - 8]
mov esi, ebx
nop
cmp dword [esi + 0x19c], eax
je 0x40d5f0
mov esi, dword [esi]
test esi, esi
jne 0x40d5e0
jmp 0x40d61c
mov eax, dword [esi + 0x190]
push eax
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x194]
push eax
push dword [ebp - 0x10]
call fcn.00452bb0
mov edi, dword [ebp - 0x14]
add esp, 0xc
add esi, 8
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
push ebx
call fcn.00454bdd
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x40db50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40dc17
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
push 6
push edi
mov dword [ebp - 8], 1
call esi
xor eax, eax
mov dword [ebp - 8], 1
push 4
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
push 0xffffff7f
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
push 0x1001
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
push 0x1002
push 0xffff
push edi
call esi
push ecx
mov ecx, edi
call fcn.0040a150
add esp, 4
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40dc2a
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40dc10
mov esi, dword [sym.imp.WS2_32.dll_htons]
xorps xmm0, xmm0
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov eax, 2
push 0
movq qword [ebp - 0x1a], xmm0
mov word [ebp - 0x1c], ax
call esi
push 0
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40dc10
mov dword [ebp - 0x22], eax
xorps xmm0, xmm0
mov word [ebp - 0x1e], ax
mov eax, 2
push 0xfff0
movq qword [ebp - 0x2a], xmm0
mov word [ebp - 0x2c], ax
call esi
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push edi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40dcd4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40dc10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x40dcf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x140], eax
push edi
mov edi, ecx
mov dword [ebp - 0x14c], edi
test eax, eax
jne 0x40dd2d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 0xec
lea eax, [ebp - 0x134]
mov dword [ebp - 0x138], 0
push 0
push eax
call fcn.00453200
lea ebx, [ebp - 0x138]
add esp, 0xc
mov esi, edi
sub ebx, edi
mov edi, 0x3c
lea esp, [esp]
mov ecx, dword [esi]
test ecx, ecx
je 0x40dd6e
call fcn.0040db50
mov dword [ebx + esi], eax
add esi, 4
dec edi
jne 0x40dd60
xor eax, eax
lea ecx, [ebp - 0x130]
lea edx, [edi + 0xa]
nop
cmp dword [ecx - 8], 0
jbe 0x40dd87
inc eax
cmp dword [ecx - 4], 0
jbe 0x40dd8e
inc eax
cmp dword [ecx], 0
jbe 0x40dd94
inc eax
cmp dword [ecx + 4], 0
jbe 0x40dd9b
inc eax
cmp dword [ecx + 8], 0
jbe 0x40dda2
inc eax
cmp dword [ecx + 0xc], 0
jbe 0x40dda9
inc eax
add ecx, 0x18
dec edx
jne 0x40dd80
test eax, eax
je 0x40dd1a
push 0x3f
push edx
lea eax, [ebp - 0x47]
mov byte [ebp - 0x48], dl
push eax
call fcn.00453200
add esp, 0xc
call fcn.00409e10
mov ebx, eax
mov esi, edx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], esi
call fcn.00409e10
sub eax, ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
sbb edx, esi
test edx, edx
jg 0x40dec0
jl 0x40de02
cmp eax, 0x1f4
ja 0x40dec0
xor eax, eax
xor edi, edi
jmp 0x40de10
mov esi, dword [ebp + edi*4 - 0x138]
test esi, esi
je 0x40de68
inc eax
push 0
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x48]
push 0x40
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x40de54
cmp eax, 0xffffffff
jne 0x40de90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40de62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2749
je 0x40de62
push esi
call ebx
mov dword [ebp + edi*4 - 0x138], 0
mov eax, dword [ebp - 0x13c]
inc edi
cmp edi, 0x3c
jb 0x40de10
test eax, eax
je 0x40dec0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409e10
sub eax, dword [ebp - 0x148]
sbb edx, dword [ebp - 0x144]
jmp 0x40dded
cmp eax, 0x10
jne 0x40de62
mov ecx, dword [ebp - 0x140]
movdqu xmm0, xmmword [ebp - 0x48]
mov eax, dword [ebp - 0x14c]
mov dword [ebp + edi*4 - 0x138], 0
movdqu xmmword [ecx + 8], xmm0
mov eax, dword [eax + edi*4]
mov dword [ecx + 4], eax
mov eax, esi
mov dword [ecx], eax
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x138]
test eax, eax
je 0x40dedb
push eax
call ebx
mov dword [ebp + esi*4 - 0x138], 0
inc esi
cmp esi, 0x3c
jb 0x40dec2
mov ecx, dword [ebp - 0x140]
xor eax, eax
pop edi
pop esi
pop ebx
cmp dword [ecx], eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x410620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x72900c], 0
jne 0x41066d
push 0xfde80
call fcn.00453a23
add esp, 4
mov dword [0x72900c], eax
test eax, eax
jne 0x41065d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 0xfde80
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x410590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x410696
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], eax
setne al
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x4110f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x4a3300]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, edx
xor eax, eax
mov byte [esp + 0x68], 0
push 0x42
push eax
mov word [esp + 0x80], ax
mov edi, ecx
lea eax, [esp + 0x82]
movq qword [esp + 0x71], xmm0
push eax
mov dword [esp + 0x7d], 0
mov word [esp + 0x81], 0
mov byte [esp + 0x83], 0
call fcn.00453200
push esi
mov edx, edi
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.00410820
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x68]
call fcn.004108f0
xor edi, edi
lea esi, [esp + 0x7a]
lea esp, [esp]
mov bl, byte [esp + edi + 0x68]
movzx eax, bl
push eax
push str._02x
lea eax, [esi - 2]
push 2
push eax
call fcn.00410800
shl bl, 4
movzx eax, bl
push eax
push str._02x
push 2
push esi
call fcn.00410800
inc edi
add esp, 0x20
add esi, 4
cmp edi, 0x10
jl 0x4111b0
xor eax, eax
mov word [esp + 0xb8], ax
lea eax, [esp + 0x78]
push eax
push 0x21
push dword [esp + 0x14]
call fcn.004554e7
mov ecx, dword [esp + 0xd0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x415f71
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xffffffffffffffec
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor eax, 0x80
push eax
push 0xffffffffffffffec
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor edi, edi
lea eax, [ebp - 0x14]
push edi
push eax
push edi
xorps xmm0, xmm0
push 0x30
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 1
push 0x96
sub eax, 0xa0
push 0x1c2
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
sub eax, 0x1cc
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MoveWindow]
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
mov ecx, esi
call sym.STSGameSDK.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x4165ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 4
push 0x4721a4
push 0x4721b0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x416633
mov eax, dword [0x4a5508]
test eax, eax
je 0x416622
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
and dword [0x4a5508], 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CloseWindow]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret 4
Function at 0x416bf6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x472590
push 0xa8
xor edi, edi
mov dword [ebp - 0x8c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x416c34
xor eax, eax
jmp 0x416cd6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x90], eax
push esi
test eax, eax
jne 0x416c4f
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x416c2d
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jae 0x416c60
push esi
jmp 0x416c47
push ebx
push edi
call fcn.00453a23
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x416c79
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x416cd5
push edi
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00452bb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x8c]
call sym.STSGameSDK.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____
lea eax, [ebp - 0x88]
push eax
call sym.STSGameSDK.exe_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
pop ecx
pop ecx
mov ecx, eax
call sym.STSGameSDK.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call sym.STSGameSDK.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetCurrentPath_wchar_t_const__
pop ecx
lea ecx, [ebp - 0x88]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push edi
push ebx
call sym.STSGameSDK.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int_
pop ecx
xor eax, eax
pop ecx
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x41a9ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.STSGameSDK.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.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x41b440
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x41b463
or esi, 1
push 1
call edi
test ax, ax
jns 0x41b46f
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x41b47b
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41b487
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x41cad5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x1c4]
call sym.STSGameSDK.exe_public_virtual:_int___thiscall_DuiLib::CListContainerElementUI::GetIndex_void_const
mov edi, dword [ebp + 8]
test eax, eax
jle 0x41cb2b
push ebx
lea ecx, [esi + 0x1c4]
mov byte [ebp + 0xb], 0
call sym.STSGameSDK.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x41cb89
lea ecx, [esi + 0x1c4]
inc ebx
call sym.STSGameSDK.exe_public_virtual:_int___thiscall_DuiLib::CListContainerElementUI::GetIndex_void_const
cmp ebx, eax
jl 0x41caf4
sub edi, 0x100
je 0x41cbef
sub edi, 4
je 0x41cb8d
dec edi
dec edi
jne 0x41cbe4
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.004554bb
pop ecx
mov ecx, dword [esi + 0x144]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_ioctlsocket
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push sym.STSGameSDK.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 0x41cbe4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x41cbe6
cmp dword [esi + 0x148], 0
je 0x41cbe4
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x158]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x15c]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0041b440
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x41cbe4
mov ecx, dword [esi + 0x148]
test ecx, ecx
je 0x41cc48
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x41cc48
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x41cc48
mov ecx, dword [esi + 0x148]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00454306
pop ecx
pop ecx
test eax, eax
je 0x41cc48
mov ecx, dword [esi + 0x148]
call sym.STSGameSDK.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x41cbe4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call sym.STSGameSDK.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x41cb89
Function at 0x41d77a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx]
je 0x41d7a1
cmp esi, dword [ebx + 0x148]
je 0x41d7a1
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x148]
cmp esi, eax
je 0x41d878
push edi
test eax, eax
je 0x41d800
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], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x148]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [ebx + 0x148], edi
test esi, esi
je 0x41d877
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x41d877
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x41d877
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x41d877
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x148], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x148]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41efc6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41eff8
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x424ea9
Capabilities:
Terminate process

Disassembly:
push 0x1e4
mov eax, 0x46cd81
call fcn.00453b73
mov edi, ecx
push 0xfffffffffffffff0
call sym.STSGameSDK.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call sym.STSGameSDK.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]
mov ecx, edi
push eax
call sym.STSGameSDK.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]
mov ecx, edi
sub eax, dword [ebp - 0x1c]
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
call sym.STSGameSDK.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 8]
lea ebx, [edi + 0x30]
mov ecx, ebx
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::Init_struct_HWND____
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
call sym.STSGameSDK.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddPreMessageFilter_class_DuiLib::IMessageFilterUI__
lea ecx, [ebp - 0x1ec]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
and dword [ebp - 4], 0
lea esi, [edi + 0x2c]
push ecx
mov ecx, edi
call dword [eax + 0x24]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 1
call sym.STSGameSDK.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x1ec]
call sym.STSGameSDK.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 byte [ebp - 4], 0
mov esi, eax
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test esi, esi
jne 0x424fa4
push 0x10
push str.Duilib
push 0x4734f8
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call sym.STSGameSDK.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AttachDialog_class_DuiLib::CControlUI__
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call sym.STSGameSDK.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddNotifier_class_DuiLib::INotifyUI__
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ec]
call sym.STSGameSDK.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
xor eax, eax
call fcn.00453b31
ret 0x10