joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x4d4df9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edi, dword [esp + 0x28]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
call fcn.004d4cf0
add esp, 8
test eax, eax
jne 0x4d4e22
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x4d4ed8
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x15], al
mov eax, dword [esi]
mov byte [esp + 0x14], dl
mov byte [esp + 0x17], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x18], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x4d4e81
mov byte [esp + 0x16], 0
jmp 0x4d4e89
mov dl, 1
shl dl, cl
mov byte [esp + 0x16], dl
mov eax, dword [esi - 4]
push ebp
push edi
mov dword [esp + 0x24], eax
call fcn.004d4d90
add esp, 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
push 0
push ecx
push 0x10
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4e18
cmp dword [esp + 0x2c], 0x10
jne 0x4d4e18
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x4d4e38
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x4d4f3a
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d4e18
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x4d4e18
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x4d4eea
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x4d7cd0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push 0x61f29c
push ebx
call fcn.004f600d
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d7ced
pop esi
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push esi
push eax
call fcn.004d7680
push esi
mov edi, eax
call fcn.004f5acf
add esp, 0x18
test edi, edi
jne 0x4d7d1e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4d9250
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5cfe68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CRectTracker.0
call fcn.005aedef
mov dword [esi], 0x5e77d0
mov eax, dword [0x62f9c4]
mov dword [esi + 0x20], eax
mov eax, 1
mov ecx, eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 4], 0x12
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], 0xffffffff
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x80]
push ecx
push edx
lea edi, [esi + 0x70]
push 0
push 0
push edi
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.004c85a0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ebx, [esi + 0x60]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x4c]
call fcn.004c4d00
mov ecx, dword [esi + 0x4c]
lea edx, [esp + 0x14]
push edx
call fcn.004c4e40
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0x50]
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xc], edx
lea ebp, [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
mov ebp, dword [esp + 0x3c]
push ebp
push ecx
mov ecx, esi
call fcn.005aef7f
mov edx, dword [esp + 0x38]
cmp eax, 8
mov dword [esi + 0x80], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x84], ebp
jne 0x4d9381
push ebx
push edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4d938e
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x994]
test ecx, ecx
je 0x4d93ad
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ah, 0x80
jne 0x4d93ad
push 0x10
call edi
test ah, 0x80
jne 0x4d93ad
mov dword [esi + 0x48], 0xffffffff
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4dd3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x114]
test ebx, ebx
jne 0x4dd3e7
xor eax, eax
jmp 0x4dd3ea
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4dd3ff
push 1
push esi
mov ecx, ebx
call fcn.00591562
push 0
push esi
mov ecx, ebx
call fcn.005912ef
test eax, eax
je 0x4dd4da
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4dd430
mov ecx, dword [esi + 0x198]
lea eax, [esi + 0xac]
push 1
push eax
push ecx
push esi
mov ecx, ebx
call fcn.005914ba
mov eax, dword [esi + 0x68]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4dd44c
lea edx, [esi + 0xbc]
push 1
push edx
push eax
push esi
mov ecx, ebx
call fcn.005914ba
mov eax, dword [esi + 0x3c]
xor edi, edi
test eax, eax
jle 0x4dd491
cmp dword [esi + 0x78], edi
jle 0x4dd491
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004dcd90
test eax, eax
je 0x4dd489
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, dword [eax + edi*4]
push ecx
push esi
mov ecx, ebx
call fcn.005914ba
mov eax, dword [esi + 0x3c]
inc edi
cmp edi, eax
jl 0x4dd455
mov edx, dword [esi + 0x6c]
xor edi, edi
mov ebp, dword [edx + 8]
test ebp, ebp
jle 0x4dd4da
lea ecx, [esp + 0x10]
lea edx, [edi + 0x3e8]
lea eax, [esp + 0x14]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004dcd90
test eax, eax
je 0x4dd4d5
mov ecx, dword [esi + 0x6c]
lea eax, [esp + 0x14]
push 1
push eax
mov edx, dword [ecx + 4]
mov ecx, ebx
mov eax, dword [edx + edi*4]
push eax
push esi
call fcn.005914ba
inc edi
cmp edi, ebp
jl 0x4dd49d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4e1fd0
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
mov eax, dword [0x648114]
test eax, eax
je 0x4e1fdf
mov eax, 1
ret
call fcn.004e1790
test eax, 0x4003
jne 0x4e1fee
xor eax, eax
ret
push esi
push edi
push str.HSTxtCap.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x648114], eax
je 0x4e2106
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSharedData
push eax
call esi
mov dword [0x648118], eax
mov eax, dword [0x648114]
push str.CaptureConsoleText
push eax
call esi
mov ecx, dword [0x648118]
mov dword [0x64813c], eax
test ecx, ecx
je 0x4e20e6
test eax, eax
je 0x4e20e6
call ecx
test eax, eax
mov dword [0x648128], eax
je 0x4e20e6
mov ecx, dword [0x648104]
test ecx, ecx
je 0x4e206d
cmp dword [eax + 8], ecx
jne 0x4e206d
mov edi, 1
mov eax, edi
pop edi
pop esi
ret
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4e20e6
mov ecx, dword [0x648114]
push str.InstallTxMsgHook
push ecx
call esi
mov edx, dword [0x648114]
push str.ReleaseTxMsgHook
push edx
mov dword [0x64811c], eax
call esi
mov dword [0x648120], eax
mov eax, dword [0x648114]
push str.TxSnap_SetSnapMoreMode
push eax
call esi
mov ecx, dword [esp + 0xc]
mov dword [0x648124], eax
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
sete dl
test eax, eax
mov dword [0x648138], ecx
mov edi, 1
mov dword [0x648130], edx
je 0x4e2106
push 0
push 0
push 0x4e1820
call fcn.004f990c
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [0x648114]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x648114], 0
mov dword [0x648128], 0
mov eax, edi
pop edi
pop esi
ret
Function at 0x4e23d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x62fb3c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push esi
xor ebp, ebp
xor esi, esi
push edi
test al, 1
je 0x4e2428
test ah, 0x40
jne 0x4e2428
call fcn.004e3f20
mov edi, eax
test edi, edi
je 0x4e2423
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e241c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
mov ebp, 1
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, ebp
jmp 0x4e2423
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x62fb3c]
test eax, 0x4002
je 0x4e247d
shr eax, 0xe
and eax, 1
push eax
call fcn.004e4650
mov edi, eax
add esp, 4
test edi, edi
je 0x4e247d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e2476
test ebp, ebp
jne 0x4e245a
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push str.Rich_Text_Format
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
push eax
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, 1
jmp 0x4e247d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x648138]
xor edi, edi
cmp eax, edi
je 0x4e24b7
cmp esi, edi
je 0x4e24d2
mov ecx, dword [0x648110]
push edi
push 4
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x648128]
mov dword [edx + 0x38], edi
mov eax, dword [0x648128]
pop edi
pop esi
pop ebp
mov dword [eax + 0x48], 1
pop ebx
ret
mov ecx, dword [0x648128]
mov dword [ecx + 0x38], edi
mov edx, dword [0x648128]
pop edi
pop esi
pop ebp
mov dword [edx + 0x48], 1
pop ebx
ret
mov eax, dword [0x648128]
mov dword [eax + 0x38], edi
mov ecx, dword [0x648128]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x48], 1
pop ebx
ret
Function at 0x4e2ec0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x5d0858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00593595
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
mov dword [esp + 0x3c], 0
mov dword [esi], method.CWnd.virtual_0
call edi
push 0x4d
mov ebp, eax
call edi
mov ebx, eax
push 0x4e
mov dword [esp + 0x28], ebx
call edi
add eax, ebp
push 0x4f
mov dword [esp + 0x2c], eax
call edi
push 0
push 0
add eax, ebx
push 0
push str.DISPLAY
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, ebp
push eax
push ecx
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esi + 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push 0x40cc0020
push eax
push ebp
push edi
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
push edi
call ebx
mov ebx, 1
xor edi, edi
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x74], 0xffffffff
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
cmp dword [0x648144], edi
jne 0x4e2fe7
push edi
push edi
push edi
push 8
call fcn.00594739
mov dword [0x648144], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp ecx, edi
mov dword [esi + 0x40], 2
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], eax
jne 0x4e3011
cmp eax, edi
jne 0x4e3011
mov ebx, SysReAllocStringLen
jmp 0x4e301a
cmp eax, edi
mov ebx, 0x40000000
jne 0x4e3026
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005939c0
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [0x648144]
push eax
push ecx
push ebp
push ebx
push 0x63df70
push edx
push 0x80
mov ecx, esi
call fcn.00593f63
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [0x63df64], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4e64a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
je 0x4e6561
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4e6561
mov ax, word [esi + 0x2e]
cmp ax, word [edi + 0x2e]
jne 0x4e6561
mov ecx, dword [esi + 0x24]
push ebx
mov ebx, dword [edi + 0x448]
and eax, 0xffff
push ebp
mov ebp, dword [esi + 0x448]
push eax
push ecx
call fcn.004e5a10
xor ecx, ecx
mov dword [esp + 0x18], eax
mov cx, word [esi + 0x2e]
mov eax, dword [edi + 0x24]
push ecx
push eax
call fcn.004e5a10
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x4e6510
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x28]
mov ecx, dword [esi + 0x28]
cmp ecx, edi
jl 0x4e651c
mov ecx, edi
test ecx, ecx
jle 0x4e6552
mov esi, ebp
mov ebp, ebx
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x1c]
mov ecx, esi
test edi, edi
jle 0x4e6543
mov edx, ebp
sub edx, esi
mov bl, byte [edx + ecx]
xor byte [ecx], bl
inc ecx
dec edi
jne 0x4e6536
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ebp, eax
add esi, edx
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4e6528
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 4
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4

Function at 0x4e7820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelCursors
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e78ca
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_LoadCursorFromFileA]
push esi
mov esi, 0x63030c
mov eax, dword [esi]
test eax, eax
je 0x4e786b
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esi - 0x18]
push 0
push ecx
mov dword [esi], 0
push edx
mov dword [esi - 4], 0
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x4e78bc
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
mov dword [esi], eax
je 0x4e78bc
mov ecx, dword [esi - 0x1c]
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi - 4], eax
add esi, 0x20
cmp esi, str.GetCursorInfo
jl 0x4e785e
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4e78e0
Capabilities:
Check os version
Log keystrokes

Disassembly:
mov eax, dword [0x630490]
sub esp, 0xb4
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x4e79da
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x38], 2
jne 0x4e79be
cmp dword [esp + 0x2c], 5
jae 0x4e79be
mov dword [0x630490], edi
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
mov esi, eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push 0
push esi
call ebx
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call ebp
call dword [sym.imp.USER32.dll_GetCursor]
push 0
mov dword [esp + 0x14], eax
call edi
push eax
push 0
push esi
call ebx
push eax
call ebp
mov edx, dword [esp + 0x10]
pop ebp
pop ebx
test edx, edx
je 0x4e79b3
mov eax, 0x63030c
cmp edx, dword [eax - 4]
jne 0x4e79a9
mov ecx, dword [eax]
test ecx, ecx
je 0x4e79a9
mov dword [esp + 8], ecx
mov edx, ecx
add eax, 0x20
cmp eax, str.GetCursorInfo
jl 0x4e7998
pop edi
mov eax, edx
pop esi
add esp, 0xb4
ret
test esi, esi
je 0x4e79d5
push str.GetCursorInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x630490], eax
jmp 0x4e79da
mov eax, dword [0x630490]
test eax, eax
je 0x4e7934
xor ecx, ecx
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call eax
test eax, eax
je 0x4e7a1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e7a1c
mov edx, dword [esp + 0x14]
jmp 0x4e798f
mov eax, edi
pop edi
pop esi
add esp, 0xb4
ret
Function at 0x4eb9c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4eba05
push ebx
push 2
mov ecx, esi
call fcn.005bf89a
test eax, eax
jne 0x4eb9ed
push ebx
push 8
mov ecx, esi
call fcn.005bf89a
test eax, eax
je 0x4eba1b
mov ebp, dword [sym.imp.USER32.dll_GetClipboardData]
xor edi, edi
cmp esi, ebx
je 0x4eba48
push ebx
push 2
mov ecx, esi
call fcn.005bf7bc
jmp 0x4eba4c
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 2
call edi
test eax, eax
jne 0x4eba2c
push 8
call edi
test eax, eax
jne 0x4eba2c
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
pop ebx
add esp, 0x18
ret
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4eb9ed
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
pop ebx
add esp, 0x18
ret
push 2
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4eba62
test esi, esi
je 0x4ebaa6
push eax
push 8
mov ecx, esi
call fcn.005bf7bc
mov edi, eax
test esi, esi
jne 0x4eba6c
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x4ebaae
lea eax, [esp + 0x10]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4ebae2
test esi, esi
je 0x4eba8d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
add esp, 0x18
ret
push 8
call ebp
mov edi, eax
jmp 0x4eba66
test edi, edi
je 0x4ebae2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
je 0x4ebad1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax + 4], ebp
mov dword [eax], ebx
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov dword [eax + 4], 0
pop ebx
add esp, 0x18
ret
Function at 0x4f6fcf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f6fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004fa942
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f7012
test byte [esp + 8], 2
je 0x4f7012
call fcn.004fa9b5
mov dword [eax], 0xd
call fcn.004fa9be
mov dword [eax], 5
jmp 0x4f6feb
xor eax, eax
ret

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

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, 0x60
jb 0x5073f8
cmp esi, 0x69
ja 0x5073f8
push 0x12
call edi
test ah, 0x80
je 0x50740b
mov eax, dword [0x64b20c]
test eax, eax
je 0x507469
cmp esi, 0x41
jb 0x507469
cmp esi, 0x5a
ja 0x507469
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.0059890a
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
lea edx, [esp + 0xe]
push 1
lea eax, [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov cl, byte [esp + 0xa]
lea edx, [esp + 8]
push edx
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [esp + 8]
pop edi
pop esi
add esp, 0x104
ret
push 0x12
call edi
test ah, 0x80
je 0x50747d
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
push esi
call fcn.004f7788
add esp, 4
pop edi
pop esi
add esp, 0x104
ret
Function at 0x507520
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d3148
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov ecx, 0xc
xor eax, eax
push esi
push edi
lea edi, [esp + 0xc]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [esp + 0x54]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
or al, 1
cmp esi, 0x21
jb 0x507574
cmp esi, 0x2f
ja 0x507574
or eax, 0x1000000
push ebx
lea ecx, [esp + 0x10]
push 0x32
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.005980a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call fcn.00598566
mov eax, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x5075f2
mov edi, dword [sym.imp.USER32.dll_IsCharLowerA]
mov bl, byte [esi + eax]
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x58]
push eax
call edi
test eax, eax
jne 0x5075d3
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x5075b5
jmp 0x5075f2
movsx ecx, bl
push ecx
call fcn.004f7788
mov byte [esp + 0x5c], al
add esp, 4
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xc]
push edx
push esi
call fcn.00598578
mov esi, dword [esp + 0x54]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0059844a
mov eax, dword [esp + 0x5c]
pop ebx
test eax, eax
jne 0x507614
push 0x2b
mov ecx, esi
call fcn.00598435
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00598032
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc

Function at 0x50793c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d3173
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x63094c]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esi + 0x38], ecx
mov dword [esi], 0x5f0ea0
mov dword [0x64aa9c], esi
push str.BCGWorkspace
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.005980a0
lea edx, [esp + 0x20]
mov ecx, edi
push edx
mov byte [esp + 0x1c], 1
call fcn.0059816b
or eax, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 1
mov dword [esi + 0x3c], ebx
mov byte [esp + 0x18], bl
call fcn.00598032
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4