joyce8/EMBER2024-capa huggingface dataset:
Function at 0x517050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc0000]
push edi
jmp 0x51706a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x517071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517060
mov eax, 1
add ebx, ebx
jne 0x517083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x517094
jne 0x5170b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170b3
dec eax
add ebx, ebx
jne 0x5170a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x517078
add ebx, ebx
jne 0x5170af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517105
xor ecx, ecx
sub eax, 3
jb 0x5170cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51713a
sar eax, 1
mov ebp, eax
jmp 0x5170d6
add ebx, ebx
jne 0x5170d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170a4
inc ecx
add ebx, ebx
jne 0x5170e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170a4
add ebx, ebx
jne 0x5170f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5170e6
jne 0x517102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5170e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x517124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517116
jmp 0x517066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x517124
add edi, ecx
jmp 0x517066
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x517142
cmp byte [edi], 0x11
jne 0x517142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x517147
lea edi, [esi + 0x110000]
mov eax, dword [edi]
or eax, eax
je 0x5171bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x154eec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x155068]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x517174
mov ecx, edi
jns 0x5171a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15506c]
or eax, eax
je 0x5171b9
mov dword [ebx], eax
add ebx, 4
jmp 0x517191
call dword [esi + 0x15507c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5171f0
cmp al, 0xef
ja 0x5171e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5171c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5171d2
mov ebp, dword [esi + 0x155070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x517224
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4050c0
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x4050e4
push esi
call fcn.00405390
test eax, eax
jne 0x4050e4
push str.Cant_open_clipboard_for_writing.
call fcn.004051c0
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40511d
cmp dword [esi + 0x18], ebx
je 0x40510f
cmp dword [esi + 8], ebx
je 0x405104
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 0x4afe44
call fcn.004051c0
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 0x405156
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40517d
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 0x40517d
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 0x405173
cmp dword [esi + 8], ebx
je 0x405168
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 0x405192
mov dword [esi + 4], ebx
jmp 0x405156
cmp dword [esi + 0x18], ebx
je 0x4051af
cmp dword [esi + 8], ebx
je 0x4051a4
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 0x4afe64
call fcn.004051c0
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405290
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x4052a0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40536f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.00499c1a
add esp, 0xc
test eax, eax
je 0x405366
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00499499
add esp, 8
test eax, eax
je 0x405366
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00499499
add esp, 8
test eax, eax
je 0x405366
lea edx, [esp]
push str.Native
push edx
call fcn.00499499
add esp, 8
test eax, eax
je 0x405366
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00499499
add esp, 8
test eax, eax
je 0x405366
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00499499
add esp, 8
test eax, eax
je 0x40535c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00499499
add esp, 8
test eax, eax
jne 0x405375
test esi, esi
je 0x405366
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 0x405390
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x4053a2
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4d96a0]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x405410
mov eax, dword [0x4d5a18]
cmp eax, 0xffffffff
je 0x4053e1
test eax, eax
je 0x405426
call esi
mov edx, dword [0x4d5a18]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x405426
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
mov eax, dword [0x4d96a0]
add esp, 8
push eax
mov dword [0x4d5a1c], 1
call ebx
test eax, eax
je 0x4053c2
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 0x4057a8
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 0x40581d
cmp word [ebx + 8], 2
jne 0x4057fd
cmp word [ebx + 0xa], 4
jne 0x4057fd
mov edi, dword [ebx + 0xc]
jmp 0x4057f7
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405741
mov dword [esi], eax
test eax, eax
je 0x405818
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4057db
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0049b45e
add esp, 0x10
xor eax, eax
jmp 0x405843
push 8
pop eax
jmp 0x405843
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x405843
dec ecx
je 0x40583e
dec ecx
je 0x405837
dec ecx
jmp 0x405843
mov eax, 0x2afb
jmp 0x405843
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4d81c0], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x4059a2
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x405c63
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00405969
jne 0x405f71
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405f67
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b1ea
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b249
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 0x405ed4
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405ed0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x405f29
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b1ea
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b249
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x405f67
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405f25
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x405f67
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 0x405f46
inc esi
cmp esi, 3
jl 0x405f2b
jmp 0x405f4f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x405f67
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4d53b8], ecx
add eax, 8
cmp eax, 0x18
jl 0x405f55
mov dword [0x4d81c0], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4d53b8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4088bf
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 + 0x2c]
cmp ebx, eax
jae 0x4088dd
mov ecx, dword [edi + 0x24]
cmp byte [ecx + ebx], 0
je 0x408923
inc ebx
cmp ebx, eax
jb 0x4088d2
cmp eax, dword [edi + 0x28]
jne 0x4088ff
lea esi, [edi + 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x4088f0
add eax, eax
jmp 0x4088f5
mov eax, 0x800
push eax
call fcn.004093b6
test eax, eax
jne 0x40892e
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
push 0
sub ecx, eax
push ecx
mov ecx, dword [edi + 0x24]
add ecx, eax
push ecx
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40892e
add dword [edi + 0x2c], eax
jmp 0x4088c8
test ebp, ebp
je 0x40892a
mov dword [ebp], ebx
xor eax, eax
jmp 0x408939
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408cd2
pop ecx
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40893f
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 + 0x3c]
add eax, 0x26
push eax
call fcn.0049a7aa
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049ad70
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4b0d34
push esi
call fcn.0049a590
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 0x4089cf
xor eax, eax
push 0x4af9bc
inc eax
lea ecx, [edi + 0x34]
call fcn.00408f4a
test eax, eax
jne 0x4089cf
push eax
push dword [edi + 0x3c]
push dword [edi + 0x34]
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x4089cf
and dword [edi + 0x3c], 0
and dword [edi + 0x40], 0
xor eax, eax
jmp 0x4089da
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408cd2
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e4b0
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 [0x4d97d0], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x40e4d4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4d97d4], 0
je 0x40e4e3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x40e6f0
test al, al
jne 0x40e526
cmp byte [ebp + 0xc], al
jne 0x40e526
push 0x4d85a0
push 0
push 0
push 0x40e7e0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d9ed0], eax
test eax, eax
je 0x40e5b7
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 [0x4d85a0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40e55c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40e536
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 0x40e5c3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40e62a
cmp dword [esp + 0x2c], 0
je 0x40e5d2
mov byte [esp + 0x1f], 1
call fcn.0040eb60
test al, al
jne 0x40e5d2
cmp byte [ebp + 0xc], al
jne 0x40e6be
mov byte [ebp + 8], al
jmp 0x40e571
call fcn.0040eb80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e60e
call fcn.0040eb60
test al, al
jne 0x40e62a
cmp byte [ebp + 0xc], 0
jne 0x40e6b7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4d97d0], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x40e662
test byte [esp + 0x1e], 1
jne 0x40e67b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4d9ec8], eax
jmp 0x40e67b
mov ecx, dword [0x4d9ed0]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x40e642
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x40e5d2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e571
mov edx, dword [0x4d9ed0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4d9ed0], 0
call fcn.0040eb80
jmp 0x40e5e2
test byte [esp + 0x1e], 1
je 0x40e67b
mov eax, dword [0x4d9ec8]
push eax
call edi
mov dword [0x4d9ec8], 0
cmp dword [0x4d97d4], 0
je 0x40e69d
test byte [esp + 0x1e], 2
jne 0x40e6b7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4d9ecc], eax
jmp 0x40e6b7
test byte [esp + 0x1e], 2
je 0x40e6b7
mov ecx, dword [0x4d9ecc]
push ecx
call edi
mov dword [0x4d9ecc], 0
cmp byte [esp + 0x1f], 0
je 0x40e6f0
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4d5a1c], 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.004847a0
add esp, 0x18
mov dword [0x4d5a1c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004a78d0
cmp byte [0x4db3c8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
jne 0x41044d
cmp dword [0x4d9ee8], 0
jne 0x410316
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d9ee8], eax
mov ebx, 1
add dword [0x4db3cc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4db3cc]
mov esi, dword [0x4d5a30]
mov ecx, eax
sub ecx, dword [0x4d9ee8]
mov dword [0x4d9eec], eax
cmp edx, dword [0x4d5a2c]
jbe 0x41034c
cmp ecx, esi
jb 0x4103aa
xor ebx, ebx
cmp ecx, esi
jbe 0x410369
mov dword [0x4db3cc], 0
mov dword [0x4d9ee8], eax
test ebx, ebx
jne 0x41044d
mov esi, dword [esp + 0x1018]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4db186], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4db114]
push 0
push edx
push ebp
call fcn.0047a410
dec byte [ebp + 0x16]
test eax, eax
jne 0x41041a
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.0047f800
add esp, 0xc
call fcn.0040f120
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4db3c8], bl
mov dword [0x4d5a1c], 0
call fcn.004847a0
add esp, 0x18
cmp eax, 7
jne 0x410403
push 0
push 4
mov ecx, 0x4da6c0
call fcn.0041eac0
mov eax, dword [0x4d9eec]
mov dword [0x4d5a1c], ebx
mov byte [0x4db3c8], 0
jmp 0x410352
cmp byte [ebp + 0x1b], 0
je 0x41044d
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x41044d
movzx eax, word [esi + 4]
mov ecx, dword [0x4d96a0]
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 0x415f90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4d9f78], 2
push ebx
sete bl
push esi
mov esi, ecx
test bl, bl
je 0x415fcf
movzx eax, ax
lea ecx, [esp + 0x28]
test eax, 0xffffff80
je 0x415fc1
mov ecx, 0x30
mov word [esp + 0x28], cx
lea ecx, [esp + 0x2a]
push 0xa
push ecx
push eax
call fcn.00499215
add esp, 0xc
jmp 0x415fd6
movzx edx, ax
mov dword [esp + 8], edx
test esi, esi
jle 0x416092
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
cmp dword [0x4d9f78], 0
jne 0x416043
call ebp
sub eax, dword [0x4db1cc]
mov ecx, dword [0x4d5b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x416043
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 0x41603c
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call ebp
mov dword [0x4db1cc], eax
test bl, bl
je 0x416052
lea edi, [esp + 0x30]
call fcn.004160a0
jmp 0x416063
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push eax
call fcn.004145e0
add esp, 4
cmp dword [0x4d9f78], 2
jne 0x416077
mov ecx, dword [0x4d5b14]
mov eax, dword [ecx + 0x60]
jmp 0x416080
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417ec0
add esp, 4
dec esi
jne 0x415fe6
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x417750
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 0x417931
mov edi, dword [ebp]
cmp edi, 0x80000000
je 0x417931
mov edx, dword [0x4d9f78]
cmp edx, 2
jne 0x4177c5
movzx ebx, byte [esp + 0x24]
neg ebx
sbb ebx, ebx
and ebx, 0x80000000
push 0
or ebx, 1
call fcn.00417b10
add esp, 4
call fcn.00417fa0
cmp byte [esp + 0x24], 0
je 0x417931
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 0x41781a
cmp edx, 1
jne 0x417800
cmp dword [0x4d85b4], 0x80000000
jne 0x4177ee
push 0x4d85b4
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d85b4]
add dword [esi], eax
mov ecx, dword [0x4d85b8]
add dword [ebp], ecx
jmp 0x41783f
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 0x41783f
mov edx, dword [0x4d5b14]
movzx eax, word [edx + 0xf0]
shr eax, 2
and eax, 3
cmp eax, 2
je 0x41783f
push eax
mov edi, ebp
mov ebx, esi
call fcn.00480c00
add esp, 4
cmp dword [0x4d9f78], 1
jne 0x417858
mov eax, dword [esi]
mov dword [0x4d85b4], eax
mov ecx, dword [ebp]
mov dword [0x4d85b8], 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 0x41791b
cmp eax, 0x64
jle 0x4178b3
mov dword [esp + 0x20], 0x64
jmp 0x4178b7
test eax, eax
je 0x41791b
cmp dword [0x4d9f78], 1
je 0x41791b
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.0045f530
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.00417940
add esp, 4
call fcn.00417fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x418f30
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x418f6e
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 0x418f6e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418f6e
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

Function at 0x418f80
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x284
push ebx
push ebp
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebx, eax
test ebx, ebx
je 0x41902f
xor eax, eax
jmp 0x418fb0
movzx ecx, word [eax + str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x418fb0
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x41901d
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41901d
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, str.Layout_File
call fcn.00480d40
pop edi
pop esi
test eax, eax
je 0x41901d
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x41902f
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x419230
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebp
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebp, eax
mov al, byte [esp + 0x11c]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x41932c
push ebx
push esi
push pe_nt_image_headers32
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004a43b0
mov ebx, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push ebp
xor esi, esi
push esi
push 2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push 0x6e
call ebx
cmp eax, 2
jne 0x41928f
movzx esi, word [esp + 0x10]
movzx ecx, byte [esp + 0x124]
push ebp
push 0
push 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call ebx
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x4192c8
push ebp
push 0
push 2
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebx
test si, si
je 0x41930c
push edi
push 1
push ebp
lea edi, [esp + 0x1b]
call fcn.00419500
add esp, 8
mov byte [esp + 0x12], al
pop edi
test al, al
je 0x41930c
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.00418aa0
movzx eax, byte [esp + 0xe]
push ebp
push 0
push 2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push eax
call ebx
cmp dword [esp + 0x1c], 0
pop esi
pop ebx
je 0x419322
movzx eax, word [esp + 8]
pop ebp
add esp, 0x114
ret
xor eax, eax
pop ebp
add esp, 0x114
ret
push ebp
movzx ecx, al
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop ebp
add esp, 0x114
ret