joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4708f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5823f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x70]
push 0xe
push edi
mov dword [esp + 0x18], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x470a1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x470a91
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x470a91
xor ebx, ebx
cmp word [ebp + 4], bx
jbe 0x4709ff
lea ecx, [esp + 0x14]
call fcn.0046cfb0
mov eax, ebx
xor edx, edx
and eax, 0xffff
mov dword [esp + 0x64], 0
lea ecx, [eax*8]
sub ecx, eax
mov dl, byte [ebp + ecx*2 + 7]
lea eax, [ebp + ecx*2]
xor ecx, ecx
mov edi, edx
mov cl, byte [eax + 6]
mov esi, ecx
mov ecx, dword [esp + 0x78]
cmp ecx, esi
jne 0x470999
cmp dword [esp + 0x7c], edi
je 0x4709a5
test ecx, ecx
jne 0x4709e3
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x4709e3
xor edx, edx
push 0
mov dx, word [eax + 0x12]
mov eax, dword [esp + 0x70]
push edi
push esi
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.0046d5d0
test eax, eax
je 0x470a09
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x14]
push edi
push esi
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00470680
test eax, eax
je 0x470a09
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.0046d250
inc ebx
cmp bx, word [ebp + 4]
jb 0x470957
mov eax, 1
jmp 0x470a91
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.0046d250
xor eax, eax
jmp 0x470a91
lea ecx, [esp + 0x38]
call fcn.0046cfb0
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
push 0
push ebx
push ebp
push edi
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], 1
call fcn.0046d5d0
test eax, eax
jne 0x470a5f
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0xffffffff
call fcn.0046d250
xor eax, eax
jmp 0x470a91
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00470680
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x64], 0xffffffff
call fcn.0046d250
mov eax, esi
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x18
Function at 0x470b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x582428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x1c], ecx
je 0x470bbf
mov eax, dword [ebx + 4]
test eax, eax
jne 0x470bc6
xor eax, eax
jmp 0x470d21
mov edi, dword [esp + 0x6c]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
test edi, edi
jne 0x470be5
mov ecx, dword [esp + 0x68]
test ecx, ecx
jne 0x470be5
push eax
call esi
mov dword [esp + 0x6c], eax
mov edi, eax
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x470c36
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x470c36
test edi, edi
jle 0x470c36
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
lea edx, [esp + 0x40]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, ebp
sub ecx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov ecx, dword [ebx + 4]
push ecx
call esi
xor edx, edx
cmp eax, edi
sete dl
xor ebx, ebx
mov dword [esp + 0x18], edx
test edi, edi
mov dword [esp + 0x14], ebx
jle 0x470d1c
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x470c86
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x470c86
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x470d00
cmp eax, 0xdeadbeaf
je 0x470d00
mov edx, dword [esp + 0x64]
push 0
push ebx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov esi, eax
test esi, esi
je 0x470bbf
mov eax, dword [esp + 0x68]
test eax, eax
je 0x470cb1
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
jmp 0x470cb5
mov edi, dword [esp + 0x14]
push 1
push esi
lea ecx, [esp + 0x38]
call fcn.0046cfc0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ebp
push edx
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x70], 0
call fcn.00470680
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0046d250
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edi, dword [esp + 0x6c]
inc ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x470c61
mov eax, 1
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0x18
Function at 0x471590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5824c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4324ac
mov ecx, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x20], 0
call fcn.0046b020
add esp, 8
test eax, eax
jne 0x47160e
mov dword [esp + 8], 0x42f000
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call fcn.00569023
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18
push eax
lea ecx, [esp + 0xc]
call fcn.00568fcc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004711c0
mov esi, eax
mov dword [esp + 8], 0x42f000
lea ecx, [esp + 8]
mov dword [esp + 0x18], 2
call fcn.00569023
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x18

Function at 0x471800
Capabilities:
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x582510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push 0x400
lea ecx, [esp + 0x10]
call fcn.0056fd8c
push 0
push 0x1000
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], 0
call fcn.0056937e
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x88], 1
call fcn.004721b0
lea ecx, [esp + 0x34]
call fcn.0056968f
lea ecx, [esp + 0xc]
call fcn.0056fec3
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0056fe14
push esi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4718cf
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edi, eax
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5a64cc]
push ebp
and ecx, 0xffff
push ecx
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
lea ecx, [esp + 0x34]
call fcn.005694e2
lea ecx, [esp + 0xc]
call fcn.0057000d
push ebx
call fcn.0054e875
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call fcn.0056945a
lea ecx, [esp + 0xc]
mov dword [esp + 0x80], 0xffffffff
call fcn.0056fe26
mov ecx, dword [esp + 0x78]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4
Function at 0x47a490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebx, 0x112
push edi
mov esi, ecx
ja 0x47a5df
cmp ebx, 0x112
je 0x47a53b
mov eax, ebx
sub eax, 2
je 0x47a504
sub eax, 3
je 0x47a4c7
sub eax, 0x42
jne 0x47a4e5
cmp ebp, dword [esi + 0x124]
jne 0x47a4e5
mov eax, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
push ebp
mov ecx, esi
call fcn.0047fa90
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esi + 0x128]
test eax, eax
je 0x47a4e5
lea ecx, [esi - 0x3c]
call fcn.004807b0
test eax, eax
je 0x47a51d
mov eax, dword [eax + 0x1c]
cmp ebp, eax
jne 0x47a4e5
mov ecx, dword [esi + 0x128]
push ecx
push ebp
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0x128], 0
jmp 0x47a4e5
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.0047cb70
test eax, eax
je 0x47a4e5
push 0x45afc0
mov ecx, 0x5a660c
call fcn.0057a6e8
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x47a4e5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x47a4e5
mov ecx, edi
call fcn.004808d0
test eax, eax
jne 0x47a4e5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x47a4e5
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
jne 0x47a4e5
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x174]
test eax, eax
je 0x47a5be
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.004808a0
test eax, eax
je 0x47a5d3
push 0
push edi
mov ecx, eax
call fcn.0045aea0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x47a4e5
cmp ebx, 0x222
jbe 0x47a4cf
cmp ebx, 0x230
jne 0x47a4e5
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x47a6a3
call fcn.004808d0
test eax, eax
je 0x47a64d
mov ecx, edi
call fcn.004807b0
mov ecx, dword [eax + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi + 0x58]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x47a677
mov eax, dword [ebx]
test eax, eax
jne 0x47a66f
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x47a677
test eax, eax
jne 0x47a66f
mov eax, ecx
push eax
mov ecx, edi
call fcn.0047a430
mov ecx, edi
call fcn.004807b0
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004795c0
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.004807b0
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.00566a97
test eax, eax
jne 0x47a4e5
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
Function at 0x47b5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xa4]
push edi
and esi, 0xffff
call fcn.00483190
test esi, esi
jne 0x47b5c8
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.00578814
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x47b5dd
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push 0xf1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x47b5f5
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x47b608
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x47b61c
pop edi
pop esi
pop ebx
pop ecx
ret 8
xor eax, eax
push ebp
mov ax, word [esi + 6]
shl eax, 2
push eax
call fcn.00560d03
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x47b65f
mov ebp, eax
mov ecx, esi
call fcn.004705d0
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2]
inc edi
mov dword [ebp], ecx
mov dx, word [esi + 6]
add ebp, 4
cmp edi, edx
jl 0x47b63d
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.0047b340
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47b6d0
mov ecx, ebx
call fcn.00481300
xor edi, edi
xor edx, edx
mov di, word [esi + 4]
mov dx, word [esi + 2]
mov ecx, dword [esp + 0x10]
push 0
push edi
push edx
xor edx, edx
mov dx, word [esi + 6]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, eax
call fcn.00471560
test eax, eax
jne 0x47b6ad
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x47b6d0
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00560d2c
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x47e580
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push ebp
mov ecx, dword [esi + 0xa4]
push eax
call fcn.00483580
mov ebx, eax
mov eax, dword [esi + 0x78]
cmp eax, 0xffffffff
je 0x47e5de
cmp dword [esi + 0xa8], 5
jne 0x47e5de
cmp dword [esi + 0xa0], 1
jne 0x47e5de
test ebx, ebx
je 0x47e5c0
cmp dword [ebx + 0x3c], eax
je 0x47e5de
cmp eax, dword [esi + 0x74]
jne 0x47e5d3
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047e940
test ebx, ebx
mov ecx, esi
je 0x47e6ad
call fcn.004808d0
test eax, eax
jne 0x47e696
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd8]
test eax, eax
je 0x47e696
push esi
push 0x404670
call fcn.005668a7
add esp, 8
test eax, eax
je 0x47e696
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47e696
mov ecx, esi
call fcn.004808a0
mov edi, eax
test edi, edi
je 0x47e696
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x47e696
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x47e696
push 1
mov ecx, edi
call fcn.0045a270
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047e940
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
push 0
mov ecx, edi
call fcn.0045a270
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x54]
mov ecx, edi
call fcn.004598f0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.005611d7
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x482110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x583123
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005645cb
xor edi, edi
mov dword [esi + 0x20], 0x41c310
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi], 0x41c2a0
call fcn.0057cfe6
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x488660
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
mov dword [esi + 4], 0
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x4885e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
je 0x4886ad
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x4886b0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x488736
mov eax, dword [esi + 0x14]
push ebp
push edi
push eax
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push edx
call edi
test eax, eax
je 0x488723
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], 0x103
jne 0x488723
inc ebx
cmp ebx, 0xa
ja 0x488717
mov eax, dword [esi + 0xc]
push 0x64
push eax
call ebp
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
test eax, eax
jne 0x4886ee
jmp 0x488723
mov eax, dword [esi + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0xc], 0
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x48ceb0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x583aa7
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
cmp ebx, 0x60
push edi
jb 0x48cef9
cmp ebx, 0x69
ja 0x48cef9
movsx eax, byte [esp + 0x140]
add ebx, 0xffffffd0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
jmp 0x48d0e9
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
je 0x48d0c0
mov edx, dword [esp + 0x140]
push edx
call fcn.0048d240
mov cl, byte [esp + 0x144]
add esp, 4
cmp cl, bl
mov byte [esp + 0x13], al
je 0x48d0e4
cmp al, bl
je 0x48d0e4
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
push esi
push esi
call ebp
mov edi, eax
cmp edi, 1
jl 0x48d0c0
xor ebx, ebx
mov dword [esp + 0x18], 0x41cc60
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
cmp edi, esi
mov dword [esp + 0x138], esi
jne 0x48cf7b
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
jmp 0x48cfa2
lea eax, [edi*4]
push eax
call fcn.00560d03
add esp, 4
mov dword [esp + 0x1c], eax
push edi
push eax
call fcn.00472990
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
push ebx
push edi
call ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x48cfcd
mov dword [esp + 0x18], 0x41cc60
mov dword [esp + 0x138], 1
jmp 0x48d0b3
cmp edi, esi
mov dword [esp + 0x2c], esi
jle 0x48d0a0
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
mov esi, ebx
mov dword [esp + 0x14], 0
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push edx
call ebp
cmp eax, 1
jne 0x48d031
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x48d0c4
push eax
call fcn.0048d240
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x48d0c4
mov bl, byte [esp + 0x40]
mov byte [esp + 0x40], 0x81
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x148]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push eax
call ebp
cmp eax, 1
jne 0x48d082
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x48d102
push eax
call fcn.0048d240
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x48d102
mov eax, dword [esp + 0x2c]
add esi, 4
inc eax
mov byte [esp + 0x40], bl
mov ebx, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x48cfe1
xor esi, esi
mov dword [esp + 0x18], 0x41cc60
mov dword [esp + 0x138], 4
cmp ebx, esi
je 0x48d0c0
push ebx
call fcn.00560d2c
add esp, 4
xor eax, eax
jmp 0x48d0e9
mov dword [esp + 0x18], 0x41cc60
test ebx, ebx
mov dword [esp + 0x138], 2
je 0x48d0e4
push ebx
call fcn.00560d2c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov dword [esp + 0x18], 0x41cc60
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x138], 3
test eax, eax
je 0x48d0e4
push eax
jmp 0x48d0dc
Function at 0x48ee00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov edi, ecx
push 1
call esi
test ax, ax
jl 0x48eeef
push 2
call esi
test ax, ax
jl 0x48eeef
push 4
call esi
test ax, ax
jl 0x48eeef
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x44]
xor ebp, ebp
test eax, eax
jle 0x48eeef
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [edi + 0x40]
mov esi, dword [ecx + ebp*4]
mov edx, dword [esi + 0x20]
push edx
call ebx
test eax, eax
je 0x48eee3
mov eax, dword [esi + 0x20]
push eax
call fcn.00561270
lea ecx, [esi + 0xc]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x24], ecx
mov cl, byte [esi + 8]
test cl, 1
je 0x48eea5
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x48eeb1
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00568bce
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x48eee3
test byte [esi + 8], 1
jne 0x48eef9
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push 0
call fcn.0048e9c0
cmp eax, dword [esi + 0x20]
je 0x48eef9
mov eax, dword [edi + 0x44]
inc ebp
cmp ebp, eax
jl 0x48ee54
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x492580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58409b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x20], 0x419328
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esp + 0x14], edi
call fcn.00462110
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.00462110
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.00462110
mov edx, dword [eax]
push 0x2391
mov ecx, eax
call dword [edx + 0x18]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x492e90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x584140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x412074]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.00462110
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x412074]
mov ebp, 1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.0055e243
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x492f68
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.00459e90
test eax, eax
je 0x492f60
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00458c10
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.0054e54b
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.00564d6e
test bl, bl
je 0x492f60
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.0055e243
add esp, 0xc
xor esi, esi
jmp 0x492f61
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x492f0b
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.00564ea7
push 0
mov ecx, edi
call fcn.005636f6
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00564d6e
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00564d6e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret