joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10096118
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x100961de
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x100961e2
cmp dword [ebp - 0x1c], 0x10
jne 0x10096198
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x100961ad
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
jmp 0x100961ad
cmp dword [ebp - 0x1c], 0x100
jne 0x100961ad
cmp dword [ebp - 0x18], 0x1b
jne 0x100961ad
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call sym.nsDui.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::TranslateMessage_struct_tagMSG__const_
pop ecx
test al, al
jne 0x100961cf
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x100961e2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10096163
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x10096200
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x100a4391
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x100a439c
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x100a4458
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
sub edi, 1
jne 0x100a43b1
pop edi
test esi, esi
je 0x100a4474
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10302fd0]
inc edx
sub esi, 1
jne 0x100a445c
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100a4bf5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x100a4c2e
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100a4c29
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x100a4c58
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.102519a0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret

Function at 0x100a5908
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x100a598d
cmp dword [esi + 4], 0xffffffff
jne 0x100a598d
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x100a5932
cmp dword [ebp + 0x10], 1
mov eax, dword [0x10311668]
mov dword [edi], eax
jne 0x100a5960
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x100a5960
mov eax, 0x2000000
jmp 0x100a5992
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.100a4a50
pop ecx
pop ecx
test eax, eax
jne 0x100a597d
mov eax, dword [ebp - 4]
jmp 0x100a5992
mov ecx, eax
call fcn.100a4f12
mov dword [esi], eax
mov eax, dword [0x103500dc]
jmp 0x100a5992
mov eax, 0x1000000
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100ae696
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x694], edi
je 0x100ae702
cmp dword [ebp + 8], 0x100
jne 0x100ae6f1
cmp word [ebp + 0xc], 0xd
jne 0x100ae6f1
cmp byte [esi + 0x69a], 0
je 0x100ae6d6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100ae6f1
cmp byte [esi + 0x69b], 0
jne 0x100ae6f1
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100ae6ed
push 1
push edi
push edi
push edi
push str.return
push esi
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
xor eax, eax
jmp 0x100ae705
mov eax, dword [esi + 0x694]
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 0x100bb6d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x103440b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x100bb758
cmp dword [esi + 0x10], 0
je 0x100bb758
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.100e6ce0
mov ebx, esp
test ebx, ebx
je 0x100bb758
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.10094f30
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp byte [eax + 0x145], 0
je 0x100bb758
mov ecx, dword [esi + 0x10]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CControlUI::Invalidate_void_
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5dee
leave
ret 0x10

Function at 0x100bbe98
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x103440b4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.nsDui.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_struct_tagRECT__bool_
mov ecx, dword [ebx + 0x6d8]
test ecx, ecx
je 0x100bbf22
lea eax, [esp + 0xc]
push eax
call fcn.100bb1e1
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6d8]
test eax, eax
je 0x100bbefb
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100bbf22
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push 0x54
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100e5dee
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100bbf36
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x103440b4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.nsDui.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::Move_struct_tagSIZE__bool_
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x100bbfb8
lea eax, [esp + 4]
push eax
call fcn.100bb1e1
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6d8]
test eax, eax
je 0x100bbf91
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100bbfb8
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push 0x54
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.100e5dee
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100c37e5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x534], eax
mov dword [ebx + 0x538], esi
cmp dword [ebp + 0x10], esi
je 0x100c381d
push dword [ebp + 0x10]
lea ecx, [ebx + 0x30]
call fcn.10094f30
mov eax, dword [ebp + 0xc]
mov ecx, 0x10348784
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x55c], eax
lea eax, [ebx + 0x10]
push eax
call fcn.100c4fb2
mov ecx, dword [ebx + 0x534]
test ecx, ecx
jne 0x100c3849
mov eax, dword [ebx + 0x20]
jmp 0x100c3854
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [eax + 0x84]
push esi
sub esp, 0x10
mov dword [ebp - 4], esi
mov edi, esp
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ecx, ebx
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0x10]
push 0x88
movsd dword es:[edi], dword [esi]
push accept
push 0
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.nsDui.dll_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 + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x100c3891
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x100c388c
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x100c5588
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x103440b4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.nsDui.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_struct_tagRECT__bool_
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x100c5612
lea eax, [esp + 0xc]
push eax
call fcn.100c519c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x100c55eb
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100c5612
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push 0x54
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100e5dee
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100c5626
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x103440b4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.nsDui.dll_public_virtual:_void___thiscall_DuiLib::CControlUI::Move_struct_tagSIZE__bool_
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x100c56a8
lea eax, [esp + 4]
push eax
call fcn.100c519c
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f0]
test eax, eax
je 0x100c5681
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100c56a8
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push 0x54
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.100e5dee
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100cab7a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
mov eax, dword [0x103440b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.10252510
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push ebx
push edi
call fcn.10262a7a
add esp, 0x20
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x290]
xor eax, eax
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
push dword [ebp - 0x290]
call fcn.10261600
lea ecx, [ebp - 0x290]
mov dword [esp], str..ICO
call sym.nsDui.dll_public:_int___thiscall_DuiLib::CDuiString::Compare_wchar_t_const__const
test eax, eax
jne 0x100cac23
push 0x2010
push ebx
push ebx
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x658], eax
test eax, eax
je 0x100cac73
jmp 0x100cac6c
mov ebx, 0x2b4
lea eax, [ebp - 0x544]
push ebx
push 0
push eax
call fcn.10252510
add esp, 0xc
xor eax, eax
cmp byte [esi + 0x670], al
sete al
add eax, 0x100
push eax
push ebx
lea eax, [ebp - 0x544]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x544]
test eax, eax
je 0x100cac73
mov dword [esi + 0x658], eax
mov byte [esi + 0x65c], 1
lea ecx, [ebp - 0x290]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e5dee
leave
ret 4
Function at 0x100d171e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
shr edx, 0x10
mov esi, ecx
push edi
test dx, dx
je 0x100d1760
cmp word [eax], 0x3c
jne 0x100d1745
push eax
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CMarkup::Load_wchar_t_const__
jmp 0x100d174d
push 0
push eax
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromFile_wchar_t_const___int_
test al, al
jne 0x100d17f2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test ecx, ecx
mov ebx, dword [ebp + 0xc]
cmove ecx, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100d1755
mov ecx, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test ecx, ecx
push edi
cmove ecx, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100d17a9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x100d1755
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x140], eax
mov eax, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test eax, eax
push 0
cmove eax, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
test al, al
je 0x100d1755
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0x144], ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call sym.nsDui.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__
jmp 0x100d1757
Function at 0x100d778d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x100d77b9
cmp eax, edi
jge 0x100d77ad
call fcn.100d71e3
mov eax, dword [esi + 8]
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x100d77dc
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x100d77c2
mov dword [esi + 8], edx
jmp 0x100d77f1
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x100d77e7
xor dl, dl
jmp 0x100d77ec
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x100d77dc
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x100d7855
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x100d7855
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x100d783d
push edi
mov ecx, esi
call fcn.100d72bb
pop ecx
test eax, eax
je 0x100d7855
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.102519a0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
jmp 0x100d7857
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100dbf70
Capabilities:
Hash data using sha256

Disassembly:
test ecx, ecx
jne 0x100dbf7a
mov eax, 0xffffff53
ret
mov dword [ecx], 0x6a09e667
xor eax, eax
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
ret
Function at 0x100dc8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x10], edx
xor esi, esi
mov dword [ebp - 0xc], ebx
test edi, edi
jle 0x100dc9a6
cmp edi, 8
jb 0x100dc987
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x100dc8e7
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, edi
xorps xmm4, xmm4
mov edi, ebx
sub ecx, eax
sub edi, edx
mov eax, edx
mov dword [ebp - 4], edi
xorps xmm3, xmm3
lea edi, [ebx + 4]
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
nop dword [eax]
movd xmm2, dword [ebx + eax]
lea eax, [eax + 8]
movd xmm1, dword [eax - 8]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [eax - 4]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [edx + esi]
add esi, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp esi, ecx
jl 0x100dc910
mov ebx, dword [ebp - 0xc]
por xmm3, xmm4
mov edx, dword [ebp - 0x10]
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
cmp esi, edi
jge 0x100dc9a6
sub ebx, edx
lea ecx, [esi + edx]
sub edi, esi
movzx esi, byte [ecx + ebx]
lea ecx, [ecx + 1]
movzx edx, byte [ecx - 1]
xor esi, edx
or eax, esi
sub edi, 1
jne 0x100dc992
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e0980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x100e09d3
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
push 0
mov ecx, 0x400000
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x100e09da
test ecx, ecx
je 0x100e09d3
test esi, esi
jne 0x100e0998
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x100e09f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x100e0a43
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
push 0
mov ecx, 0x400000
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x100e0a4a
test ecx, ecx
je 0x100e0a43
test esi, esi
jne 0x100e0a08
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

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

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x10350500], ecx
inc eax
cmp eax, 0x100
jb 0x100e0b02
cmp eax, 0x800
jae 0x100e0bd3
nop word [eax + eax]
mov edx, dword [eax*4 + 0x10350100]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x10350500]
mov dword [eax*4 + 0x10350500], edx
inc eax
cmp eax, 0x800
jb 0x100e0bb0
mov dword [0x1034b7c0], 0x100e18f0
call fcn.100e1730
mov ecx, dword [0x1034b7c0]
test eax, eax
mov edx, 0x100e18f0
cmove ecx, edx
mov dword [0x1034b7c0], ecx
ret