joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6faca15f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x6fb3f040]
shr dword [ebp - 0x5c], 0x10
imul edx, edx, 0x343fd
inc ebx
add eax, dword [eax]
inc ebx
add eax, dword [eax]
add edx, 0x269ec3
mov dword [0x6fb3f040], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x5c], 0
jne 0x6faca152
xor edx, edx
div ebx
lea ebx, [edx + ecx]
push ebx
push edi
push dword [ebp - 0x7c]
mov dword [ebp - 0xc4], ebx
mov eax, 0x289abde7
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xcc]
add esp, 0xc
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0xe4], ecx
mov ebx, 0xfffff000
mov byte [ebp - 0x55], 0
test edi, edi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xd4], eax
je 0x6faca8a9
lea eax, [ebp - 0xe4]
push eax
mov eax, 0x4d0c8101
mov eax, 0xfffffff
mov edx, dword [0x6fa6c370]
mov edi, dword [ebp - 0xe0]
and dword [ebp - 0x64], 0
and dword [ebp - 0x60], 0
and edi, eax
pop ecx
mov ecx, dword [ebp - 0xe4]
mov dword [ebp + 0x52], edi
inc ebx
push edx
inc esp
sub byte [eax], al
or dword [eax], eax
cmc
rcl dword [edi], 0x75
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
inc eax
add byte [ecx], ah
add byte [eax + 0xf], ch
add byte [eax], al
add dl, ch
rcl dword [edi], 0x75
add byte [eax], al
add byte [eax], al
lcall 0, 0x9f
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx + eax], cl
inc eax
add byte [eax], dl
dec esp
add byte [ebp], al
inc ecx
add byte [ebx], dl
jle 0x6faca258
xor dword [eax], eax
add byte cs:[eax + eax + 0x58], dl
add byte [eax + eax], dl
add byte [eax], al
add byte [edx], al
add byte [0x7517c0], cl
add byte [eax], al
add ah, ch
mov edi, 0x7517
add byte [eax], al
in al, dx
mov edi, 0x7517
add byte [eax], al
loopne 0x6faca283
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [eax], ch
add byte [eax + 0x1e001], bh
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
sub byte [eax], al
mov eax, 0x1e001
add byte [eax], bl
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [esi], al
add byte [edx], al
add byte [eax + 0x35], bh
add byte [eax], al
add byte [eax + 0xc35], bh
add byte [eax], al
add byte [esi + 0x49], al
dec esp
inc ebp
xor byte [eax], al
add eax, dword [eax]
invalid
add byte [eax], al
add byte [eax], cl
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add al, 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
Function at 0x6fb07962
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + 0x69], dh
scasb al, byte es:[edi]
sub al, 0
add byte [eax], al
invalid
add byte [ecx], dh
add byte [eax], al
or byte [ebx - 0x64f7ffd5], bl
sub eax, dword [eax]
loop 0x6fb07917
outsb dx, byte [esi]
insb byte es:[edi], dx
test al, 0
cmp byte [ebx + ebp + 0x700], bl
add byte [ebp + ecx + 0xdac00a7], ch
cmpsd dword [esi], dword es:[edi]
add byte [eax - 0x49], cl
rol byte [eax], 0x48
mov bh, 0xc0
add byte [eax + 0xbdc2], ah
add byte [eax], al
add byte [eax], cl
mov eax, 0xc8c400c0
mov ebp, 0xc0b6c800
rol byte [eax], 1
rol byte [eax], 1
add byte [eax], al
add byte [eax], ah
pop ds
rol byte [eax], 0
add byte [eax], al
add byte [ebp + 0x69], bh
scasb al, byte es:[edi]
sub al, 0
add byte [eax], al
mov byte [ebx + 0x53], ah
xor ecx, 0xffffffa5
cmpsb byte [esi], byte es:[edi]
bound ecx, qword [esi - 0x4f]
and byte [ebx], 0xdb
js 0x6fb07923
popfd
lea esp, [esi + 0xc0f1c8]
add dl, dh
rol byte [eax], 0
add byte [edx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dh, bl
pop ebx
jae 0x6fb07985
aas
add dword [ebp + 0x46], edx
mov bl, 0x51
movsb byte es:[edi], byte [esi]
sahf
adc eax, 0x8f02d76
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp + ecx*2 + 0x45], cl
dec ebp
inc eax
add byte [eax], al
add al, ah
mul dword [ecx]
add byte [eax], al
add byte [eax], al
push 0x69
scasb al, byte es:[edi]
sub al, 0
add byte [eax], al
invalid
Function at 0x7038ee62
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
add eax, dword [eax]
push cs
add dword [edi], ebp
das
add esp, ebx
add dword [eax], eax
add byte [ebx], 0x4b
add al, byte [eax]
add byte [ebx], 0x53
add al, byte [eax]
add byte [ebx], 0x82
add al, byte [eax]
add byte [ebx], 0xa2
add al, byte [eax]
add byte [ebx], 0xa3
add al, byte [eax]
add byte [ebx], 0xa4
add al, byte [eax]
add byte [ebx], 0xb8
add al, byte [eax]
add byte [ebx], 0xbd
add al, byte [eax]
add byte [ebx], 0xd1
add al, byte [eax]
add byte [ebx], 0x27
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x438ca2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
mov ecx, 0xb620fddd
inc ebx
add ebx, ebx
call fcn.00438cda
add ecx, ecx
or ebx, ecx
xor dword [esi], eax
and ecx, ebx
inc ecx
mov ebx, 0xe9d7b3fc
inc esi
dec ecx
add ebx, 0x32626f24
sub ecx, ebx
cmp esi, edx
jne fcn.00438ca2
inc ecx
add ebx, 0x74887e0c
ret
Function at 0x406c30
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406c49
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406d29
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.0049ee52
add esp, 0xc
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0049ecd1
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0049ecd1
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0049ecd1
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0049ecd1
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0049ecd1
add esp, 8
test eax, eax
je 0x406d12
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0049ecd1
add esp, 8
test eax, eax
jne 0x406d30
test esi, esi
je 0x406d1c
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 0x406d50
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4e9678], 0
push ebx
push esi
push edi
jne 0x406dd8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4e7ccc]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406dce
nop dword [eax + eax]
mov eax, dword [0x4e3808]
cmp eax, 0xffffffff
je 0x406d9f
test eax, eax
je 0x406de1
call esi
mov ecx, dword [0x4e3808]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406de1
mov edx, 1
mov dword [0x4e37f0], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e7ccc]
mov dword [0x4e37f0], 1
call edi
test eax, eax
je 0x406d80
mov dword [0x4e9678], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x407431
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4074af
cmp word [esi + 8], 2
jne 0x407491
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x407491
mov edi, dword [esi + 0xc]
jmp 0x40748b
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004073ca
mov dword [ebp], eax
test eax, eax
je 0x4074aa
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40746b
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a3a97
add esp, 0x10
xor eax, eax
jmp 0x4074d6
push 8
pop eax
jmp 0x4074d6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4074d4
sub eax, 1
je 0x4074cd
sub eax, 1
jne 0x4074d4
lea eax, [ecx + 2]
jmp 0x4074d6
mov eax, 0x2afa
jmp 0x4074d6
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x407b02
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e7c90], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x40761f
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x407932
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], 0x4075e4
je 0x407b51
movzx eax, ax
jmp 0x407c5f
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407c50
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x138]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004a3986
push str.ws2_32
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a4809
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x44]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x407bc9
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x407c0d
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a3986
push str.wship6
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a4809
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407c4c
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x407c49
xor edi, edi
lea eax, [esp + 0x14]
mov ebx, edi
push dword [eax + ebx*8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407c49
inc ebx
lea eax, [esp + 0x14]
cmp ebx, 3
jl 0x407c15
test esi, esi
je 0x407c4c
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e68fc], eax
add edi, 8
cmp edi, 0x18
jl 0x407c35
jmp 0x407c4c
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e7c90], 1
mov eax, dword [eax*8 + 0x4e68fc]
add esp, 0x230
ret
Function at 0x40a8d7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0xa
mov edx, dword [edi + 0x3c]
mov ecx, edx
mov eax, dword [edi + 0x34]
sub ecx, ebx
mov dword [esp + 0x14], ecx
mov byte [edx + eax], 0
lea eax, [esp + 0x18]
push eax
lea eax, [ecx + 0x26]
push eax
call fcn.004a383c
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049ce90
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4d0bbc
lea esi, [eax + 1]
push esi
call fcn.0040bddf
add esp, 0x20
add esi, eax
lea eax, [esp + 0x14]
sub esi, eax
push 0
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a967
mov eax, dword [esp + 0x10]
push 0
inc eax
push eax
mov eax, dword [edi + 0x34]
add eax, ebx
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a967
mov dword [edi + 0x3c], ebx
xor eax, eax
jmp 0x40a971
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040acb3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40acfa
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov ebp, edx
cmp edi, 0xffffffff
jne 0x40ad1b
push ebp
call fcn.004a38f0
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40ada4
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [edi - 3]
push 3
pop ecx
div ecx
mov ebx, dword [esp + 0x18]
lea edx, [eax + 1]
mov esi, edx
shl esi, 2
movzx eax, byte [ebp]
sub edi, 3
movzx ecx, byte [ebp + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl ecx, 8
add ebp, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
lea ebx, [ebx + 4]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 3], al
sub edx, 1
jne 0x40ad41
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40adfe
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40adbd
movzx eax, byte [ebp + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], al
cmp edi, 1
jbe 0x40adf0
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40adf2
mov al, 0x3d
mov byte [esi + ebx + 2], al
mov byte [esi + ebx + 3], 0x3d
add esi, 4
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b66ed
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4e8ef4]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c540
push str.stdout
push esi
mov ecx, 0x4e8ea8
call fcn.0040a7cd
mov eax, dword [0x4e8ef4]
cmp eax, 2
je 0x40c6c6
mov eax, dword [0x4e97fc]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c599
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x40c599
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d8]
push 2
push dword [ebp + 0x10]
call fcn.0047ebd0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.0047f3e0
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, edx
je 0x40c613
cmp dword [ebp - 0x18], 0
jne 0x40c613
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047f820
jne 0x40c605
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40c60e
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.0047f7c0
jne 0x40c651
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40c65c
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c649
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40c65c
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40c68b
cmp dword [ebp - 0x18], 0
jne 0x40c68b
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40c6af
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c6a8
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40c6c6
push eax
call fcn.0049edd2
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e6a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.004b55e0
push ebp
push esi
mov esi, dword [esp + 0x4018]
push edi
mov edi, ecx
test esi, esi
jne 0x40e6d3
mov esi, dword [edi + 0x644]
test esi, esi
jne 0x40e6d3
mov ecx, dword [edi + 0x27c]
movzx eax, word [edi + 0x280]
jmp 0x40e6db
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
mov ebp, dword [esp + 0x4010]
test ebp, ebp
je 0x40e7c5
push ebx
push dword [esp + 0x4018]
movzx eax, ax
push str.Warning:
push eax
mov eax, dword [0x4e8070]
movzx ecx, cx
push dword [eax + ecx*4]
lea eax, [esp + 0x20]
push str._s___d__:____s_s_n
push 0x2000
push eax
call fcn.00481670
mov ebx, eax
add esp, 0x1c
mov eax, dword [esp + 0x401c]
cmp word [eax], 0
je 0x40e74c
push eax
mov ecx, 0x2000
lea eax, [esp + 0x14]
push str._____Specifically:__s_n
sub ecx, ebx
lea eax, [eax + ebx*2]
push ecx
push eax
call fcn.00481670
add esp, 0x10
add ebx, eax
cmp ebp, 3
jne 0x40e770
push 0x4d1a74
push ebx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c500
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4000
ret 0x10
mov eax, dword [0x4e8ef0]
test eax, eax
je 0x40e792
push str.stderr
lea eax, [esp + 0x14]
mov ecx, 0x4e8ea8
push eax
call fcn.0040a7cd
mov eax, dword [0x4e8ef0]
cmp eax, 2
je 0x40e7a2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, 2
jne 0x40e7c4
push 0
push esi
push dword [esp + 0x4024]
mov ecx, 0x4e8f30
push 1
push dword [esp + 0x4028]
call fcn.0040d410
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4000
ret 0x10
Function at 0x412ce0
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 [0x4e7ef4], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4e7ef0], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x412d1d
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x412f1a
test al, al
jne 0x412d5e
test bh, bh
jne 0x412d5e
push 0x4e8028
push 0
push 0
push 0x412f90
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4e9808], eax
test eax, eax
je 0x412e16
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 [0x4e8028]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x412d95
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x412d70
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x412e23
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x412e01
cmp dword [esp + 0x24], 0
je 0x412e3d
mov bh, 1
call fcn.00413400
test al, al
jne 0x412e3d
cmp byte [esp + 0x13], al
jne 0x412eed
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4e9808]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412e4a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412e3d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412da7
call fcn.00413420
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 0x412de6
call fcn.00413400
test al, al
je 0x412ee9
jmp 0x412e01
cmp byte [esp + 0x13], 0
jne 0x412ee9
jmp 0x412e65
push dword [0x4e9808]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e9808], 0
call fcn.00413420
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
and al, 1
cmp dword [0x4e7ef4], 0
je 0x412e90
test al, al
jne 0x412eaa
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4e9800], eax
jmp 0x412eaa
test al, al
je 0x412eaa
push dword [0x4e9800]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e9800], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4e7ef0], 0
je 0x412ecf
test al, al
jne 0x412ee9
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4e9804], eax
jmp 0x412ee9
test al, al
je 0x412ee9
push dword [0x4e9804]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e9804], 0
test bh, bh
je 0x412f1a
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e37f0], 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.00486af0
add esp, 8
mov dword [0x4e37f0], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret