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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x63a3c4]
mov edx, 0x63a650
push ebx
push esi
mov esi, 0x63a651
xor ebx, ebx
sub edx, eax
lea ecx, [eax + 2]
sub esi, eax
mov al, byte [ecx - 2]
mov byte [ebx*4 + 0x63a650], al
mov al, byte [ecx - 1]
mov byte [ebx*4 + 0x63a651], al
inc ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
mov al, byte [ecx + 1]
mov byte [esi + ecx], al
add ecx, 4
cmp ebx, 4
jb 0x4b10f7
cmp ebx, 0x2c
jae 0x4b11b6
lea edx, [ebx*4 + 0x63a64d]
mov al, byte [edx]
mov ah, byte [edx + 1]
mov ch, byte [edx + 2]
mov cl, byte [edx - 1]
mov byte [ebp - 2], al
mov byte [ebp - 1], ah
mov byte [ebp - 3], ch
test bl, 3
jne 0x4b1188
movzx eax, al
movzx ecx, cl
mov al, byte [eax + 0x5ee318]
mov ch, byte [ecx + 0x5ee318]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 1]
mov cl, byte [ebp - 4]
mov al, byte [eax + 0x5ee318]
mov byte [ebp - 2], al
movzx eax, byte [ebp - 3]
mov al, byte [eax + 0x5ee318]
mov byte [ebp - 1], al
mov eax, ebx
shr eax, 2
xor cl, byte [eax + 0x5ee418]
mov ah, byte [ebp - 1]
mov al, byte [edx - 0xd]
xor al, cl
mov byte [edx + 3], al
mov al, byte [edx - 0xc]
xor al, byte [ebp - 2]
mov byte [edx + 4], al
mov al, byte [edx - 0xb]
xor al, ah
mov byte [edx + 5], al
mov al, byte [edx - 0xa]
xor al, ch
inc ebx
mov byte [edx + 6], al
add edx, 4
cmp ebx, 0x2c
jb 0x4b112f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1264
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x63a644]
push edi
push 4
add esi, 2
pop edi
mov dh, byte [esi - 2]
mov dl, byte [esi - 1]
mov cl, dh
mov al, byte [esi + 1]
xor cl, dl
mov ch, byte [esi]
mov bl, al
mov byte [ebp - 1], al
xor bl, ch
mov al, cl
mov bh, bl
shr al, 7
add cl, cl
movzx eax, al
xor bh, dh
imul eax, eax, 0x1b
xor bh, dl
xor al, cl
mov cl, dl
xor al, dh
xor cl, ch
xor al, bh
mov byte [esi - 2], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 1]
xor al, dl
xor cl, dh
xor al, bh
mov byte [esi - 1], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, bh
mov byte [esi], al
mov al, cl
shr al, 7
lea esi, [esi + 4]
movzx eax, al
add cl, cl
imul eax, eax, 0x1b
xor al, cl
xor al, byte [ebp - 1]
xor al, bh
mov byte [esi - 3], al
sub edi, 1
jne 0x4b1277
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b15bb
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov cl, 0xa
call fcn.004b11bc
mov bl, 9
call fcn.004b1533
call fcn.004b1507
mov cl, bl
call fcn.004b11bc
call fcn.004b1307
sub bl, 1
jne 0x4b15c5
call fcn.004b1533
call fcn.004b1507
xor cl, cl
pop ebx
jmp fcn.004b11bc

Function at 0x4b15f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [ebp + 8]
push ebx
push esi
and al, 0xf
mov dword [ebp - 8], edx
push edi
mov esi, str.5780000bc18a00b9
mov byte [ebp - 1], al
mov edi, ecx
mov dword [0x63a3c4], esi
call fcn.004b10d9
mov eax, dword [ebp + 8]
mov dword [0x63a648], esi
push 0x10
pop ebx
test eax, eax
je 0x4b1679
lea esi, [eax - 1]
mov eax, dword [ebp - 8]
shr esi, 4
inc esi
push ebx
push eax
push edi
call fcn.00588a70
mov edx, dword [0x63a648]
add esp, 0xc
mov ecx, edi
mov dword [ebp + 8], ebx
sub edx, edi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub ebx, 1
jne 0x4b1649
mov dword [0x63a644], edi
call fcn.004b1582
mov eax, dword [ebp - 8]
push 0x10
pop ebx
mov dword [0x63a648], edi
add eax, ebx
add edi, ebx
mov dword [ebp - 8], eax
sub esi, 1
jne 0x4b1631
jmp 0x4b167c
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 1]
test cl, cl
je 0x4b16c1
movzx esi, cl
push esi
push eax
push edi
call fcn.00588a70
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + edi]
push 0
push eax
call fcn.00589570
mov edx, dword [0x63a648]
add esp, 0x18
mov ecx, edi
sub edx, edi
mov al, byte [ecx + edx]
xor byte [ecx], al
inc ecx
sub ebx, 1
jne 0x4b16ab
mov dword [0x63a644], edi
call fcn.004b1582
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b16c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
push ebx
push esi
push edi
and al, 0xf
mov edi, str.5780000bc18a00b9
mov ebx, edx
mov byte [ebp - 1], al
mov esi, ecx
mov dword [0x63a3c4], edi
call fcn.004b10d9
mov eax, dword [ebp + 8]
mov dword [0x63a648], edi
test eax, eax
je 0x4b1743
lea edi, [eax - 1]
shr edi, 4
inc edi
mov dword [ebp + 8], edi
push 0x10
push ebx
push esi
call fcn.00588a70
add esp, 0xc
mov dword [0x63a644], esi
call fcn.004b15bb
mov edx, dword [0x63a648]
mov ecx, esi
push 0x10
sub edx, esi
pop edi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4b1726
mov dword [0x63a648], ebx
add esi, 0x10
add ebx, 0x10
sub dword [ebp + 8], 1
jne 0x4b1702
mov al, byte [ebp - 1]
test al, al
je 0x4b1763
movzx eax, al
push eax
push ebx
push esi
call fcn.00588a70
add esp, 0xc
mov dword [0x63a644], esi
call fcn.004b15bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b6330
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4b633b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004b6350
Function at 0x4bc08b
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 0x4bc0ae
or esi, 1
push 2
call edi
test ax, ax
jns 0x4bc0ba
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4bc0c6
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4bc0d2
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4bd587
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6300f4]
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 0x4bd5d4
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 0x4bd634
inc ebx
cmp ebx, dword [esi + 0x410]
jl 0x4bd5a9
sub edi, 0x100
je 0x4bd6a4
sub edi, 4
je 0x4bd638
dec edi
sub edi, 1
jne 0x4bd68f
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.0059679d
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 0x4c1cd7
call dword [eax + pe_nt_image_headers32]
mov esi, eax
test esi, esi
je 0x4bd68f
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 0x4bd691
cmp dword [esi + 0x108], 0
je 0x4bd68f
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.004bc08b
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.00570864
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4bd68f
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x4bd6fd
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x4bd6fd
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4bd6fd
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0058ae84
pop ecx
pop ecx
test eax, eax
je 0x4bd6fd
mov eax, dword [esi + 0x108]
cmp byte [eax + 0x6a1], 0
jne 0x4bd68f
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x4bd745
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x4bd745
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x4bd745
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.0058ae84
pop ecx
pop ecx
test eax, eax
jne 0x4bd68f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004c061e
jmp 0x4bd634
Function at 0x4c019a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x6300f4]
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 0x4c01d5
cmp esi, dword [ebx + 0x108]
je 0x4c01d5
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x4c02b4
test eax, eax
je 0x4c0238
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.004c0843
mov dword [ebx + 0x108], edi
test esi, esi
je 0x4c02b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x4c02b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x4c02b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4c02b4
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.004c0843
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00570864
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6154
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x4c623e
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 + 0x5f2b20]
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 + 0x5f2b20]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x4c69c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6300f4]
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 0x4c6a0e
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 0x4c6a09
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4c6a35
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4c6a1e
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.00588a70
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.00570864
mov esp, ebp
pop ebp
ret
Function at 0x4cf579
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.004cad47

Function at 0x4d581f
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 0x4d5841
cmp dword [esi + 8], edi
jge 0x4d5839
call fcn.004d52e3
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 0x4d586a
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 0x4d584d
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4d5884
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4d5875
xor dl, dl
jmp 0x4d587a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x4d586c
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 0x4d58ae
xor eax, eax
jmp 0x4d58e5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x4d58aa
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4d58cf
push edi
mov ecx, esi
call fcn.004d53bd
pop ecx
test eax, eax
je 0x4d58aa
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00588a70
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 0x4e4c2d
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 0x4e4c97
cmp dword [ebp + 8], 0x100
jne 0x4e4c86
cmp word [ebp + 0xc], 0xd
jne 0x4e4c86
cmp byte [esi + 0x6a2], 0
je 0x4e4c6d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4e4c86
cmp byte [esi + 0x6a3], 0
jne 0x4e4c86
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4e4c82
push edi
push edi
push edi
push str.return
push esi
call fcn.004c0843
xor eax, eax
jmp 0x4e4c9a
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 0x4e74da
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 0x4e7522
cmp word [eax], si
je 0x4e7522
call fcn.0043a8b7
push 1
push dword [ebp + 8]
lea ecx, [eax + 0x1c]
call fcn.004bbdfd
test eax, eax
jne 0x4e7515
xor ecx, ecx
jmp 0x4e7517
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 0x4e7553
cmp word [eax], si
jne 0x4e7548
push eax
mov ecx, edi
call fcn.004e0a0c
test al, al
jne 0x4e75cf
xor eax, eax
jmp 0x4e75df
push ecx
push eax
mov ecx, edi
call fcn.004e0b06
jmp 0x4e7539
mov esi, dword [edi + 0x148]
test esi, esi
jne 0x4e756c
mov esi, dword [0x63a024]
test esi, esi
cmove esi, dword [0x63a018]
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4e7541
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4e7596
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4e7541
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.004e0a69
test al, al
je 0x4e7541
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.004e75e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4efc88
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 0x4efd00
lea eax, [ebp - 0x10]
push eax
call fcn.004efd80
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.004c3d61
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x558]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c145e
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.00403943
mov edi, 0x588
test si, si
jne 0x4efd35
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.00588a70
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 0x4f095c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x4f09dc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00571990
mov ebx, esp
test ebx, ebx
je 0x4f09dc
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.004bb7ed
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.004c0843
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp byte [eax + 0x16d], 0
je 0x4f09dc
mov ecx, dword [esi + 0x10]
call fcn.004b918e
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570864
mov esp, ebp
pop ebp
ret

Function at 0x4f3d82
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 0x4f3dcb
call fcn.004f638c
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.004f638c
lea ecx, [ebx + 0x10]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x6d0]
test ecx, ecx
jne 0x4f3deb
mov eax, dword [0xa8]
jmp 0x4f3df6
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.004c3d61
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4f3e32
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4f3e2d
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 0x4f6228
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_312
Function at 0x4fda7a
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 0x4fdb80
lea eax, [ebp - 0x14]
push eax
call fcn.004fdb89
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.004c3d61
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fdb80
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x558]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c145e
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.004fe04e
mov ecx, dword [ebx + 0x10]
push 0xffffffffffffffff
add ecx, 0x1c8
push dword [eax]
call fcn.004bb723
lea ecx, [ebp - 0x9c]
call fcn.00403943
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 0x4fdfa6
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6300f4]
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 0x4fdfee
cmp esi, 0x28
jbe 0x4fdfe8
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x4fdfee
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00589570
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.004bb645
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret 0xc