joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1800
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 0x11
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4c1888
mov eax, dword [edi - 0x60]
lea ebx, [edi - 0x60]
mov ecx, ebx
xor esi, esi
call dword [eax + 0xc]
test eax, eax
jle 0x4c187a
cmp esi, dword [ebp + 8]
je 0x4c186b
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax]
test eax, eax
je 0x4c186b
mov edx, dword [eax]
mov ecx, eax
push str.ListItem
call dword [edx + 0x14]
mov edi, eax
test edi, edi
je 0x4c186b
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x10]
call edx
test al, al
je 0x4c186b
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
inc esi
call dword [eax + 0xc]
cmp esi, eax
jl 0x4c1831
mov edi, dword [ebp - 4]
lea esi, [edi + 8]
or eax, 0xffffffff
mov dword [esi], 0xffffffff
jmp 0x4c188e
mov eax, dword [edi + 8]
lea esi, [edi + 8]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp ebx, eax
je 0x4c195e
test ebx, ebx
js 0x4c1969
mov eax, dword [edi - 0x60]
lea ecx, [edi - 0x60]
push ebx
call dword [eax]
mov edi, eax
test edi, edi
je 0x4c1969
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x110]
call edx
test al, al
je 0x4c1969
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x11c]
call eax
test al, al
je 0x4c1969
mov eax, dword [edi]
mov ecx, edi
push str.ListItem
call dword [eax + 0x14]
test eax, eax
je 0x4c1969
mov ecx, dword [ebp - 4]
add ecx, 0xfffffa48
mov dword [esi], ebx
push ebx
mov eax, dword [ecx]
call dword [eax + 0x218]
cmp byte [ebp + 0xc], 0
je 0x4c1913
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x13c]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [ebx - 0x574]
test ecx, ecx
je 0x4c1939
push 0
push edi
push dword [esi]
lea eax, [ebx - 0x5b8]
push str.itemselect
push eax
call fcn.004ad000
cmp edi, 0xffffffff
jne 0x4c1949
mov ecx, dword [ebx + 0x4c0]
call fcn.004c4c70
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x4c0]
lea eax, [ebp - 0xc]
push esi
push 0
push eax
call fcn.004bba40
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4cb560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x594], 0
je 0x4cb5cd
cmp dword [ebp + 8], 0x100
jne 0x4cb5bd
cmp word [ebp + 0xc], 0xd
jne 0x4cb5bd
cmp byte [esi + 0x59a], 0
je 0x4cb59e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4cb5bd
cmp byte [esi + 0x59b], 0
jne 0x4cb5bd
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4cb5b6
push 0
push 0
push 0
push str.return
push esi
call fcn.004ad000
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x594]
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
Function at 0x4d73a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x4d7469
mov edx, 0x5b1938
lea edi, [esi + 0xc]
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4d7469
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4d73c0
cmp dword [ebp + 0x10], 0x28
je 0x4d73ea
mov esi, 0x80040100
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push 0x20019
push 0
push str.SoftwareLDSGameMasterDebug
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d744d
lea eax, [ebp - 4]
mov dword [ebp + 0x10], esi
push eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 4
push eax
push 0
push 0
push str.ScriptError
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d7440
cmp dword [ebp + 0x10], 1
mov eax, 0x80040100
cmove esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x4d746e
mov eax, dword [ebp + 0x1c]
mov ecx, 0xb
pop edi
mov word [eax], cx
or ecx, 0xffffffff
mov word [eax + 8], cx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov esi, 0x80040104
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4d8720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a157b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor edi, edi
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
mov dword [ebp - 0x234], edi
call fcn.0040bf50
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], edi
jb 0x4d8775
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.0041abd0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4d880a
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x4d880a
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x4d881b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4d8857
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d884d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8876
push edx
push ecx
call fcn.004a3dd5
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 8
call fcn.0053fae3
int3
Function at 0x4da480
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x610b3a
push 0x34
call fcn.004a40f5
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x4da4f9
mov dword [esi], 2
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
jmp 0x4da4fb
xor esi, esi
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4da508
mov edi, dword [edi]
xor ebx, ebx
test edi, edi
je 0x4da57f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4da57f
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4da57f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x4da57f
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x4da57f
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4da57f
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.004d9e00
mov ebx, eax
test ebx, ebx
jne 0x4da5ad
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4da594
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4da5b3
push eax
call edi
mov dword [esi + 8], 0
jmp 0x4da5b3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4da5c5
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
test ebx, ebx
pop ebx
jne 0x4da5e4
mov ecx, esi
call fcn.004d9ac0
push 0x34
push esi
call fcn.004a3dd5
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4de060
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fe9b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004dd930
mov ecx, dword [edi + 0x14]
mov edx, 0x40000080
movups xmm0, xmmword [ebp - 0xa8]
push 0
sub esp, 0x10
cmp byte [ecx + 0x5a1], 0
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, 0x400000a0
cmove eax, edx
push eax
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.0044d830
push eax
mov ecx, edi
call fcn.004aea80
cmp byte [ebp + 0xc], 0
je 0x4de0fc
push dword [ebp + 0x10]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
mov esi, dword [edi + 0x14]
mov ecx, esi
call fcn.004c67d0
push eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.004a9150
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x14]
push 0
push dword [eax + 0x59c]
push 0xc5
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
cmp byte [ecx + 0x5a1], 0
je 0x4de160
movzx eax, word [ecx + 0x5a2]
push 0
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [eax + 0x2c]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0044d830
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00462810
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
mov ecx, edi
call fcn.004aef70
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x14]
xor ecx, ecx
push 0
cmp byte [eax + 0x5a0], 1
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x7bc]
or ecx, eax
push ecx
push 0xfffffffffffffff0
mov ecx, edi
call fcn.004a63c0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4de250
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x1c], 0
je 0x4de2be
cmp dword [esi + 0x14], 0
je 0x4de2be
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a4990
mov ebx, esp
test ebx, ebx
je 0x4de2be
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x14]
push ebx
add ecx, 0x1d4
call fcn.004a5b10
mov ecx, dword [esi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x20]
mov ecx, eax
call fcn.004ad000
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ee3c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 1
jne 0x4ee400
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebx
mov ecx, dword [esi + 0x1c]
mov edi, eax
call fcn.004b10f0
call ebx
sub eax, edi
xor ecx, ecx
mov edi, dword [esi + 0x28]
sub edi, eax
cmp eax, dword [esi + 0x28]
cmovl ecx, edi
push ecx
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x24], 1
je 0x4ee3d1
pop edi
pop ebx
pop esi
ret
Function at 0x4f37b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a245b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 8
push eax
mov dword [ebp - 0xac], 0x40
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x14], eax
mov dword [eax + 0x5a8], 0
cmp dword [edi + 4], 0
jne 0x4f388b
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
push eax
lea ecx, [ebp - 0x20]
call fcn.004a56c0
mov ecx, dword [edi + 0x14]
movups xmm0, xmmword [ebp - 0x20]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.0044d830
push eax
mov ecx, edi
call fcn.004aea80
mov esi, dword [edi + 0x14]
mov ecx, esi
call fcn.004c67d0
push eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x20]
call eax
mov ecx, eax
call fcn.004a9150
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004a66f0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xa5], al
call fcn.00462810
cmp byte [ebp - 0xa5], 0
je 0x4f38d3
mov eax, dword [edi + 0x14]
add eax, 0x598
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x14]
add eax, 0x598
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6150
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a25a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4f6297
cmp dword [edi + 0x14], 0
je 0x4f6297
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.004a4990
mov esi, esp
test esi, esi
je 0x4f6297
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x7c8]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f61e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00413b10
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x4f6226
mov esi, ecx
cmp word [esi], 0xa
je 0x4f62ba
add esi, 2
sub eax, 1
jne 0x4f6214
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x19c]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4f6272
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4f6272
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.004ad000
lea ecx, [ebp - 0x28]
call fcn.0040c130
xor eax, eax
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4f6226
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4f6226
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e0b50
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4f62ec
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040c130
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e0b50
cmp dword [eax + 0x14], 8
jb 0x4f631b
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.0040c130
jmp 0x4f6272
Function at 0x4f6cd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x4f6cfd
movzx eax, word [esi + 0x55c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x4f6d4c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f6dad
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x568], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x560], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x564], eax
mov byte [esi + 0x578], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4f6d6d
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x578], 0
test ecx, ecx
je 0x4f6dad
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4f6da7
cmp dword [esi + 0x558], 0
je 0x4f6dad
cmp byte [esi + 0x578], 0
je 0x4f6dad
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f6dad
mov ecx, dword [esi + 0x558]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.004b05a0
pop edi
pop esi
pop ebp
ret 4

Function at 0x4f6dc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x4f6e0f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f6e08
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x55c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x560], eax
mov byte [esi + 0x564], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4f6e30
mov ecx, dword [esi + 0x558]
mov byte [esi + 0x564], 0
test ecx, ecx
je 0x4f6e09
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4f6e62
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4f6e62
mov ecx, dword [esi + 0x558]
test ecx, ecx
je 0x4f6e09
cmp byte [esi + 0x564], 0
je 0x4f6e09
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.004b05a0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4fe050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x610b3a
cmp al, 6
jb 0x4fe08d
push 0x18
call fcn.004a40f5
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4fe0c9
mov ecx, eax
call fcn.004fe0e0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.004a40f5
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4fe0c9
mov dword [eax], vtable.CGDIPlusImageImpl.0
mov dword [eax + 4], 6
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x500160
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2b78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x50030e
cmp ebx, 7
jb 0x50030e
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x500268
test esi, esi
je 0x5001cc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.00513f80
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50021b
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.0040c130
mov eax, esi
jmp 0x500310
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push ebx
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.0040c130
mov eax, esi
jmp 0x500310
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.0053bcb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x500290
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x10], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 0x30]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x5002d6
lea eax, [ebp - 0x2c]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 0x2c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
jmp 0x5002d8
xor esi, esi
mov dword [edi + 0x10], esi
test esi, esi
je 0x5002fb
mov ecx, esi
call fcn.004ffc90
mov ecx, dword [edi + 0x10]
mov dword [edi + 8], eax
call fcn.004ffc50
mov dword [edi + 0xc], eax
mov esi, 1
jmp 0x5002fd
xor esi, esi
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x50030a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x500310
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 8

Function at 0x500d90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x10], 0
jne 0x500d9f
xor eax, eax
pop ebp
ret 4
pop ebp
jmp fcn.004ff940