joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40928e
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x409315
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4092fc
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4092fc
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.00426557
add esp, 0xc
test al, al
je 0x40930e
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jmp 0x4092b3
xor bl, bl
jmp 0x4093be
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x409329
mov al, 1
jmp 0x4093c7
lea eax, [ebp - 0x140]
push eax
push 0x435380
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4093bc
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x4093aa
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4093aa
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4093aa
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040928e
test al, al
je 0x40930e
push 0x435384
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x409344
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40afd8
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40b06f
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b056
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b056
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 0xc]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
je 0x40b068
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jmp 0x40affd
xor bl, bl
jmp 0x40b118
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x40b083
mov al, 1
jmp 0x40b121
lea eax, [ebp - 0x140]
push eax
push 0x435380
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40b116
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x40b104
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b104
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b104
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040afd8
test al, al
je 0x40b068
push 0x435384
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40b09e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b7e9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040101d
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401073
push 0x435380
lea ecx, [ebp - 0xc]
call fcn.0040121d
lea eax, [ebp - 0x160]
mov byte [ebp + 0xb], 1
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40b942
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00407591
cmp eax, 1
je 0x40b93e
cmp eax, 0xb
jne 0x40b865
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40b845
lea eax, [ebp - 0x134]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b925
lea eax, [ebp - 0x134]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b925
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xc]
push eax
call fcn.004010dd
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0xc]
push eax
call fcn.0040121d
test byte [ebp - 0x160], 0x10
je 0x40b8fc
cmp byte [ebp + 0x18], 0
je 0x40b8cc
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x40b925
push 0x43539c
lea ecx, [ebp - 0xc]
call fcn.0040121d
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp - 0xc]
call fcn.0040b7e9
test al, al
mov byte [ebp + 0xb], al
je 0x40b942
jmp 0x40b925
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x140]
xor ebx, ebx
xor eax, eax
or ecx, ebx
mov ebx, dword [ebp + 0xc]
or eax, edx
add dword [ebx], eax
adc dword [ebx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x40b925
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x40b942
jmp 0x40b845
and byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.00428f1b
push dword [ebp - 0xc]
call fcn.00428f1b
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x41329d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004294c0
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.00401000
lea ecx, [ebp - 0x20]
call fcn.00401000
mov ecx, dword [ebp + 8]
call fcn.00401f26
and byte [ebp - 1], 0
mov esi, eax
push 1
mov al, byte [esi]
pop edi
test al, al
mov byte [ebp - 8], al
je 0x413379
push ebx
push 0x25
pop ebx
cmp al, bl
jne 0x41334e
cmp byte [esi + edi], bl
mov byte [ebp - 1], 1
jne 0x4132f7
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401272
inc edi
jmp 0x413359
push 0x43a030
lea ecx, [ebp - 0x20]
call fcn.00401123
mov al, byte [esi + edi]
cmp al, bl
je 0x41331b
test al, al
je 0x41331b
push eax
lea ecx, [ebp - 0x20]
inc edi
call fcn.00401272
jmp 0x413304
cmp byte [esi + edi], bl
jne 0x413321
inc edi
and byte [ebp - 0x1020], 0
lea eax, [ebp - 0x1020]
push 0xfff
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
lea eax, [ebp - 0x1020]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040121d
jmp 0x413359
push dword [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.00401272
mov al, byte [esi + edi]
inc edi
test al, al
mov byte [ebp - 8], al
jne 0x4132de
cmp byte [ebp - 1], al
pop ebx
je 0x413379
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.004022ff
push dword [ebp - 0x20]
call fcn.00428f1b
push dword [ebp - 0x14]
call fcn.00428f1b
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x4185bc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov al, byte [0x43a030]
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push edi
mov byte [ebp - 0x404], al
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
mov edi, 0x400
lea eax, [ebp - 0x404]
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 0x2e64]
mov dword [esi + 0x2e60], ebx
dec eax
je 0x41873b
dec eax
je 0x41871d
dec eax
je 0x41870d
dec eax
jne 0x41876b
lea ebx, [esi + 0x2e08]
push 0xa
push str.classname
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00432cd0
add esp, 0xc
test eax, eax
jne 0x418673
lea eax, [ebp - 0x404]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov ecx, ebx
call fcn.00401f26
add eax, 0xa
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00428f30
pop ecx
pop ecx
jmp 0x418767
push 0x4353d8
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00432c00
pop ecx
test eax, eax
pop ecx
je 0x4186f6
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00428ea0
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00428fc0
add esp, 0xc
test eax, eax
je 0x4186f6
push 7
push str.regexp
mov ecx, ebx
call fcn.00401f26
push eax
call fcn.00432cd0
add esp, 0xc
test eax, eax
jne 0x41876b
push eax
push eax
sub esp, 0xc
lea eax, [ebp - 0x404]
mov ecx, esp
push eax
call fcn.0040101d
lea ecx, [esi + 0x2e38]
call fcn.004230f4
test al, al
je 0x41876b
mov ecx, esi
call fcn.00418775
cmp al, 1
jne 0x41876b
cmp byte [esi + 0x2e7a], al
jne 0x41876b
xor eax, eax
jmp 0x41876e
lea ecx, [esi + 0x2e08]
call fcn.00401f26
jmp 0x41865f
lea ecx, [esi + 0x2e08]
call fcn.00401f26
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0042a620
pop ecx
pop ecx
test eax, eax
jmp 0x4186f4
lea edi, [esi + 0x2e08]
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00428ea0
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00428fc0
add esp, 0xc
test eax, eax
je 0x4186f6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4187fb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.004294c0
and byte [ebp - 0x8000], 0
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x418828
cmp byte [esi + 0x2e78], 1
jne 0x418896
cmp dword [esi + 0x2e68], 2
jne 0x418848
lea eax, [ebp - 0x8000]
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41885f
lea eax, [ebp - 0x8000]
push eax
push 0x7fff
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
and byte [ebp - 1], 0
test eax, eax
je 0x418896
lea ecx, [esi + 0x2e20]
call fcn.00401f26
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.0042a620
pop ecx
test eax, eax
pop ecx
je 0x418896
push dword [esi + 0x2e60]
mov ecx, esi
call fcn.0041839a
xor eax, eax
jmp 0x418899
push 1
pop eax
pop esi
leave
ret 8
Function at 0x418dcc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi + 0x2e88]
pop ebx
cmp eax, 2
jne 0x418e05
lea ecx, [esi + 0x2e90]
call fcn.00401f9e
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp edi, eax
jmp 0x418ec3
test eax, eax
jne 0x418e92
lea eax, [ebp - 0x404]
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x404]
lea edi, [esi + 0x2e90]
push eax
call fcn.00428ea0
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov ecx, edi
call fcn.00401f26
push eax
call fcn.00428fc0
add esp, 0xc
test eax, eax
jne 0x418ed7
inc dword [esi + 0x2ea8]
push dword [esi + 0x2ea8]
lea eax, [esi + 0x2ea8]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x404]
push str._s_u
push eax
call fcn.00429357
add esp, 0x10
mov ecx, edi
call fcn.00401f26
push eax
lea eax, [ebp - 0x404]
jmp 0x418eb9
lea eax, [ebp - 0x404]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x404]
lea ecx, [esi + 0x2e90]
push eax
call fcn.00401f26
push eax
call fcn.00428f30
pop ecx
pop ecx
test eax, eax
jne 0x418ed7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x2eb0], eax
mov byte [esi + 0x2eac], 1
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x41b18f
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041b3c1
cmp byte [esi + 0xc], 1
jne 0x41b1bd
push 0xffffffffffffffff
mov edi, 0x43cb10
push dword [esi + 0x10]
mov ecx, edi
push 1
call fcn.0042427b
jmp 0x41b1eb
lea ebx, [esi + 0x1c]
mov edi, 0x43cb10
push ebx
mov ecx, edi
call fcn.00424590
test al, al
je 0x41b20d
lea eax, [esi + 0x124]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
mov ecx, edi
call fcn.0042455b
lea eax, [esi + 0x1c]
mov ebx, 0x43ce60
push eax
mov ecx, ebx
call fcn.0040750c
test eax, eax
je 0x41b219
mov ecx, edi
call fcn.00424447
mov dword [0x440040], 1
jmp 0x41b266
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, esi
call fcn.0041b26b
mov ecx, esi
call fcn.0041b350
cmp byte [0x43cb08], 1
jne 0x41b249
mov ecx, esi
call fcn.0041b85b
push 1
mov ecx, ebx
call fcn.0040763c
mov ecx, edi
call fcn.00424447
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c496
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push 0x44
mov edi, 0x4415d8
push ebx
push edi
call fcn.00429a60
push 0x10
mov esi, 0x4415c8
push ebx
push esi
call fcn.00429a60
add esp, 0x18
mov dword [0x4415d8], 0x44
push 1
pop eax
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
mov dword [0x441604], eax
mov word [0x441608], ax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x41c4f9
push dword [0x4415c8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x420979
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x420a15
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
lea ecx, [ebp - 0x10]
push esi
push ecx
push dword [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
push eax
push 0x433080
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x420a1c
xor eax, eax
jmp 0x420aa8
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, dword [ebp + 0x1c]
cmp ebx, esi
jne 0x420a67
cmp dword [ebp + 0x20], esi
jne 0x420a67
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov dword [ebp + 0x20], eax
push dword [ebp + 0xc]
push esi
push 0x172
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x420a8a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x20]
mov dword [edi + 0x30], eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x421f6b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
lea eax, [ebp - 0x94]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [ebp - 0x90]
mov dword [esi], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esi + 8], eax
lea eax, [ebp - 0x80]
push eax
call fcn.00428ea0
xor ebx, ebx
pop ecx
cmp eax, ebx
jle 0x421ff1
dec eax
cmp eax, ebx
jle 0x421fcd
cmp byte [ebp + eax - 0x80], 0x20
lea ecx, [ebp + eax - 0x80]
jne 0x421fcd
mov byte [ecx], bl
jmp 0x421fb9
xor ecx, ecx
cmp eax, ebx
jle 0x421fdf
cmp byte [ebp + ecx - 0x80], 0x20
jne 0x421fdf
inc ecx
cmp ecx, eax
jl 0x421fd3
lea eax, [ebp + ecx - 0x80]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00428db0
pop ecx
pop ecx
jmp 0x421ff4
mov byte [esi + 0xc], bl
cmp dword [ebp - 0x84], 2
mov byte [esi + 0x10c], bl
mov byte [esi + 0x10d], bl
mov byte [esi + 0x10e], bl
mov byte [esi + 0x10f], bl
mov byte [esi + 0x112], bl
mov byte [esi + 0x113], bl
mov byte [esi + 0x110], bl
mov byte [esi + 0x111], bl
mov byte [esi + 0x114], bl
mov byte [esi + 0x115], bl
mov byte [esi + 0x116], bl
mov byte [esi + 0x117], bl
mov byte [esi + 0x118], bl
mov byte [esi + 0x119], bl
mov byte [esi + 0x11a], bl
mov byte [esi + 0x11b], bl
jne 0x4220ea
mov eax, dword [esi]
mov byte [esi + 0x10c], 1
sub eax, 4
je 0x4220da
dec eax
jne 0x422141
mov eax, dword [esi + 4]
mov byte [esi + 0x10f], 1
cmp eax, ebx
jne 0x422097
mov byte [esi + 0x113], 1
mov byte [esi + 0x112], 1
jmp 0x422141
cmp eax, 1
jne 0x4220b3
mov byte [esi + 0x113], al
mov byte [esi + 0x111], al
mov byte [esi + 0x110], al
jmp 0x422141
cmp eax, 2
jb 0x422141
mov byte [esi + 0x113], 1
mov byte [esi + 0x111], 1
mov byte [esi + 0x115], 1
mov byte [esi + 0x114], 1
jmp 0x422141
mov byte [esi + 0x10f], 1
mov byte [esi + 0x10e], 1
jmp 0x422141
movzx eax, word [ebp - 0x88]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
cmp eax, ebx
mov byte [esi + 0x10d], 1
mov byte [esi + 0x119], 1
je 0x42213a
cmp eax, 0xa
je 0x42212a
cmp eax, 0x5a
jne 0x422141
mov byte [esi + 0x117], 1
mov byte [esi + 0x11b], 1
mov byte [esi + 0x11a], 1
jmp 0x422141
mov byte [esi + 0x117], 1
mov byte [esi + 0x116], 1
jmp 0x422141
mov byte [esi + 0x118], 1
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424fd6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x425038
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x425001
mov al, byte [esi + 0x20]
push ebx
push ebx
push eax
push 0x5b
call edi
test byte [esi + 0xc], 2
je 0x425011
mov al, byte [esi + 0x1c]
push ebx
push ebx
push eax
push 0x10
call edi
test byte [esi + 0xc], 4
je 0x425021
mov al, byte [esi + 0x14]
push ebx
push ebx
push eax
push 0x11
call edi
test byte [esi + 0xc], 1
je 0x425109
mov al, byte [esi + 0x18]
push ebx
push ebx
push eax
push 0x12
jmp 0x425107
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 8
je 0x425053
or byte [ebp - 0xa5], 0x80
test al, 2
je 0x42505e
or byte [ebp - 0xf0], 0x80
test al, 4
je 0x425069
or byte [ebp - 0xef], 0x80
test al, 1
je 0x425074
or byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x4250a3
mov eax, dword [esi + 0x20]
shl eax, 0x10
or al, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x4250ba
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or al, 1
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x4250d1
mov eax, dword [esi + 0x14]
shl eax, 0x10
or al, 1
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 1
je 0x4250f4
test al, 4
jne 0x4250f4
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x425104
test ecx, ecx
je 0x425109
mov eax, dword [esi + 0x18]
shl eax, 0x10
or al, 1
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
push dword [esi + 4]
call fcn.0042786e
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425117
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x42517f
test byte [esi + 0xc], 1
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x425143
mov al, byte [esi + 0x18]
push ebx
push 2
push eax
push 0x12
call edi
test byte [esi + 0xc], 4
je 0x425154
mov al, byte [esi + 0x14]
push ebx
push 2
push eax
push 0x11
call edi
test byte [esi + 0xc], 2
je 0x425165
mov al, byte [esi + 0x1c]
push ebx
push 2
push eax
push 0x10
call edi
test byte [esi + 0xc], 8
je 0x42525c
mov al, byte [esi + 0x20]
push ebx
push 2
push eax
push 0x5b
call edi
jmp 0x42525c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, eax
mov ebx, 0x101
and ecx, 1
je 0x4251ba
test al, 4
jne 0x4251ba
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x4251cd
test ecx, ecx
je 0x4251d2
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x4251ec
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x425206
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 8
je 0x425220
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
test al, 8
je 0x42522e
xor byte [ebp - 0xa5], 0x80
test al, 2
je 0x425239
xor byte [ebp - 0xf0], 0x80
test al, 4
je 0x425244
xor byte [ebp - 0xef], 0x80
test al, 1
je 0x42524f
xor byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push dword [esi]
call fcn.0042786e
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42529d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [esi + 0x10], 0
mov edi, eax
je 0x42531f
cmp ebx, 0x14
je 0x42531f
cmp ebx, 0x90
je 0x42531f
cmp ebx, 0x91
je 0x42531f
push 1
shl edi, 0x10
pop ebx
or edi, ebx
cmp byte [ebp + 0xc], bl
je 0x4252e9
push dword [ebp + 8]
mov ecx, esi
call fcn.00424eae
cmp al, bl
jne 0x4252ef
or edi, 0x1000000
mov eax, dword [esi + 0xc]
test bl, al
je 0x425314
test al, 4
jne 0x425314
or edi, 0x20000000
push edi
push dword [ebp + 8]
push 0x104
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x425348
push edi
push dword [ebp + 8]
push 0x100
jmp 0x425309
push 1
pop ebx
cmp byte [ebp + 0xc], bl
je 0x42533b
push dword [ebp + 8]
mov ecx, esi
call fcn.00424eae
cmp al, bl
je 0x42533b
push 0
push 0
jmp 0x42533e
push 0
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
pop ebp
ret 8