joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002fc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004f506
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CSTLog.0
mov dword [esp + 0x14], 0
lea eax, [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 1
call fcn.1002e720
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call fcn.10030b70
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1002f500
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x10030ff0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1003107f
cmp eax, 0xffffffff
je 0x1003107f
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x1003102b
push 0x6f
lea ecx, [esi + 4]
call fcn.1002f510
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10031051
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
test edi, edi
je 0x10031068
xor eax, eax
push eax
lea ecx, [esi + 4]
call fcn.1002f510
mov eax, edi
pop edi
pop ebx
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esi + 4]
call fcn.1002f510
mov eax, edi
pop edi
pop ebx
pop esi
ret 0x10
push 0x72
lea ecx, [esi + 4]
call fcn.1002f510
xor eax, eax
pop esi
ret 0x10

Function at 0x100319a0
Capabilities:
Check if file exists

Disassembly:
push ecx
cmp dword [ecx + 0x1c], 8
jb 0x100319ac
mov eax, dword [ecx + 8]
jmp 0x100319af
lea eax, [ecx + 8]
push esi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x100319b3
sub eax, esi
sar eax, 1
pop esi
jne 0x100319c9
xor eax, eax
pop ecx
ret
cmp dword [ecx + 0x1c], 8
jb 0x100319db
mov ecx, dword [ecx + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
ret
add ecx, 8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
ret
Function at 0x10031aa0
Capabilities:
Get disk information via ioctl

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push edi
push 0x104
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
je 0x10031ad0
push 0x10000002
lea ecx, [edi + 0x14]
call fcn.1002f510
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push 4
push ebp
call esi
test eax, eax
je 0x10031afd
push 0x10000003
lea ecx, [edi + 0x14]
call fcn.1002f510
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
push ebx
mov ebx, dword [esp + 0x2c]
push 4
push ebx
call esi
test eax, eax
je 0x10031b24
push 0x10000004
lea ecx, [edi + 0x14]
call fcn.1002f510
pop ebx
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x24]
push 0
push 0x80
push 3
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10031b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [edi + 0x14]
call fcn.1002f510
pop ebx
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10031ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [edi + 0x14]
call fcn.1002f510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], ecx
push esi
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea ecx, [edi + 0x14]
call fcn.1002f510
pop ebx
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x10
ret 0xc
Function at 0x10032310
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1004f927
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x4ec], eax
push esi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
lea ecx, [esp + 0x54]
call fcn.100307a0
lea ecx, [esp + 0x78]
mov dword [esp + 0x500], 0
call fcn.100307a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x500], 1
call fcn.100307a0
push 0x104
lea eax, [esp + 0x2f0]
push eax
mov byte [esp + 0x508], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x2ec]
push ecx
lea ecx, [esp + 0x7c]
call fcn.100309d0
push 0x5c
sub esp, 0x24
lea edx, [esp + 0x314]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.10030b20
lea eax, [esp + 0x34]
push eax
call fcn.100320c0
add esp, 0x2c
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x504], 3
call fcn.10030990
lea ecx, [esp + 0xc]
mov byte [esp + 0x500], 2
call fcn.10030b70
push str.EXPLORER.EXE
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x5c]
call fcn.10030e50
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x504], 4
call fcn.10030990
lea ecx, [esp + 0xc]
mov byte [esp + 0x500], 2
call fcn.10030b70
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x1003242f
lea eax, [esp + 0x38]
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x10032453
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
test esi, esi
sete dl
lea ecx, [esp + 0x30]
mov byte [esp + 0x500], 1
mov esi, edx
call fcn.10030b70
lea ecx, [esp + 0x78]
mov byte [esp + 0x500], 0
call fcn.10030b70
lea ecx, [esp + 0x54]
mov dword [esp + 0x500], 0xffffffff
call fcn.10030b70
mov eax, esi
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4ec]
xor ecx, esp
call fcn.1003c13d
add esp, 0x4fc
ret
Function at 0x10032c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7a0
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x79c], eax
push ebx
push ebp
push esi
push edi
push 0x12
push 0
push 0
push 0x10053508
mov dword [esp + 0x20], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x20], 0x1c
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
xor ebp, ebp
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10032daf
mov edx, dword [esp + 0x34]
push 0
push 0xc9
lea ecx, [esp + 0x620]
push ecx
push edx
mov dword [esp + 0x4c], 0x1c
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x10032cdb
lea eax, [esp + 0x618]
push eax
lea ecx, [esp + 0x488]
push 0xc9
push ecx
call fcn.1003e374
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push 0
push 0x10053508
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x10032da7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x64], ecx
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x6c]
mov ecx, 7
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
push ebx
mov dword [esp + 0x88], edx
call fcn.10031be0
test eax, eax
je 0x10032da7
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x78]
push 0x104
push edx
call fcn.1003e374
mov edi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c]
push edx
mov ecx, edi
call fcn.10031aa0
test eax, eax
je 0x10032d9e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x58]
mov dword [esp + 0x70], ecx
push edx
lea ecx, [edi + 4]
mov dword [esp + 0x70], eax
call fcn.10032b80
push esi
call fcn.1003e5f1
add esp, 4
add ebp, 1
jmp 0x10032c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x7ac]
xor eax, eax
pop edi
cmp esi, 0x103
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x7a0
ret
Function at 0x10033450
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x45c
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x470]
mov ebx, eax
lea eax, [esp + 0x260]
mov ecx, eax
xor ebp, ebp
mov edx, 0x104
sub esi, ecx
jmp 0x10033490
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x100334b0
movzx ecx, word [esi + eax]
test cx, cx
je 0x100334b0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10033490
jmp 0x100334b4
test edx, edx
jne 0x100334b7
sub eax, 2
push 0x10053e2c
push 0x104
lea edx, [esp + 0x268]
push edx
mov word [eax], bp
call fcn.10006750
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x100334e0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x1003352e
call edi
sub eax, ebx
cmp eax, 0x1388
jb 0x100334e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10033513
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c13d
add esp, 0x45c
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x10033513
Function at 0x10039610
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
lea eax, [esp + 4]
mov ecx, eax
push edi
mov edi, dword [esp + 0x21c]
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10039661
movzx ecx, word [esi + eax]
test cx, cx
je 0x10039661
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10039641
jmp 0x10039665
test edx, edx
jne 0x10039668
sub eax, 2
mov word [eax], 0
cmp word [esp + 0xa], 0x3a
jne 0x1003967c
mov word [esp + 0xc], 0
mov edx, dword [esp + 0x220]
push edx
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x210]
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.1003c13d
add esp, 0x20c
ret 0xc
Function at 0x1003c13d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10063790]
jne 0x1003c147
repz ret
jmp fcn.100428ed
Function at 0x10044ca4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10044c67
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10044c85
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10044ce3
mov edx, edi
xlatb
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10044cca
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10044cd3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10044cdd
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10044cbf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10044c49
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10044d30
dec eax
je 0x10044d27
sub eax, 3
je 0x10044d1e
mov dword [ebp - 4], 0x40
jmp 0x10044d4d
mov dword [ebp - 4], 4
jmp 0x10044d33
mov dword [ebp - 4], 0x20
jmp 0x10044d33
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10044d7f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10044cff
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10044590
cld
adc dh, byte [edi]
ret 0x75ff
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100463b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0xfffffdd0], al
push eax
call fcn.10044501
add esp, 0xc
jmp 0x10046508
Function at 0x100470c1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10064288]
je 0x100470dc
inc edi
cmp edi, 0x17
jb 0x100470cd
cmp edi, 0x17
jae 0x1004725c
push ebp
push 3
call fcn.1004b96f
cmp eax, 1
pop ecx
je 0x10047228
push 3
call fcn.1004b96f
test eax, eax
pop ecx
jne 0x10047110
cmp dword [0x10065004], 1
je 0x10047228
cmp ebx, 0xfc
je 0x1004725b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100655c0
push ebp
call fcn.10042888
add esp, 0xc
test eax, eax
je 0x10047146
push esi
push esi
push esi
push esi
push esi
call fcn.1003c42f
add esp, 0x14
push 0x104
mov esi, 0x100655d9
push esi
push 0
mov byte [0x100656dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004718a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10042888
add esp, 0xc
test eax, eax
je 0x1004718a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1003c42f
add esp, 0x14
push esi
call fcn.100408f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100471cf
push esi
call fcn.100408f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100658d4
push 0x10055f7c
sub ecx, eax
push ecx
push eax
call fcn.1004a740
add esp, 0x14
test eax, eax
je 0x100471cf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1003c42f
add esp, 0x14
jmp 0x100471d1
xor esi, esi
push 0x10055f78
push ebx
push ebp
call fcn.1004a6cf
add esp, 0xc
test eax, eax
je 0x100471f1
push esi
push esi
push esi
push esi
push esi
call fcn.1003c42f
add esp, 0x14
push dword [edi*8 + 0x1006428c]
push ebx
push ebp
call fcn.1004a6cf
add esp, 0xc
test eax, eax
je 0x10047213
push esi
push esi
push esi
push esi
push esi
call fcn.1003c42f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1004b7b2
add esp, 0xc
jmp 0x1004725b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004725b
cmp ebp, 0xffffffff
je 0x1004725b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1006428c]
push dword [esi]
call fcn.100408f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1004b7b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10042af7
xor ebx, ebx
cmp dword [0x10065aa0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1004b888
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004b968
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1004b968
push eax
call fcn.10042a89
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10065aa0], eax
call esi
push eax
call fcn.10042a89
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10065aa4], eax
call esi
push eax
call fcn.10042a89
mov dword [0x10065aa8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1004318e
test eax, eax
pop ecx
pop ecx
je 0x1004b856
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1003c42f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1004b888
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10042a89
cmp eax, ebx
pop ecx
mov dword [0x10065ab0], eax
je 0x1004b888
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10042a89
pop ecx
mov dword [0x10065aac], eax
mov eax, dword [0x10065aac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1004b90d
cmp dword [0x10065ab0], ecx
je 0x1004b90d
push eax
call fcn.10042b00
push dword [0x10065ab0]
mov esi, eax
call fcn.10042b00
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1004b90d
cmp edi, ebx
je 0x1004b90d
call esi
cmp eax, ebx
je 0x1004b8da
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004b8da
test byte [ebp - 0x18], 1
jne 0x1004b90d
lea eax, [ebp - 0x10]
push eax
call fcn.100431c5
test eax, eax
pop ecx
je 0x1004b8f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1003c42f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1004b904
or dword [ebp + 0x10], 0x200000
jmp 0x1004b948
or dword [ebp + 0x10], 0x40000
jmp 0x1004b948
mov eax, dword [0x10065aa4]
cmp eax, dword [ebp - 8]
je 0x1004b948
push eax
call fcn.10042b00
cmp eax, ebx
pop ecx
je 0x1004b948
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004b948
mov eax, dword [0x10065aa8]
cmp eax, dword [ebp - 8]
je 0x1004b948
push eax
call fcn.10042b00
cmp eax, ebx
pop ecx
je 0x1004b948
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10065aa0]
call fcn.10042b00
cmp eax, ebx
pop ecx
je 0x1004b968
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004b96a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404300
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404324
push esi
call fcn.004045d0
test eax, eax
jne 0x404324
push str.Cant_open_clipboard_for_writing.
call fcn.00404400
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40435d
cmp dword [esi + 0x18], ebx
je 0x40434f
cmp dword [esi + 8], ebx
je 0x404344
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 0x4a1bbc
call fcn.00404400
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 0x404396
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x4043bd
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 0x4043bd
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 0x4043b3
cmp dword [esi + 8], ebx
je 0x4043a8
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 0x4043d2
mov dword [esi + 4], ebx
jmp 0x404396
cmp dword [esi + 0x18], ebx
je 0x4043ef
cmp dword [esi + 8], ebx
je 0x4043e4
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 0x4a1bdc
call fcn.00404400
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4044d0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x4044e0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4045af
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.0048e3e7
add esp, 0xc
test eax, eax
je 0x4045a6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0048db99
add esp, 8
test eax, eax
je 0x4045a6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0048db99
add esp, 8
test eax, eax
je 0x4045a6
lea edx, [esp]
push str.Native
push edx
call fcn.0048db99
add esp, 8
test eax, eax
je 0x4045a6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0048db99
add esp, 8
test eax, eax
je 0x4045a6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.0048db99
add esp, 8
test eax, eax
je 0x40459c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.0048db99
add esp, 8
test eax, eax
jne 0x4045b5
test esi, esi
je 0x4045a6
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 0x408c60
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 [0x4c85f8], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408c84
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4c85fc], 0
je 0x408c93
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408ea0
test al, al
jne 0x408cd6
cmp byte [ebp + 0xc], al
jne 0x408cd6
push 0x4c73b0
push 0
push 0
push 0x408f70
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cb308], eax
test eax, eax
je 0x408d67
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 [0x4c73b0]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x408d0c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x408ce6
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 0x408d73
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x408dda
cmp dword [esp + 0x2c], 0
je 0x408d82
mov byte [esp + 0x1f], 1
call fcn.00409310
test al, al
jne 0x408d82
cmp byte [ebp + 0xc], al
jne 0x408e6e
mov byte [ebp + 8], al
jmp 0x408d21
call fcn.00409330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x408dbe
call fcn.00409310
test al, al
jne 0x408dda
cmp byte [ebp + 0xc], 0
jne 0x408e67
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4c85f8], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x408e12
test byte [esp + 0x1e], 1
jne 0x408e2b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4c8ee8], eax
jmp 0x408e2b
mov ecx, dword [0x4cb308]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x408df2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408d82
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408d21
mov edx, dword [0x4cb308]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4cb308], 0
call fcn.00409330
jmp 0x408d92
test byte [esp + 0x1e], 1
je 0x408e2b
mov eax, dword [0x4c8ee8]
push eax
call edi
mov dword [0x4c8ee8], 0
cmp dword [0x4c85fc], 0
je 0x408e4d
test byte [esp + 0x1e], 2
jne 0x408e67
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4c8eec], eax
jmp 0x408e67
test byte [esp + 0x1e], 2
je 0x408e67
mov ecx, dword [0x4c8eec]
push ecx
call edi
mov dword [0x4c8eec], 0
cmp byte [esp + 0x1f], 0
je 0x408ea0
fldz
push 0
sub esp, 8
fstp qword [esp]
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.
mov dword [0x4c48b4], 0
call fcn.00479070
add esp, 0x18
mov dword [0x4c48b4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret