joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c25d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
mov dword [ebp - 8], eax
add eax, 0xc
cmp ecx, dword [eax]
jae 0x43c280
mov eax, ecx
leave
ret
push ebx
push esi
push edi
movzx edi, word [edx + 6]
xor esi, esi
test edi, edi
je 0x43c2c3
lea ebx, [esi + 1]
cmp ebx, edi
jne 0x43c29f
mov ecx, dword [edx + 0x50]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x43c2a8
mov edx, dword [eax + 0x28]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
mov edi, dword [eax]
cmp ecx, edi
mov dword [ebp - 0xc], edi
movzx edi, word [edx + 6]
jb 0x43c2ba
cmp ecx, dword [ebp - 4]
jb 0x43c2cb
mov esi, ebx
add eax, 0x28
cmp esi, edi
jb 0x43c28d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov edx, dword [ebp - 8]
imul eax, esi, 0x28
mov eax, dword [eax + edx + 0x14]
sub eax, dword [ebp - 0xc]
add eax, ecx
jmp 0x43c2c6

Function at 0x43c492
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 2
jne 0x43c4a1
pop ebp
jmp fcn.0043c4dc
xor eax, eax
cmp dword [ebp + 8], eax
setne al
pop ebp
ret

Function at 0x43c711
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
mov esi, 0x5e6c98
cmp ax, word [0x5e6c98]
jne 0x43c73a
push eax
push 0x26
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call fcn.005322ba
pop ecx
pop ecx
mov eax, esi
pop esi
ret

Function at 0x43c73e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x43c777
cmp ax, word [esi]
je 0x43c777
inc eax
jmp 0x43c789
push dword [ebp + 0xc]
push esi
call fcn.0043c711
push eax
call fcn.00431c6a
add esp, 0xc
pop esi
leave
ret
Function at 0x459280
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
push 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45935a
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x45935a
cmp dword [ebp - 0x24], 0x10
jne 0x459326
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 4]
jne 0x459326
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [ebp - 0x28]
push edx
call sym.360pic.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::TranslateMessage_struct_tagMSG__const_
add esp, 4
movzx eax, al
test eax, eax
jne 0x45934d
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x24], 0x12
jne 0x459355
jmp 0x45935a
jmp 0x4592d4
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x24], 0x12
jne 0x459380
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x45fb80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 0x13], cl
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x45fc3f
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x13]
test ecx, ecx
je 0x45fbbe
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45fc3f
push 0xfffffffffffffff0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0x10000000
jne 0x45fbea
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x10], 1
jmp 0x45fc05
mov edx, dword [ebp - 8]
and edx, 0x21000000
je 0x45fbfe
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 5
jmp 0x45fc05
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x10], 7
mov edx, dword [ebp - 8]
and edx, 0x10000000
je 0x45fc3f
mov eax, dword [ebp - 8]
and eax, 0x21000000
jne 0x45fc3f
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, dword [ebp - 4]
call sym.360pic.exe_protected:_void___thiscall_DuiLib::CShadowUI::Update_struct_HWND____
mov esp, ebp
pop ebp
ret 4
Function at 0x464aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00520800
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d360
mov esp, ebp
pop ebp
ret

Function at 0x466c50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x466c71
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x466c89
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x466ca1
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x466cb7
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x466ccf
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4762e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
je 0x476379
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x3c
jne 0x476346
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x220]
call sym.360pic.exe_public:_bool___thiscall_DuiLib::CMarkup::Load_wchar_t_const__
movzx eax, al
test eax, eax
jne 0x476344
xor eax, eax
jmp 0x476484
jmp 0x476374
mov ecx, dword [ebp - 0x218]
add ecx, 0x28
mov dword [ebp - 0x224], ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x224]
call sym.360pic.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromFile_wchar_t_const___int_
movzx eax, al
test eax, eax
jne 0x476374
xor eax, eax
jmp 0x476484
jmp 0x476447
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.360pic.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4763a3
xor eax, eax
jmp 0x476484
mov eax, dword [ebp - 0x214]
push eax
call sym.360pic.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4763d9
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x476484
mov edx, dword [ebp - 0x218]
add edx, 0x28
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x214]
push eax
call sym.360pic.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x22c], eax
push 0
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x230]
call sym.360pic.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
movzx ecx, al
test ecx, ecx
jne 0x47643a
xor eax, eax
jmp 0x476484
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x218]
add eax, 0x28
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x234]
call sym.360pic.exe_public:_class_DuiLib::CMarkupNode___thiscall_DuiLib::CMarkup::GetRoot_void_
sub esp, 0x20c
mov ecx, 0x83
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x218]
call sym.360pic.exe_public:_int___thiscall_DuiLib::CResourceManager::LoadResource_class_DuiLib::CMarkupNode_
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d360
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2f20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
jne 0x4a2f45
xor eax, eax
jmp 0x4a3016
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x4a2f55
xor eax, eax
jmp 0x4a3016
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.0051dc40
mov dword [ebp - 0x14], esp
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x4a2f88
xor eax, eax
jmp 0x4a3016
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
add ecx, 0x1d4
call fcn.00459d80
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x18], ecx
push 0
push 0
push 0
push str.textchanged
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax + 0x1c]
call edx
mov ecx, eax
call sym.360pic.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::IsLayered_void_
movzx eax, al
test eax, eax
je 0x4a3014
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CControlUI::Invalidate_void_
xor eax, eax
lea esp, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d360
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b4f20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c4], 0
je 0x4b4fdb
cmp dword [ebp + 8], 0x100
jne 0x4b4fa3
movzx ecx, word [ebp + 0xc]
cmp ecx, 0xd
jne 0x4b4fa3
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x6ca]
test eax, eax
je 0x4b4f76
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x4b4fa3
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x6cb]
test eax, eax
jne 0x4b4fa3
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
je 0x4b4f9f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push str.return
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x4b4fe0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call dword [ebp - 0x10]
jmp 0x4b4fe0
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b6bf0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x202
mov word [ebp - 0x29c], ax
lea ecx, [ebp - 0x294]
push ecx
movzx edx, word [ebp - 0x29c]
push edx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4b6c2e
xor eax, eax
jmp 0x4b6cd1
push 0xff
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.00520800
add esp, 0xc
push 0xff
lea ecx, [ebp - 0x104]
push ecx
call sub.WS2_32.dll_gethostname
lea edx, [ebp - 0x104]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0
jne 0x4b6c74
xor eax, eax
jmp 0x4b6cd1
push 4
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x2a0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx]
push ecx
lea edx, [ebp - 0x298]
push edx
call fcn.0051fd00
add esp, 0xc
movzx eax, byte [ebp - 0x298]
shl eax, 0x18
movzx ecx, byte [ebp - 0x297]
shl ecx, 0x10
add eax, ecx
movzx edx, byte [ebp - 0x296]
shl edx, 8
add eax, edx
movzx ecx, byte [ebp - 0x295]
add eax, ecx
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d360
mov esp, ebp
pop ebp
ret

Function at 0x4b71b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b71f5
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 4]
jne 0x4b71e6
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
xor eax, eax
jmp 0x4b726d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 8], eax
jmp 0x4b71c2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x598], 0
jne 0x4b725b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x590
push eax
push 0
push 0x466
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x598], 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CIPAddressUI::UpdateText_void_
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c0240
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5cd9c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CWindowWnd::constructor_void_
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call sym.360pic.exe_public:_void___thiscall_DuiLib::MenuReceiverImpl::constructor_void_
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], vtable.DuiLib::INotifyUI.0
mov edx, dword [ebp - 0x10]
add edx, 0x1c
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.DuiLib::IDialogBuilderCallback.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.DuiLib::CMenuWnd.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], vtable.DuiLib::CMenuWnd.1.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], vtable.DuiLib::CMenuWnd.2.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], vtable.DuiLib::CMenuWnd.3.0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x556c1c
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call sym.360pic.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::constructor_void_
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6d8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6dc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6e0], 6
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6e4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6ec], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6e8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6f0], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6f4], 0x270f
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6f8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x700], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6fc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x704], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4cfda0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4cfe06.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x4cfea4]
jmp dword [ecx*4 + 0x4cfe9c]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x4cfe36
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00520800
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x210]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
call sym.360pic.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov edx, dword [ebp - 0x218]
or edx, 1
mov dword [ebp - 0x218], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d360
mov esp, ebp
pop ebp
ret
Function at 0x4de0e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4de114
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4de114
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4de123
jmp 0x4de28c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x4de17e
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x4de161
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x4de16d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x4de138
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x4de20e
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.0051fd00
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x4de1d7
jmp 0x4de1dc
call fcn.0051d643
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004de0e0
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x4de22a
jmp 0x4de22f
call fcn.0051d643
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x4de258
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.005322eb
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.005322ba
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4de28c
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d360
mov esp, ebp
pop ebp
ret