joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b920
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
lea eax, [esp + 4]
push esi
push edi
mov edi, ecx
push 0xa
push eax
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4cf0c4
lea esi, [eax + 1]
push esi
call fcn.0040d1f0
add esp, 0x14
add esi, eax
lea eax, [esp + 0xc]
sub esi, eax
push 0
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40b9d5
cmp dword [edi + 0x34], 0
jne 0x40b9d5
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040c8c0
test eax, eax
jne 0x40b9d5
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
mov al, byte [0x4cdc40]
push 0
mov byte [edx + ecx], al
inc dword [edi + 0x30]
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40b9d5
mov dword [edi + 0x30], 0
xor eax, eax
mov dword [edi + 0x34], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x4f8ae8
call fcn.0040bf20
push 0x10014
push dword [0x4fc658]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x4f99e8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40ba0e
push 0
push 4
mov ecx, 0x4fbb78
call fcn.0042dfd0
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c670
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 8], ebp
test esi, esi
je 0x40c7e0
cmp byte [esp + 0x18], 0
jne 0x40c6b8
lea ecx, [esi - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 8]
mov ecx, ebp
shr edx, 1
lea eax, [eax + edx*4]
add eax, 5
push eax
call fcn.0040c8c0
test eax, eax
je 0x40c6b8
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c7df
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
add ebx, dword [ebp]
mov dword [esp + 0x1c], ebx
cmp esi, 0xffffffff
jne 0x40c6e9
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40c6e0
sub esi, ecx
cmp esi, 2
jbe 0x40c77c
lea ecx, [esi - 3]
mov eax, 0xaaaaaaab
mul ecx
add ebx, 2
mov eax, edx
shr eax, 1
inc eax
mov dword [esp + 0x20], eax
mov ebp, eax
lea edx, [eax*4]
movzx ecx, byte [edi]
lea ebx, [ebx + 4]
movzx eax, byte [edi + 1]
sub esi, 3
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
add edi, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 6], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 5], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 4], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 3], al
sub ebp, 1
jne 0x40c711
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
test esi, esi
je 0x40c7d7
movzx ecx, byte [edi]
shl ecx, 0x10
cmp esi, 1
jbe 0x40c794
movzx eax, byte [edi + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ebx + 1], al
cmp esi, 1
jbe 0x40c7c9
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40c7cb
mov al, 0x3d
mov byte [edx + ebx + 2], al
mov byte [edx + ebx + 3], 0x3d
add edx, 4
mov byte [edx + ebx], 0
add dword [ebp + 8], edx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x40cf30
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
push 0
push 0
push dword [esp + 0x14]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x40cf88
mov edi, dword [esi + 4]
test edi, edi
je 0x40cfb0
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40cf76
mov eax, dword [edi + 4]
test eax, eax
je 0x40cf6b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x14
push edi
call fcn.004ca9d4
add esp, 8
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov byte [esi + 8], 0
pop esi
ret 4
push 0
mov ecx, esi
call fcn.0040d3a0
mov ecx, dword [esi + 4]
push edi
call fcn.0040d210
mov eax, dword [esi + 4]
push edi
push dword [eax]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40db70
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x4fc670], 0
push ebx
push esi
push edi
je 0x40dc19
mov edi, dword fs:[0x24]
cmp dword [0x4fb2ec], edi
je 0x40db9e
push dword [0x4fbb60]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esp + 0x18]
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40dba7
sub esi, ecx
sar esi, 1
cmp word [ebx], ax
je 0x40dc22
lea eax, [esp + 0xf]
mov ecx, 0x4fbb78
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.0043ee20
test eax, eax
jne 0x40dbf4
cmp byte [esp + 0xf], al
mov ecx, 0x4fbb78
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.0043f380
test eax, eax
je 0x40dc22
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004b3f70
cmp dword [0x4fb2ec], edi
je 0x40dc19
push dword [0x4fbb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x4fb2ec], edi
je 0x40dc36
push dword [0x4fbb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x4136c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4f9a08], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4f9a04], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x4136fd
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x4138fa
test al, al
jne 0x41373e
test bh, bh
jne 0x41373e
push 0x4fa4fc
push 0
push 0
push 0x413970
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4fc894], eax
test eax, eax
je 0x4137f6
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4fa4fc]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x413775
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x413750
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x413803
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x4137e1
cmp dword [esp + 0x24], 0
je 0x41381d
mov bh, 1
call fcn.00413cd0
test al, al
jne 0x41381d
cmp byte [esp + 0x13], al
jne 0x4138cd
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4fc894]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x41382a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x41381d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413787
call fcn.00413cf0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x4137c6
call fcn.00413cd0
test al, al
je 0x4138c9
jmp 0x4137e1
cmp byte [esp + 0x13], 0
jne 0x4138c9
jmp 0x413845
push dword [0x4fc894]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fc894], 0
call fcn.00413cf0
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x4f9a08], 0
je 0x413870
test al, al
jne 0x41388a
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4fc88c], eax
jmp 0x41388a
test al, al
je 0x41388a
push dword [0x4fc88c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fc88c], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4f9a04], 0
je 0x4138af
test al, al
jne 0x4138c9
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4fc890], eax
jmp 0x4138c9
test al, al
je 0x4138c9
push dword [0x4fc890]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fc890], 0
test bh, bh
je 0x4138fa
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4f70ec], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.004b5e40
add esp, 8
mov dword [0x4f70ec], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414f70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1000
call fcn.004cb9b0
cmp byte [0x4fdaf4], 0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x41516f
cmp dword [0x4fa564], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x414fa3
call edi
mov dword [0x4fa564], eax
inc dword [0x4fdaf0]
call edi
mov esi, dword [0x4fdaf0]
mov ecx, eax
sub ecx, dword [0x4fa564]
mov edx, dword [0x4f8350]
mov dword [0x4fa560], eax
cmp esi, dword [0x4f8354]
jbe 0x415098
cmp ecx, edx
jae 0x41509a
push ecx
push esi
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.004af890
mov dx, word [0x4fa55c]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x41502a
mov eax, dword [0x4fa54c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x415022
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x415010
mov dx, word [0x4fa55c]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x415001
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4fdaf4], 1
mov edx, 4
mov dword [0x4f70ec], 0
lea ecx, [esp + 0x18]
call fcn.004b5e40
add esp, 8
cmp eax, 7
jne 0x415066
push 0
push 4
mov ecx, 0x4fbb78
call fcn.0042dfd0
mov eax, dword [0x4fa560]
mov dword [0x4f70ec], 1
mov byte [0x4fdaf4], 0
mov dword [0x4fdaf0], 0
mov dword [0x4fa564], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
cmp ecx, edx
jbe 0x4150ab
mov dword [0x4fdaf0], 0
mov dword [0x4fa564], eax
mov esi, dword [esp + 0x1014]
mov al, byte [ebx + 0xf]
mov byte [0x4fc656], al
inc byte [esi + 0x16]
mov ecx, dword [0x4f8aec]
mov ebp, dword [0x4fc5e4]
cmp ecx, dword [0x4f8af0]
jne 0x4150dc
call fcn.00406c30
mov ecx, dword [0x4f8aec]
cmp ecx, dword [0x4f8ae8]
jb 0x4150f1
mov eax, dword [0x4fc1c4]
mov dword [ecx], eax
mov ecx, dword [0x4f8aec]
add ecx, 0xc
push 0
push 0
mov dword [0x4f8aec], ecx
push 0
mov dword [ecx], 0
mov dword [ecx + 4], ebp
mov dword [ecx + 8], 0
mov ecx, dword [esi]
mov edx, ecx
push 0
push str.call
call fcn.0049bba0
sub dword [0x4f8aec], 0xc
add esp, 0x14
dec byte [esi + 0x16]
test eax, eax
jne 0x415141
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
cmp byte [esi + 0x1b], 0
je 0x41516f
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x41516f
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4f99e8]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
Function at 0x41ab80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov bl, byte [ebp + 0xc]
mov bh, cl
or byte [ebp + 8], bl
mov al, bh
dec al
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x41aba5
cmp bh, 3
jne 0x41abad
mov al, bh
add al, 0x66
cmp al, 5
ja 0x41abb4
mov byte [esp + 0xf], 1
jmp 0x41abb9
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41acec
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4fc928], 0
jne 0x41ac36
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f70f4]
sub eax, dword [0x4fc694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41ac3c
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41ac2b
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fc694], eax
mov ecx, dword [0x4f70f4]
cmp byte [ebp + 0x18], 0
jne 0x41ac90
mov al, byte [ecx + 0xf6]
test al, al
je 0x41ac58
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41ac5d
mov esi, 0xffc3d44f
cmp dword [0x4fc928], 0
je 0x41ac6d
mov al, byte [0x4fc91c]
jmp 0x41ac74
xor cl, cl
call fcn.0041da40
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041d310
mov ecx, dword [0x4f70f4]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41acba
test edi, edi
jne 0x41acba
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xef]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.0041c0d0
add esp, 0x14
jmp 0x41acdd
movzx eax, byte [ecx + 0xf6]
mov dl, bh
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0041b1a0
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x41abd0
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x41ad28
cmp dword [0x4fc928], 0
je 0x41ad02
mov al, byte [0x4fc91c]
jmp 0x41ad09
xor cl, cl
call fcn.0041da40
not bl
and bl, al
and bl, 0xcc
je 0x41ad28
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041d310
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ad30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x4fc928]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x41ad7c
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x41ad5d
mov eax, 0x30
mov word [esp + 0x2c], ax
test ecx, ecx
lea eax, [esp + 0x2c]
lea edi, [esp + 0x2e]
push 0xa
cmovne eax, edi
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov eax, dword [0x4fc928]
add esp, 0xc
test esi, esi
jle 0x41ae2e
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41ade6
call edi
mov ecx, dword [0x4f70f4]
sub eax, dword [0x4fc694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41ade6
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x41addf
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
call edi
mov dword [0x4fc694], eax
cmp byte [esp + 0x13], 0
je 0x41adf8
lea ecx, [esp + 0x30]
call fcn.0041ae40
jmp 0x41ae03
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.004195d0
cmp dword [0x4fc928], 2
mov eax, dword [0x4f70f4]
jne 0x41ae16
mov ecx, dword [eax + 0x60]
jmp 0x41ae19
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
sub esi, 1
je 0x41ae2d
mov eax, dword [0x4fc928]
jmp 0x41ad91
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x41ccd0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x4fc928], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41ce48
xor al, al
mov ebp, 1
cmp dword [0x4f9a08], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x4f9a04], 0
mov dword [esp + 0x10], ebx
je 0x41cd1b
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41cd30
mov cl, byte [0x4fc91d]
mov dl, 1
not cl
and cl, bl
call fcn.004136c0
mov eax, dword [0x4fc910]
xor edx, edx
mov ecx, dword [0x4fa568]
push edi
xor edi, edi
test eax, eax
je 0x41cde7
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41cdc5
cmp word [esi + ecx + 4], 0
jne 0x41cdc5
cmp word [esi + ecx + 6], 0
jne 0x41cdc5
push 0x1c
lea eax, [ebx + ecx]
push eax
mov eax, edi
sub eax, edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4fa568]
mov dword [0x4f70ec], 0
cmp dword [0x4fb2ec], eax
je 0x41cda3
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41cda3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41cdae
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.00401830
mov eax, dword [0x4fc910]
lea edx, [edi + 1]
mov ecx, dword [0x4fa568]
lea ebx, [esi + 0x1c]
mov dword [0x4f70ec], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41cd50
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41cde7
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41cdeb
push 0x1c
push ecx
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
test bl, bl
je 0x41cecb
mov al, byte [0x4fc91d]
and al, bl
test al, 1
je 0x41ce39
mov cl, 1
call fcn.0041da40
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4fa3dc]
or dl, bl
mov byte [0x4fa3dc], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4f9bc0], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.004136c0
push 0
push 0
mov dword [0x4fc918], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x41aed0
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4f99c8], eax
test eax, eax
je 0x41cecc
mov byte [0x4f9a9f], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x4f70ec], 0
mov ecx, 0x8000012f
call fcn.00401830
cmp dword [0x4f99c8], 0
mov dword [0x4f70ec], ebp
jne 0x41ce80
mov eax, dword [0x4f8b58]
mov byte [0x4f9a9f], 0
mov ecx, dword [eax]
mov eax, dword [0x4fc910]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41cecc
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebp
add esp, 0xc
ret
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x41d0f0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4f9a00]
test edi, edi
je 0x41d1fa
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4f9a78], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4f9a00]
mov ecx, edx
mov dword [0x4f9a74], edx
sub ecx, dword [0x4fc6f4]
mov dword [0x4fc6f4], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4f1170]
imul ecx, dword [0x4f9a78], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4f10ac]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4f9a00]
test esi, esi
je 0x41d1c5
cmp esi, dword [0x4f9a70]
je 0x41d1b0
imul edx, dword [0x4f9a78], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x4f9a78]
jmp 0x41d1e1
mov edx, dword [0x4f9a78]
imul ecx, edx, 0xd4
xor edi, edi
mov word [ecx + eax + 0xc], di
jmp 0x41d1e1
mov edx, dword [0x4f9a78]
imul ecx, edx, 0xd4
mov dword [ecx + eax + 0xc], 0x2f004e
mov dword [ecx + eax + 0x10], 0x41
inc edx
mov dword [0x4f9a70], esi
xor eax, eax
cmp edx, dword [0x4f70f8]
pop esi
cmovge edx, eax
mov dword [0x4f9a78], edx
pop edi
ret

Function at 0x41d200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov bl, cl
push edi
movzx ebp, bl
mov edi, edx
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor esi, 0xffffffff
and esi, 1
inc esi
cmp edi, 1
je 0x41d22a
cmp edi, 2
jne 0x41d2fe
cmp esi, edi
je 0x41d2fe
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x41d25a
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0041b1a0
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4fb2ec]
sete bh
jne 0x41d2af
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
cmp bl, 0x14
jne 0x41d2fe
cmp edi, 2
jne 0x41d2fe
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41d2fe
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.0041b1a0
add esp, 0x10
test bh, bh
je 0x41d2fe
lea edx, [edi - 1]
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41da40
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4f9a08], 0
je 0x41da55
test cl, cl
jne 0x41da55
mov al, byte [0x4fa3de]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0xa0
call esi
mov bx, ax
shr bx, 0xb
push 0xa1
and bl, 0x10
call esi
mov cl, bl
mov edi, 0x8000
or cl, 0x20
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa2
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 1
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmove ebx, ecx
call esi
mov cl, bl
or cl, 2
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa4
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 4
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmove ebx, ecx
call esi
mov cl, bl
or cl, 8
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0x5b
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 0x40
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmove ebx, ecx
call esi
mov cl, bl
or cl, 0x80
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dword [0x4f9a08], 0
mov dword [esp + 0xc], edx
je 0x41db92
mov cl, byte [0x4fa3de]
mov bl, dl
not bl
and bl, cl
je 0x41db92
mov dl, byte [0x4fa3dc]
mov al, bl
not al
and byte [0x4fa3dd], al
and cl, al
and dl, al
mov byte [0x4fa3de], cl
mov ecx, 0x4fa3e0
mov byte [0x4fa3dc], dl
call fcn.0041dba0
mov ecx, dword [0x4fa52c]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41db92
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4fa52c], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret