joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4534e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x410], edx
push ebx
mov dword [ebp - 0x40c], ebx
xor edi, edi
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45354c
test al, 0x10
jne 0x45354c
push 0x134
push edi
mov edx, ebx
mov ecx, 0xc0001
call fcn.0040bc05
cmp eax, 7
jne 0x45353a
xor esi, esi
jmp 0x45354f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
add esi, 2
jmp 0x45354f
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x410]
lea edx, [ebp - 0x408]
push 0x400
call fcn.00485715
lea ebx, [ebp - 0x408]
cmp byte [ebx], 0
je 0x453625
cmp esi, 1
jne 0x45365c
push 0x3d
push ebx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x453618
mov byte [esi], 0
inc esi
cmp byte [esi], 0x7b
jne 0x4535aa
push 0x7d
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
pop ecx
pop ecx
test eax, eax
jne 0x4535ac
mov eax, esi
push 0x3b
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4535c1
mov byte [edi], 0
inc edi
push 0x490d5c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4535e6
push 0x490d60
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4535e6
xor ecx, ecx
inc ecx
jmp 0x4535ef
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x4535ef
xor esi, esi
push esi
test ecx, ecx
mov eax, 0x490d40
mov ecx, str.Microsoft_Office
push ebx
cmove eax, ecx
push eax
push dword [ebp - 0x40c]
call dword [0x49aebc]
mov esi, eax
neg esi
sbb esi, esi
add esi, 2
jmp 0x45361b
push 2
pop esi
mov ebx, edi
test edi, edi
jne 0x45356b
cmp esi, 1
jne 0x45365c
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x453639
cmp byte [eax], 0
jne 0x45363b
xor eax, eax
push eax
push str.DefaultTable
mov eax, str.Microsoft_Office
push eax
push dword [ebp - 0x40c]
call dword [0x49aebc]
mov esi, eax
neg esi
sbb esi, esi
add esi, 2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048dc69
mov esp, ebp
pop ebp
ret 8
Function at 0x453e47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 2
mov ebx, edx
mov dword [ebp - 0x14], eax
mov esi, ecx
pop edi
je 0x453e9c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x453e9c
test al, 0x10
jne 0x453e9c
push 0x134
push 0
mov edx, esi
mov ecx, 0xc0001
call fcn.0040bc05
cmp eax, 7
jne 0x453e9c
xor edi, edi
jmp 0x453f71
push 0
push 0x80
push edi
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x453f71
mov ecx, 0x1004f
call fcn.0045baa2
push eax
mov ecx, 0x1004d
call fcn.0045baa2
mov edx, eax
mov ecx, esi
call fcn.0041ec68
test eax, eax
je 0x453f6a
xor eax, eax
push 0xa
inc eax
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1373]
lea eax, [ebp - 0x10]
mov ecx, 0x10054
push eax
call fcn.0045baa2
mov edx, eax
mov ecx, esi
call fcn.0041ec68
test eax, eax
je 0x453f6a
mov ecx, 0x10051
call fcn.0045baa2
push eax
mov ecx, 0x10055
call fcn.0045baa2
mov edx, eax
mov ecx, esi
call fcn.0041ec68
test eax, eax
je 0x453f6a
push ebx
mov ecx, 0x10056
call fcn.0045baa2
mov edx, eax
mov ecx, esi
call fcn.0041ec68
test eax, eax
je 0x453f6a
push dword [ebp - 0x14]
mov ecx, 0x10057
call fcn.0045baa2
mov edx, eax
mov ecx, esi
call fcn.0041ec68
test eax, eax
push 1
pop eax
cmovne edi, eax
mov ecx, esi
call fcn.0045d979
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048dc69
mov esp, ebp
pop ebp
ret 8

Function at 0x45403a
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp dword [0x49aedc], 0
je 0x454099
cmp byte [0x4999d4], 0
je 0x454099
mov eax, dword [0x497ec0]
test eax, eax
jne 0x454063
cmp dword [0x497f44], eax
jne 0x45406c
push 0x64
pop ecx
jmp 0x454094
cmp dword [0x497f44], 0
je 0x45408b
cmp ecx, dword [0x497ec4]
je 0x45408b
push 0
push dword [0x497f48]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [0x497f44], 0
jmp 0x45405e
test eax, eax
je 0x454099
mov ecx, 0x2bc
call fcn.00453fec
pop ecx
ret

Function at 0x45409b
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x497ec0]
xor edx, edx
inc edx
test ecx, ecx
cmove eax, edx
cmp dword [0x497f40], 0
mov dword [0x497ec0], eax
je 0x4540cf
push 0xa
push dword [0x497f48]
call dword [sym.imp.USER32.dll_KillTimer]
neg eax
sbb eax, eax
inc eax
mov dword [0x497f40], eax
ret
cmp dword [0x497f44], 0
je 0x4540ed
push 0
push dword [0x497f48]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [0x497f44], 0
ret
Function at 0x4548b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp - 0x14]
mov edx, 0x490f80
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], 2
push 5
xor ebx, ebx
mov dword [ebp - 0x10], 0x18
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
jmp 0x4549cd
imul ecx, dword [esi*4 + 0x490fe0], 3
add eax, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [0x49a254]
and eax, 0x7fff
push 2
add ecx, eax
push dword [ecx*4 + 0x491620]
push dword [0x49b110]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x454986
push ebx
push dword [0x49b110]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x454986
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x454986
push ebx
push dword [0x49b110]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x454986
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x454986
mov ecx, dword [ebp - 0xc]
mov edx, eax
push ebx
call fcn.0048810e
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x454993
mov ecx, 0x50000
call fcn.0040be1c
mov ebx, dword [ebp - 4]
cmp esi, 5
je 0x4549ab
cmp esi, 6
je 0x4549ab
cmp esi, 0xd
je 0x4549ab
cmp esi, 0xe
je 0x4549ab
xor ecx, ecx
jmp 0x4549ae
xor ecx, ecx
inc ecx
xor eax, eax
lea edx, [ebp - 0x1c]
cmp esi, 3
sete al
push eax
push ecx
push esi
mov ecx, ebx
call fcn.004547fe
mov ecx, dword [ebp - 0x14]
inc esi
mov edx, dword [ebp - 8]
lea eax, [ecx - 1]
mov dword [ebp - 0x1c], eax
cmp esi, dword [edx]
jl 0x4548e8
add edx, 4
add eax, 0xa
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], edx
cmp edx, 0x490fa0
jl 0x4549d0
mov eax, dword [0x49aee0]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x457ac7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x492a70
push edi
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_94]
mov eax, dword [0x49aed0]
mov ecx, dword [0x499a68]
push eax
mov esi, dword [eax]
add esi, 0x18
call fcn.00477286
mov dword [ebp - 0x414], eax
test eax, eax
je 0x457c39
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1721]
xor edi, edi
test eax, eax
cmove edi, dword [ebp - 0x418]
test edi, edi
je 0x457c39
mov eax, dword [ebp - 0x414]
push ebx
xor ebx, ebx
test eax, eax
jle 0x457c31
cmp dword [esi + 8], 0
jne 0x457c25
mov eax, dword [esi + 4]
test eax, eax
jne 0x457b5b
mov dword [ebp - 0x40c], 0x497fb8
jmp 0x457b63
mov eax, dword [eax]
mov dword [ebp - 0x40c], eax
mov ecx, dword [esi]
mov edx, esi
push ebx
mov ecx, dword [ecx]
call fcn.00457965
test eax, eax
je 0x457be4
push 0xa
push eax
lea ecx, [ebp - 0x404]
push 0x400
mov eax, ecx
mov dword [ebp - 0x410], ecx
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1373]
lea edx, [ebp - 0x404]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x457b99
sub edx, ecx
mov byte [ebp + edx - 0x404], 0x2d
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x408], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x41c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457bbf
sub ecx, dword [ebp - 0x41c]
lea edx, [ebp + edx - 0x403]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x408]
push eax
call fcn.0048810e
jmp 0x457bee
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [ebp - 0x410], eax
mov edx, dword [ebp - 0x40c]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x408], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457bff
sub ecx, dword [ebp - 0x408]
push ecx
push edx
push 1
push 0
push dword [ebp - 0x410]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x414]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x457b3e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [0x49aed0]
mov ecx, dword [0x499a68]
call fcn.00476adf
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048dc69
mov esp, ebp
pop ebp
ret
Function at 0x45d988
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, eax
mov eax, dword [ebp + 0xc]
cdq
cmp edi, edx
jl 0x45d9af
jg 0x45d9aa
cmp esi, eax
jbe 0x45d9af
xor eax, eax
inc eax
jmp 0x45d9b1
xor eax, eax
test al, al
mov edx, 0x8000
cmovne esi, dword [ebp + 0xc]
jmp 0x45d9e7
xor eax, eax
push eax
lea eax, [ebp + 0xc]
push eax
push edx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45da0d
mov eax, dword [ebp + 0xc]
mov edx, 0x8000
cmp eax, edx
jne 0x45da02
mov ecx, dword [ebp - 4]
sub esi, edx
add ebx, edx
add edi, edx
cmp esi, edx
ja 0x45d9be
xor eax, eax
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45da0d
mov eax, dword [ebp + 0xc]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
jmp 0x45da04

Function at 0x45da12
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 4], esi
mov ecx, 0x8000
jmp 0x45da45
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45da66
mov ecx, 0x8000
cmp dword [ebp + 8], ecx
jne 0x45da66
sub esi, ecx
add edi, ecx
lea eax, [ebp + 8]
push 0
push eax
cmp esi, ecx
ja 0x45da2a
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45da66
cmp dword [ebp + 8], esi
jne 0x45da66
mov eax, dword [ebp - 4]
jmp 0x45da69
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46624a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [esp + 0x28]
xor ecx, ecx
mov esi, ebx
cmp dword [ebp + 0xc], 0
mov eax, edx
mov dword [esp + 0x14], ecx
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jne 0x4662f3
cmp dword [esp + 0x34], 0
je 0x4662f3
mov ecx, dword [0x49aa78]
cmp byte [ecx + 0xc2], 0
jne 0x4662f3
cmp esi, dword [ecx + 0x15]
jne 0x4662f3
cmp edx, dword [ecx + 0x66]
jne 0x4662f3
xor ecx, ecx
call fcn.00464f8b
test eax, eax
jne 0x4662eb
or ecx, 0xffffffff
mov dword [esp + 0x14], ecx
push 4
pop eax
cmp dword [esp + 0x30], eax
cmovl eax, dword [esp + 0x30]
push eax
push 0
push dword [esp + 0x3c]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
and dword [ebx + 0x10], 0
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 8]
test edi, edi
je 0x4662e2
push 0xe
pop ecx
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x466303
and dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], eax
push eax
mov ecx, esi
call fcn.00466034
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x48]
push 0xe
pop ecx
mov dword [esp + 0x18], eax
mov esi, dword [esi + 4]
mov esi, dword [esi]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4662ce
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov edx, edi
inc ecx
call fcn.00464154
test byte [esp + 0x18], 8
je 0x4663ab
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov edx, dword [eax + 4]
test edx, edx
je 0x4663ab
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x30]
dec edi
cmp edx, edi
mov eax, dword [eax*8 + 0x4982c0]
cmovl edi, edx
push 4
mov cl, byte [eax + 4]
cmp cl, 0xff
movzx edx, cl
pop eax
cmove edx, eax
cmp dl, 2
je 0x466394
cmp dl, 3
je 0x466394
mov ecx, dword [esp + 0x10]
mov edx, esi
push edi
lea ecx, [ecx + 8]
call fcn.0048810e
mov byte [esi + edi], 0
jmp 0x4663a3
mov ecx, dword [esp + 0x10]
mov edx, esi
push eax
lea ecx, [ecx + 8]
call fcn.0048810e
mov dword [ebx + 0x10], edi
jmp 0x4662ce
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x4662af
test byte [esp + 0x48], 2
jne 0x4662af
mov eax, dword [0x49aa78]
cmp ecx, dword [eax + 0x1d]
jae 0x4662af
cmp byte [eax + 0x135], 0
jne 0x4662af
cmp edi, dword [eax + 0x6e]
jb 0x4663ee
test byte [esp + 0x48], 0x80
je 0x4662af
mov eax, dword [ebx + 0xc]
xor edx, edx
and dword [ebx + 0x10], 0
mov ecx, 0xb08
push ebx
mov byte [eax], 0
call fcn.004616eb
jmp 0x4662d2
Function at 0x46c37a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], edx
push edi
lea edi, [ebp - 0x24]
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0xc]
lea esi, [ebx + 0x28]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov dword [esi], 1
mov dword [ebx + 0x44], 0x1a
call fcn.00469d40
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0
je 0x46c3e5
mov dword [ebp - 0x3c], 0x202
movzx eax, dx
jmp 0x46c40e
push 3
push 0x20e
push 0x100
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x46c419
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0x200
movzx eax, ax
movzx ecx, di
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x34], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [ebp - 0x3c]
jne 0x46c435
cmp eax, 0x202
jne 0x46c48d
sub eax, 0x200
je 0x46c447
dec eax
sub eax, 1
je 0x46c48d
mov edx, dword [ebp + 0x10]
jmp 0x46c3d0
mov ebx, dword [esi]
sub esp, 0x10
mov eax, dword [ebp - 0x34]
lea esi, [ebp - 0x24]
mov edi, esp
movsx ecx, ax
shr eax, 0x10
cwde
push eax
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046c2dc
mov esi, dword [ebp - 0xc]
cmp ebx, eax
mov ebx, dword [ebp - 8]
mov dword [esi], eax
je 0x46c47c
mov ecx, ebx
call fcn.00469d40
mov eax, dword [ebp - 0x34]
movsx edx, ax
shr eax, 0x10
movsx edi, ax
jmp 0x46c3cd
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [esi], 0
je 0x46c4c0
mov eax, dword [ebx + 8]
cmp byte [eax + 4], 1
je 0x46c4b1
cmp dword [ebp + 8], 0
jne 0x46c4b1
cmp dword [ebp - 0x14], 0
je 0x46c4b1
xor edx, edx
jmp 0x46c4b4
or edx, 0xffffffff
and dword [esi], 0
mov ecx, ebx
call fcn.0046cb76
jmp 0x46c4c7
mov ecx, ebx
call fcn.00469d40
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46c78b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46c80e
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x58]
add dword [ebp - 0xc], eax
add edx, eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x5c]
add dword [ebp - 8], eax
add ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x48], eax
je 0x46c7f2
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx ecx, cx
shl ecx, 0x10
movzx eax, dx
or ecx, eax
push ecx
push 0
push 0x202
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048dc69
mov esp, ebp
pop ebp
ret
Function at 0x46c89b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
or ebx, 0xffffffff
mov eax, dword [edi + 0x44]
mov esi, dword [edi + 0xc]
and eax, 0x4000
mov ecx, dword [edi + 0x10]
or eax, 0x1a
mov dword [edi + 0x44], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
cmp byte [eax + 4], 2
jne 0x46c8e1
cmp dword [ebp + 8], 0
jne 0x46c8e1
xor eax, eax
test edx, edx
cmovne ebx, eax
cmp dword [edi + 0x50], 0xd
je 0x46c9dc
cmp byte [esi + 1], 0
je 0x46c8fa
cmp byte [esi], 0
je 0x46c9dc
mov dword [ecx], 1
mov ecx, edi
call fcn.00469d40
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push 0x100
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x46c919
mov eax, dword [ebp - 0x28]
sub eax, 0x100
je 0x46c950
sub eax, 1
jne 0x46c99f
cmp dword [ebp - 0x24], 0x20
jne 0x46c99f
inc eax
mov dword [ebp - 4], eax
jmp 0x46c9a2
cmp dword [ebp - 0x24], 0x20
jne 0x46c9c5
cmp word [ebp - 0x20], 0
je 0x46c9c5
cmp byte [esi], 0
je 0x46c99f
mov eax, dword [edi + 0x18]
push edi
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x46c99f
call dword [sym.imp.USER32.dll_GetFocus]
mov edx, ebx
mov ecx, edi
mov esi, eax
call fcn.00469cf6
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x46c9aa
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46c9aa
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c919
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0x10]
and dword [eax], 0
cmp dword [ebp - 8], 0
je 0x46c9dc
mov ecx, edi
call fcn.00469d40
jmp 0x46c9e5
xor eax, eax
inc eax
cmp dword [ebp - 0x24], 0xd
mov dword [ebp - 4], eax
je 0x46c9aa
cmp dword [ebp - 0x24], 0x20
je 0x46c9aa
mov dword [ebp - 8], eax
jmp 0x46c9a2
mov edx, ebx
mov ecx, edi
call fcn.0046cb76
and dword [edi + 0x44], 0x4000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d8bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x10]
push esi
push edi
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
test esi, esi
je 0x46d9c0
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push 0x100
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x46d8f1
cmp dword [ebp - 0x34], 0x202
je 0x46d9ba
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46d9ba
cmp dword [ebp - 0x34], 0x200
jne 0x46d8f1
mov eax, dword [ebp - 0x2c]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46d8f1
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x1c]
push 0
push 0x84
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x46d8f1
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
call dword [sym.imp.USER32.dll_ReleaseCapture]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebp - 0x1c]
shl ecx, 0x10
or ecx, eax
push ecx
push 1
push 0x201
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x46d9c0
jmp 0x46d8ea
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048dc69
mov esp, ebp
pop ebp
ret
Function at 0x4787a0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
mov eax, edx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], esi
push ecx
push dword [ebp + 8]
push eax
push esi
call dword [esi + 0xc]
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x478899
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x8c]
jne 0x478873
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x478862
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
call esi
push edi
mov dword [ebp + 8], eax
call esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x47882c
test eax, eax
je 0x47882c
push dword [ebp - 0xc]
mov edx, eax
mov ecx, esi
call fcn.0048810e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x88], edi
jmp 0x47883d
mov ecx, 0x50000
mov dword [ebp - 4], 0x401
call fcn.0040be1c
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
je 0x47884a
push ebx
call esi
cmp dword [ebp - 0x14], 0
je 0x478873
push edi
call esi
cmp dword [ebp - 4], 0
je 0x478873
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x478873
mov ecx, 0x50000
mov dword [ebp - 4], 0x401
call fcn.0040be1c
mov ecx, ebx
call fcn.00484619
mov esi, eax
mov ecx, esi
call fcn.00483599
mov ecx, esi
call fcn.004845fc
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp - 4]
jmp 0x4788a3
xor ecx, ecx
cmp eax, 0x508
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4