joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404330
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404354
push esi
call fcn.00404600
test eax, eax
jne 0x404354
push 0x4a2be0
call fcn.00404430
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40438d
cmp dword [esi + 0x18], ebx
je 0x40437f
cmp dword [esi + 8], ebx
je 0x404374
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a2c24
call fcn.00404430
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp eax, ebx
je 0x4043c6
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x4043ed
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x4043ed
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x4043e3
cmp dword [esi + 8], ebx
je 0x4043d8
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404402
mov dword [esi + 4], ebx
jmp 0x4043c6
cmp dword [esi + 0x18], ebx
je 0x40441f
cmp dword [esi + 8], ebx
je 0x404414
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a2c44
call fcn.00404430
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404500
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x404510
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4045df
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push 0x4a2c68
push edx
call fcn.0048eda7
add esp, 0xc
test eax, eax
je 0x4045d6
lea eax, [esp]
push 0x4a2c80
push eax
call fcn.0048e559
add esp, 8
test eax, eax
je 0x4045d6
lea ecx, [esp]
push 0x4a2c98
push ecx
call fcn.0048e559
add esp, 8
test eax, eax
je 0x4045d6
lea edx, [esp]
push 0x4a2cac
push edx
call fcn.0048e559
add esp, 8
test eax, eax
je 0x4045d6
lea eax, [esp]
push 0x4a2cbc
push eax
call fcn.0048e559
add esp, 8
test eax, eax
je 0x4045d6
lea ecx, [esp]
push 0x4a2cd8
push ecx
call fcn.0048e559
add esp, 8
test eax, eax
je 0x4045cc
lea edx, [esp]
push 0x4a2cfc
push edx
call fcn.0048e559
add esp, 8
test eax, eax
jne 0x4045e5
test esi, esi
je 0x4045d6
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret
Function at 0x404600
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x404612
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
mov ecx, dword [0x4c9508]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x404680
mov eax, dword [0x4c58dc]
cmp eax, 0xffffffff
je 0x404651
test eax, eax
je 0x404696
call esi
mov edx, dword [0x4c58dc]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x404696
push 1
push 0x8000012f
mov dword [0x4c58e0], 0
call fcn.00401360
mov eax, dword [0x4c9508]
add esp, 8
push eax
mov dword [0x4c58e0], 1
call ebx
test eax, eax
je 0x404632
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x407930
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4c840d], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x4079eb
mov al, byte [0x4c840f]
cmp al, 0xa0
je 0x407956
cmp al, 0x10
jne 0x4079eb
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4c8410]
cmp eax, 0x16
jae 0x4079eb
test ebp, 0x100
jne case.0x407987.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407987.13
movzx eax, byte [eax + 0x407b94]
jmp dword [eax*4 + 0x407b8c]
mov cl, 1
jmp 0x407994
xor cl, cl
cmp byte [0x4c840e], 0
jne 0x4079b1
xor ecx, ecx
nop
cmp byte [ecx + 0x4c83f4], 0
jne 0x4079bc
inc ecx
cmp ecx, 0x16
jl 0x4079a0
jmp 0x4079eb
cmp byte [esp + 0x1c], 0
je 0x4079c5
test cl, cl
je 0x4079eb
mov byte [0x4c8416], 1
jmp 0x4079c9
test cl, cl
je 0x4079eb
mov cl, byte [0x4c840c]
mov dl, byte [0x4c840b]
mov al, byte [0x4c840a]
mov byte [0x4c9507], cl
mov byte [0x4c9538], dl
mov byte [0x4c95c8], al
mov cl, byte [0x4c9507]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4c9538]
mov al, byte [0x4c95c8]
mov byte [0x4c840c], cl
lea ecx, [esi + esi*8]
mov byte [0x4c840b], dl
mov edx, dword [0x4c9f44]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4c840a], al
test bl, bl
je case.default.0x407b62
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x407a42
xor al, al
jmp 0x407a57
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.00407bf0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x407b2e
cmp byte [esp + 0x20], 0
jne 0x407a81
mov cl, bl
not cl
and byte [0x4c9505], cl
test dl, dl
je 0x407a81
and byte [0x4c9506], cl
cmp byte [esp + 0x18], 0
je case.default.0x407b62
not bl
and byte [0x4c9507], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4c9528], 0
cmp ecx, 5
ja case.default.0x407b62
jmp dword [ecx*4 + 0x407bb8]
mov cl, byte [0x4c95c9]
mov byte [0x4c9538], cl
jmp case.default.0x407b62
mov dl, byte [0x4c95c8]
mov byte [0x4c9538], dl
jmp case.default.0x407b62
mov al, byte [0x4c95cb]
mov byte [0x4c9539], al
jmp case.default.0x407b62
mov cl, byte [0x4c95ca]
mov byte [0x4c9539], cl
jmp case.default.0x407b62
mov dl, byte [0x4c95cd]
mov byte [0x4c953a], dl
jmp case.default.0x407b62
mov al, byte [0x4c95cc]
mov byte [0x4c953a], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4c8414], bp
pop ebp
mov byte [0x4c840f], al
mov byte [0x4c840e], cl
pop ebx
je 0x407b70
xor al, al
mov byte [0x4c840d], al
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4c8410], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x407b45
or byte [0x4c9505], bl
test dl, dl
je 0x407b45
or byte [0x4c9506], bl
test al, al
je case.default.0x407b62
or byte [0x4c9507], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4c9528], al
cmp ecx, 5
ja case.default.0x407b62
jmp dword [ecx*4 + 0x407bd0]
mov byte [0x4c9538], al
jmp case.default.0x407b62
push ecx
call fcn.00407bf0
add esp, 4
mov byte [0x4c840d], al
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4c8410], eax
pop ecx
ret
Function at 0x407bf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp al, 0xa0
je 0x407bff
cmp al, 0x10
jne case.0x407c56.13
cmp byte [esp + 8], 0
jne case.0x407c56.13
cmp byte [0x4c8416], 0
je 0x407c2b
xor eax, eax
cmp byte [eax + 0x4c83f4], 0
jne 0x407c2b
inc eax
cmp eax, 0x16
jl 0x407c11
mov byte [0x4c8416], 0
xor al, al
pop esi
ret
cmp byte [0x4c840e], 0
je case.0x407c56.13
test dword [0x4c8414], 0x100
jne case.0x407c56.13
movzx eax, byte [0x4c840f]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407c56.13
movzx eax, byte [eax + 0x407c84]
jmp dword [eax*4 + 0x407c7c]
call esi
sub eax, dword [0x4c8410]
cmp eax, 0x16
jb 0x407c27
call esi
mov dword [0x4cc338], eax
mov dword [0x4cc334], eax
mov al, 1
pop esi
ret
Function at 0x408b70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4c9638], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408b94
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4c963c], 0
je 0x408ba3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408db0
test al, al
jne 0x408be6
cmp byte [ebp + 0xc], al
jne 0x408be6
push 0x4c83f0
push 0
push 0
push 0x408e80
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4c9f34], eax
test eax, eax
je 0x408c77
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4c83f0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x408c1c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x32
jl 0x408bf6
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x408c83
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408cea
cmp dword [esp + 0x2c], 0
je 0x408c92
mov byte [esp + 0x1f], 1
call fcn.00409220
test al, al
jne 0x408c92
cmp byte [ebp + 0xc], al
jne 0x408d7e
mov byte [ebp + 8], al
jmp 0x408c31
call fcn.00409240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x408cce
call fcn.00409220
test al, al
jne 0x408cea
cmp byte [ebp + 0xc], 0
jne 0x408d77
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x4c9638], 0
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexW]
je 0x408d22
test byte [esp + 0x1e], 1
jne 0x408d3b
push 0x4a4968
push 0
push 0
call esi
mov dword [0x4c9f2c], eax
jmp 0x408d3b
mov ecx, dword [0x4c9f34]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408d02
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408c92
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x408c31
mov edx, dword [0x4c9f34]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call edi
mov dword [0x4c9f34], 0
call fcn.00409240
jmp 0x408ca2
test byte [esp + 0x1e], 1
je 0x408d3b
mov eax, dword [0x4c9f2c]
push eax
call edi
mov dword [0x4c9f2c], 0
cmp dword [0x4c963c], 0
je 0x408d5d
test byte [esp + 0x1e], 2
jne 0x408d77
push 0x4a497c
push 0
push 0
call esi
mov dword [0x4c9f30], eax
jmp 0x408d77
test byte [esp + 0x1e], 2
je 0x408d77
mov ecx, dword [0x4c9f30]
push ecx
call edi
mov dword [0x4c9f30], 0
cmp byte [esp + 0x1f], 0
je 0x408db0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push 0x4a4990
mov dword [0x4c58e0], 0
call fcn.00479a00
add esp, 0x18
mov dword [0x4c58e0], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a830
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x100c
call fcn.00499d50
cmp byte [0x4cc364], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
push edi
jne 0x40a9a5
cmp dword [0x4c9f4c], 0
jne 0x40a866
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4c9f4c], eax
mov ebx, 1
add dword [0x4cc368], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x4cc368]
mov esi, dword [0x4c58f4]
mov ecx, eax
sub ecx, dword [0x4c9f4c]
mov dword [0x4c9f50], eax
cmp edx, dword [0x4c58f0]
jbe 0x40a89c
cmp ecx, esi
jb 0x40a900
xor edx, edx
cmp ecx, esi
jbe 0x40a8b9
mov dword [0x4cc368], 0
mov dword [0x4c9f4c], eax
test edx, edx
jne 0x40a9a5
mov esi, dword [esp + 0x1020]
mov cl, byte [esi + 0x11]
push 0
mov byte [0x4cc132], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push 0x4a28cc
push ecx
xor eax, eax
xor edx, edx
call fcn.0046d480
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40a974
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
push ecx
push edx
push 0x4a52e0
mov esi, 0x800
lea edi, [esp + 0x24]
call fcn.00474fc0
add esp, 0xc
call fcn.004097b0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4cc364], bl
mov dword [0x4c58e0], 0
call fcn.00479a00
add esp, 0x18
cmp eax, 7
jne 0x40a95b
push 0
push 0x4cb680
xor eax, eax
mov edx, ebx
call fcn.00416960
mov eax, dword [0x4c9f50]
mov dword [0x4c58e0], ebx
mov byte [0x4cc364], 0
mov edx, ebx
jmp 0x40a8a2
cmp byte [ebp + 0x1b], 0
je 0x40a9a5
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40a9a5
movzx edx, word [esi]
mov eax, dword [0x4c9508]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
Function at 0x40f540
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4caf70], 2
push ebx
sete bl
push esi
mov esi, ecx
test bl, bl
je 0x40f57f
movzx eax, ax
lea ecx, [esp + 0x28]
test eax, 0xffffff80
je 0x40f571
mov ecx, 0x30
mov word [esp + 0x28], cx
lea ecx, [esp + 0x2a]
push 0xa
push ecx
push eax
call fcn.0048e2d5
add esp, 0xc
jmp 0x40f586
movzx edx, ax
mov dword [esp + 8], edx
test esi, esi
jle 0x40f642
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
cmp dword [0x4caf70], 0
jne 0x40f5f3
call ebp
sub eax, dword [0x4cc164]
mov ecx, dword [0x4c590c]
cmp eax, dword [ecx + 0xd8]
jbe 0x40f5f3
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40f5ec
push 1
push 0xffffffffffffffff
mov dword [0x4c58e0], 0
call fcn.00401360
add esp, 8
mov dword [0x4c58e0], 1
call ebp
mov dword [0x4cc164], eax
test bl, bl
je 0x40f602
lea edi, [esp + 0x30]
call fcn.0040f650
jmp 0x40f613
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push eax
call fcn.0040dcd0
add esp, 4
cmp dword [0x4caf70], 2
jne 0x40f627
mov ecx, dword [0x4c590c]
mov eax, dword [ecx + 0x60]
jmp 0x40f630
mov edx, dword [0x4c590c]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00411500
add esp, 4
dec esi
jne 0x40f596
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret

Function at 0x40f650
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4caf70], 0
push esi
je 0x40f665
mov al, byte [0x4c8426]
jmp 0x40f75a
cmp dword [0x4c9638], 0
je 0x40f678
mov al, byte [0x4c9505]
jmp 0x40f75a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ebx
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f694
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f6a8
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f6bc
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f6d0
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f6e4
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f6f8
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f709
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f71a
or bl, 0x80
cmp dword [0x4c9638], 0
je 0x40f757
mov al, bl
not al
and al, byte [0x4c9505]
je 0x40f757
mov cl, byte [0x4c9507]
not al
and byte [0x4c9505], al
and byte [0x4c9506], al
and cl, al
mov al, cl
mov byte [0x4c9507], cl
mov ecx, 0x4c9528
call fcn.00412060
mov al, bl
pop ebx
mov byte [esp + 4], al
mov ecx, dword [esp + 4]
push 1
and al, 0xc4
push 0
or al, 4
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44f
call fcn.00411900
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x40f7b7
cmp ax, 0x39
ja 0x40f7b7
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.0040fa50
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x40f788
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.0040fa50
add esp, 0x18
pop esi
pop ecx
ret
Function at 0x410d90
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
cmp eax, 0x80000000
je 0x410f71
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x410f71
mov edx, dword [0x4caf70]
cmp edx, 2
jne 0x410e05
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00411150
add esp, 4
call fcn.004115e0
cmp byte [esp + 0x24], 0
je 0x410f71
mov dword [esi], SysReAllocString
mov dword [ebp], SysStringLen
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x410e5a
cmp edx, 1
jne 0x410e40
cmp dword [0x4c8428], 0x80000000
jne 0x410e2e
push 0x4c8428
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4c8428]
add dword [esi], eax
mov ecx, dword [0x4c842c]
add dword [ebp], ecx
jmp 0x410e7f
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add dword [esi], eax
add dword [ebp], ecx
jmp 0x410e7f
mov edx, dword [0x4c590c]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x410e7f
push eax
mov edi, ebp
mov ebx, esi
call fcn.00476360
add esp, 4
cmp dword [0x4caf70], 1
jne 0x410e98
mov eax, dword [esi]
mov dword [0x4c8428], eax
mov ecx, dword [ebp]
mov dword [0x4c842c], ecx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov edi, eax
call ebx
mov ecx, dword [esi]
mov ebx, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv edi
xor edx, edx
test ecx, ecx
setns dl
lea eax, [eax + edx*2 - 1]
mov dword [esi], eax
mov ecx, dword [ebp]
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
xor edx, edx
test ecx, ecx
setns dl
lea edx, [edx + edx - 1]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [ebp], edx
test eax, eax
js 0x410f5b
cmp eax, 0x64
jle 0x410ef3
mov dword [esp + 0x20], 0x64
jmp 0x410ef7
test eax, eax
je 0x410f5b
cmp dword [0x4caf70], 1
je 0x410f5b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, ecx
shl eax, 0x10
cdq
idiv ebx
mov esi, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
setns dl
mov ebx, eax
lea ebx, [ebx + edx*2 - 1]
mov eax, esi
shl eax, 0x10
cdq
idiv edi
mov ecx, eax
xor eax, eax
test esi, esi
setns al
lea ecx, [ecx + eax*2 - 1]
mov eax, ebx
call fcn.00454ec0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
push 0x8001
xor ecx, ecx
call fcn.00410f80
add esp, 4
call fcn.004115e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4113b0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4caf70], 1
push ebx
jne 0x411477
xor bl, bl
cmp dword [0x4c9638], 0
mov byte [esp + 8], bl
je 0x4113d6
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4c963c], 0
je 0x4113e6
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x411401
mov al, byte [0x4c8425]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.00408b70
add esp, 8
mov edx, dword [0x4c843c]
mov eax, dword [0x4c8438]
push 0x1c
push edx
push eax
call dword [0x4cc340]
test bl, bl
je 0x4114f5
mov cl, byte [0x4c8425]
and cl, bl
test cl, 1
je 0x41145e
push 1
call fcn.00411f60
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4c9507]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4c9507], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4c8250], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.00408b70
mov eax, dword [0x4c9500]
push 0
push eax
push 0x40f7e0
push 1
mov dword [0x4c8430], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4c9640], eax
test eax, eax
je 0x4114f5
mov byte [0x4c9628], 1
push 1
push 0x8000012f
mov dword [0x4c58e0], 0
call fcn.00401360
add esp, 8
cmp dword [0x4c9640], 0
mov dword [0x4c58e0], 1
jne 0x4114a6
mov eax, dword [0x4c843c]
mov ecx, dword [0x4c8438]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4c9628], 0
jne 0x4114f5
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x4116d0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4c9f1c]
test eax, eax
je 0x4117e8
mov ecx, dword [0x4c9f20]
imul ecx, ecx, 0xd4
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 6], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov ecx, 0x69
mov word [eax + 2], dx
push esi
mov word [eax + 4], cx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, eax
sub edx, dword [0x4cc1c4]
mov dword [0x4c9f24], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x41172b
fadd dword [0x4bfac8]
fdiv qword [0x4bfac0]
mov ecx, dword [0x4c9f20]
mov edx, dword [0x4c9f1c]
mov dword [0x4cc1c4], eax
imul ecx, ecx, 0xd4
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [ecx + edx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x411798
mov eax, dword [0x4c9f20]
imul eax, eax, 0xd4
cmp esi, dword [0x4c9f28]
je 0x411789
mov ecx, dword [0x4c9f1c]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4117c4
mov edx, dword [0x4c9f1c]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x4117c4
mov ecx, dword [0x4c9f20]
mov edx, dword [0x4c9f1c]
imul ecx, ecx, 0xd4
mov eax, 0x4a4910
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4117b5
mov eax, dword [0x4c9f20]
inc eax
mov dword [0x4c9f28], esi
mov dword [0x4c9f20], eax
pop esi
cmp eax, dword [0x4c58e4]
jl 0x4117e8
mov dword [0x4c9f20], 0
pop ecx
ret
Function at 0x4117f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp ebp, 1
je 0x41181b
cmp ebp, 2
jne 0x4118f1
cmp esi, ebp
je 0x4118f1
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ecx, 0x8000
test cx, ax
je 0x41184c
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.0040fa50
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.0040fa50
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4cb628]
sete al
mov byte [esp + 0x10], al
test al, al
je 0x4118a2
push 1
push 0xffffffffffffffff
mov dword [0x4c58e0], 0
call fcn.00401360
add esp, 8
mov dword [0x4c58e0], 1
cmp bl, 0x14
jne 0x4118f1
cmp ebp, 2
jne 0x4118f1
push 0x14
call edi
test al, 1
je 0x4118f1
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.0040fa50
add esp, 0x18
cmp byte [esp + 0x10], 0
je 0x4118f1
push 1
push 0xffffffffffffffff
mov dword [0x4c58e0], 0
call fcn.00401360
add esp, 8
mov dword [0x4c58e0], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x411f60
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4c9638], 0
je 0x411f76
cmp byte [esp + 4], 0
jne 0x411f76
mov al, byte [0x4c9505]
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x411f93
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x411fa7
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x411fbb
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x411fcf
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x411fe3
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x411ff7
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x412008
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x412019
or bl, 0x80
cmp dword [0x4c9638], 0
je 0x412056
mov al, bl
not al
and al, byte [0x4c9505]
je 0x412056
mov cl, byte [0x4c9507]
not al
and byte [0x4c9505], al
and byte [0x4c9506], al
and cl, al
mov al, cl
mov byte [0x4c9507], cl
mov ecx, 0x4c9528
call fcn.00412060
pop esi
mov al, bl
pop ebx
ret

Function at 0x4124f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x41252e
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x41252e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41252e
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop edi
pop esi
add esp, 0x34
ret