joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x62ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x62ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x62ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x62ad94
push eax
push esi
call fcn.0062d20b
add esp, 8
pop esi
ret 0x10

Function at 0x62ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x62ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x62ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x643320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0062cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x62adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x62ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x62aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x62aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x643320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0062cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x62aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x62ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x62b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x62b131
push esi
call fcn.0062e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0061d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x62b131
push 0
push ebp
call fcn.0061d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0061d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x62b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0061d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x62b121
push 0x643918
push edi
call fcn.0062c3f0
push eax
push ebx
push esi
call fcn.0062af60
push 0x6438f8
push edi
call fcn.0062c3f0
push eax
push ebx
push esi
call fcn.0062af60
push 0x6438d8
push edi
call fcn.0062c3f0
push eax
push ebx
push esi
call fcn.0062af60
push 0x6438c0
push edi
call fcn.0062c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0062af60
push 0x6438a0
push edi
call fcn.0062c3f0
push eax
push ebx
push esi
call fcn.0062af60
push 0x643888
push edi
call fcn.0062c3f0
push eax
push ebx
push esi
call fcn.0062af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x62c1b0
Capabilities:
Acquire debug privileges

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

Function at 0x62cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x63e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x62cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x62cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x44c670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0x4a1
mov edx, dword [ecx + 0x48d680]
add edx, 0x55697067
mov eax, 4
imul ecx, eax, 0x4a1
mov dword [ecx + 0x48d680], edx
mov edx, dword [0x48cde8]
push edx
call fcn.0044ea20
add esp, 4
mov eax, 4
imul ecx, eax, 0x34d
mov edx, dword [ecx + 0x48d680]
and edx, 0xb946697e
cmp edx, 0x80129805
jg 0x44c6f2
mov eax, 2
imul ecx, eax, 0x331
movsx edx, word [ecx + 0x48ed48]
and edx, 0x3a5c64fc
mov eax, 4
imul ecx, eax, 0x4a3
mov dword [ecx + 0x48d680], edx
push 1
call fcn.00463b00
mov edx, 4
imul eax, edx, 0xc8
mov dword [eax + 0x48d680], 0xf33fde9f
pop ebp
ret
Function at 0x4591e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, 4
imul ecx, eax, 0x177
mov edx, dword [ecx + 0x48d680]
and edx, 0x4bea2d1
xor edx, 0x479eb2e1
mov eax, 2
imul ecx, eax, 0x2dd
movsx eax, word [ecx + 0x48ed48]
cmp edx, eax
jl 0x459243
mov ecx, 4
imul edx, ecx, 0x4a2
mov eax, dword [edx + 0x48d680]
and eax, 0x4e84d7f2
mov ecx, 4
imul edx, ecx, 0x4a2
mov dword [edx + 0x48d680], eax
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 8]
mov dword [edx + ecx], 0
mov eax, 4
imul ecx, eax, 0x218
mov edx, dword [ecx + 0x48d680]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, 4
imul ecx, eax, 0x218
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x48d680], edx
mov eax, 0xdd7c7dba
sub eax, dword [ebp - 0xc]
mov ecx, 4
imul edx, ecx, 0x219
mov ecx, dword [edx + 0x48d680]
sub ecx, eax
mov edx, 4
imul eax, edx, 0x219
mov dword [eax + 0x48d680], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 8]
mov dword [edx + ecx], 0
mov eax, 2
imul ecx, eax, 0x2f8
movsx edx, word [ecx + 0x48ed48]
mov eax, 2
imul ecx, eax, 0x45c
movsx eax, word [ecx + 0x48ed48]
imul ecx, eax, 0x1889d928
or edx, ecx
cmp edx, 0xaf7194f5
je 0x459359
mov edx, 2
imul eax, edx, 0x2ed
mov cx, word [eax + 0x48ed48]
sub cx, 1
mov word [ebp - 2], cx
mov edx, 2
imul eax, edx, 0x2ed
mov cx, word [ebp - 2]
mov word [eax + 0x48ed48], cx
movsx edx, word [ebp - 2]
xor edx, 0x48964c59
xor edx, 0x9164ff6d
mov eax, 2
imul ecx, eax, 0x4c0
movsx eax, word [ecx + 0x48ed48]
imul eax, edx
mov ecx, 2
imul edx, ecx, 0x4c0
mov word [edx + 0x48ed48], ax
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 8]
mov dword [edx + ecx + 8], 0x67452301
mov eax, 4
imul ecx, eax, 0x26e
mov dword [ecx + 0x48d680], 0xd193a237
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 8]
mov dword [eax + edx + 8], 0xefcdab89
mov ecx, 4
imul edx, ecx, 0x3f7
mov eax, dword [edx + 0x48d680]
sub eax, 0x582d8668
mov ecx, 4
imul edx, ecx, 0x3f7
mov dword [edx + 0x48d680], eax
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 8], 0x98badcfe
mov edx, 4
imul eax, edx, 0x4b1
mov ecx, dword [eax + 0x48d680]
not ecx
mov edx, 4
imul eax, edx, 0xaf
mov dword [eax + 0x48d680], ecx
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 8]
mov dword [eax + edx + 8], 0x10325476
mov ecx, 4
imul edx, ecx, 0x4f4
mov eax, 4
imul ecx, eax, 0x2ff
mov eax, dword [ecx + 0x48d680]
shl eax, 0xa
xor eax, 0xaa79e5a6
or eax, 0x3d10f489
mov ecx, dword [edx + 0x48d680]
add ecx, eax
mov edx, 4
imul eax, edx, 0x4f4
mov dword [eax + 0x48d680], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46b1c5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48c3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046529c
mov dword [ebp - 0x14], eax
cmp dword [0x490454], esi
jne 0x46b2b8
push 0x800
push esi
push 0x482258
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46b245
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46b398
push esi
push esi
push 0x482258
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46b398
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46b398
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x490454], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x490458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x49045c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x490464], eax
test eax, eax
je 0x46b2b5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x490460], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46b2dd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46b2d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x46b2f2
push 4
pop eax
jmp 0x46b39a
cmp dword [ebp - 0x14], esi
je 0x46b2f2
push dword [0x490454]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46b2d7
mov eax, dword [0x490460]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x46b350
cmp dword [0x490464], edi
je 0x46b350
push eax
call ebx
push dword [0x490464]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46b350
test eax, eax
je 0x46b350
call ecx
test eax, eax
je 0x46b345
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x46b345
test byte [ebp - 8], 1
jne 0x46b350
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x46b380
mov eax, dword [0x490458]
cmp eax, edi
je 0x46b37d
push eax
call ebx
test eax, eax
je 0x46b37d
call eax
mov esi, eax
test esi, esi
je 0x46b37d
mov eax, dword [0x49045c]
cmp eax, edi
je 0x46b37d
push eax
call ebx
test eax, eax
je 0x46b37d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x490454]
call ebx
test eax, eax
je 0x46b398
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x46b39a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b017
mov esp, ebp
pop ebp
ret
Function at 0x40ed5d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x40eae0
pop eax
mov edx, ebx
call fcn.0040ed89
and edx, edx
xor dword [esi], eax
sub edx, 0x91aba2ea
sub ebx, 0xa1877d85
inc esi
dec edx
dec ebx
cmp esi, edi
jne fcn.0040ed5d
and ebx, edx
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x10001f80
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10009098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
jne 0x10001fe4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10001fe4
xor al, al
jmp 0x10001fee
cmp dword [ebp - 0x11c], 5
seta al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006470
mov esp, ebp
pop ebp
ret

Function at 0x10006740
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1000677e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10006776
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10006780
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10006766
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10006850
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10006866
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10006881
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x403490
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4034a4
inc dword [0x4ab410]
add dword [0x4a7978], 0xe8
mov edx, dword [0x4a7978]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a9f50
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 0x4034d3
push 0
mov eax, 0x4ac390
call fcn.00415ec0
cmp dword [0x4ab43c], 0
mov dword [0x4ac9a8], 0
mov dword [0x4ac9ac], 0
je 0x4034fb
push 0x4abaa8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x40357f
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x40352a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x40352a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ac9b4], 0
je 0x40353c
cmp dword [0x4ac9b0], 0
jne 0x403545
cmp byte [esi + 0xce], 0
je 0x40357f
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x40357f
cmp dword [0x4ac9b4], 0
jge 0x403567
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4ac9b4]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x404280
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ac340], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404298
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x4042e5
cmp ebx, 0xffffffff
jne 0x4042b2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042a7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x4042e5
push edi
lea edi, [ebx + 1]
mov esi, 0x4ac334
call fcn.00404300
pop edi
test eax, eax
jne 0x4042cf
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ac340]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00488790
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ac334
jmp fcn.00404370

Function at 0x404370
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x404393
call fcn.00404650
test eax, eax
jne 0x404393
push str.Cant_open_clipboard_for_writing.
call fcn.00404480
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4043cd
cmp dword [esi + 0x18], edi
je 0x4043be
cmp dword [esi + 8], edi
je 0x4043b3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x499a14
call fcn.00404480
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x404410
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x404438
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x4043ef
cmp word [eax], di
jmp 0x4043f2
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x404438
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x40442d
cmp dword [esi + 8], edi
je 0x404422
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404450
mov dword [esi + 4], edi
jmp 0x404410
cmp dword [esi + 0x18], edi
je 0x40446d
cmp dword [esi + 8], edi
je 0x404462
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x499a24
call fcn.00404480
pop ebp
pop edi
pop esi
ret 4
Function at 0x404550
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404560
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40462f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.00486270
add esp, 0xc
test eax, eax
je 0x404626
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.004857f1
add esp, 8
test eax, eax
je 0x404626
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.004857f1
add esp, 8
test eax, eax
je 0x404626
lea edx, [esp]
push str.Native
push edx
call fcn.004857f1
add esp, 8
test eax, eax
je 0x404626
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.004857f1
add esp, 8
test eax, eax
je 0x404626
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.004857f1
add esp, 8
test eax, eax
je 0x40461c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.004857f1
add esp, 8
test eax, eax
jne 0x404633
test esi, esi
je 0x404626
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret

Function at 0x404650
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 0x4046da
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ab2a0]
push eax
call ebx
test eax, eax
jne 0x4046cf
mov eax, dword [0x4a78e8]
cmp eax, 0xffffffff
je 0x40469f
test eax, eax
je 0x4046e6
call esi
mov ecx, dword [0x4a78e8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4046e6
push 1
push 0x8000012f
mov dword [0x4a78ec], 0
call fcn.004013c0
mov edx, dword [0x4ab2a0]
add esp, 8
push edx
mov dword [0x4a78ec], 1
call ebx
test eax, eax
je 0x404680
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 0x408890
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 [0x4ab3d0], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4088b4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ab3d4], 0
je 0x4088c3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408ad0
test al, al
jne 0x408906
cmp byte [ebp + 0xc], al
jne 0x408906
push 0x4aa188
push 0
push 0
push 0x408ba0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4abbc8], eax
test eax, eax
je 0x408997
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 [0x4aa188]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x40893c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408916
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x4089a3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408a0a
cmp dword [esp + 0x2c], 0
je 0x4089b2
mov byte [esp + 0x1f], 1
call fcn.00408f10
test al, al
jne 0x4089b2
cmp byte [ebp + 0xc], al
jne 0x408a9e
mov byte [ebp + 8], al
jmp 0x408951
call fcn.00408f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x4089ee
call fcn.00408f10
test al, al
jne 0x408a0a
cmp byte [ebp + 0xc], 0
jne 0x408a97
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ab3d0], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x408a42
test byte [esp + 0x1e], 1
jne 0x408a5b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4abbc0], eax
jmp 0x408a5b
mov ecx, dword [0x4abbc8]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408a22
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4089b2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408951
mov edx, dword [0x4abbc8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4abbc8], 0
call fcn.00408f30
jmp 0x4089c2
test byte [esp + 0x1e], 1
je 0x408a5b
mov eax, dword [0x4abbc0]
push eax
call edi
mov dword [0x4abbc0], 0
cmp dword [0x4ab3d4], 0
je 0x408a7d
test byte [esp + 0x1e], 2
jne 0x408a97
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4abbc4], eax
jmp 0x408a97
test byte [esp + 0x1e], 2
je 0x408a97
mov ecx, dword [0x4abbc4]
push ecx
call edi
mov dword [0x4abbc4], 0
cmp byte [esp + 0x1f], 0
je 0x408ad0
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4a78ec], 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.00477280
add esp, 0x18
mov dword [0x4a78ec], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret