joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404adf
xor ebx, ebx
cmp dword [0x40d6e0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4067cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4068ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4098e8
push edi
call esi
cmp eax, ebx
je 0x4068ab
push eax
call fcn.00404a71
mov dword [esp], 0x4098d8
push edi
mov dword [0x40d6e0], eax
call esi
push eax
call fcn.00404a71
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d6e4], eax
call esi
push eax
call fcn.00404a71
mov dword [0x40d6e8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403ba9
test eax, eax
pop ecx
pop ecx
je 0x406799
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047d4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4067cb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404a71
cmp eax, ebx
pop ecx
mov dword [0x40d6f0], eax
je 0x4067cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404a71
pop ecx
mov dword [0x40d6ec], eax
mov eax, dword [0x40d6ec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406850
cmp dword [0x40d6f0], ecx
je 0x406850
push eax
call fcn.00404ae8
push dword [0x40d6f0]
mov esi, eax
call fcn.00404ae8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406850
cmp edi, ebx
je 0x406850
call esi
cmp eax, ebx
je 0x40681d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40681d
test byte [ebp - 0x18], 1
jne 0x406850
lea eax, [ebp - 0x10]
push eax
call fcn.00403be0
test eax, eax
pop ecx
je 0x406838
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047d4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x406847
or dword [ebp + 0x10], 0x200000
jmp 0x40688b
or dword [ebp + 0x10], 0x40000
jmp 0x40688b
mov eax, dword [0x40d6e4]
cmp eax, dword [ebp - 8]
je 0x40688b
push eax
call fcn.00404ae8
cmp eax, ebx
pop ecx
je 0x40688b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40688b
mov eax, dword [0x40d6e8]
cmp eax, dword [ebp - 8]
je 0x40688b
push eax
call fcn.00404ae8
cmp eax, ebx
pop ecx
je 0x40688b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d6e0]
call fcn.00404ae8
cmp eax, ebx
pop ecx
je 0x4068ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x30ce4f2a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..text_1
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x61ac009d
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1002f0bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.1002edf6
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002f0ec
xor eax, eax
jmp 0x1002f24e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002f10a
xor eax, eax
jmp 0x1002f24e
push 0x51cb
push 0x1191
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.1002ee40
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1002f133
xor eax, eax
jmp 0x1002f24e
lea eax, [ebp - 0x24]
push eax
push 0x2bc4
push 0x418a
lea eax, [ebp - 4]
push eax
push 0x4f3c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push dword [ebp - 0x10]
call fcn.1002eece
add esp, 0x24
push 0x64c5
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x23d9
lea eax, [ebp - 8]
push eax
push 0x3433
push 0x15c6
push 1
push 0xa7e
call fcn.1002eece
add esp, 0x24
lea eax, [ebp - 0xc]
push eax
push 1
push 0x3cf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x3bb4
call fcn.1002f050
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x1002f1d7
push 1
push dword [ebp - 0x14]
push 0x1261
push 0x1f6f
push 0x1e88
push dword [ebp - 4]
push 0xc81
call fcn.1002a878
add esp, 0x1c
push dword [ebp - 4]
call fcn.1002eaea
pop ecx
test eax, eax
jne 0x1002f1e8
xor eax, eax
jmp 0x1002f24e
push dword [ebp - 4]
push 0
call fcn.10027df9
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002f236
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002f213
xor eax, eax
jmp 0x1002f24e
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002f22c
xor eax, eax
jmp 0x1002f24e
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002f247
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002f24b
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10064350
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x10675118]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x106752e8
call fcn.100628b0
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x10064700
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1008938c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10064724
jmp 0x10064793
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10064738
jmp 0x10064793
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10064764
jmp 0x10064793
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10064785
jmp 0x10064793
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call main
mov esp, ebp
pop ebp
ret
Function at 0x1007dcde
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008938c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006ea9c
mov dword [ebp - 0x14], eax
cmp dword [0x106762d4], esi
jne 0x1007ddd1
push 0x800
push esi
push 0x100079b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007dd5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007deb1
push esi
push esi
push 0x100079b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007deb1
push 0x100079cc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007deb1
push eax
call ebx
push 0x100079d8
push edi
mov dword [0x106762d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079e8
push edi
mov dword [0x106762d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079fc
push edi
mov dword [0x106762dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106762e4], eax
test eax, eax
je 0x1007ddce
push 0x10007a18
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106762e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007ddf6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007dde9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007de0b
push 4
pop eax
jmp 0x1007deb3
cmp dword [ebp - 0x14], esi
je 0x1007de0b
push dword [0x106762d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007ddf0
mov eax, dword [0x106762e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007de69
cmp dword [0x106762e4], edi
je 0x1007de69
push eax
call ebx
push dword [0x106762e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007de69
test eax, eax
je 0x1007de69
call ecx
test eax, eax
je 0x1007de5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007de5e
test byte [ebp - 8], 1
jne 0x1007de69
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007de99
mov eax, dword [0x106762d8]
cmp eax, edi
je 0x1007de96
push eax
call ebx
test eax, eax
je 0x1007de96
call eax
mov esi, eax
test esi, esi
je 0x1007de96
mov eax, dword [0x106762dc]
cmp eax, edi
je 0x1007de96
push eax
call ebx
test eax, eax
je 0x1007de96
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106762d4]
call ebx
test eax, eax
je 0x1007deb1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007deb3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x10009664
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x10009689
cmp eax, edi
jge 0x10009681
mov eax, esi
call fcn.10008f69
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x100096ab
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x10009690
cmp ecx, 4
jge 0x100096ca
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x100096b8
xor eax, eax
jmp 0x100096c0
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x100096ae
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x100096fc
mov eax, str.zlib_corrupt
call fcn.100068a0
jmp 0x10009737
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1000970c
mov eax, str.read_past_buffer
jmp 0x100096f5
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x10009721
mov ecx, edi
call fcn.10009083
test eax, eax
je 0x10009737
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.1003a7f0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x1000ff89
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x10010044
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
sub eax, 8
dec edi
jne 0x1000ffa9
pop edi
test eax, eax
je 0x1001005d
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10066490]
inc edx
dec eax
jne 0x10010048
mov eax, esi
pop esi
not eax
pop ebx
ret
Function at 0x1001050d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x10010541
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001053c
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10010569
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x10010552
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.1003a7f0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x1001144f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1008fe00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100114f8
movzx ecx, word [esi]
test cx, cx
je 0x100114f8
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x1001148d
cmp cx, 0x5c
jne 0x1001148f
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x10011481
cmp eax, esi
je 0x100114cc
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1003b761
and word [ebp + edi*2 - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.1001144f
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.1003b745
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1003b71b
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a300
leave
ret

Function at 0x10012d68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10012de3
cmp dword [esi + 4], 0xffffffff
jne 0x10012de3
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x10066dbc
push edi
call fcn.1003b71b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x10012db5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x10012db5
mov eax, 0x2000000
jmp 0x10012de8
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10010323
add esp, 0x10
test eax, eax
jne 0x10012dd3
mov eax, dword [ebp + 0x10]
jmp 0x10012de8
push eax
call fcn.10012964
mov dword [esi], eax
mov eax, dword [0x10091590]
pop ecx
jmp 0x10012de8
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x10019fd8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008fe00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x18], bl
push edi
je 0x1001a049
cmp dword [esi + 0x10], ebx
je 0x1001a049
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.1003b830
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x1001a049
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.1000e9e5
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a300
leave
ret 0x10

Function at 0x10022ae4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x10022b4c
cmp dword [ebp + 8], 0x100
jne 0x10022b3b
cmp word [ebp + 0xc], 0xd
jne 0x10022b3b
cmp byte [esi + 0x4da], bl
je 0x10022b22
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x10022b3b
cmp byte [esi + 0x4db], bl
jne 0x10022b3b
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x10022b37
push ebx
push ebx
push ebx
push str.return
push esi
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x10022b4f
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1002f21d
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x1002f233
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x1002f23f
or edi, 1
push 1
call esi
test ax, ax
jge 0x1002f24b
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x1002f257
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x1002f263
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x1002f3f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1008fe00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.1003aea0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003a300
leave
ret

Function at 0x10031a15
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
mov ebx, dword [ebp + 8]
je 0x10031a3a
cmp ebx, dword [esi + 0x54]
je 0x10031a3a
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x10031afc
test eax, eax
push edi
je 0x10031a8d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x10031afb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x10031afb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x10031afb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x10031afb
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10031d23
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.DuiLib32.dll_public:_int___thiscall_DuiLib::CStdPtrArray::GetSize_void_const
test eax, eax
jle 0x10031d72
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.DuiLib32.dll_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x10031dd6
mov ecx, edi
inc ebx
call sym.DuiLib32.dll_public:_int___thiscall_DuiLib::CStdPtrArray::GetSize_void_const
cmp ebx, eax
jl 0x10031d41
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x10031e2f
sub eax, 4
je 0x10031dda
dec eax
dec eax
jne 0x10031e26
and word [ebp + 8], 0
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.1003f9c3
pop ecx
mov ecx, dword [esi + 0x50]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.DuiLib32.dll_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x10031e26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x10031e28
cmp dword [esi + 0x54], 0
je 0x10031e26
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.1002f21d
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x10031e26
cmp dword [esi + 0x54], 0
je 0x10031e7e
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x10031e7e
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x10031e7e
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.1003b33e
test eax, eax
pop ecx
pop ecx
je 0x10031e7e
mov ecx, dword [esi + 0x54]
call sym.DuiLib32.dll_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x10031e26
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
mov ecx, esi
push eax
call sym.DuiLib32.dll_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x10031dd6