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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405392
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4d86a0]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x405400
mov eax, dword [0x4d4a08]
cmp eax, 0xffffffff
je 0x4053d1
test eax, eax
je 0x405416
call esi
mov edx, dword [0x4d4a08]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x405416
push 1
push 0x8000012f
mov dword [0x4d4a0c], 0
call fcn.004014c0
mov eax, dword [0x4d86a0]
add esp, 8
push eax
mov dword [0x4d4a0c], 1
call ebx
test eax, eax
je 0x4053b2
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 0x405763
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4057d8
cmp word [ebx + 8], 2
jne 0x4057b8
cmp word [ebx + 0xa], 4
jne 0x4057b8
mov edi, dword [ebx + 0xc]
jmp 0x4057b2
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004056fc
mov dword [esi], eax
test eax, eax
je 0x4057d3
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x405796
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0049af8e
add esp, 0x10
xor eax, eax
jmp 0x4057fe
push 8
pop eax
jmp 0x4057fe
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4057fe
dec ecx
je 0x4057f9
dec ecx
je 0x4057f2
dec ecx
jmp 0x4057fe
mov eax, 0x2afb
jmp 0x4057fe
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405dd2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4d71c0], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40595d
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x405c1e
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00405924
jne 0x405f2c
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405f22
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049ad1a
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049ad79
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405e8f
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405e8b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x405ee4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049ad1a
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049ad79
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405f22
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405ee0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x405f22
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x405f01
inc esi
cmp esi, 3
jl 0x405ee6
jmp 0x405f0a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x405f22
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4d43b8], ecx
add eax, 8
cmp eax, 0x18
jl 0x405f10
mov dword [0x4d71c0], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4d43b8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4086d2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor ebx, ebx
mov eax, dword [edi + 0x20]
cmp ebx, eax
jae 0x4086f0
mov ecx, dword [edi + 0x18]
cmp byte [ecx + ebx], 0
je 0x408736
inc ebx
cmp ebx, eax
jb 0x4086e5
cmp eax, dword [edi + 0x1c]
jne 0x408712
lea esi, [edi + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x408703
add eax, eax
jmp 0x408708
mov eax, 0x800
push eax
call fcn.004091cc
test eax, eax
jne 0x408741
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push 0
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x18]
add ecx, eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x408741
add dword [edi + 0x20], eax
jmp 0x4086db
test ebp, ebp
je 0x40873d
mov dword [ebp], ebx
xor eax, eax
jmp 0x40874c
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408b1e
pop ecx
pop esi
pop ebp
pop ebx
ret 4
Function at 0x408752
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
push 0xa
lea eax, [esp + 0x10]
push eax
mov edi, ecx
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call fcn.0049a2da
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049a8a0
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4b0c9c
push esi
call fcn.0049a0c0
add esp, 0x20
add esi, eax
lea eax, [esp + 0xc]
push 0
sub esi, eax
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x4087e2
xor eax, eax
push 0x4af9bc
inc eax
lea ecx, [edi + 0x28]
call fcn.00408d96
test eax, eax
jne 0x4087e2
push eax
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x4087e2
and dword [edi + 0x30], 0
and dword [edi + 0x34], 0
xor eax, eax
jmp 0x4087ed
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408b1e
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b64
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp eax, 0xffffffff
jne 0x408b82
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b79
sub eax, edx
mov dword [ebp - 4], eax
cmp eax, 2
jbe 0x408bfd
push 3
add eax, 0xfffffffd
xor edx, edx
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
sub dword [ebp - 4], 3
mov eax, ecx
shr eax, 0x12
push 0x3f
pop edx
and eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi], al
mov eax, ecx
shr eax, 0xc
and eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 1], al
mov eax, ecx
shr eax, 6
and eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, edx
mov byte [edi + esi + 2], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi + 3], al
add ebx, 3
add esi, 4
dec dword [ebp - 8]
jne 0x408b98
cmp dword [ebp - 4], 0
jbe 0x408c5c
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp dword [ebp - 4], 1
jbe 0x408c18
movzx eax, byte [ebx + 1]
shl eax, 8
or ecx, eax
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [esi + edi]
mov byte [eax], dl
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
cmp dword [ebp - 4], 1
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
jbe 0x408c50
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x408c52
mov cl, 0x3d
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add esi, 4
mov byte [esi + edi], 0
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e2c0
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 [0x4d87d0], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x40e2e4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4d87d4], 0
je 0x40e2f3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x40e500
test al, al
jne 0x40e336
cmp byte [ebp + 0xc], al
jne 0x40e336
push 0x4d75a0
push 0
push 0
push 0x40e5f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d8ed0], eax
test eax, eax
je 0x40e3c7
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 [0x4d75a0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40e36c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40e346
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 0x40e3d3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40e43a
cmp dword [esp + 0x2c], 0
je 0x40e3e2
mov byte [esp + 0x1f], 1
call fcn.0040e970
test al, al
jne 0x40e3e2
cmp byte [ebp + 0xc], al
jne 0x40e4ce
mov byte [ebp + 8], al
jmp 0x40e381
call fcn.0040e990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e41e
call fcn.0040e970
test al, al
jne 0x40e43a
cmp byte [ebp + 0xc], 0
jne 0x40e4c7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4d87d0], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x40e472
test byte [esp + 0x1e], 1
jne 0x40e48b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4d8ec8], eax
jmp 0x40e48b
mov ecx, dword [0x4d8ed0]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x40e452
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x40e3e2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e381
mov edx, dword [0x4d8ed0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4d8ed0], 0
call fcn.0040e990
jmp 0x40e3f2
test byte [esp + 0x1e], 1
je 0x40e48b
mov eax, dword [0x4d8ec8]
push eax
call edi
mov dword [0x4d8ec8], 0
cmp dword [0x4d87d4], 0
je 0x40e4ad
test byte [esp + 0x1e], 2
jne 0x40e4c7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4d8ecc], eax
jmp 0x40e4c7
test byte [esp + 0x1e], 2
je 0x40e4c7
mov ecx, dword [0x4d8ecc]
push ecx
call edi
mov dword [0x4d8ecc], 0
cmp byte [esp + 0x1f], 0
je 0x40e500
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4d4a0c], 0
push 0
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.00484370
add esp, 0x18
mov dword [0x4d4a0c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410100
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004a7400
cmp byte [0x4da3bc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
jne 0x41026d
cmp dword [0x4d8ee8], 0
jne 0x410136
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d8ee8], eax
mov ebx, 1
add dword [0x4da3c0], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4da3c0]
mov esi, dword [0x4d4a20]
mov ecx, eax
sub ecx, dword [0x4d8ee8]
mov dword [0x4d8eec], eax
cmp edx, dword [0x4d4a1c]
jbe 0x41016c
cmp ecx, esi
jb 0x4101ca
xor ebx, ebx
cmp ecx, esi
jbe 0x410189
mov dword [0x4da3c0], 0
mov dword [0x4d8ee8], eax
test ebx, ebx
jne 0x41026d
mov esi, dword [esp + 0x1018]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4da196], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4da124]
push 0
push edx
push ebp
call fcn.0047a0b0
dec byte [ebp + 0x16]
test eax, eax
jne 0x41023a
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
push ecx
push edx
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
mov esi, 0x800
lea edi, [esp + 0x1c]
call fcn.0047f480
add esp, 0xc
call fcn.0040ef70
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4da3bc], bl
mov dword [0x4d4a0c], 0
call fcn.00484370
add esp, 0x18
cmp eax, 7
jne 0x410223
push 0
push 4
mov ecx, 0x4d96d0
call fcn.0041e8e0
mov eax, dword [0x4d8eec]
mov dword [0x4d4a0c], ebx
mov byte [0x4da3bc], 0
jmp 0x410172
cmp byte [ebp + 0x1b], 0
je 0x41026d
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x41026d
movzx eax, word [esi + 4]
mov ecx, dword [0x4d86a0]
push 0
push eax
push 0x312
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
Function at 0x415db0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4d8f78], 2
push ebx
sete bl
push esi
mov esi, ecx
test bl, bl
je 0x415def
movzx eax, ax
lea ecx, [esp + 0x28]
test eax, 0xffffff80
je 0x415de1
mov ecx, 0x30
mov word [esp + 0x28], cx
lea ecx, [esp + 0x2a]
push 0xa
push ecx
push eax
call fcn.00498d45
add esp, 0xc
jmp 0x415df6
movzx edx, ax
mov dword [esp + 8], edx
test esi, esi
jle 0x415eb2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
cmp dword [0x4d8f78], 0
jne 0x415e63
call ebp
sub eax, dword [0x4da1dc]
mov ecx, dword [0x4d4b04]
cmp eax, dword [ecx + 0xd8]
jbe 0x415e63
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 0x415e5c
push 1
push 0xffffffffffffffff
mov dword [0x4d4a0c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d4a0c], 1
call ebp
mov dword [0x4da1dc], eax
test bl, bl
je 0x415e72
lea edi, [esp + 0x30]
call fcn.00415ec0
jmp 0x415e83
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push eax
call fcn.00414400
add esp, 4
cmp dword [0x4d8f78], 2
jne 0x415e97
mov ecx, dword [0x4d4b04]
mov eax, dword [ecx + 0x60]
jmp 0x415ea0
mov edx, dword [0x4d4b04]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417ce0
add esp, 4
dec esi
jne 0x415e06
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x415ec0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4d8f78], 0
push esi
je 0x415ed7
mov al, byte [0x4d75b3]
jmp 0x415ffe
cmp dword [0x4d87d0], 0
je 0x415eea
mov al, byte [0x4d869d]
jmp 0x415ffe
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f0b
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x415f21
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f37
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x415f4d
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f63
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x415f79
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x415f8c
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x415f9f
or byte [esp + 7], 0x80
cmp dword [0x4d87d0], 0
je 0x415ffa
push ebx
mov bl, byte [esp + 0xb]
not bl
and bl, byte [0x4d869d]
je 0x415ff9
mov cl, byte [0x4d869f]
mov al, bl
not al
and byte [0x4d869d], al
and byte [0x4d869e], al
and cl, al
mov al, cl
mov byte [0x4d869f], cl
mov ecx, 0x4d86c8
call fcn.004188c0
mov eax, dword [0x4d75a4]
test eax, eax
je 0x415ff9
test byte [eax + 8], bl
je 0x415ff9
mov dword [0x4d75a4], 0
pop ebx
mov al, byte [esp + 7]
mov byte [esp + 8], al
mov ecx, dword [esp + 8]
push 1
and al, 0xc4
push 0
or al, 4
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44f
call fcn.004180e0
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x41605f
lea esp, [esp]
cmp ax, 0x39
ja 0x41605f
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.004162e0
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x416030
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.004162e0
add esp, 0x18
pop esi
add esp, 8
ret
Function at 0x417570
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 0x417751
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x417751
mov edx, dword [0x4d8f78]
cmp edx, 2
jne 0x4175e5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00417930
add esp, 4
call fcn.00417dc0
cmp byte [esp + 0x24], 0
je 0x417751
mov dword [esi], connect
mov dword [ebp], connect
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or dword [ecx], 0x8001
cmp byte [esp + 0x24], 0
je 0x41763a
cmp edx, 1
jne 0x417620
cmp dword [0x4d75b4], 0x80000000
jne 0x41760e
push 0x4d75b4
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d75b4]
add dword [esi], eax
mov ecx, dword [0x4d75b8]
add dword [ebp], ecx
jmp 0x41765f
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 0x41765f
mov edx, dword [0x4d4b04]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x41765f
push eax
mov edi, ebp
mov ebx, esi
call fcn.00480880
add esp, 4
cmp dword [0x4d8f78], 1
jne 0x417678
mov eax, dword [esi]
mov dword [0x4d75b4], eax
mov ecx, dword [ebp]
mov dword [0x4d75b8], 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 0x41773b
cmp eax, 0x64
jle 0x4176d3
mov dword [esp + 0x20], 0x64
jmp 0x4176d7
test eax, eax
je 0x41773b
cmp dword [0x4d8f78], 1
je 0x41773b
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.0045f280
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.00417760
add esp, 4
call fcn.00417dc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417b90
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ecx
cmp dword [0x4d8f78], 1
jne 0x417c55
push ebx
xor bl, bl
cmp dword [0x4d87d0], 0
mov byte [esp + 4], bl
je 0x417bb4
mov bl, 1
mov byte [esp + 4], bl
cmp dword [0x4d87d4], 0
je 0x417bc4
or bl, 2
mov byte [esp + 4], bl
test bl, bl
je 0x417bdf
mov al, byte [0x4d75b2]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.0040e2c0
add esp, 8
mov edx, dword [0x4d75c8]
mov eax, dword [0x4d75c4]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x417cd5
mov cl, byte [0x4d75b2]
and cl, bl
test cl, 1
je 0x417c3c
push 1
call fcn.00418790
mov dl, byte [esp + 0x14]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4d869f]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4d869f], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4d73f0], eax
mov edx, dword [esp + 4]
pop ebx
add esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.0040e2c0
mov eax, dword [0x4d8694]
push 0
push eax
push 0x416080
push 1
mov dword [0x4d75bc], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4d87d8], eax
test eax, eax
je 0x417cd6
mov byte [0x4d86c2], 1
push 1
push 0x8000012f
mov dword [0x4d4a0c], 0
call fcn.004014c0
add esp, 8
cmp dword [0x4d87d8], 0
mov dword [0x4d4a0c], 1
jne 0x417c84
mov eax, dword [0x4d75c8]
mov ecx, dword [0x4d75c4]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4d86c2], 0
jne 0x417cd6
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 8]
mov dword [edx], ecx
pop ecx
ret
pop ebx
pop ecx
ret

Function at 0x417eb0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4d8eb8]
test eax, eax
je 0x417fc8
mov ecx, dword [0x4d8ebc]
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 [0x4da38c]
mov dword [0x4d8ec0], eax
mov dword [esp + 4], edx
fild dword [esp + 4]
jns 0x417f0b
fadd dword [0x4ceca8]
fdiv qword [0x4ceca0]
mov ecx, dword [0x4d8ebc]
mov edx, dword [0x4d8eb8]
mov dword [0x4da38c], 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 0x417f78
mov eax, dword [0x4d8ebc]
imul eax, eax, 0xd4
cmp esi, dword [0x4d8ec4]
je 0x417f69
mov ecx, dword [0x4d8eb8]
push 0x64
lea edx, [eax + ecx + 0xc]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x417fa4
mov edx, dword [0x4d8eb8]
xor ecx, ecx
mov word [eax + edx + 0xc], cx
jmp 0x417fa4
mov ecx, dword [0x4d8ebc]
mov edx, dword [0x4d8eb8]
imul ecx, ecx, 0xd4
mov eax, 0x4b2c40
lea edx, [ecx + edx + 0xc]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417f95
mov eax, dword [0x4d8ebc]
inc eax
mov dword [0x4d8ec4], esi
mov dword [0x4d8ebc], eax
pop esi
cmp eax, dword [0x4d4a10]
jl 0x417fc8
mov dword [0x4d8ebc], 0
pop ecx
ret