joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6fc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006fc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006fc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006fc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006fc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6fcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6fcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x70e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6fcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6fcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x42ee80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x42ee9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42eea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ee90
mov eax, 1
add ebx, ebx
jne 0x42eeb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42eea8
jne 0x42eec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42eea8
xor ecx, ecx
sub eax, 3
jb 0x42eed8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ef4a
mov ebp, eax
add ebx, ebx
jne 0x42eee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42eef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ef14
inc ecx
add ebx, ebx
jne 0x42ef00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42eef5
jne 0x42ef11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42eef5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ef34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ef25
jmp 0x42ee96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ef34
add edi, ecx
jmp 0x42ee96
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ef52
cmp byte [edi], 9
jne 0x42ef52
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 0x42ef57
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42efcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3fd4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3fe2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ef84
mov ecx, edi
jns 0x42efb3
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 + 0x3fe34]
or eax, eax
je 0x42efc9
mov dword [ebx], eax
add ebx, 4
jmp 0x42efa1
call dword [esi + 0x3fe30]
mov ebp, dword [esi + 0x3fe38]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x42f003
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x403a60
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403a74
inc dword [0x4d9814]
add dword [0x4d5b14], 0x108
mov edx, dword [0x4d5b14]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4d82e0
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 0x403aa3
push 0
mov eax, 0x4da6c0
call fcn.0041e500
cmp dword [0x4d9844], 0
mov dword [0x4db1b8], 0
mov dword [0x4db1bc], 0
je 0x403adb
mov eax, dword [0x4d6d34]
test eax, eax
je 0x403acf
mov eax, dword [eax]
test eax, eax
jne 0x403ad4
mov eax, 0x4af9bc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x403b5f
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x403b0a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x403b0a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4db1c4], 0
je 0x403b1c
cmp dword [0x4db1c0], 0
jne 0x403b25
cmp byte [esi + 0xee], 0
je 0x403b5f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x403b5f
cmp dword [0x4db1c4], 0
jge 0x403b47
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 [0x4db1c4]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
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.00499b8a
add esp, 0xc
test eax, eax
je 0x405366
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00499409
add esp, 8
test eax, eax
je 0x405366
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00499409
add esp, 8
test eax, eax
je 0x405366
lea edx, [esp]
push str.Native
push edx
call fcn.00499409
add esp, 8
test eax, eax
je 0x405366
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00499409
add esp, 8
test eax, eax
je 0x405366
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00499409
add esp, 8
test eax, eax
je 0x40535c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00499409
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.0049b3ce
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.0049b15a
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b1b9
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.0049b15a
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0049b1b9
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.0049a71a
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0049ace0
push str.__xml_version_1.0__encoding_UTF_8___
lea esi, [eax + 1]
push 0x4b0d34
push esi
call fcn.0049a500
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 0x408d18
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 0x408d36
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408d2d
sub eax, edx
mov dword [ebp - 4], eax
cmp eax, 2
jbe 0x408db1
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 0x408d4c
cmp dword [ebp - 4], 0
jbe 0x408e10
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp dword [ebp - 4], 1
jbe 0x408dcc
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 0x408e04
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x408e06
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 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.00484710
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.004a7840
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.0047a350
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.0047f770
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.00484710
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.00499185
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