joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ae10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x719204]
mov ebx, 4
push edi
mov edi, 0x7192b0
mov ecx, esi
sub edi, esi
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x50ae35
sub ebx, 1
jne 0x50ae30
mov byte [ebp - 1], 9
mov dword [ebp - 8], 0x7192a0
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
nop word [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x6cc978]
mov byte [ecx - 4], al
sub edx, 1
jne 0x50aec0
inc edi
sub ebx, 1
jne 0x50aeb0
mov edx, dword [ebp - 8]
mov eax, esi
mov ebx, 4
mov edi, 4
nop dword [eax]
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x50aef0
sub ebx, 1
jne 0x50aee4
call fcn.0050aa50
mov dl, byte [ebp - 1]
sub dword [ebp - 8], 0x10
dec dl
mov byte [ebp - 1], dl
test dl, dl
jne 0x50ae50
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x6cc978]
mov byte [ecx - 4], al
sub edx, 1
jne 0x50af80
inc edi
sub ebx, 1
jne 0x50af70
mov edx, 0x719210
lea edi, [ebx + 4]
sub edx, esi
mov ecx, 4
nop dword [eax]
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x50afb0
sub edi, 1
jne 0x50afa4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50afd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov al, byte [ebp + 8]
and al, 0xf
mov dword [ebp - 8], edx
push ebx
mov byte [ebp - 1], al
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
test eax, eax
je 0x50affa
mov dword [0x718f84], eax
call fcn.0050a870
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
test eax, eax
mov edi, dword [0x719208]
cmovne edi, eax
mov eax, dword [ebp + 8]
mov dword [0x719208], edi
test eax, eax
je 0x50b05f
lea esi, [eax - 1]
shr esi, 4
inc esi
nop dword [eax]
movups xmm0, xmmword [edx]
mov eax, ebx
sub edi, ebx
mov edx, 0x10
movups xmmword [ebx], xmm0
nop
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x50b030
mov dword [0x719204], ebx
call fcn.0050ac60
mov edx, dword [ebp - 8]
mov edi, ebx
add edx, 0x10
add ebx, 0x10
mov dword [ebp - 8], edx
sub esi, 1
jne 0x50b020
mov dword [0x719208], edi
mov al, byte [ebp - 1]
test al, al
je 0x50b0a9
movzx esi, al
push esi
push edx
push ebx
call fcn.0063a490
mov eax, 0x10
sub eax, esi
push eax
lea eax, [esi + ebx]
push 0
push eax
call fcn.0063af90
add esp, 0x18
mov ecx, ebx
sub edi, ebx
mov edx, 0x10
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x50b090
mov dword [0x719204], ebx
call fcn.0050ac60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50b0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
and al, 0xf
push ebx
mov byte [ebp - 1], al
mov ebx, edx
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
test eax, eax
je 0x50b0d3
mov dword [0x718f84], eax
call fcn.0050a870
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, dword [0x719208]
cmovne esi, eax
mov eax, dword [ebp + 8]
mov dword [0x719208], esi
test eax, eax
je 0x50b13f
dec eax
shr eax, 4
inc eax
mov dword [ebp + 8], eax
nop word [eax + eax]
movups xmm0, xmmword [ebx]
mov dword [0x719204], edi
movups xmmword [edi], xmm0
call fcn.0050ae10
mov eax, edi
sub esi, edi
mov edx, 0x10
nop word [eax + eax]
mov cl, byte [esi + eax]
xor byte [eax], cl
inc eax
sub edx, 1
jne 0x50b120
mov esi, ebx
add edi, 0x10
add ebx, 0x10
sub dword [ebp + 8], 1
jne 0x50b100
mov dword [0x719208], esi
mov al, byte [ebp - 1]
pop esi
test al, al
je 0x50b160
movzx eax, al
push eax
push ebx
push edi
call fcn.0063a490
add esp, 0xc
mov dword [0x719204], edi
call fcn.0050ae10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5100ec
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 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x51010f
or esi, 1
push 2
call edi
test ax, ax
jns 0x51011b
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x510127
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x510133
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x5115e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x410], ebx
jle 0x511635
mov eax, dword [esi + 0x40c]
lea edx, [ebp - 5]
mov byte [ebp - 5], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp - 5], 0
jne 0x511695
inc ebx
cmp ebx, dword [esi + 0x410]
jl 0x51160a
sub edi, 0x100
je 0x511705
sub edi, 4
je 0x511699
dec edi
sub edi, 1
jne 0x5116f0
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.0064838c
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp - 0xc]
push reloc.WS2_32.dll_select
mov word [ebp - 0xc], ax
push edx
mov eax, dword [ecx]
push 0x515d38
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x5116f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x5116f2
cmp dword [esi + 0x108], 0
je 0x5116f0
xor eax, eax
lea edi, [ebp - 0x28]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x1c], eax
call fcn.005100ec
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006221ee
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x5116f0
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x51175e
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x51175e
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x51175e
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0063c8a4
pop ecx
pop ecx
test eax, eax
je 0x51175e
mov eax, dword [esi + 0x108]
cmp byte [eax + 0x6a1], 0
jne 0x5116f0
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x5117a6
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x5117a6
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x5117a6
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0063c8a4
pop ecx
pop ecx
test eax, eax
jne 0x5116f0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0051467f
jmp 0x511695
Function at 0x5141fb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x706034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
cmp eax, ecx
je 0x514236
cmp esi, dword [ebx + 0x108]
je 0x514236
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x514315
test eax, eax
je 0x514299
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x17
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.005148a4
mov dword [ebx + 0x108], edi
test esi, esi
je 0x514315
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x514315
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x514315
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x514315
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.005148a4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006221ee
mov esp, ebp
pop ebp
ret 4
Function at 0x51a11c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x51a127
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x51a1e3
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 + 0x6ccc70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
sub edi, 1
jne 0x51a13c
pop edi
test esi, esi
je 0x51a1ff
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
inc edx
sub esi, 1
jne 0x51a1e7
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x51a206
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x6ccc70]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ccc70]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x51a991
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x51a9d6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51a9d1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x51a9fd
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x51a9e6
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0063a490
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.006221ee
mov esp, ebp
pop ebp
ret
Function at 0x523549
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.0051ed17

Function at 0x5297ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x529811
cmp dword [esi + 8], edi
jge 0x529809
call fcn.005292b3
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x52983a
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 0x52981d
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x529854
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x529845
xor dl, dl
jmp 0x52984a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x52983c
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
je 0x52987e
xor eax, eax
jmp 0x5298b5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x52987a
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x52989f
push edi
mov ecx, esi
call fcn.0052938d
pop ecx
test eax, eax
je 0x52987a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0063a490
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x538bfa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x538c64
cmp dword [ebp + 8], 0x100
jne 0x538c53
cmp word [ebp + 0xc], 0xd
jne 0x538c53
cmp byte [esi + 0x6a2], 0
je 0x538c3a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x538c53
cmp byte [esi + 0x6a3], 0
jne 0x538c53
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x538c4f
push edi
push edi
push edi
push str.return
push esi
call fcn.005148a4
xor eax, eax
jmp 0x538c67
mov eax, dword [esi + 0x69c]
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 0x53b4a8
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
push edi
shr edx, 0x10
mov edi, ecx
push 0x3c
pop esi
test dx, dx
je 0x53b4f0
cmp word [eax], si
je 0x53b4f0
call fcn.00454dd6
push 1
push dword [ebp + 8]
lea ecx, [eax + 0x1c]
call fcn.0050fe8b
test eax, eax
jne 0x53b4e3
xor ecx, ecx
jmp 0x53b4e5
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
mov dword [ebp + 8], eax
mov ecx, eax
shr ecx, 0x10
test cx, cx
je 0x53b521
cmp word [eax], si
jne 0x53b516
push eax
mov ecx, edi
call fcn.005349d9
test al, al
jne 0x53b59d
xor eax, eax
jmp 0x53b5ad
push ecx
push eax
mov ecx, edi
call fcn.00534ad3
jmp 0x53b507
mov esi, dword [edi + 0x148]
test esi, esi
jne 0x53b53a
mov esi, dword [0x718b60]
test esi, esi
cmove esi, dword [0x718b58]
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x53b50f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x53b564
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x53b50f
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push esi
mov dword [edi + 0x140], 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, edi
call fcn.00534a36
test al, al
je 0x53b50f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x144], eax
push dword [ebp + 0x18]
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0053b5b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x543c56
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x94
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x10], eax
and dword [eax + 0x598], 0
cmp dword [ebx + 4], 0
jne 0x543cce
lea eax, [ebp - 0x10]
push eax
call fcn.00543d4e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
lea esi, [ebp - 0x10]
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40000000
push ecx
push dword [eax + 0xa8]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00517dc6
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x558]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.005154bf
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
lea ecx, [ebp - 0x94]
mov eax, dword [eax]
movzx esi, word [eax]
call fcn.0041b502
mov edi, 0x588
test si, si
jne 0x543d03
mov eax, dword [ebx + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx + 0x10]
add eax, edi
push 0x10
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.0063a490
mov eax, dword [ebx + 0x10]
add esp, 0xc
add eax, edi
push eax
push 0
push 0x1002
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x54492a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x5449aa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00623190
mov ebx, esp
test ebx, ebx
je 0x5449aa
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0050f834
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.005148a4
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp byte [eax + 0x16d], 0
je 0x5449aa
mov ecx, dword [esi + 0x10]
call fcn.0050d1d6
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006221ee
mov esp, ebp
pop ebp
ret

Function at 0x547d50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x6d0], edx
mov dword [ebx + 0x6d4], esi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x6d8], 6
test edx, edx
jne 0x547d91
call fcn.0054a32c
lea eax, [ebx + 0x10]
push eax
call fcn.0054a32c
mov ecx, eax
call fcn.0054a263
mov ecx, dword [ebx + 0x6d0]
test ecx, ecx
jne 0x547db2
mov eax, dword [0xa8]
jmp 0x547dbd
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax + 0xa8]
sub esp, 0x10
mov dword [ebp - 8], esi
mov edi, esp
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea esi, [ebp - 0x14]
push ecx
movsd dword es:[edi], dword [esi]
push 0x88
push closesocket
push ecx
movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00517dc6
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x547df9
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x547df4
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
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x54a1c8
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_312
Function at 0x551a1a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xa0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x10], eax
test eax, eax
je 0x551b20
lea eax, [ebp - 0x14]
push eax
call fcn.00551b29
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
lea esi, [ebp - 0x14]
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40000080
push ecx
push dword [eax + 0xa8]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00517dc6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x551b20
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x558]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.005154bf
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
push 0
movzx ecx, byte [eax + 0x7a6]
movzx eax, byte [eax + 0x7a4]
shl ecx, 8
or ecx, eax
push ecx
push 0x401
push dword [ebx + 4]
call esi
lea eax, [ebp - 0x9c]
mov ecx, ebx
push eax
call fcn.00551fee
mov ecx, dword [ebx + 0x10]
push 0xffffffffffffffff
add ecx, 0x1c8
push dword [eax]
call fcn.0050f76a
lea ecx, [ebp - 0x9c]
call fcn.0041b502
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x100]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x551f46
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x706034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x551f8e
cmp esi, 0x28
jbe 0x551f88
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x551f8e
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0063af90
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0050f68c
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006221ee
mov esp, ebp
pop ebp
ret 0xc