joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a1d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x42a200
cmp ebx, dword [esi + 0x140]
je 0x42a200
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x140]
cmp ebx, eax
je 0x42a2d7
push edi
test eax, eax
je 0x42a25f
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x140]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x100]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x140]
mov ecx, esi
call fcn.00429cd7
mov dword [esi + 0x140], edi
test ebx, ebx
je 0x42a2d6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x42a2d6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc0]
test al, al
je 0x42a2d6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
test al, al
je 0x42a2d6
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x140], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x140]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x100]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x140]
mov ecx, esi
call fcn.00429cd7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42a4f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x1bc]
xor ebx, ebx
call fcn.004258c0
test eax, eax
jle 0x42a54d
push ebx
lea ecx, [esi + 0x1bc]
mov byte [ebp - 1], 0
call fcn.0041efc8
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x42a5b1
lea ecx, [esi + 0x1bc]
inc ebx
call fcn.004258c0
cmp ebx, eax
jl 0x42a514
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x42a616
sub eax, 4
je 0x42a5b5
dec eax
dec eax
jne 0x42a60d
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00456de3
pop ecx
mov ecx, dword [esi + 0x13c]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x4294ae
call dword [eax + 0xf4]
mov esi, eax
test esi, esi
je 0x42a60d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x42a60f
cmp dword [esi + 0x140], 0
je 0x42a60d
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x154]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00428266
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x140]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x100]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x42a60d
cmp dword [esi + 0x140], 0
je 0x42a674
mov ecx, dword [esi + 0x140]
mov eax, dword [ecx]
call dword [eax + 0xc0]
test al, al
je 0x42a674
mov ecx, dword [esi + 0x140]
mov eax, dword [ecx]
call dword [eax + 0xcc]
test al, al
je 0x42a674
mov ecx, dword [esi + 0x140]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.004567d0
pop ecx
pop ecx
test eax, eax
je 0x42a674
mov ecx, dword [esi + 0x140]
call fcn.00441b04
test al, al
jne 0x42a60d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0042a39d
jmp 0x42a5b1
Function at 0x43008f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x46f2c5
call fcn.0045793e
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.0042f67f
call fcn.004283e3
push eax
lea ecx, [ebp - 0x94]
call fcn.0041f3d6
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004283e9
mov ecx, eax
call fcn.0041f12d
test al, al
je 0x4301d7
push edi
lea ecx, [ebp - 0x94]
call fcn.0041f1c6
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0041f019
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push esi
cmp eax, 0xffffffff
jne 0x430133
push str.Error_opening_file
mov ecx, ebx
call fcn.0042f855
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041efff
mov al, bl
call fcn.00457988
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x430148
push esi
push str.File_is_empty
jmp 0x430111
cmp edi, 0x400000
jbe 0x430158
push esi
push 0x476024
jmp 0x430111
push edi
mov dword [ebp - 0x2cc], esi
call fcn.0041d281
pop ecx
push esi
lea ecx, [ebp - 0x2cc]
push ecx
push edi
push eax
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], edi
je 0x4301b3
push dword [ebp - 0x2c8]
call fcn.00454f3d
pop ecx
mov ecx, ebx
call fcn.0042f67f
push esi
push str.Could_not_read_file
jmp 0x430111
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x2c8]
call fcn.0042ff3c
push dword [ebp - 0x2c8]
mov bl, al
call fcn.00454f3d
pop ecx
jmp 0x43011a
call fcn.004283e9
push eax
lea ecx, [ebp - 0x94]
call fcn.0041f1a9
call fcn.004283ef
test al, al
je 0x4301f8
call fcn.004283f5
jmp 0x43020f
push 2
push esi
lea ecx, [ebp - 0x94]
call fcn.0041f019
push eax
call fcn.00440fcb
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, esi
jne 0x430224
push esi
push str.Error_opening_zip_file
jmp 0x430111
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push edi
push dword [ebp - 0x2c8]
call fcn.0043f6e3
add esp, 0x14
test eax, eax
je 0x430252
push esi
push str.Could_not_find_ziped_file
jmp 0x430111
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp eax, esi
je 0x430140
cmp eax, 0x400000
ja 0x430150
push eax
call fcn.0041d281
push 3
push dword [ebp - 0x2cc]
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.00441029
add esp, 0x18
cmp eax, esi
je 0x4302c8
cmp eax, 0x600
je 0x4302c8
push edi
call fcn.00454f3d
pop ecx
call fcn.004283ef
test al, al
jne 0x4302bd
push dword [ebp - 0x2c8]
call fcn.00441061
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x430111
call fcn.004283ef
test al, al
jne 0x4302dd
push dword [ebp - 0x2c8]
call fcn.00441061
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x2cc]
push edi
call fcn.0042ff3c
push edi
jmp 0x4301ca
Function at 0x43090a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2d0
mov eax, 0x46f329
call fcn.0045793e
mov dword [ebp - 0x2dc], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2d8], esi
call fcn.004283e3
push eax
lea ecx, [ebp - 0x94]
call fcn.0041f3d6
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004283e9
mov ecx, eax
call fcn.0041f12d
test al, al
je 0x4309f3
push esi
lea ecx, [ebp - 0x94]
call fcn.0041f1c6
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0041f019
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x43099f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041efff
jmp 0x430ae5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x43098b
push esi
mov dword [ebp - 0x2d0], edi
call fcn.0041d281
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push ebx
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x430ad2
push ebx
call fcn.00454f3d
pop ecx
jmp 0x43098b
call fcn.004283e9
push eax
lea ecx, [ebp - 0x94]
call fcn.0041f1a9
call fcn.004283ef
test al, al
je 0x430a14
call fcn.004283f5
jmp 0x430a2b
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0041f019
push eax
call fcn.00440fcb
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, edi
je 0x43098b
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push esi
push dword [ebp - 0x2c8]
call fcn.0043f6e3
add esp, 0x14
test eax, eax
jne 0x43098b
mov esi, dword [ebp - 0x98]
cmp esi, edi
je 0x43098b
push esi
call fcn.0041d281
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x2d4]
push dword [ebp - 0x2c8]
call fcn.00441029
add esp, 0x18
cmp eax, edi
je 0x430abd
cmp eax, 0x600
je 0x430abd
push ebx
call fcn.00454f3d
pop ecx
call fcn.004283ef
test al, al
jne 0x43098b
push dword [ebp - 0x2c8]
call fcn.00441061
jmp 0x4309f0
call fcn.004283ef
test al, al
jne 0x430ad2
push dword [ebp - 0x2c8]
call fcn.00441061
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041efff
cmp ebx, edi
jne 0x430b64
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
je 0x430b60
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x430b60
push esi
mov dword [ebp - 0x2cc], edi
call fcn.0041d281
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push ebx
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x430b5c
push ebx
call fcn.00454f3d
pop ecx
xor ebx, ebx
cmp ebx, edi
jne 0x430b64
xor eax, eax
jmp 0x430b7c
mov ecx, dword [ebp - 0x2dc]
push esi
push ebx
call fcn.004306d0
push ebx
mov esi, eax
call fcn.00454d68
pop ecx
mov eax, esi
call fcn.00457988
ret 4
Function at 0x43e220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43e22e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x43e2e9
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x478868]
add edx, 8
sub edi, 8
dec esi
jne 0x43e24c
pop ebx
test edi, edi
je 0x43e302
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x478868]
inc edx
dec edi
jne 0x43e2ed
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x43e7af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x43e7e3
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43e7de
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x43e80b
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x43e7f4
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00457190
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x43f62d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43f6d5
movzx ecx, word [esi]
test cx, cx
je 0x43f6d5
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x43f668
cmp cx, 0x5c
jne 0x43f66a
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x43f65c
cmp eax, esi
je 0x43f6a9
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045b2b1
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043f62d
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0045b290
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0045b25f
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00454d73
leave
ret
Function at 0x440c02
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x440c7d
cmp dword [esi + 4], 0xffffffff
jne 0x440c7d
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x480d44
push edi
call fcn.0045b25f
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x440c4f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x440c4f
mov eax, 0x2000000
jmp 0x440c82
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043e5bc
add esp, 0x10
test eax, eax
jne 0x440c6d
mov eax, dword [ebp + 0x10]
jmp 0x440c82
push eax
call fcn.004407f1
mov dword [esi], eax
mov eax, dword [0x48f360]
pop ecx
jmp 0x440c82
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x441d40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4ec], ebx
je 0x441da8
cmp dword [ebp + 8], 0x100
jne 0x441d97
cmp word [ebp + 0xc], 0xd
jne 0x441d97
cmp byte [esi + 0x4f2], bl
je 0x441d7e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x441d97
cmp byte [esi + 0x4f3], bl
jne 0x441d97
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x441d93
push ebx
push ebx
push ebx
push 0x479138
push esi
call fcn.00429cd7
xor eax, eax
jmp 0x441dab
mov eax, dword [esi + 0x4ec]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x446f97
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x28], ebx
cmp edi, 0x4e
jne 0x446fc2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp edi, 8
jne 0x44708f
push ebx
push 0x47a308
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x447049
push 0x20
pop esi
push esi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00457050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x100e
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0x1010003
jne 0x44702c
xor eax, eax
inc eax
jmp 0x447038
cmp dword [ebp - 0x18], 0x2010003
je 0x447027
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00454d73
leave
ret 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x447077
cmp eax, dword [ebp - 0xc]
jg 0x447077
cmp eax, dword [ebp - 0x10]
jl 0x447077
cmp eax, dword [ebp - 8]
jle 0x447035
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 8
call fcn.00446cdf
mov dword [ebp - 0x28], eax
jmp 0x447035
mov ecx, dword [ebp + 0xc]
mov eax, 0x101
cmp edi, eax
jne 0x447100
cmp ecx, 0x2e
je 0x4470a5
cmp ecx, 8
jne 0x4470dc
push dword [ebp + 0x10]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov edi, eax
mov eax, dword [esi + 0x10]
mov dword [eax + 0x5a8], 2
mov ecx, dword [esi + 0x10]
call fcn.00446b38
push ebx
push ebx
push 0x10
mov ecx, esi
call fcn.00428053
mov eax, edi
jmp 0x447038
cmp ecx, 0x1b
jne 0x447100
push dword [ebp + 0x10]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x5a8], 3
mov edi, eax
jmp 0x4470ca
push dword [ebp + 0x10]
push ecx
push edi
mov ecx, esi
call fcn.0042806c
jmp 0x447038
Function at 0x44c56d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x44c5de
cmp dword [esi + 0x10], ebx
je 0x44c5de
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0045b300
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x44c5de
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1c4
call fcn.0041f185
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00429cd7
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454d73
leave
ret 0x10

Function at 0x450495
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4504ba
cmp eax, edi
jge 0x4504b2
mov eax, esi
call fcn.0044fe53
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x4504e7
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x4504c7
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x450506
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4504f4
xor eax, eax
jmp 0x4504fc
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4504ea
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x450538
mov eax, str.zlib_corrupt
call fcn.0044d72b
jmp 0x450573
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x450548
mov eax, str.read_past_buffer
jmp 0x450531
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x45055d
mov ecx, edi
call fcn.0044fe89
test eax, eax
je 0x450573
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00457190
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x454d73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d000]
jne 0x454d7d
repz ret
jmp fcn.0045d85f
Function at 0x468f6f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045f8d5
and dword [ebp - 0x14], 0
cmp dword [0x49032c], 0
mov dword [ebp - 0x18], eax
jne 0x469022
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4690ca
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47e59c
push ebx
call edi
test eax, eax
je 0x4690ca
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49032c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x490330], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x490334], eax
call edi
push eax
call esi
mov dword [0x49033c], eax
test eax, eax
je 0x469022
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x490338], eax
mov eax, dword [0x490338]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46907b
cmp dword [0x49033c], ecx
je 0x46907b
push eax
call esi
push dword [0x49033c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46907b
test ebx, ebx
je 0x46907b
call edi
test eax, eax
je 0x469072
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x469072
test byte [ebp - 8], 1
jne 0x46907b
or dword [ebp + 0x10], 0x200000
jmp 0x4690ae
mov eax, dword [0x490330]
cmp eax, dword [ebp - 0x18]
je 0x4690ae
push eax
call esi
test eax, eax
je 0x4690ae
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4690ae
mov eax, dword [0x490334]
cmp eax, dword [ebp - 0x18]
je 0x4690ae
push eax
call esi
test eax, eax
je 0x4690ae
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49032c]
call esi
test eax, eax
je 0x4690ca
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4690cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00454d73
leave
ret
Function at 0x15000
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
push edi
push eax
push str.12:43:31
push str.Oct_27_2015
push str._ProcessProtected__EasySys_Sample_Driver_r_n_ProcessProtected__Compiled__s__s_r_n_ProcessProtected__In_DriverEntry_:__wZ_r_n
call sub.ntoskrnl.exe_DbgPrint
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0x10
push str.DevicedevProcessProtected
lea ecx, [ebp - 8]
push ecx
mov dword [esi + 0x38], 0x14070
mov dword [esi + 0x40], 0x140a0
mov dword [esi + 0x70], 0x140d0
mov dword [esi + 0x34], 0x14000
call edi
lea edx, [ebp + 0xc]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 8]
push eax
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test esi, esi
jge 0x15088
push esi
push str._ProcessProtected__Error__IoCreateDevice__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
push 1
call dword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
test al, al
je 0x150a1
push str.DosDevicesGlobalProcessProtected
lea ecx, [ebp - 0x10]
push ecx
jmp 0x150aa
push str.DosDevicesProcessProtected
lea edx, [ebp - 0x10]
push edx
call edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jge 0x150e2
push esi
push str._ProcessProtected__Error__IoCreateSymbolicLink__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
mov edx, dword [ebp + 0xc]
add esp, 8
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push section..text
call dword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutineEx]
test eax, eax
jne 0x150fa
push str.SetCreateProcessNotifyRoutineEx_OK..._r_n
jmp 0x150ff
push str.SetCreateProcessNotifyRoutineEx_Error..._r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push str._ProcessProtected__DriverEntry_Success_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
call fcn.00011190
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8