joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 0x410078
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x42
call fcn.00402520
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov al, 0x45
mov byte [ebp - 0x23], al
mov byte [ebp - 0x20], al
mov al, 0x6c
push str.HeapFree
push str.kernel32.dll
mov byte [ebp - 0x24], 0x4b
mov byte [ebp - 0x22], 0x52
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x1f], 0x4c
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], al
mov byte [ebp - 0x18], 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
nop
nop
nop
nop
nop
nop
mov cl, 0x73
lea edx, [ebp - 0x24]
mov byte [ebp - 0x2c], cl
mov byte [ebp - 0x2b], cl
lea ecx, [ebp - 0x34]
mov al, 0x65
push ecx
push edx
mov byte [ebp - 0x34], 0x47
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], 0x74
mov byte [ebp - 0x31], 0x50
mov byte [ebp - 0x30], 0x72
mov byte [ebp - 0x2f], 0x6f
mov byte [ebp - 0x2e], 0x63
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x2a], 0x48
mov byte [ebp - 0x29], al
mov byte [ebp - 0x28], 0x61
mov byte [ebp - 0x27], 0x70
mov byte [ebp - 0x26], 0
call esi
push eax
call ebx
mov ecx, eax
nop
nop
nop
nop
nop
nop
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
mov eax, dword [ebp + 8]
push eax
push 0
call ecx
push eax
call edi
mov eax, 0x40119c
ret
Function at 0x401580
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
mov si, word [eax + 0x14]
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [ecx]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x4016da
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x401640
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x4016c2
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
add ecx, edx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4016c2
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push 4
push 0x1000
add ecx, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
lea edx, [ebp - 0x20]
push 0x410078
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call fcn.00402520
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, ecx
add esi, edi
mov edi, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x4016b2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x4015e8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4044a0
Capabilities:
Set current directory

Disassembly:
push ecx
cmp byte [esp + 8], 0
mov eax, ecx
push ebx
mov ebx, dword [0x4f898c]
mov ecx, 0x3a
push esi
push edi
mov byte [esp + 0xf], dl
mov esi, 0x4fb850
je 0x4044e8
inc dword [0x4fb950]
add ebx, 0xe8
mov edi, ebx
mov dword [0x4f898c], ebx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4fda88
mov dword [ebx + 0x2c], eax
call fcn.0042d2d0
jmp 0x4044ef
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
cmp dword [0x4fb964], 0
xorps xmm0, xmm0
movlpd qword [0x4fe0c8], xmm0
je 0x40451f
mov eax, dword [0x4fa378]
mov ecx, 0x4e3371
test eax, eax
je 0x404518
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0xf], 0
jne 0x4045a4
mov cl, byte [ebx + 0xce]
test cl, cl
jne 0x404554
cmp byte [esp + 0x18], 0x65
sete cl
mov byte [ebx + 0xce], cl
jne 0x404554
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4fe0d4], 0
je 0x404566
cmp dword [0x4fe0d0], 0
jne 0x40456a
test cl, cl
je 0x4045a4
mov byte [ebx + 0xcc], 0
test cl, cl
jne 0x4045a4
cmp dword [0x4fe0d4], 0
jge 0x40458d
pop edi
pop esi
mov dword [ebx + 0xc0], 0xffffffff
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xbc], eax
mov eax, dword [0x4fe0d4]
mov dword [ebx + 0xc0], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x406230
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x406252
call fcn.00406510
test eax, eax
jne 0x406252
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.00406370
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x406298
cmp dword [esi + 0x18], eax
je 0x406288
cmp dword [esi + 8], eax
je 0x406275
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4e3774
mov ecx, esi
call fcn.00406370
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x4062e5
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x4062d6
cmp dword [esp + 0x10], 0xd
jne 0x4062bd
cmp word [ecx], 0
jmp 0x4062bf
cmp byte [ecx], bl
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x406319
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x40630f
cmp dword [esi + 8], 0
je 0x4062fc
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 dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x406330
mov dword [esi + 4], 0
jmp 0x4062e5
cmp dword [esi + 0x18], 0
je 0x40635a
cmp dword [esi + 8], 0
je 0x406347
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
push 0x4e3784
mov ecx, esi
call fcn.00406370
pop edi
pop esi
ret 4

Function at 0x406400
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [esp + 0x114]
push edi
test esi, esi
je 0x406419
mov dword [esi], 0
mov edi, dword [esp + 0x114]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4064f9
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.004c4e4b
add esp, 0xc
test eax, eax
je 0x4064ec
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.004c408e
add esp, 8
test eax, eax
je 0x4064ec
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.004c408e
add esp, 8
test eax, eax
je 0x4064ec
lea eax, [esp + 8]
push str.Native
push eax
call fcn.004c408e
add esp, 8
test eax, eax
je 0x4064ec
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.004c408e
add esp, 8
test eax, eax
je 0x4064ec
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.004c408e
add esp, 8
test eax, eax
je 0x4064e2
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x4064fe
test esi, esi
je 0x4064ec
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret 8
mov byte [esp + 8], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x108
ret 8
Function at 0x406510
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x406520
mov eax, 1
pop ebx
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x4fb968]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x40658e
nop
mov eax, dword [0x4f8998]
cmp eax, 0xffffffff
je 0x40655f
test eax, eax
je 0x40659f
call esi
mov ecx, dword [0x4f8998]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x40659f
mov edx, 1
mov dword [0x4f8984], 0
mov ecx, 0x8000012f
call fcn.004018a0
push dword [0x4fb968]
mov dword [0x4f8984], 1
call edi
test eax, eax
je 0x406540
pop edi
pop esi
pop ebp
mov dword [ebx + 0x18], 1
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406f40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
cmp dword [0x4ff4fc], 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], 0x406940
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x406d50
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], fcn.004068f0
je 0x406fa0
movzx eax, ax
mov eax, dword [eax*8 + 0x4fa71c]
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 0x40709b
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004ca7f2
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call fcn.004ca90e
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x38]
add esp, 0xc
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x40701a
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x407064
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004ca7f2
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call fcn.004ca90e
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call esi
mov edi, eax
test edi, edi
je 0x40709b
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x407098
xor esi, esi
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x407098
inc esi
cmp esi, 3
jl 0x407066
mov eax, dword [esp + 0x18]
mov dword [0x4fa71c], eax
mov eax, dword [esp + 0x20]
mov dword [0x4fa724], eax
mov eax, dword [esp + 0x28]
mov dword [fcn.004068f0], eax
jmp 0x40709b
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x4fa71c]
mov dword [0x4ff4fc], 1
pop ebx
add esp, 0x234
ret
Function at 0x40b270
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 fcn.004c3fb8
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004c1de0
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4e4494
lea esi, [eax + 1]
push esi
call fcn.00405f00
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 0x40b323
cmp dword [edi + 0x34], 0
jne 0x40b323
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040c1e0
test eax, eax
jne 0x40b323
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
mov al, byte [0x4e4498]
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 0x40b323
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, 0x4fa310
call fcn.0040b880
push 0x10014
push dword [0x4fe0a0]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x4fb968]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x40b35c
push 0
push 4
mov ecx, 0x4fda88
call fcn.0042d8c0
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bfa0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 8], ebp
test esi, esi
je 0x40c110
cmp byte [esp + 0x18], 0
jne 0x40bfe8
lea ecx, [esi - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 8]
mov ecx, ebp
shr edx, 1
lea eax, [eax + edx*4]
add eax, 5
push eax
call fcn.0040c1e0
test eax, eax
je 0x40bfe8
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c10f
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
add ebx, dword [ebp]
mov dword [esp + 0x1c], ebx
cmp esi, 0xffffffff
jne 0x40c019
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40c010
sub esi, ecx
cmp esi, 2
jbe 0x40c0ac
lea ecx, [esi - 3]
mov eax, 0xaaaaaaab
mul ecx
add ebx, 2
mov eax, edx
shr eax, 1
inc eax
mov dword [esp + 0x20], eax
mov ebp, eax
lea edx, [eax*4]
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 0x40c041
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
test esi, esi
je 0x40c107
movzx ecx, byte [edi]
shl ecx, 0x10
cmp esi, 1
jbe 0x40c0c4
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 + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ebx + 1], al
cmp esi, 1
jbe 0x40c0f9
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40c0fb
mov al, 0x3d
mov byte [edx + ebx + 2], al
mov byte [edx + ebx + 3], 0x3d
add edx, 4
mov byte [edx + ebx], 0
add dword [ebp + 8], edx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x40c7e0
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_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
jne 0x40c837
mov edi, dword [esi + 4]
test edi, edi
je 0x40c85f
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40c825
mov eax, dword [edi + 4]
test eax, eax
je 0x40c81a
push eax
call fcn.004c4247
add esp, 4
push 0x14
push edi
call fcn.004c0915
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.0040c9f0
mov ecx, dword [esi + 4]
push edi
call fcn.00405c70
mov eax, dword [esi + 4]
push edi
push dword [eax]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40d160
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 8
cmp byte [0x4fe0b8], 0
push ebx
push esi
push edi
je 0x40d202
mov edi, dword fs:[0x24]
cmp dword [0x4fda50], edi
je 0x40d18e
push dword [0x4fda54]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esp + 0x18]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40d197
sub esi, ecx
cmp byte [ebx], al
je 0x40d20b
lea eax, [esp + 0xf]
mov ecx, 0x4fda88
push eax
push 3
lea eax, [esp + 0x18]
push eax
push esi
push ebx
call fcn.0043eed0
test eax, eax
jne 0x40d1dd
cmp byte [esp + 0xf], al
mov ecx, 0x4fda88
setne al
inc eax
push eax
push dword [esp + 0x14]
push esi
push ebx
call fcn.0043f410
test eax, eax
je 0x40d20b
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x28]
mov ecx, eax
call fcn.004b01a0
cmp dword [0x4fda50], edi
je 0x40d202
push dword [0x4fda54]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0x4fda50], edi
je 0x40d21f
push dword [0x4fda54]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x412b00
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 [0x4fb988], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4fb984], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x412b3d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x412d3a
test al, al
jne 0x412b7e
test bh, bh
jne 0x412b7e
push 0x4fc3f4
push 0
push 0
push 0x412db0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4fe2b4], eax
test eax, eax
je 0x412c36
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 [0x4fc3f4]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x412bb5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x412b90
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x412c43
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x412c21
cmp dword [esp + 0x24], 0
je 0x412c5d
mov bh, 1
call fcn.00413120
test al, al
jne 0x412c5d
cmp byte [esp + 0x13], al
jne 0x412d0d
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4fe2b4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412c6a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412c5d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412bc7
call fcn.00413140
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 0x412c06
call fcn.00413120
test al, al
je 0x412d09
jmp 0x412c21
cmp byte [esp + 0x13], 0
jne 0x412d09
jmp 0x412c85
push dword [0x4fe2b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe2b4], 0
call fcn.00413140
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
and al, 1
cmp dword [0x4fb988], 0
je 0x412cb0
test al, al
jne 0x412cca
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4fe2ac], eax
jmp 0x412cca
test al, al
je 0x412cca
push dword [0x4fe2ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe2ac], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4fb984], 0
je 0x412cef
test al, al
jne 0x412d09
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4fe2b0], eax
jmp 0x412d09
test al, al
je 0x412d09
push dword [0x4fe2b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4fe2b0], 0
test bh, bh
je 0x412d3a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4f8984], 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.004b20a0
add esp, 8
mov dword [0x4f8984], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414410
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x804
cmp byte [0x4ff510], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x41460c
cmp dword [0x4fc45c], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x414444
call edi
mov dword [0x4fc45c], eax
inc dword [0x4ff50c]
call edi
mov esi, dword [0x4ff50c]
mov ecx, eax
sub ecx, dword [0x4fc45c]
mov edx, dword [0x4f9b78]
mov dword [0x4fc458], eax
cmp esi, dword [0x4f9b7c]
jbe 0x414535
cmp ecx, edx
jae 0x414537
push ecx
push esi
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]
push 0x800
push eax
call fcn.004aba90
mov dx, word [0x4fc454]
xor eax, eax
add esp, 0x14
xor ecx, ecx
cmp ax, dx
jae 0x4144cb
mov eax, dword [0x4fc444]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4144c3
mov byte [eax + 0x1b], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4144b1
mov dx, word [0x4fc454]
inc ecx
movzx eax, dx
cmp ecx, eax
jl 0x4144a2
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4ff510], 1
mov edx, 4
mov dword [0x4f8984], 0
lea ecx, [esp + 0x18]
call fcn.004b20a0
add esp, 8
cmp eax, 7
jne 0x414507
push 0
push 4
mov ecx, 0x4fda88
call fcn.0042d8c0
mov eax, dword [0x4fc458]
mov dword [0x4f8984], 1
mov byte [0x4ff510], 0
mov dword [0x4ff50c], 0
mov dword [0x4fc45c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, edx
jbe 0x414548
mov dword [0x4ff50c], 0
mov dword [0x4fc45c], eax
mov esi, dword [ebp + 8]
mov al, byte [ebx + 0xf]
mov byte [0x4fe09d], al
inc byte [esi + 0x16]
mov ecx, dword [0x4fa314]
mov edx, dword [0x4fe02c]
mov dword [esp + 0xc], edx
cmp ecx, dword [0x4fa318]
jne 0x41457d
call fcn.004065b0
mov ecx, dword [0x4fa314]
mov edx, dword [esp + 0xc]
cmp ecx, dword [0x4fa310]
jb 0x414592
mov eax, dword [0x4fde14]
mov dword [ecx], eax
mov ecx, dword [0x4fa314]
add ecx, 0xc
push 0
push 0
mov dword [0x4fa314], ecx
push 0
mov dword [ecx + 4], edx
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov ecx, dword [esi]
mov edx, ecx
push 0
push str.call
call fcn.0049a410
sub dword [0x4fa314], 0xc
add esp, 0x14
dec byte [esi + 0x16]
test eax, eax
jne 0x4145de
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x1b], 0
je 0x41460c
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x41460c
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4fb968]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4