joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5bff
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4c5c18
or eax, 0xffffffff
jmp 0x4c5c79
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4c5c75
push 0x3d
push esi
call fcn.004c5dff
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4c5c75
cmp esi, eax
je 0x4c5c75
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x51fa04]
sete cl
cmp eax, dword [0x51fa08]
mov dword [ebp - 8], ecx
jne 0x4c5c5b
mov edi, eax
call fcn.004c5b9e
mov dword [0x51fa04], eax
cmp eax, ebx
jne 0x4c5cb4
cmp dword [ebp + 0xc], ebx
je 0x4c5c7d
cmp dword [0x51fa0c], ebx
je 0x4c5c7d
call fcn.004c4f4c
test eax, eax
je 0x4c5cb4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4c5c86
xor eax, eax
jmp 0x4c5c78
push 4
call fcn.004b5d73
cmp eax, ebx
pop ecx
mov dword [0x51fa04], eax
je 0x4c5c75
mov dword [eax], ebx
cmp dword [0x51fa0c], ebx
jne 0x4c5cb4
push 4
call fcn.004b5d73
cmp eax, ebx
pop ecx
mov dword [0x51fa0c], eax
je 0x4c5c75
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x51fa04]
call fcn.004c5b51
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4c5d15
cmp dword [esi], ebx
je 0x4c5d15
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004b42a1
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4c5cf8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4c5d56
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4c5cef
mov eax, edi
shl eax, 2
push eax
push dword [0x51fa04]
call fcn.004b4312
cmp eax, ebx
pop ecx
pop ecx
je 0x4c5d56
jmp 0x4c5d51
cmp dword [ebp - 8], ebx
jne 0x4c5dc1
cmp edi, ebx
jge 0x4c5d24
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x51fa04]
call fcn.004b4312
cmp eax, ebx
pop ecx
pop ecx
je 0x4c5c75
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x51fa04], eax
cmp dword [ebp + 0xc], ebx
je 0x4c5dab
push dword [ebp - 4]
call fcn.004b6ad0
inc eax
inc eax
push eax
call fcn.004b5d73
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4c5dab
push dword [ebp - 4]
push esi
call fcn.004b4cd0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c5da4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004b42a1
pop ecx
cmp dword [ebp - 8], ebx
je 0x4c5db9
push dword [ebp - 4]
call fcn.004b42a1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4c5c78
push dword [ebp - 4]
call fcn.004b42a1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4c5c82
Function at 0x4caa39
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4caa72
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b1c96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b1a97
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4cbd78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4cbdbb
call fcn.004e1d89
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4cbdbb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4cbdd6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004caef0
test ebx, ebx
mov esi, eax
je 0x4cbdd4
test edi, edi
je 0x4cbdd4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4cc2c1
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4ed329
call fcn.004b48a0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4cc2e6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4cc332
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4ccf7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4ccfb3
call fcn.004e1d89
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ccfc4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4ccffd
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4ccfe2
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4ccfea
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4ccffb
test ax, ax
jne 0x4ccffb
test si, si
je 0x4ccffd
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4cd00c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4cd26c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4ed3ff
call fcn.004b48a0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004e1d89
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4cd2ac
call fcn.004e1d89
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4cd2bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4cd2c9
or eax, 0xffffffff
jmp 0x4cd3cc
mov ecx, esi
call fcn.004ccd9e
mov dword [ebp - 0x14], eax
call fcn.004c9dee
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4cd30c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4cd30c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4cd30c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004cb40c
push dword [ebp - 0x14]
call fcn.004c9d46
push edi
push eax
push ebx
mov ecx, esi
call fcn.004cd051
xor ebx, ebx
cmp eax, ebx
je 0x4cd380
test byte [esi + 0x38], 0x10
je 0x4cd34e
push 4
pop edi
mov ecx, esi
call fcn.004cc0d5
test ah, 1
je 0x4cd346
push 5
pop edi
push edi
mov ecx, esi
call fcn.004c97ea
cmp dword [esi + 0x1c], ebx
je 0x4cd380
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004cc244
jmp 0x4cd380
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4cd394
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4cd3ad
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4cd3ad
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004ccdd8
cmp dword [esi + 0x54], ebx
je 0x4cd3c9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4cd406
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004e1d89
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4cd43d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004cd051
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4cfc86
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ee01a
call fcn.004b48a0
sub esp, 0x260
mov eax, dword [0x51ae40]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x264]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor ebx, ebx
cmp eax, ebx
jne 0x4cfcce
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x4cfcd2
cmp eax, esi
jb 0x4cfcd9
xor eax, eax
jmp 0x4cfdb2
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.004cfc44
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4cfda2
push ebx
push ebx
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4cfd2d
xor esi, esi
jmp 0x4cfda5
test byte [ebp - 0x268], 2
jne 0x4cfd3d
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x268], 4
jne 0x4cfda2
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4cfda2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x264], ebx
je 0x4cfd29
cmp dword [ebp - 0x264], edi
jbe 0x4cfd29
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x264]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x4cfd29
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004b6a46
leave
ret 8
Function at 0x4d014b
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x240]
sub esp, 0x2c0
mov eax, dword [0x51ae40]
push ebx
push esi
push edi
mov dword [ebp + 0x23c], eax
call dword [0x519150]
mov edi, dword [ebp + 0x248]
mov ebx, dword [ebp + 0x250]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x80], esi
mov word [ebx], si
je 0x4d0250
push 0x800
push 0x2b4
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4d0250
test byte [ebp - 0x6e], 1
je 0x4d0250
lea eax, [ebp - 0x80]
push eax
push 0x502484
push esi
push 0x502494
lea ecx, [ebp - 0x7c]
call fcn.004d00ef
test eax, eax
jl 0x4d0250
mov eax, dword [ebp - 0x80]
cmp eax, esi
je 0x4d0250
lea edx, [ebp - 0x7c]
push edx
push 0x508470
mov dword [ebp - 0x7c], esi
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4d0243
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x4d0243
mov ecx, dword [eax]
push esi
push dword [ebp + 0x24c]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4d0236
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
push 2
push eax
push ecx
call dword [edx + 0x4c]
test eax, eax
jl 0x4d0236
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push esi
push esi
push dword [ebp + 0x254]
push ebx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
jmp 0x4d0243
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x4d0243
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4d0252
xor eax, eax
mov ecx, dword [ebp + 0x23c]
pop edi
pop esi
pop ebx
call fcn.004b6a46
add ebp, 0x240
leave
ret 0x10
Function at 0x4d0430
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004b4840
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x502480]
je 0x4d0537
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4d04a0
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4d04a7
cmp ebx, ebx
jne 0x4d04a7
xor eax, eax
jmp 0x4d053a
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4d04b4
mov byte [esi + 0x20], bl
jmp 0x4d04c8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415ef0
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415ef0
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415ef0
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x4d0523
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4d0537
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d3430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x51ae40]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4d347f
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x4d347f
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d348b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004b6a46
leave
ret 8
Function at 0x4d468c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4d4810
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x4d480f
push esi
push edi
mov edi, dword [ebx]
add edi, 0x40
push edi
call fcn.004b5d73
mov esi, eax
test esi, esi
pop ecx
je 0x4d480d
push edi
push ebx
push esi
call fcn.004b4dd0
mov edi, dword [esi]
add esp, 0xc
add edi, esi
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x4ffc60]
je 0x4d4702
inc eax
cmp eax, 4
jb 0x4d46f1
jmp 0x4d4764
cmp dword [ebp + 0x10], 0
je 0x4d471e
cmp dword [eax*8 + 0x4ffc64], 0x12
je 0x4d4764
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], 0xffffff
jmp 0x4d4764
lea ebx, [eax*8 + 0x4ffc64]
push dword [ebx]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebx]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, ebx
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], ecx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x4d46e9
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x4d47ef
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.004b42a1
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d6423
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.004c872e
test eax, eax
jne 0x4d6613
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.0040d560
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x4d6467
cmp edi, ebx
je 0x4d6467
cmp edi, 0x202
jne 0x4d65c0
cmp edi, 0x200
jb 0x4d6477
cmp edi, 0x209
jbe 0x4d648f
cmp edi, 0xa0
jb 0x4d65c0
cmp edi, 0xa9
ja 0x4d65c0
call fcn.004e1daf
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004b4840
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x4d64ed
push dword [ebp - 0x24]
call fcn.004b42a1
pop ecx
cmp edi, ebx
jne 0x4d6500
test byte [ebp - 0x41], 0x80
je 0x4d6500
mov dword [ebp - 8], 1
jmp 0x4d651e
and dword [ebp - 8], 0
cmp edi, ebx
je 0x4d651e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4d651e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4d658a
cmp dword [ebp - 8], 0
jne 0x4d658a
cmp edi, 0x202
jne 0x4d654a
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x4d6572
test byte [esi + 0x78], 8
jne 0x4d657b
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4d657b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x4d65b7
push 0x12c
push 0xe000
mov ecx, esi
call fcn.004d5ad4
jmp 0x4d65b7
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x4d65b7
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4d659d
cmp dword [ebp - 8], 0
je 0x4d65b7
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.004ca706
test eax, eax
pop ebx
je 0x4d65d2
cmp dword [eax + 0x64], 0
jne 0x4d6618
cmp dword [ebp - 0x10], 0
je 0x4d65fa
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x4d6613
mov ecx, edi
call fcn.004ca6c7
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4d65d8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d6618
push dword [ebp + 8]
mov ecx, esi
call fcn.004c914d
jmp 0x4d661a
xor eax, eax
inc eax
jmp 0x4d661a
xor eax, eax
pop edi
pop esi
leave
ret 4