joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e280
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4795d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0044db40
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.0044db40
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.0044dbb0
cmp dword [esp + 0x40], ebx
jne 0x44e308
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.0044db60
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044db60
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0044e1c0
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0044dfe0
cmp eax, esi
jb 0x44e38b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x49e8d8
lea ecx, [esp + 0x1c]
call fcn.0044df60
cmp eax, 1
jne 0x44e37d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0044dd00
push ebx
lea ecx, [esp + 0x20]
call fcn.00431e80
push eax
call fcn.0045be31
add esp, 8
test eax, eax
jge 0x44e37d
push ebx
lea ecx, [esp + 0x20]
call fcn.0044e050
push eax
call edi
test eax, eax
je 0x44e3c0
lea ecx, [esp + 0xc]
inc esi
call fcn.0044dfe0
cmp esi, eax
jbe 0x44e32d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0044db60
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044db60
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0044db60
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044db60
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x450940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x45094b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x450a4e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x48616c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x48616c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x48616c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x48616c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x48616c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x48616c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x48616c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x48616c]
xor eax, edx
inc ecx
dec edi
jne 0x450966
pop edi
test esi, esi
je 0x450a70
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x48616c]
xor eax, edx
inc ecx
dec esi
jne 0x450a52
pop esi
pop ebx
not eax
ret

Function at 0x451400
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x451441
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451436
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x451454
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x452390
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x452445
cmp dword [ebp + 4], 0xffffffff
jne 0x452445
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x49eb60
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x45240d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x45240d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00451190
add esp, 0x10
test eax, eax
jne 0x452430
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004516d0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4528a0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x452968
mov al, byte [ecx]
test al, al
je 0x452968
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4528cb
cmp al, 0x5c
jne 0x4528cd
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4528c3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x452904
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.0045c4da
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004528a0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x456a30
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x456ad3
test eax, eax
jbe 0x456ad3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x456ad3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x456a7e
xor esi, esi
jmp 0x456a84
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x456aaf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004044a0
add esi, eax
push esi
mov ebx, esi
call fcn.004044a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x456a90
pop ebp
test edi, edi
pop edi
jne 0x456ad3
test ebx, ebx
je 0x456ad3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045b2a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x456c15
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x456d2d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x456d2d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d14b
mov esi, eax
test esi, esi
je 0x456d2d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x456d2d
mov ecx, esi
call fcn.00456b80
cmp edi, eax
jge 0x456d2d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x456cb3
mov dword [esp + 0x34], 1
jmp 0x456d0e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x456d2d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00456180
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45be51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045ec7a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x45be74
test byte [esp + 8], 2
je 0x45be74
call fcn.0045eced
mov dword [eax], 0xd
call fcn.0045ecf6
mov dword [eax], 5
jmp 0x45be4d
xor eax, eax
ret
Function at 0x46daef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46db27
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046bba3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bb7b
jmp 0x46db33
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f1dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f21f
call fcn.00474f57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f21f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f216
xor eax, eax
jmp 0x46f227
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f22d
pop edi
pop esi
pop ebx
ret 4

Function at 0x475487
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4754b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4754d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004753ed
jmp 0x4754d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4754d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004753ed
test edi, edi
mov eax, edi
jne 0x4754bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x406852
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406848
mov eax, 1
add ebx, ebx
jne 0x40686b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406860
jne 0x40687c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406860
xor ecx, ecx
sub eax, 3
jb 0x406890
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406902
mov ebp, eax
add ebx, ebx
jne 0x40689b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4068a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4068cc
inc ecx
add ebx, ebx
jne 0x4068b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4068ad
jne 0x4068c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4068ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4068ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4068dd
jmp 0x40684e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4068ec
add edi, ecx
jmp 0x40684e
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40690a
cmp byte [edi], 1
jne 0x40690a
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 0x40690f
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x406987
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x68b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x68f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40693c
mov ecx, edi
jns 0x40696b
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 + 0x68f8]
or eax, eax
je 0x406981
mov dword [ebx], eax
add ebx, 4
jmp 0x406959
call dword [esi + 0x6908]
mov ebp, dword [esi + 0x68fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4069bb
sub esp, 0xffffff80
jmp 0x4011cc
Function at 0x4037c0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4037d4
inc dword [0x4ca660]
add dword [0x4c6a44], 0x108
mov edx, dword [0x4c6a44]
push esi
push edi
mov ecx, 0x42
mov esi, 0x4c9130
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 0x403803
push 0
mov eax, 0x4cb490
call fcn.00417d70
cmp dword [0x4ca694], 0
mov dword [0x4cbf80], 0
mov dword [0x4cbf84], 0
je 0x40383b
mov eax, dword [0x4c7b78]
test eax, eax
je 0x40382f
mov eax, dword [eax]
test eax, eax
jne 0x403834
mov eax, 0x4a3910
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x10], 0
jne 0x4038bf
or ecx, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x40386a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xee], al
test al, al
je 0x40386a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4cbf8c], 0
je 0x40387c
cmp dword [0x4cbf88], 0
jne 0x403885
cmp byte [esi + 0xee], 0
je 0x4038bf
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x4038bf
cmp dword [0x4cbf8c], 0
jge 0x4038a7
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 [0x4cbf8c]
mov dword [esi + 0xe0], edx
pop edi
pop esi
ret
Function at 0x404740
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404763
call fcn.00404a10
test eax, eax
jne 0x404763
push str.Cant_open_clipboard_for_writing.
call fcn.00404840
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40479c
cmp dword [esi + 0x18], ebx
je 0x40478e
cmp dword [esi + 8], ebx
je 0x404783
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 0x4a3ce4
call fcn.00404840
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 0x4047d5
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x4047fc
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 0x4047fc
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 0x4047f2
cmp dword [esi + 8], ebx
je 0x4047e7
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 0x404811
mov dword [esi + 4], ebx
jmp 0x4047d5
cmp dword [esi + 0x18], ebx
je 0x40482e
cmp dword [esi + 8], ebx
je 0x404823
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 0x4a3d04
call fcn.00404840
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404910
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x404920
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4049ef
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.0049053d
add esp, 0xc
test eax, eax
je 0x4049e6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00490339
add esp, 8
test eax, eax
je 0x4049e6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00490339
add esp, 8
test eax, eax
je 0x4049e6
lea edx, [esp]
push str.Native
push edx
call fcn.00490339
add esp, 8
test eax, eax
je 0x4049e6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00490339
add esp, 8
test eax, eax
je 0x4049e6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00490339
add esp, 8
test eax, eax
je 0x4049dc
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00490339
add esp, 8
test eax, eax
jne 0x4049f5
test esi, esi
je 0x4049e6
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 0x404a10
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x404a9a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ca4ec]
push eax
call ebx
test eax, eax
jne 0x404a8f
mov eax, dword [0x4c6948]
cmp eax, 0xffffffff
je 0x404a5f
test eax, eax
je 0x404aa6
call esi
mov ecx, dword [0x4c6948]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404aa6
push 1
push 0x8000012f
mov dword [0x4c694c], 0
call fcn.004013d0
mov edx, dword [0x4ca4ec]
add esp, 8
push edx
mov dword [0x4c694c], 1
call ebx
test eax, eax
je 0x404a40
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409300
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 [0x4ca61c], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x409324
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ca620], 0
je 0x409333
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x409540
test al, al
jne 0x409376
cmp byte [ebp + 0xc], al
jne 0x409376
push 0x4c93f0
push 0
push 0
push 0x409630
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cad1c], eax
test eax, eax
je 0x409407
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 [0x4c93f0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x4093ac
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x409386
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 0x409413
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40947a
cmp dword [esp + 0x2c], 0
je 0x409422
mov byte [esp + 0x1f], 1
call fcn.004099b0
test al, al
jne 0x409422
cmp byte [ebp + 0xc], al
jne 0x40950e
mov byte [ebp + 8], al
jmp 0x4093c1
call fcn.004099d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40945e
call fcn.004099b0
test al, al
jne 0x40947a
cmp byte [ebp + 0xc], 0
jne 0x409507
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ca61c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x4094b2
test byte [esp + 0x1e], 1
jne 0x4094cb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4cad14], eax
jmp 0x4094cb
mov ecx, dword [0x4cad1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x409492
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x409422
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4093c1
mov edx, dword [0x4cad1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4cad1c], 0
call fcn.004099d0
jmp 0x409432
test byte [esp + 0x1e], 1
je 0x4094cb
mov eax, dword [0x4cad14]
push eax
call edi
mov dword [0x4cad14], 0
cmp dword [0x4ca620], 0
je 0x4094ed
test byte [esp + 0x1e], 2
jne 0x409507
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4cad18], eax
jmp 0x409507
test byte [esp + 0x1e], 2
je 0x409507
mov ecx, dword [0x4cad18]
push ecx
call edi
mov dword [0x4cad18], 0
cmp byte [esp + 0x1f], 0
je 0x409540
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4c694c], 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.0047b6e0
add esp, 0x18
mov dword [0x4c694c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret