joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f6aa
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x42a0fc
push 1
push ebx
push 0x42a1ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f7df
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x42a1dc
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x42822c]
call dword [esi]
test eax, eax
js 0x40f7cb
cmp byte [ebp + 8], bl
je 0x40f710
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x42822c]
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x42822c]
call esi
cmp dword [ebp + 0x18], ebx
je 0x40f741
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x42822c]
call esi
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x40f758
push 0x428574
jmp 0x40f75b
push dword [ebp + 0x1c]
push eax
call dword [0x42822c]
call esi
cmp dword [ebp + 0x20], ebx
je 0x40f77f
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x42822c]
call esi
cmp dword [ebp + 0x14], ebx
je 0x40f79a
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x42822c]
call esi
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x42822c]
call esi
test eax, eax
js 0x40f7b8
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42822c]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42822c]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40f86d
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
ret 8
Function at 0x40f8e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x429434
push dword [esp + 0x18]
push dword [0x44ea20]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f9fb
push esi
push dword [0x44ea20]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40f9fb
push esi
push dword [0x44ea20]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f9fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40f9fb
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40f9f3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40f9ec
push edi
push esi
push eax
call fcn.00415220
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40f9e5
push ebp
push dword [esp + 0x14]
call fcn.0040f846
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x42822c]
call esi
test edi, edi
je 0x40f9e5
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x40f9d3
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40f9d3
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x42822c]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x40f9fd
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x40ff8d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00413ac0
cmp word [0x44fa3a], 0
je 0x410029
push esi
push 6
push dword [0x433604]
mov esi, 0x44fa3a
push esi
call fcn.00403887
push eax
call fcn.00407d46
test eax, eax
jne 0x410028
push 0x44ea38
call fcn.0040fe24
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.004068cd
lea eax, [ebp - 0x1024]
push eax
call fcn.00418793
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00414bd0
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
leave
ret
Function at 0x41006d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43361c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x4100b8
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x4662f8], ax
xor eax, eax
mov word [0x4662fa], ax
mov dword [0x43361c], 0x4662f8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406788
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43360c
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4101f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00413ac0
cmp byte [0x450a40], 0
je 0x41029f
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00411730
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41029f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410296
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41027a
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004068cd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x410354
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00413ac0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41036f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41037c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x410458
movzx eax, word [esi]
test ax, ax
je 0x410458
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x4103c7
test ebp, ebp
je 0x4103d3
test ebx, ebx
jne 0x4103d3
test ecx, ecx
je 0x4103be
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x4103f7
cmp di, 0xd
je 0x41040c
cmp di, 0xa
je 0x41040f
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x410407
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x4103a6
jmp 0x41040f
mov byte [edx], 1
jmp 0x410416
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x410452
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x410452
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004068cd
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41045a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x412a33
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44ea14], 0
push 1
push dword [esp + 8]
mov byte [0x44ea1d], 1
mov byte [0x44ea1e], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004011a3
cmp dword [0x4662e8], 0
jne 0x412a73
cmp byte [0x44ea33], 0
je 0x412a7c
cmp dword [0x44ea2c], 0
jne 0x412a8f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x412b63
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413ac0
cmp byte [0x450a40], 0
je 0x412bf2
cmp word [0x450a42], 0
je 0x412bf2
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x450a42
call fcn.00411730
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412bf1
push dword [ebp + 8]
call fcn.00418793
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x412bf6
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00413ac0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.004065fa
mov esi, eax
test esi, esi
je 0x412c4e
movzx ecx, word [esi]
push ecx
jmp 0x412c39
add esi, 2
movzx eax, word [esi]
push eax
call fcn.00406716
test al, al
jne 0x412c32
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
Function at 0x4146c3
Capabilities:
Parse pe header

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

Function at 0x426ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426b0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426b0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10b32058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10b321a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10b3207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b3206a
add dl, dl
jne 0x10b32089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b320dc
xor eax, eax
add dl, dl
jne 0x10b32096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10b3217d
add dl, dl
jne 0x10b320a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b320b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b320bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b320c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10b320d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10b32075
mov eax, 1
add dl, dl
jne 0x10b320ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10b320f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b320e1
sub eax, ebx
mov ebx, 1
jne 0x10b32128
mov ecx, 1
add dl, dl
jne 0x10b3210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b32119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b32105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b32075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10b3213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10b3214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10b32136
cmp eax, 0x7d00
jae 0x10b3216d
cmp eax, 0x500
jb 0x10b32168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b32075
cmp eax, 0x7f
ja 0x10b32170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10b32075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10b3219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10b32075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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, 0x4ad328
call fcn.00415e30
cmp dword [0x4ab43c], 0
mov dword [0x4ad940], 0
mov dword [0x4ad944], 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 [0x4ad94c], 0
je 0x40353c
cmp dword [0x4ad948], 0
jne 0x403545
cmp byte [esi + 0xce], 0
je 0x40357f
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x40357f
cmp dword [0x4ad94c], 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 [0x4ad94c]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x404260
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ad2d8], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404278
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x4042c5
cmp ebx, 0xffffffff
jne 0x404292
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404287
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x4042c5
push edi
lea edi, [ebx + 1]
mov esi, 0x4ad2cc
call fcn.004042e0
pop edi
test eax, eax
jne 0x4042af
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ad2d8]
push ebx
push ebp
push eax
mov esi, eax
call fcn.004883f0
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ad2cc
jmp fcn.00404350

Function at 0x404350
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x404373
call fcn.00404630
test eax, eax
jne 0x404373
push str.Cant_open_clipboard_for_writing.
call fcn.00404460
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4043ad
cmp dword [esi + 0x18], edi
je 0x40439e
cmp dword [esi + 8], edi
je 0x404393
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.00404460
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 0x4043f0
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x404418
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x4043cf
cmp word [eax], di
jmp 0x4043d2
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 0x404418
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 0x40440d
cmp dword [esi + 8], edi
je 0x404402
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 0x404430
mov dword [esi + 4], edi
jmp 0x4043f0
cmp dword [esi + 0x18], edi
je 0x40444d
cmp dword [esi + 8], edi
je 0x404442
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.00404460
pop ebp
pop edi
pop esi
ret 4
Function at 0x404530
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404540
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40460f
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.00485ed0
add esp, 0xc
test eax, eax
je 0x404606
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00485451
add esp, 8
test eax, eax
je 0x404606
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00485451
add esp, 8
test eax, eax
je 0x404606
lea edx, [esp]
push str.Native
push edx
call fcn.00485451
add esp, 8
test eax, eax
je 0x404606
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00485451
add esp, 8
test eax, eax
je 0x404606
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00485451
add esp, 8
test eax, eax
je 0x4045fc
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00485451
add esp, 8
test eax, eax
jne 0x404613
test esi, esi
je 0x404606
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 0x404630
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 0x4046ba
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 0x4046af
mov eax, dword [0x4a78e8]
cmp eax, 0xffffffff
je 0x40467f
test eax, eax
je 0x4046c6
call esi
mov ecx, dword [0x4a78e8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4046c6
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 0x404660
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 0x4074e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4aa1a3], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40759b
mov al, byte [0x4aa1a9]
cmp al, 0xa0
je 0x407506
cmp al, 0x10
jne 0x40759b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4aa1a4]
cmp eax, 0x16
jae 0x40759b
test ebp, 0x100
jne case.0x407537.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407537.13
movzx eax, byte [eax + 0x407740]
jmp dword [eax*4 + 0x407738]
mov cl, 1
jmp 0x407544
xor cl, cl
cmp byte [0x4aa1a8], 0
jne 0x407561
xor ecx, ecx
nop
cmp byte [ecx + 0x4aa18c], 0
jne 0x40756c
inc ecx
cmp ecx, 0x16
jl 0x407550
jmp 0x40759b
cmp byte [esp + 0x1c], 0
je 0x407575
test cl, cl
je 0x40759b
mov byte [0x4aa1aa], 1
jmp 0x407579
test cl, cl
je 0x40759b
mov cl, byte [0x4aa1a2]
mov dl, byte [0x4aa0af]
mov al, byte [0x4aa0ae]
mov byte [0x4ab29f], cl
mov byte [0x4ab2d0], dl
mov byte [0x4ab360], al
mov cl, byte [0x4ab29f]
mov dl, byte [0x4ab2d0]
movzx esi, byte [esp + 0x14]
mov al, byte [0x4ab360]
mov byte [0x4aa1a2], cl
mov byte [0x4aa0af], dl
mov edx, dword [0x4abbd8]
lea ecx, [esi + esi*4]
mov bl, byte [edx + ecx*4 + 8]
mov byte [0x4aa0ae], al
test bl, bl
je case.default.0x40770f
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x4075ef
xor al, al
jmp 0x407604
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.004077a0
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x4076db
cmp byte [esp + 0x20], 0
jne 0x40762e
mov cl, bl
not cl
and byte [0x4ab29d], cl
test dl, dl
je 0x40762e
and byte [0x4ab29e], cl
cmp byte [esp + 0x18], 0
je case.default.0x40770f
not bl
and byte [0x4ab29f], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4ab2c0], 0
cmp ecx, 5
ja case.default.0x40770f
jmp dword [ecx*4 + 0x407764]
mov cl, byte [0x4ab361]
mov byte [0x4ab2d0], cl
jmp case.default.0x40770f
mov dl, byte [0x4ab360]
mov byte [0x4ab2d0], dl
jmp case.default.0x40770f
mov al, byte [0x4ab363]
mov byte [0x4ab2d1], al
jmp case.default.0x40770f
mov cl, byte [0x4ab362]
mov byte [0x4ab2d1], cl
jmp case.default.0x40770f
mov dl, byte [0x4ab365]
mov byte [0x4ab2d2], dl
jmp case.default.0x40770f
mov al, byte [0x4ab364]
mov byte [0x4ab2d2], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4aa1ac], bp
pop ebp
mov byte [0x4aa1a9], al
mov byte [0x4aa1a8], cl
pop ebx
je 0x40771d
xor al, al
mov byte [0x4aa1a3], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aa1a4], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x4076f2
or byte [0x4ab29d], bl
test dl, dl
je 0x4076f2
or byte [0x4ab29e], bl
test al, al
je case.default.0x40770f
or byte [0x4ab29f], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4ab2c0], al
cmp ecx, 5
ja case.default.0x40770f
jmp dword [ecx*4 + 0x40777c]
mov byte [0x4ab2d0], al
jmp case.default.0x40770f
push ecx
call fcn.004077a0
add esp, 4
mov byte [0x4aa1a3], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4aa1a4], eax
pop ecx
ret
Function at 0x4077a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x4077af
cmp al, 0x10
jne case.0x407806.13
cmp byte [esp + 8], 0
jne case.0x407806.13
cmp byte [0x4aa1aa], 0
je 0x4077db
xor eax, eax
cmp byte [eax + 0x4aa18c], 0
jne 0x4077db
inc eax
cmp eax, 0x16
jl 0x4077c1
mov byte [0x4aa1aa], 0
xor al, al
pop esi
ret
cmp byte [0x4aa1a8], 0
je case.0x407806.13
test dword [0x4aa1ac], 0x100
jne case.0x407806.13
movzx eax, byte [0x4aa1a9]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407806.13
movzx eax, byte [eax + 0x407834]
jmp dword [eax*4 + 0x40782c]
call esi
sub eax, dword [0x4aa1a4]
cmp eax, 0x16
jb 0x4077d7
call esi
mov dword [0x4adaec], eax
mov dword [0x4adae8], eax
mov al, 1
pop esi
ret