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

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x18], 0
jne 0x406c54
call fcn.00406ed0
test eax, eax
jne 0x406c54
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esi + 0x18], eax
je 0x406c11
cmp dword [esi + 8], eax
je 0x406bfe
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
cmp dword [esi + 0xc], 0
je 0x406c2a
push dword [esi + 4]
call edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x406c3b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
push 0x4cfc40
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4fdb78
call fcn.0044ec90
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x406ccf
cmp dword [esi + 0x18], eax
je 0x406c8c
cmp dword [esi + 8], eax
je 0x406c79
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
cmp dword [esi + 0xc], 0
je 0x406ca5
push dword [esi + 4]
call edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x406cb6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
push 0x4cfc40
push 0x4d02a4
mov ecx, 0x4fdb78
call fcn.0044ec90
pop edi
pop esi
ret 4
mov eax, dword [esi + 4]
test eax, eax
je 0x406d0a
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x406cf8
cmp word [ecx], 0
push eax
sete bl
call edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test bl, bl
pop ebx
push eax
je 0x406d3e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x406d34
cmp dword [esi + 8], 0
je 0x406d21
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x406d53
mov dword [esi + 4], 0
jmp 0x406d0a
cmp dword [esi + 0x18], 0
je 0x406d7d
cmp dword [esi + 8], 0
je 0x406d6a
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
cmp dword [esi + 0xc], 0
je 0x406d96
push dword [esi + 4]
call edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x406da7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
push 0x4cfc40
push 0x4d02c4
mov ecx, 0x4fdb78
call fcn.0044ec90
pop edi
pop esi
ret 4
Function at 0x406dc0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
test esi, esi
je 0x406dda
mov dword [esi], 0
mov ebx, dword [esp + 0x21c]
lea eax, [ebx - 0xc000]
cmp eax, 0x3fff
ja 0x406eb0
push 0x104
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0x10]
push str.Link_Source
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x406ea2
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [esp + 0xc]
push str.ObjectLink
push eax
call edi
add esp, 8
test eax, eax
je 0x406ea2
lea eax, [esp + 0xc]
push str.OwnerLink
push eax
call edi
add esp, 8
test eax, eax
je 0x406ea2
lea eax, [esp + 0xc]
push str.Native
push eax
call edi
add esp, 8
test eax, eax
je 0x406ea2
lea eax, [esp + 0xc]
push str.Embed_Source
push eax
call edi
add esp, 8
test eax, eax
je 0x406ea2
lea eax, [esp + 0xc]
push str.MSDEVColumnSelect
push eax
call edi
add esp, 8
test eax, eax
je 0x406e98
lea eax, [esp + 0xc]
push str.MSDEVLineSelect
push eax
call edi
add esp, 8
test eax, eax
jne 0x406eb7
test esi, esi
je 0x406ea2
mov dword [esi], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 0xc], ax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x406ed0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, ecx
cmp dword [ebp + 0x18], 0
je 0x406ee0
mov eax, 1
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x4fb9e8]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406f4e
nop
mov eax, dword [0x4f9100]
cmp eax, 0xffffffff
je 0x406f1f
test eax, eax
je 0x406f5f
call esi
mov ecx, dword [0x4f9100]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406f5f
mov edx, 1
mov dword [0x4f90ec], 0
mov ecx, 0x8000012f
call fcn.004018f0
push dword [0x4fb9e8]
mov dword [0x4f90ec], 1
call edi
test eax, eax
je 0x406f00
pop edi
pop esi
pop ebx
mov dword [ebp + 0x18], 1
mov eax, 1
pop ebp
ret
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
Function at 0x407070
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x81c
push ebx
push ebp
push esi
push edi
push 0x401
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], edx
mov ebx, ecx
mov dword [esp + 0x14], 0
push 0
push eax
mov dword [esp + 0x28], ebx
call sub.VCRUNTIME140.dll_memset
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
push ebx
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x28
mov eax, dword [esp + 0x83c]
mov edi, eax
push ebx
mov byte [ebp], 0
mov dword [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x407241
cmp word [ebx + 8], 2
jne 0x40713f
cmp word [ebx + 0xa], 4
jne 0x40713f
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40713f
push dword [eax]
mov edx, dword [esp + 0x834]
push dword [esp + 0x838]
mov ecx, dword [esp + 0x20]
call fcn.00406ff0
mov dword [edi], eax
test eax, eax
je 0x40722d
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x407110
push 0x400
push dword [ebx]
push 0x401
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov eax, dword [esp + 0x84c]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x4071dc
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407167
sub ecx, edx
je case.0x407251.11003
mov ebx, dword [esp + 0x14]
mov eax, ebp
mov ecx, ebx
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4071a0
test dl, dl
je 0x40719c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4071a0
add ecx, 2
add eax, 2
test dl, dl
jne 0x407180
xor eax, eax
jmp 0x4071a5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x407251.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x407251.11003
mov eax, ebx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x1c]
mov ebp, eax
jmp 0x4070d5
mov esi, 0x2afb
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
cmp dword [esp + 0x838], esi
je 0x407271
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4071f0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x40721a
push ebp
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x83c]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x407271
mov esi, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x407251.11001
jmp dword [eax*4 + 0x407280]
mov esi, 0x2afa
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov esi, 0x2af9
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
Function at 0x407940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
cmp dword [0x4ffae0], 0
mov ax, cx
push ebx
push ebp
push esi
push edi
mov word [esp + 0x12], ax
mov dword [esp + 0x14], str.getaddrinfo
mov dword [esp + 0x18], 0x4072e0
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x407750
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], 0x407290
je 0x4079a0
movzx eax, ax
mov eax, dword [eax*8 + 0x4faf04]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push 0x104
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407aa5
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x407a1c
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x407a68
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407aa5
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x407aa2
xor esi, esi
nop word [eax + eax]
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x407aa2
inc esi
cmp esi, 3
jl 0x407a70
mov eax, dword [esp + 0x18]
mov dword [0x4faf04], eax
mov eax, dword [esp + 0x20]
mov dword [0x4faf0c], eax
mov eax, dword [esp + 0x28]
mov dword [0x4faf14], eax
jmp 0x407aa5
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x4faf04]
mov dword [0x4ffae0], 1
pop ebx
add esp, 0x234
ret
Function at 0x40c180
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 0x4d10c4
lea esi, [eax + 1]
push esi
call fcn.0040dae0
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 0x40c235
cmp dword [edi + 0x34], 0
jne 0x40c235
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040d1b0
test eax, eax
jne 0x40c235
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x28]
mov al, byte [0x4cfc40]
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 0x40c235
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, 0x4faae8
call fcn.0040c7a0
push 0x10014
push dword [0x4fe658]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x4fb9e8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40c26e
push 0
push 4
mov ecx, 0x4fdb78
call fcn.0042f2d0
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf60
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
mov dword [esp + 8], ebx
test esi, esi
je 0x40d0cf
cmp byte [esp + 0x18], 0
jne 0x40cfa8
lea ecx, [esi - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebx + 8]
mov ecx, ebx
shr edx, 1
lea eax, [eax + edx*4]
add eax, 5
push eax
call fcn.0040d1b0
test eax, eax
je 0x40cfa8
pop esi
mov eax, 0x3e6
pop ebx
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40d0ce
push ebp
mov ebp, dword [ebx]
xor edx, edx
add ebp, dword [ebx + 8]
mov dword [esp + 0x20], ebp
cmp esi, 0xffffffff
jne 0x40cfd9
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40cfd0
sub esi, ecx
cmp esi, 2
jbe 0x40d06b
lea ecx, [esi - 3]
mov eax, 0xaaaaaaab
mul ecx
lea ebx, [ebp + 2]
mov ebp, edx
shr ebp, 1
inc ebp
lea edx, [ebp*4]
nop dword [eax + eax]
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 0x40d000
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
test esi, esi
je 0x40d0c6
movzx ecx, byte [edi]
shl ecx, 0x10
cmp esi, 1
jbe 0x40d083
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 + ebp], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ebp + 1], al
cmp esi, 1
jbe 0x40d0b8
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40d0ba
mov al, 0x3d
mov byte [edx + ebp + 2], al
mov byte [edx + ebp + 3], 0x3d
add edx, 4
mov byte [edx + ebp], 0
add dword [ebx + 8], edx
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x40d820
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 0x40d878
mov edi, dword [esi + 4]
test edi, edi
je 0x40d8a0
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40d866
mov eax, dword [edi + 4]
test eax, eax
je 0x40d85b
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.004ccae4
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.0040dc80
mov ecx, dword [esi + 4]
push edi
call fcn.0040db00
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 0x40e3d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x4fe670], 0
push ebx
push esi
push edi
je 0x40e479
mov edi, dword fs:[0x24]
cmp dword [0x4fd2ec], edi
je 0x40e3fe
push dword [0x4fdb60]
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 0x40e407
sub esi, ecx
sar esi, 1
cmp word [ebx], ax
je 0x40e482
lea eax, [esp + 0xf]
mov ecx, 0x4fdb78
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.004404a0
test eax, eax
jne 0x40e454
cmp byte [esp + 0xf], al
mov ecx, 0x4fdb78
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.00440a70
test eax, eax
je 0x40e482
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004b5b70
cmp dword [0x4fd2ec], edi
je 0x40e479
push dword [0x4fdb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x4fd2ec], edi
je 0x40e496
push dword [0x4fdb60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x414160
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 [0x4fba08], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4fba04], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x41419d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x41439a
test al, al
jne 0x4141de
test bh, bh
jne 0x4141de
push 0x4fc4fc
push 0
push 0
push 0x414410
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4fe894], eax
test eax, eax
je 0x414296
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 [0x4fc4fc]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x414215
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4141f0
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 0x4142a3
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x414281
cmp dword [esp + 0x24], 0
je 0x4142bd
mov bh, 1
call fcn.00414770
test al, al
jne 0x4142bd
cmp byte [esp + 0x13], al
jne 0x41436d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4fe894]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x4142ca
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x4142bd
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414227
call fcn.00414790
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 0x414266
call fcn.00414770
test al, al
je 0x414369
jmp 0x414281
cmp byte [esp + 0x13], 0
jne 0x414369
jmp 0x4142e5
push dword [0x4fe894]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe894], 0
call fcn.00414790
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x4fba08], 0
je 0x414310
test al, al
jne 0x41432a
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4fe88c], eax
jmp 0x41432a
test al, al
je 0x41432a
push dword [0x4fe88c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe88c], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4fba04], 0
je 0x41434f
test al, al
jne 0x414369
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4fe890], eax
jmp 0x414369
test al, al
je 0x414369
push dword [0x4fe890]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe890], 0
test bh, bh
je 0x41439a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4f90ec], 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.004b7b40
add esp, 8
mov dword [0x4f90ec], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415b40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1000
call fcn.004cdac0
cmp byte [0x4ffaf4], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x415d3c
cmp dword [0x4fc564], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x415b73
call ebx
mov dword [0x4fc564], eax
inc dword [0x4ffaf0]
call ebx
mov edi, dword [0x4ffaf0]
mov ecx, eax
sub ecx, dword [0x4fc564]
mov edx, dword [0x4fa350]
mov dword [0x4fc560], eax
cmp edi, dword [0x4fa354]
jbe 0x415c5a
cmp ecx, edx
jae 0x415c5a
push ecx
push edi
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]
mov esi, 1
push 0x800
push eax
call fcn.004b1470
mov dx, word [0x4fc55c]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x415c0a
nop word [eax + eax]
mov eax, dword [0x4fc54c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x415c02
nop
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x415bf0
mov dx, word [0x4fc55c]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x415be0
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4ffaf4], 1
mov edx, 4
mov dword [0x4f90ec], 0
lea ecx, [esp + 0x18]
call fcn.004b7b40
add esp, 8
cmp eax, 7
jne 0x415c46
push 0
push 4
mov ecx, 0x4fdb78
call fcn.0042f2d0
mov eax, dword [0x4fc560]
mov dword [0x4f90ec], esi
mov byte [0x4ffaf4], 0
jmp 0x415c60
xor esi, esi
cmp ecx, edx
jbe 0x415c77
mov dword [0x4ffaf0], 0
mov dword [0x4fc564], eax
test esi, esi
jne 0x415d3c
mov esi, dword [esp + 0x1014]
movzx eax, byte [ebp + 0xf]
mov byte [0x4fe656], al
inc byte [esi + 0x16]
mov ecx, dword [0x4faaec]
mov edi, dword [0x4fe5e4]
cmp ecx, dword [0x4faaf0]
jne 0x415ca9
call fcn.00406f70
mov ecx, dword [0x4faaec]
cmp ecx, dword [0x4faae8]
jb 0x415cbe
mov eax, dword [0x4fe1c4]
mov dword [ecx], eax
mov ecx, dword [0x4faaec]
add ecx, 0xc
push 0
push 0
mov dword [0x4faaec], ecx
push 0
mov dword [ecx], 0
mov dword [ecx + 4], edi
mov dword [ecx + 8], 0
mov ecx, dword [esi]
mov edx, ecx
push 0
push str.call
call fcn.0049d2f0
sub dword [0x4faaec], 0xc
add esp, 0x14
dec byte [esi + 0x16]
test eax, eax
jne 0x415d0e
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
cmp byte [esi + 0x1b], 0
je 0x415d3c
mov byte [esi + 0x1b], 0
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x415d3c
movzx eax, word [ebp + 4]
push 0
push eax
push 0x312
push dword [0x4fb9e8]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret 4
Function at 0x41bc20
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 0x41bc45
cmp bh, 3
jne 0x41bc4d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x41bc54
mov byte [esp + 0xf], 1
jmp 0x41bc59
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41bd8c
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4fe928], 0
jne 0x41bcd6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [0x4fe694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41bcdc
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 0x41bccb
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe694], eax
mov ecx, dword [0x4f90f4]
cmp byte [ebp + 0x18], 0
jne 0x41bd30
mov al, byte [ecx + 0xf6]
test al, al
je 0x41bcf8
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41bcfd
mov esi, 0xffc3d44f
cmp dword [0x4fe928], 0
je 0x41bd0d
mov al, byte [0x4fe91c]
jmp 0x41bd14
xor cl, cl
call fcn.0041eb60
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041e430
mov ecx, dword [0x4f90f4]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41bd5a
test edi, edi
jne 0x41bd5a
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.0041d1f0
add esp, 0x14
jmp 0x41bd7d
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.0041c240
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x41bc70
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x41bdc8
cmp dword [0x4fe928], 0
je 0x41bda2
mov al, byte [0x4fe91c]
jmp 0x41bda9
xor cl, cl
call fcn.0041eb60
not bl
and bl, al
and bl, 0xcc
je 0x41bdc8
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041e430
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret