joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001090
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.10006630
mov eax, dword [0x100171a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [0x10018254], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x10018250], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x1001824c], edx
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.10006590
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
call fcn.10002bb0
mov byte [ebp - 0xc70], 0
push 0x3ff
push 0
lea edx, [ebp - 0xc6f]
push edx
call fcn.10006590
add esp, 0xc
lea eax, [ebp - 0xc70]
push eax
call fcn.10002bb0
mov byte [ebp - 0x14b8], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x14b7]
push ecx
call fcn.10006590
add esp, 0xc
lea edx, [ebp - 0x14b8]
push edx
call fcn.10002bb0
push 0x10
push 0
lea eax, [ebp - 0x870]
push eax
call fcn.10006590
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x10b8]
push ecx
call fcn.10006590
add esp, 0xc
mov dword [ebp - 0x10b8], 0x44
xor edx, edx
mov word [ebp - 0x1088], dx
mov dword [ebp - 0x108c], 1
mov byte [ebp - 0x860], 0
push 0x3ff
push 0
lea eax, [ebp - 0x85f]
push eax
call fcn.10006590
add esp, 0xc
mov byte [ebp - 0x1070], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x106f]
push ecx
call fcn.10006590
add esp, 0xc
push 0x400
lea edx, [ebp - 0x860]
push edx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x45c], eax
mov ecx, 0x13
mov esi, str._s__d__c_cmd.exe__d__c_cmd.exe__d__c_IF_EXIST___s___start______s___s__s__s_
lea edi, [ebp - 0x458]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14b8]
push eax
lea ecx, [ebp - 0xc70]
push ecx
push str.__param1
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x860]
push ecx
lea edx, [ebp - 0x458]
push edx
push 0x400
lea eax, [ebp - 0x1070]
push eax
call fcn.1000660a
add esp, 0x24
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x10b8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x860]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000657e
mov esp, ebp
pop ebp
ret

Function at 0x10001270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [0x10018254], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x10018250], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x1001824c], edx
mov byte [0x10018184], 0
mov byte [0x10018185], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10001770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10018188], eax
mov esp, ebp
pop ebp
ret
Function at 0x100012c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [0x10018254], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x10018250], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x1001824c], edx
mov byte [0x10018184], 1
mov byte [0x10018185], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10001770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10018188], eax
mov esp, ebp
pop ebp
ret

Function at 0x10001340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xfffbffff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffec
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esp, ebp
pop ebp
ret

Function at 0x10002f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jge 0x10002faa
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10002f70
cmp dword [ebp - 0x10], 0
jne 0x10002f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002faa
cmp dword [ebp - 4], 0
jne 0x10002f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10002f8d
jmp 0x10002faa
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x10002f41
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret
Function at 0x10003460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012398
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100171a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1c], 0
je 0x100034a0
mov ecx, dword [ebp - 0x1c]
call fcn.10003920
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.100039a0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x10003330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x58], 0
jne 0x100034f3
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002220
mov al, byte [ebp - 0x15]
jmp 0x10003513
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 1
mov byte [ebp - 0x16], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002220
mov al, byte [ebp - 0x16]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x100035b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x1000360d
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100035f0
xor al, al
jmp 0x1000361a
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x100035c3
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret

Function at 0x1000657e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100171a4]
jne 0x10006588
repz ret
jmp fcn.1000980b
Function at 0x100104bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000ab24
and dword [ebp - 4], 0
cmp dword [0x10018c44], 0
mov ebx, eax
jne 0x10010570
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10010621
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10010621
push eax
call fcn.1000aab2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10018c44], eax
call esi
push eax
call fcn.1000aab2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10018c48], eax
call esi
push eax
call fcn.1000aab2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10018c4c], eax
call esi
push eax
call fcn.1000aab2
pop ecx
mov dword [0x10018c54], eax
test eax, eax
je 0x10010570
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000aab2
pop ecx
mov dword [0x10018c50], eax
mov eax, dword [0x10018c50]
cmp eax, ebx
je 0x100105c8
cmp dword [0x10018c54], ebx
je 0x100105c8
push eax
call fcn.1000ab2d
push dword [0x10018c54]
mov esi, eax
call fcn.1000ab2d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100105c8
test edi, edi
je 0x100105c8
call esi
test eax, eax
je 0x100105bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100105bf
test byte [ebp - 0xc], 1
jne 0x100105c8
or dword [ebp + 0x10], 0x200000
jmp 0x10010601
mov eax, dword [0x10018c48]
cmp eax, ebx
je 0x10010601
push eax
call fcn.1000ab2d
pop ecx
test eax, eax
je 0x10010601
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10010601
mov eax, dword [0x10018c4c]
cmp eax, ebx
je 0x10010601
push eax
call fcn.1000ab2d
pop ecx
test eax, eax
je 0x10010601
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10018c44]
call fcn.1000ab2d
pop ecx
test eax, eax
je 0x10010621
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10010623
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xddc9c0
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x1c59de4a
pop ss
mov dword [0xeb000000], esi
jmp 0xddc9ca
add byte [ebp + eax], bl
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
jmp 0xddc9ca
pushal
call 0xddc9d0
pop ebp
sub ebp, 0x10
sub ebp, 0x9dc9c0
jmp 0xddc9e6
mov eax, 0x9dc9c0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ca
mov edx, 0xffa9812c
xor byte [eax], dl
inc eax
dec ecx
jne 0xddc9fd
jmp 0xddca10
cmpsd dword [esi], dword es:[edi]
loope 0xddc9ba
movsd dword es:[edi], dword [esi]
adc byte [esp + ebp], ch
sub al, 0xad
in eax, dx
aam 0x2c
sub al, 0x2c
das
loope 0xddc9b5
sub dword [esp + ebp], ebp
sub al, 0x96
add al, 0x2c
sub al, 0x2c
fcmovne st(0), st(6)
das
in al, 0xa7
lodsd eax, dword [esi]
and byte [esp + ebp], ch
sub al, 0x2f
jmp 0x9266bb6

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x401edc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push str.FRAMEWORK
push 0x84
push dword [0x4472cc]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x4472cc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x4472b8
call fcn.0040ef80
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472b8]
xor ecx, ecx
test eax, eax
je 0x401f3b
cmp word [eax], cx
jne 0x401f4a
mov edx, str.Recherche_et_installation_du_framework_WINDEV._r_nRemarque_:_Vous_devez_avoir_un_acc
mov ecx, 0x4472b8
call fcn.0040ef80
mov ecx, 0x4472c4
call fcn.0040ef3e
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041f716
lea ecx, [ebp - 0x210]
call fcn.0040be0b
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0041f738
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040bc4c
push str.FRAMEWORK
test eax, eax
je 0x401f99
push 0x85
jmp 0x401f9e
push 0x86
push dword [0x4472cc]
call edi
push eax
push dword [0x4472cc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x4472bc
mov edx, eax
mov ecx, edi
call fcn.0040ef80
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472bc]
test eax, eax
je 0x401fe1
xor ecx, ecx
cmp word [eax], cx
jne 0x402001
lea ecx, [ebp - 0x210]
call fcn.0040bc4c
mov ecx, edi
mov edx, str.Ce_programme_a
test eax, eax
jne 0x401ffc
mov edx, str.Cette_application_a_besoin_du_framework_WINDEV_pour_fonctionner._r_nIl_nest_pas_install
call fcn.0040ef80
pop edi
pop esi
leave
ret
Function at 0x405590
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4055b2
call fcn.00405870
test eax, eax
jne 0x4055b2
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.004056c0
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4055f8
cmp dword [esi + 0x18], eax
je 0x4055e8
cmp dword [esi + 8], eax
je 0x4055d5
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 0x4b748c
mov ecx, esi
call fcn.004056c0
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x40563a
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x40562b
cmp word [ecx], 0
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 0x40566e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x405664
cmp dword [esi + 8], 0
je 0x405651
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 0x405683
mov dword [esi + 4], 0
jmp 0x40563a
cmp dword [esi + 0x18], 0
je 0x4056ad
cmp dword [esi + 8], 0
je 0x40569a
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 0x4b74ac
mov ecx, esi
call fcn.004056c0
pop edi
pop esi
ret 4

Function at 0x405750
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x405769
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x405849
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.0049b726
add esp, 0xc
test eax, eax
je 0x40583c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.00499643
add esp, 8
test eax, eax
je 0x40583c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.00499643
add esp, 8
test eax, eax
je 0x40583c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.00499643
add esp, 8
test eax, eax
je 0x40583c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.00499643
add esp, 8
test eax, eax
je 0x40583c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.00499643
add esp, 8
test eax, eax
je 0x405832
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.00499643
add esp, 8
test eax, eax
jne 0x405850
test esi, esi
je 0x40583c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8
Function at 0x405870
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
mov ebx, ecx
push ebp
push esi
push edi
cmp dword [ebx + 0x18], 0
jne 0x4058f5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4dc424]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x4058ee
nop
mov eax, dword [0x4d98e0]
cmp eax, 0xffffffff
je 0x4058bf
test eax, eax
je 0x405902
call esi
mov ecx, dword [0x4d98e0]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x405902
mov edx, 1
mov dword [0x4d98d0], 0
mov ecx, 0x8000012f
call fcn.004015d0
push dword [0x4dc424]
mov dword [0x4d98d0], 1
call edi
test eax, eax
je 0x4058a0
mov dword [ebx + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409990
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
mov al, dl
mov byte [esp + 0xa], cl
xor dl, dl
mov byte [esp + 9], al
cmp dword [0x4dc440], 0
movzx ebx, dl
mov edx, 1
push ebp
push esi
cmovne ebx, edx
cmp dword [0x4dc43c], 0
push edi
je 0x4099c7
or bl, 2
cmp cl, bl
je 0x409bd1
test bl, bl
jne 0x409a10
test al, al
jne 0x409a10
push 0x4dcedc
push 0
push 0
push 0x409c40
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4de98c], eax
test eax, eax
je 0x409aa9
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
movzx edi, al
xor esi, esi
xor edi, 1
movzx ebp, cl
nop dword [eax + eax]
push edi
push ebp
push 0x417
push dword [0x4dcedc]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x409a45
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x409a20
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor al, al
mov byte [esp + 0x17], al
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
test cl, cl
je 0x409ab6
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x409aeb
cmp dword [esp + 0x24], 0
je 0x409ac3
mov byte [esp + 0x17], 1
call fcn.00409fa0
test al, al
jne 0x409ac3
mov al, byte [esp + 0x15]
test al, al
jne 0x409ba4
xor cl, cl
mov byte [esp + 0x16], cl
jmp 0x409a63
call fcn.00409fc0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x409ad0
call fcn.00409fa0
test al, al
jne 0x409aeb
cmp byte [esp + 0x15], 0
jne 0x409b9d
jmp 0x409b1e
lea eax, [esp + 0x18]
push eax
push dword [0x4de98c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x409b03
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x409ac3
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409a5b
push dword [0x4de98c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4de98c], 0
call fcn.00409fc0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov al, bl
and al, 1
cmp dword [0x4dc440], 0
je 0x409b47
test al, al
jne 0x409b61
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4de984], eax
jmp 0x409b61
test al, al
je 0x409b61
push dword [0x4de984]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4de984], 0
and bl, 2
cmp dword [0x4dc43c], 0
je 0x409b83
test bl, bl
jne 0x409b9d
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4de988], eax
jmp 0x409b9d
test bl, bl
je 0x409b9d
push dword [0x4de988]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4de988], 0
cmp byte [esp + 0x17], 0
je 0x409bd1
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4d98d0], 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.00481980
add esp, 8
mov dword [0x4d98d0], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ae30
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov eax, ecx
push edi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor dl, dl
xor cl, cl
call fcn.00409990
mov eax, dword [0x4dc404]
test eax, eax
je 0x40ae5b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
xor edi, edi
cmp ax, word [0x4dcf10]
jae 0x40aedf
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
mov edx, dword [0x4ddc68]
mov ebx, dword [0x4ddc6c]
nop word [eax + eax]
mov esi, dword [0x4dcf00]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x40aed3
cmp byte [esi + 0x18], 0
je 0x40aeb4
movzx eax, word [esi + 4]
push eax
push dword [0x4dc424]
call ebp
mov edx, dword [0x4ddc68]
test eax, eax
mov ebx, dword [0x4ddc6c]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x40aed3
test edx, edx
je 0x40aed3
mov eax, dword [ebx + 4]
mov ecx, eax
sub ecx, edx
add dword [ebx + 8], ecx
sub eax, ecx
xor edx, edx
mov dword [ebx + 4], eax
mov dword [0x4ddc68], edx
movzx eax, word [0x4dcf10]
inc edi
cmp edi, eax
jl 0x40ae80
push dword [esp + 0x10]
call fcn.0049cfca
int3
Function at 0x410a60
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 0x410a85
cmp bh, 3
jne 0x410a8d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x410a94
mov byte [esp + 0xf], 1
jmp 0x410a99
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x410bcc
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4dea20], 0
jne 0x410b16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d98d8]
sub eax, dword [0x4de79c]
cmp eax, dword [ecx + 0xd8]
jbe 0x410b1c
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 0x410b0b
mov edx, 1
mov dword [0x4d98d0], 0
or ecx, 0xffffffff
call fcn.004015d0
mov dword [0x4d98d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4de79c], eax
mov ecx, dword [0x4d98d8]
cmp byte [ebp + 0x18], 0
jne 0x410b70
mov al, byte [ecx + 0xf6]
test al, al
je 0x410b38
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x410b3d
mov esi, 0xffc3d44f
cmp dword [0x4dea20], 0
je 0x410b4d
mov al, byte [0x4dea14]
jmp 0x410b54
xor cl, cl
call fcn.00413820
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.00413110
mov ecx, dword [0x4d98d8]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x410b9a
test edi, edi
jne 0x410b9a
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.00411fc0
add esp, 0x14
jmp 0x410bbd
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.00411080
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x410ab0
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x410c08
cmp dword [0x4dea20], 0
je 0x410be2
mov al, byte [0x4dea14]
jmp 0x410be9
xor cl, cl
call fcn.00413820
not bl
and bl, al
and bl, 0xcc
je 0x410c08
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.00413110
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret