joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13f2250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.013e89b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.013db8e0
lea ecx, [ebp - 0x144]
call fcn.013bda50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x13f2328
xor ecx, ecx
je 0x13f22fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.013c4580
jmp 0x13f22b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.013f2400
lea ecx, [ebp - 0x144]
call fcn.013f24d0
lea ecx, [ebp - 0x140]
call fcn.013df370
mov eax, dword [ebp + 8]
jmp 0x13f23e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x13f2338
jmp 0x13f2388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01397a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.013bda10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x13f228b
lea ecx, [ebp - 0x144]
call fcn.013bda50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.013ea380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.013e8f80
lea ecx, [ebp - 0xe4]
call fcn.01310ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013f2400
lea ecx, [ebp - 0x144]
call fcn.013f24d0
lea ecx, [ebp - 0x140]
call fcn.013df370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 4

Function at 0x13f3a45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x13f3a6c
call fcn.0139aeef
mov dword [eax], esi
call fcn.0139aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.01398cab
mov eax, esi
jmp 0x13f3ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x13f3a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x13f3a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0139af02
pop ecx
call fcn.0139aedc
mov eax, dword [eax]
jmp 0x13f3ac1
test al, 0x10
jne 0x13f3abf
test al, 1
je 0x13f3abf
test byte [ebp + 0xc], 2
je 0x13f3abf
call fcn.0139aeef
mov dword [eax], 5
call fcn.0139aedc
mov dword [eax], 0xd
jmp 0x13f3a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x403a70
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403a84
inc dword [0x4da880]
add dword [0x4d6b14], 0x108
mov edx, dword [0x4d6b14]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4d9348
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x403ab3
push 0
mov eax, 0x4db728
call fcn.0041e670
cmp dword [0x4da8b4], 0
mov dword [0x4dc220], 0
mov dword [0x4dc224], 0
je 0x403aeb
mov eax, dword [0x4d7d34]
test eax, eax
je 0x403adf
mov eax, dword [eax]
test eax, eax
jne 0x403ae4
mov eax, 0x4b09ac
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x403b7d
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x403b1e
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x403b1e
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4dc22c], 0
je 0x403b30
cmp dword [0x4dc228], 0
jne 0x403b39
cmp byte [esi + 0xee], 0
je 0x403b7d
cmp byte [esi + 0xee], 0
mov dword [esi + 0xd8], 0x10
mov byte [esi + 0xec], 0
jne 0x403b7d
cmp dword [0x4dc22c], 0
jge 0x403b65
pop edi
mov dword [esi + 0xe0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov edx, dword [0x4dc22c]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
Function at 0x405180
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x4051a4
push esi
call fcn.00405450
test eax, eax
jne 0x4051a4
push str.Cant_open_clipboard_for_writing.
call fcn.00405280
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4051dd
cmp dword [esi + 0x18], ebx
je 0x4051cf
cmp dword [esi + 8], ebx
je 0x4051c4
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 0x4b0e1c
call fcn.00405280
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 0x405216
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40523d
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 0x40523d
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 0x405233
cmp dword [esi + 8], ebx
je 0x405228
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 0x405252
mov dword [esi + 4], ebx
jmp 0x405216
cmp dword [esi + 0x18], ebx
je 0x40526f
cmp dword [esi + 8], ebx
je 0x405264
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 0x4b0e3c
call fcn.00405280
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x405350
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x405360
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40542f
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.0049a46a
add esp, 0xc
test eax, eax
je 0x405426
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00499ce9
add esp, 8
test eax, eax
je 0x405426
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00499ce9
add esp, 8
test eax, eax
je 0x405426
lea edx, [esp]
push str.Native
push edx
call fcn.00499ce9
add esp, 8
test eax, eax
je 0x405426
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00499ce9
add esp, 8
test eax, eax
je 0x405426
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00499ce9
add esp, 8
test eax, eax
je 0x40541c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00499ce9
add esp, 8
test eax, eax
jne 0x405435
test esi, esi
je 0x405426
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 0x405450
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405462
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4da70c]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x4054d0
mov eax, dword [0x4d6a18]
cmp eax, 0xffffffff
je 0x4054a1
test eax, eax
je 0x4054e6
call esi
mov edx, dword [0x4d6a18]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4054e6
push 1
push 0x8000012f
mov dword [0x4d6a1c], 0
call fcn.004014c0
mov eax, dword [0x4da70c]
add esp, 8
push eax
mov dword [0x4d6a1c], 1
call ebx
test eax, eax
je 0x405482
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 0x405868
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 0x4058dd
cmp word [ebx + 8], 2
jne 0x4058bd
cmp word [ebx + 0xa], 4
jne 0x4058bd
mov edi, dword [ebx + 0xc]
jmp 0x4058b7
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00405801
mov dword [esi], eax
test eax, eax
je 0x4058d8
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40589b
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0049b9fe
add esp, 0x10
xor eax, eax
jmp 0x405903
push 8
pop eax
jmp 0x405903
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x405903
dec ecx
je 0x4058fe
dec ecx
je 0x4058f7
dec ecx
jmp 0x405903
mov eax, 0x2afb
jmp 0x405903
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405ed7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x4d9228], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x405a62
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x405d23
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00405a29
jne 0x406031
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406027
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b78a
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b7e9
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 0x405f94
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405f90
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x405fe9
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b78a
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b7e9
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x406027
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405fe5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x406027
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 0x406006
inc esi
cmp esi, 3
jl 0x405feb
jmp 0x40600f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x406027
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4d63b8], ecx
add eax, 8
cmp eax, 0x18
jl 0x406015
mov dword [0x4d9228], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4d63b8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40897f
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 0x40899d
mov ecx, dword [edi + 0x24]
cmp byte [ecx + ebx], 0
je 0x4089e3
inc ebx
cmp ebx, eax
jb 0x408992
cmp eax, dword [edi + 0x28]
jne 0x4089bf
lea esi, [edi + 0x24]
mov eax, dword [esi + 4]
test eax, eax
je 0x4089b0
add eax, eax
jmp 0x4089b5
mov eax, 0x800
push eax
call fcn.00409476
test eax, eax
jne 0x4089ee
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 0x4089ee
add dword [edi + 0x2c], eax
jmp 0x408988
test ebp, ebp
je 0x4089ea
mov dword [ebp], ebx
xor eax, eax
jmp 0x4089f9
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408d92
pop ecx
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4089ff
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.0049ad4f
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049b310
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4b1d0c
push esi
call fcn.0049ab35
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 0x408a8f
xor eax, eax
push 0x4b09ac
inc eax
lea ecx, [edi + 0x34]
call fcn.0040900a
test eax, eax
jne 0x408a8f
push eax
push dword [edi + 0x3c]
push dword [edi + 0x34]
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x408a8f
and dword [edi + 0x3c], 0
and dword [edi + 0x40], 0
xor eax, eax
jmp 0x408a9a
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408d92
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408dd8
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 0x408df6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ded
sub eax, edx
mov dword [ebp - 4], eax
cmp eax, 2
jbe 0x408e71
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 0x408e0c
cmp dword [ebp - 4], 0
jbe 0x408ed0
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp dword [ebp - 4], 1
jbe 0x408e8c
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 0x408ec4
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x408ec6
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 0x40e530
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 [0x4da83c], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x40e554
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4da840], 0
je 0x40e563
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x40e770
test al, al
jne 0x40e5a6
cmp byte [ebp + 0xc], al
jne 0x40e5a6
push 0x4d960c
push 0
push 0
push 0x40e860
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4daf3c], eax
test eax, eax
je 0x40e637
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 [0x4d960c]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40e5dc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x40e5b6
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 0x40e643
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40e6aa
cmp dword [esp + 0x2c], 0
je 0x40e652
mov byte [esp + 0x1f], 1
call fcn.0040ebf0
test al, al
jne 0x40e652
cmp byte [ebp + 0xc], al
jne 0x40e73e
mov byte [ebp + 8], al
jmp 0x40e5f1
call fcn.0040ec10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40e68e
call fcn.0040ebf0
test al, al
jne 0x40e6aa
cmp byte [ebp + 0xc], 0
jne 0x40e737
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4da83c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x40e6e2
test byte [esp + 0x1e], 1
jne 0x40e6fb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4daf34], eax
jmp 0x40e6fb
mov ecx, dword [0x4daf3c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x40e6c2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x40e652
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e5f1
mov edx, dword [0x4daf3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4daf3c], 0
call fcn.0040ec10
jmp 0x40e662
test byte [esp + 0x1e], 1
je 0x40e6fb
mov eax, dword [0x4daf34]
push eax
call edi
mov dword [0x4daf34], 0
cmp dword [0x4da840], 0
je 0x40e71d
test byte [esp + 0x1e], 2
jne 0x40e737
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4daf38], eax
jmp 0x40e737
test byte [esp + 0x1e], 2
je 0x40e737
mov ecx, dword [0x4daf38]
push ecx
call edi
mov dword [0x4daf38], 0
cmp byte [esp + 0x1f], 0
je 0x40e770
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4d6a1c], 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.00484ff0
add esp, 0x18
mov dword [0x4d6a1c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4102f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1004
call fcn.004a7e90
cmp byte [0x4dc430], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
jne 0x41045d
cmp dword [0x4daf58], 0
jne 0x410326
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4daf58], eax
mov ebx, 1
add dword [0x4dc434], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4dc434]
mov esi, dword [0x4d6a30]
mov ecx, eax
sub ecx, dword [0x4daf58]
mov dword [0x4daf5c], eax
cmp edx, dword [0x4d6a2c]
jbe 0x41035c
cmp ecx, esi
jb 0x4103ba
xor ebx, ebx
cmp ecx, esi
jbe 0x410379
mov dword [0x4dc434], 0
mov dword [0x4daf58], eax
test ebx, ebx
jne 0x41045d
mov esi, dword [esp + 0x1018]
mov cl, byte [esi + 0xf]
push 0
push 0
mov byte [0x4dc1ee], cl
inc byte [ebp + 0x16]
mov edx, dword [0x4dc17c]
push 0
push edx
push ebp
call fcn.0047ac70
dec byte [ebp + 0x16]
test eax, eax
jne 0x41042a
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.00480070
add esp, 0xc
call fcn.0040f190
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4dc430], bl
mov dword [0x4d6a1c], 0
call fcn.00484ff0
add esp, 0x18
cmp eax, 7
jne 0x410413
push 0
push 4
mov ecx, 0x4db728
call fcn.0041ebf0
mov eax, dword [0x4daf5c]
mov dword [0x4d6a1c], ebx
mov byte [0x4dc430], 0
jmp 0x410362
cmp byte [ebp + 0x1b], 0
je 0x41045d
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x41045d
movzx eax, word [esi + 4]
mov ecx, dword [0x4da70c]
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 0x415f40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
cmp dword [0x4dafe0], 2
push ebx
sete bl
push esi
mov esi, ecx
test bl, bl
je 0x415f7f
movzx eax, ax
lea ecx, [esp + 0x28]
test eax, 0xffffff80
je 0x415f71
mov ecx, 0x30
mov word [esp + 0x28], cx
lea ecx, [esp + 0x2a]
push 0xa
push ecx
push eax
call fcn.00499a65
add esp, 0xc
jmp 0x415f86
movzx edx, ax
mov dword [esp + 8], edx
test esi, esi
jle 0x416042
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
cmp dword [0x4dafe0], 0
jne 0x415ff3
call ebp
sub eax, dword [0x4dc234]
mov ecx, dword [0x4d6b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x415ff3
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 0x415fec
push 1
push 0xffffffffffffffff
mov dword [0x4d6a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d6a1c], 1
call ebp
mov dword [0x4dc234], eax
test bl, bl
je 0x416002
lea edi, [esp + 0x30]
call fcn.00416050
jmp 0x416013
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x10]
push eax
call fcn.00414550
add esp, 4
cmp dword [0x4dafe0], 2
jne 0x416027
mov ecx, dword [0x4d6b14]
mov eax, dword [ecx + 0x60]
jmp 0x416030
mov edx, dword [0x4d6b14]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417ea0
add esp, 4
dec esi
jne 0x415f96
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x416050
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4dafe0], 0
push esi
je 0x416067
mov al, byte [0x4d961f]
jmp 0x4161b3
cmp dword [0x4da83c], 0
je 0x41607a
mov al, byte [0x4da709]
jmp 0x4161b3
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41609b
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4160b1
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4160c7
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4160dd
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4160f3
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x416109
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x41611c
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x41612f
or byte [esp + 7], 0x80
cmp dword [0x4da83c], 0
je 0x4161af
push ebx
mov bl, byte [esp + 0xb]
not bl
and bl, byte [0x4da709]
cmp byte [0x4da72e], 0
je 0x416168
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4d95f0]
cmp eax, 0x14
jae 0x416168
mov al, byte [0x4da72e]
not al
and bl, al
test bl, bl
je 0x4161ae
mov cl, byte [0x4da70b]
mov al, bl
not al
and byte [0x4da709], al
and byte [0x4da70a], al
and cl, al
mov al, cl
mov byte [0x4da70b], cl
mov ecx, 0x4da730
call fcn.00418ab0
mov eax, dword [0x4d9610]
test eax, eax
je 0x4161ae
test byte [eax + 8], bl
je 0x4161ae
mov dword [0x4d9610], 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.004182a0
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x416210
cmp ax, 0x39
ja 0x416210
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.00416490
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x4161e1
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.00416490
add esp, 0x18
pop esi
add esp, 8
ret