joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1044fcf
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x2c]
test ebx, ebx
jl 0x104512a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0xc], eax
call edi
inc dword [esi + 0x40]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x3c]
jae 0x10450d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x38]
jae 0x10450d4
cmp dword [esi + 0x34], 0
jne 0x1045103
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x104504e
test byte [eax + 0x1c], 2
je 0x104504e
push 0x1024420
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010245a6
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x1045158
push 4
push 0
push 0x1045168
call dword [sym.imp.ole32.dll_CoCreateInstance]
and dword [ebp - 4], 0
mov ebx, eax
test ebx, ebx
jl 0x1045091
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jl 0x1045091
push dword [ebp - 4]
call fcn.01046291
mov ebx, eax
push dword [ebp - 0xc]
call edi
xor edi, edi
cmp ebx, edi
jl 0x10450c2
lea ecx, [esi + 0x34]
cmp dword [ecx], edi
jne 0x10450c2
xor eax, eax
cmp dword [ebp - 4], edi
je 0x10450b0
mov eax, dword [ebp - 4]
mov dword [ebp - 4], edi
push eax
call fcn.01044edf
mov dword [esi + 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x44], eax
lea ecx, [ebp - 4]
call fcn.01014f5f
lea ecx, [ebp - 8]
call fcn.01014f5f
jmp 0x1045103
mov ebx, 0x800106ba
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x1045103
test byte [eax + 0x1c], 2
je 0x1045103
push dword [esi + 0x38]
push dword [esi + 0x40]
push 0x1024420
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01034bea
mov ecx, dword [ebp + 8]
pop edi
test ecx, ecx
je 0x104511d
test ebx, ebx
jl 0x104511d
mov eax, dword [esi + 0x34]
mov dword [ecx], eax
mov esi, dword [esi + 0x34]
mov eax, dword [esi]
push esi
call dword [eax + 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jge 0x104514f
mov eax, dword [0x1049104]
cmp eax, 0x1049104
je 0x104514f
test byte [eax + 0x1c], 1
je 0x104514f
push ebx
push 0x1024420
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010245cc
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1046312
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1024460
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x10463a2
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10463cc
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1046378
cmp dword [ebp - 0xc], 1
setne al
mov esi, eax
cmp esi, ebx
je 0x10463a1
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10463e0
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
pop edi
cmp dword [ebp - 4], ebx
je 0x10463b0
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
setne al
push eax
push 0x1016
push ebx
call sub.ntdll.dll_WinSqmSetDWORD
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1046711
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.0104640c
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push 0x1024488
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x104676e
xor eax, eax
cmp dword [ebp + 8], esi
push 4
setne al
lea ecx, [ebp + 8]
push ecx
push 4
push esi
push 0x10244f4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov edi, eax
lea ecx, [ebp - 4]
call fcn.0104640c
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x1046783
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
jne 0x1046798
push 0x57
pop eax
jmp 0x104679e
mov dword [esi], 1
and dword [ebp + 8], 0
mov dword [ebp - 4], 4
test eax, eax
jne 0x10467ce
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x10
push 0x10244f4
push 0x1024488
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
cmp eax, 2
jne 0x10467df
and dword [esi], 0
push 0
call fcn.01046711
jmp 0x10467ee
test eax, eax
jne 0x10467ee
xor ecx, ecx
cmp dword [ebp + 8], 1
sete cl
mov dword [esi], ecx
pop esi
leave
ret 4
Function at 0x1046836
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x424], eax
cmp eax, edi
je 0x1046864
cmp word [eax], di
jne 0x1046867
push 0x57
pop esi
cmp esi, edi
jne 0x104687c
push 0x2c
push eax
call sub.msvcrt.dll_wcschr
mov edi, eax
neg edi
pop ecx
sbb edi, edi
pop ecx
inc edi
lea ecx, [ebp - 0x41c]
call fcn.0100bb6c
mov ebx, 0x80000001
test edi, edi
je 0x1046908
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0x410
test esi, esi
jne 0x1046925
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push 2
push dword [ebp - 0x424]
push 0x10469f0
push ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x1046925
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
push 0x100e57c
push eax
call fcn.01013143
add esp, 0x10
jmp 0x104691d
test esi, esi
jne 0x1046925
push dword [ebp - 0x424]
lea ecx, [ebp - 0x41c]
call fcn.0100ccdd
mov esi, eax
and esi, 0xffff
and dword [ebp - 0x420], 0
lea ecx, [ebp - 0x420]
call fcn.0104640c
xor edi, edi
mov dword [ebp - 0x420], edi
cmp esi, edi
jne 0x10469c2
lea eax, [ebp - 0x420]
push eax
push 2
push edi
push 0x1024488
push ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10469c2
mov esi, dword [ebp - 0x418]
mov ebx, dword [ebp - 0x420]
lea ecx, [ebp - 0x41c]
call fcn.0102f892
add eax, eax
push eax
push esi
push 1
push edi
push 0x1046a70
push ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x10469c2
push 0x1046a60
push edi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
test eax, eax
jne 0x10469ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jne 0x10469c2
push dword [ebp + 0xc]
push dword [ebp - 0x424]
call fcn.010467f8
mov esi, eax
lea ecx, [ebp - 0x420]
call fcn.0104640c
lea ecx, [ebp - 0x41c]
call fcn.0100bbb6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003279
leave
ret 8
Function at 0x10043d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10043e6a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10043dfd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10043540
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10043dc3
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10043f33
call fcn.10043e0f
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x10043eca
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10043960
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10043e7b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10043f33
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10043960
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10043f2e
jmp 0x10043f33
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10049800
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
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x10049825
or esi, 2
push 1
call edi
test ax, ax
jns 0x10049831
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x1004983d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x10049849
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x1004a410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1035dd3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.102629f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ebx, [edi + 4]
xor eax, eax
lea esi, [ebp - 0x210]
mov dword [edi], ebx
mov word [ebx], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004a464
mov edx, dword [edi]
sub esi, ecx
sar esi, 1
cmp esi, 0x3f
jge 0x1004a48d
cmp edx, ebx
je 0x1004a4e1
push edx
call fcn.10265f8b
add esp, 4
mov dword [edi], ebx
mov edx, ebx
jmp 0x1004a4e1
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x214], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004a4a0
sub ecx, dword [ebp - 0x214]
sar ecx, 1
cmp esi, ecx
jg 0x1004a4bd
cmp edx, ebx
jne 0x1004a4e1
jmp 0x1004a4c0
lea ebx, [edi + 4]
cmp edx, ebx
jne 0x1004a4cc
mov dword [edi], 0
xor edx, edx
lea eax, [esi*2 + 2]
push eax
push edx
call fcn.10275884
add esp, 8
mov dword [edi], eax
mov edx, eax
push esi
lea eax, [ebp - 0x210]
push eax
push edx
call fcn.1027588f
mov ecx, dword [edi]
add esp, 0xc
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102601ec
mov esp, ebp
pop ebp
ret
Function at 0x1004e580
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x1004e5be
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x1004e5be
cmp esi, dword [edi + 0xe4]
je 0x1004e5be
cmp byte [edi + 0xdc], 0
jne 0x1004e5be
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe4]
cmp esi, eax
je 0x1004e6dc
test eax, eax
je 0x1004e632
xorps xmm0, xmm0
mov dword [esp + 8], 0x14
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0xe4]
mov ecx, edi
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
mov dword [edi + 0xe4], 0
test esi, esi
je 0x1004e6dc
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
cmp eax, sym.nsInstall.dll_public_virtual:_class_DuiLib::CPaintManagerUI____thiscall_DuiLib::CControlUI::GetManager_void_const
jne 0x1004e6e4
mov eax, dword [esi + 0x5c]
cmp eax, edi
jne 0x1004e6dc
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x1004e6dc
mov eax, dword [esi]
mov eax, dword [eax + 0xe8]
cmp eax, sym.nsInstall.dll_public_virtual:_bool___thiscall_DuiLib::CControlUI::IsEnabled_void_const
jne 0x1004e6ed
mov al, byte [esi + 0x1b6]
test al, al
je 0x1004e6dc
xorps xmm0, xmm0
mov dword [edi + 0xe4], esi
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0xe4]
mov ecx, edi
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call eax
jmp 0x1004e64d
mov ecx, esi
call eax
jmp 0x1004e67a

Function at 0x10053eb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10053ef5
cmp byte [ebp + 8], 0
je 0x10053ee9
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x10057da0
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 edx, edx
je 0x10057de1
cmp word [eax], 0x3c
jne 0x10057dd7
push eax
call sym.nsInstall.dll_public:_bool___thiscall_DuiLib::CMarkup::Load_wchar_t_const__
test al, al
jne 0x10057e7c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0
push eax
call sym.nsInstall.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromFile_wchar_t_const___int_
jmp 0x10057dc4
mov ecx, dword [sym.nsInstall.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test ecx, ecx
mov ebx, dword [ebp + 0xc]
cmove ecx, dword [sym.nsInstall.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 0x10057dcc
mov ecx, dword [sym.nsInstall.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test ecx, ecx
push edi
cmove ecx, dword [sym.nsInstall.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 0x10057e33
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x140], eax
mov eax, dword [sym.nsInstall.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test eax, eax
push 0
cmove eax, dword [sym.nsInstall.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.nsInstall.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
test al, al
je 0x10057dcc
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.nsInstall.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10064a30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10064a3b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x10064af7
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 + 0x10326560]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
sub edi, 1
jne 0x10064a50
pop edi
test esi, esi
je 0x10064b1a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10326560]
sub esi, 1
jne 0x10064b00
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x10065290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x100652d8
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100652ca
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.102618f0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x1006534b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10065346
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x10065378
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x1006535c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.102618f0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x1006538c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x10065383
cmp byte [esi + 8], 0
je 0x10065383
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10066600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
jne 0x1006679c
cmp dword [ebx + 4], 0xffffffff
jne 0x1006679c
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10066631
mov eax, dword [0x10329f00]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x10066668
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, edi
je 0x10066683
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x10066680
cmp edi, 3
je 0x10066680
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp + 0x13], 0
cmp edi, 1
je 0x100666c7
cmp edi, 2
jne 0x10066709
push 0
push 0x80
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x100666fb
mov eax, 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push 2
push 0
push 0
push eax
call esi
push eax
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100666f8
mov eax, 0x100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
sete byte [ebp + 0x13]
push 0x1c
call fcn.1025fb94
add esp, 4
mov esi, eax
cmp edi, 1
je 0x10066755
cmp edi, 2
je 0x10066755
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], 0
call fcn.10065610
mov dword [ebx], eax
mov eax, dword [0x10365a1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov cl, byte [ebp + 0x13]
mov byte [esi], 1
mov byte [esi + 1], cl
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test cl, cl
je 0x10066785
push 1
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.10065610
mov dword [ebx], eax
mov eax, dword [0x10365a1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10074ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x694], 0
je 0x10074d0f
cmp dword [ebp + 8], 0x100
jne 0x10074cff
cmp word [ebp + 0xc], 0xd
jne 0x10074cff
cmp byte [esi + 0x69a], 0
je 0x10074cde
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10074cff
cmp byte [esi + 0x69b], 0
jne 0x10074cff
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10074cf8
push 1
push 0
push 0
push 0
push str.return
push esi
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x694]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10