joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9b0
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 fcn.004ce370
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004cbe60
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4f186c
lea esi, [eax + 1]
push esi
call fcn.0040d270
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 0x40ba63
cmp dword [edi + 0x34], 0
jne 0x40ba63
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040c930
test eax, eax
jne 0x40ba63
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
mov al, byte [0x4f03e8]
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 0x40ba63
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, 0x51d380
call fcn.0040bfd0
push 0x10014
push dword [0x521748]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x51ead8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40ba9c
push 0
push 4
mov ecx, 0x520c68
call fcn.0042dff0
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c6f0
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 0x40c860
cmp byte [esp + 0x18], 0
jne 0x40c738
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.0040c930
test eax, eax
je 0x40c738
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c85f
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
add ebx, dword [ebp]
mov dword [esp + 0x1c], ebx
cmp esi, 0xffffffff
jne 0x40c769
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40c760
sub esi, ecx
cmp esi, 2
jbe 0x40c7fc
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 0x40c791
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
test esi, esi
je 0x40c857
movzx ecx, byte [edi]
shl ecx, 0x10
cmp esi, 1
jbe 0x40c814
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 0x40c849
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40c84b
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 0x40cfc0
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 0x40d017
mov edi, dword [esi + 4]
test edi, edi
je 0x40d03f
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40d005
mov eax, dword [edi + 4]
test eax, eax
je 0x40cffa
push eax
call fcn.004cfed0
add esp, 4
push 0x14
push edi
call fcn.004ca825
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.0040d420
mov ecx, dword [esi + 4]
push edi
call fcn.0040d290
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 0x40dc00
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x521760], 0
push ebx
push esi
push edi
je 0x40dca9
mov edi, dword fs:[0x24]
cmp dword [0x5203dc], edi
je 0x40dc2e
push dword [0x520c50]
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 0x40dc37
sub esi, ecx
sar esi, 1
cmp word [ebx], ax
je 0x40dcb2
lea eax, [esp + 0xf]
mov ecx, 0x520c68
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.0043efd0
test eax, eax
jne 0x40dc84
cmp byte [esp + 0xf], al
mov ecx, 0x520c68
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.0043f510
test eax, eax
je 0x40dcb2
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004b3e10
cmp dword [0x5203dc], edi
je 0x40dca9
push dword [0x520c50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x5203dc], edi
je 0x40dcc6
push dword [0x520c50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x413710
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 [0x51eaf8], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x51eaf4], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x41374d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x41394a
test al, al
jne 0x41378e
test bh, bh
jne 0x41378e
push 0x51f5ec
push 0
push 0
push 0x4139c0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x521984], eax
test eax, eax
je 0x413846
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 [0x51f5ec]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x4137c5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4137a0
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 0x413853
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x413831
cmp dword [esp + 0x24], 0
je 0x41386d
mov bh, 1
call fcn.00413d20
test al, al
jne 0x41386d
cmp byte [esp + 0x13], al
jne 0x41391d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x521984]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x41387a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x41386d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4137d7
call fcn.00413d40
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 0x413816
call fcn.00413d20
test al, al
je 0x413919
jmp 0x413831
cmp byte [esp + 0x13], 0
jne 0x413919
jmp 0x413895
push dword [0x521984]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x521984], 0
call fcn.00413d40
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x51eaf8], 0
je 0x4138c0
test al, al
jne 0x4138da
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x52197c], eax
jmp 0x4138da
test al, al
je 0x4138da
push dword [0x52197c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x52197c], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x51eaf4], 0
je 0x4138ff
test al, al
jne 0x413919
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x521980], eax
jmp 0x413919
test al, al
je 0x413919
push dword [0x521980]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x521980], 0
test bh, bh
je 0x41394a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x51b984], 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.004b5cd0
add esp, 8
mov dword [0x51b984], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414fe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1000
call fcn.004e88a0
cmp byte [0x522be4], 0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x4151df
cmp dword [0x51f654], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x415013
call edi
mov dword [0x51f654], eax
inc dword [0x522be0]
call edi
mov esi, dword [0x522be0]
mov ecx, eax
sub ecx, dword [0x51f654]
mov edx, dword [0x51cbe8]
mov dword [0x51f650], eax
cmp esi, dword [0x51cbec]
jbe 0x415108
cmp ecx, edx
jae 0x41510a
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.004af740
mov dx, word [0x51f64c]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x41509a
mov eax, dword [0x51f63c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x415092
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x415080
mov dx, word [0x51f64c]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x415071
push 0
push 0
xorps xmm3, xmm3
mov byte [0x522be4], 1
mov edx, 4
mov dword [0x51b984], 0
lea ecx, [esp + 0x18]
call fcn.004b5cd0
add esp, 8
cmp eax, 7
jne 0x4150d6
push 0
push 4
mov ecx, 0x520c68
call fcn.0042dff0
mov eax, dword [0x51f650]
mov dword [0x51b984], 1
mov byte [0x522be4], 0
mov dword [0x522be0], 0
mov dword [0x51f654], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
cmp ecx, edx
jbe 0x41511b
mov dword [0x522be0], 0
mov dword [0x51f654], eax
mov esi, dword [esp + 0x1014]
mov al, byte [ebx + 0xf]
mov byte [0x521746], al
inc byte [esi + 0x16]
mov ecx, dword [0x51d384]
mov ebp, dword [0x5216d4]
cmp ecx, dword [0x51d388]
jne 0x41514c
call fcn.00406d30
mov ecx, dword [0x51d384]
cmp ecx, dword [0x51d380]
jb 0x415161
mov eax, dword [0x5212b4]
mov dword [ecx], eax
mov ecx, dword [0x51d384]
add ecx, 0xc
push 0
push 0
mov dword [0x51d384], 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.0049bbf0
sub dword [0x51d384], 0xc
add esp, 0x14
dec byte [esi + 0x16]
test eax, eax
jne 0x4151b1
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
cmp byte [esi + 0x1b], 0
je 0x4151df
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x4151df
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x51ead8]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
Function at 0x41ab90
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 0x41abb5
cmp bh, 3
jne 0x41abbd
mov al, bh
add al, 0x66
cmp al, 5
ja 0x41abc4
mov byte [esp + 0xf], 1
jmp 0x41abc9
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41acfc
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x521a18], 0
jne 0x41ac46
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x51b98c]
sub eax, dword [0x521784]
cmp eax, dword [ecx + 0xd8]
jbe 0x41ac4c
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 0x41ac3b
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x521784], eax
mov ecx, dword [0x51b98c]
cmp byte [ebp + 0x18], 0
jne 0x41aca0
mov al, byte [ecx + 0xf6]
test al, al
je 0x41ac68
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41ac6d
mov esi, 0xffc3d44f
cmp dword [0x521a18], 0
je 0x41ac7d
mov al, byte [0x521a0c]
jmp 0x41ac84
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 [0x51b98c]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41acca
test edi, edi
jne 0x41acca
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 0x41aced
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.0041b1b0
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x41abe0
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x41ad38
cmp dword [0x521a18], 0
je 0x41ad12
mov al, byte [0x521a0c]
jmp 0x41ad19
xor cl, cl
call fcn.0041da40
not bl
and bl, al
and bl, 0xcc
je 0x41ad38
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 0x41ad40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x521a18]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x41ad8b
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x41ad6d
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 fcn.004ce3a5
mov eax, dword [0x521a18]
add esp, 0xc
test esi, esi
jle 0x41ae3d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x41adf5
call edi
mov ecx, dword [0x51b98c]
sub eax, dword [0x521784]
cmp eax, dword [ecx + 0xd8]
jbe 0x41adf5
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x41adee
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 1
call edi
mov dword [0x521784], eax
cmp byte [esp + 0x13], 0
je 0x41ae07
lea ecx, [esp + 0x30]
call fcn.0041ae50
jmp 0x41ae12
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.004195f0
cmp dword [0x521a18], 2
mov eax, dword [0x51b98c]
jne 0x41ae25
mov ecx, dword [eax + 0x60]
jmp 0x41ae28
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
sub esi, 1
je 0x41ae3c
mov eax, dword [0x521a18]
jmp 0x41ada0
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 [0x521a18], 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 [0x51eaf8], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x51eaf4], 0
mov dword [esp + 0x10], ebx
je 0x41cd1b
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41cd30
mov cl, byte [0x521a0d]
mov dl, 1
not cl
and cl, bl
call fcn.00413710
mov eax, dword [0x521a00]
xor edx, edx
mov ecx, dword [0x51f658]
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 [0x51f658]
mov dword [0x51b984], 0
cmp dword [0x5203dc], 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.00401860
mov eax, dword [0x521a00]
lea edx, [edi + 1]
mov ecx, dword [0x51f658]
lea ebx, [esi + 0x1c]
mov dword [0x51b984], 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 [0x521a0d]
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 [0x51f4cc]
or dl, bl
mov byte [0x51f4cc], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x51ecb0], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.00413710
push 0
push 0
mov dword [0x521a08], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x41aee0
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x51eab8], eax
test eax, eax
je 0x41cecc
mov byte [0x51eb8f], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x51b984], 0
mov ecx, 0x8000012f
call fcn.00401860
cmp dword [0x51eab8], 0
mov dword [0x51b984], ebp
jne 0x41ce80
mov eax, dword [0x51d3f0]
mov byte [0x51eb8f], 0
mov ecx, dword [eax]
mov eax, dword [0x521a00]
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 [0x51eaf0]
test edi, edi
je 0x41d1fa
mov ax, word [esp + 8]
push esi
imul esi, dword [0x51eb68], 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 [0x51eaf0]
mov ecx, edx
mov dword [0x51eb64], edx
sub ecx, dword [0x5217e4]
mov dword [0x5217e4], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x514b70]
imul ecx, dword [0x51eb68], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x514aa4]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x51eaf0]
test esi, esi
je 0x41d1c5
cmp esi, dword [0x51eb60]
je 0x41d1b0
imul edx, dword [0x51eb68], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x51eb68]
jmp 0x41d1e1
mov edx, dword [0x51eb68]
imul ecx, edx, 0xd4
xor edi, edi
mov word [ecx + eax + 0xc], di
jmp 0x41d1e1
mov edx, dword [0x51eb68]
imul ecx, edx, 0xd4
mov dword [ecx + eax + 0xc], 0x2f004e
mov dword [ecx + eax + 0x10], 0x41
inc edx
mov dword [0x51eb60], esi
xor eax, eax
cmp edx, dword [0x51b990]
pop esi
cmovge edx, eax
mov dword [0x51eb68], 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.0041b1b0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0041b1b0
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x5203dc]
sete bh
jne 0x41d2af
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 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.0041b1b0
add esp, 0x10
test bh, bh
je 0x41d2fe
lea edx, [edi - 1]
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 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 [0x51eaf8], 0
je 0x41da55
test cl, cl
jne 0x41da55
mov al, byte [0x51f4ce]
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 [0x51eaf8], 0
mov dword [esp + 0xc], edx
je 0x41db92
mov cl, byte [0x51f4ce]
mov bl, dl
not bl
and bl, cl
je 0x41db92
mov dl, byte [0x51f4cc]
mov al, bl
not al
and byte [0x51f4cd], al
and cl, al
and dl, al
mov byte [0x51f4ce], cl
mov ecx, 0x51f4d0
mov byte [0x51f4cc], dl
call fcn.0041dba0
mov ecx, dword [0x51f61c]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41db92
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x51f61c], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret