joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52376e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x52381a
cmp dword [ebp + 8], 0
je 0x52381a
lea edx, [ebp - 0xc]
push edx
push 0x621944
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004323a0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x54687f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.004b1a60
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x5468e3
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x546910
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x546910
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00502ba4
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x5469ea
call fcn.00502b93
cmp eax, dword [ebp + 8]
je 0x54693d
jmp 0x5469ea
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x546975
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x5469ca
cmp dword [ebp - 0x1c], 0x202
je 0x546999
cmp dword [ebp - 0x1c], 0x205
je 0x546999
cmp dword [ebp - 0x1c], 0x201
je 0x546999
cmp dword [ebp - 0x1c], 0x204
jne 0x54699b
jmp 0x5469ea
cmp dword [ebp - 0x1c], 0x100
jne 0x5469ac
cmp dword [ebp - 0x18], 0x1b
jne 0x5469ac
jmp 0x5469ea
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.00508a96
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x62fdec]
jbe 0x5469e5
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x546921
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x7496dc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x7496f5
mov esi, edi
mov edi, eax
jmp 0x7496f7
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x749707
mov eax, ebx
jmp 0x749711
push eax
push ebx
call fcn.007304ac
add esp, 8
test eax, eax
jne 0x749719
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x749737
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x749720
cmp eax, dword [esi + 4]
jge 0x74974e
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x74973c
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x749771
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x74976e
sub eax, 1
test eax, eax
jg 0x74975e
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x7ad11c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x7ad151
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x7ad58c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x7ad5be
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7b6a9c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1012014c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x40
jle 0x7b6ad6
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.007b66dc
add esp, 0xc
lea edi, [ebp - 0x24]
mov ebx, 0x20
push 0x40
lea eax, [esi + 0x68]
push 0x36
push eax
call fcn.007c209c
push 0x40
add esi, 0xa8
push 0x5c
push esi
call fcn.007c209c
add esp, 0x18
test ebx, ebx
jle 0x7b6b14
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
xor byte [esi - 0x40], al
lea esi, [esi + 1]
movzx eax, byte [edi - 1]
xor byte [esi - 1], al
sub ebx, 1
jne 0x7b6afc
mov esi, dword [ebp - 0x28]
push 0
push esi
call fcn.007b6b5c
push 0x40
lea eax, [esi + 0x68]
push eax
push esi
call fcn.007b6b9c
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.007bebd9
mov esp, ebp
pop ebp
ret

Function at 0x7bde6c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x7bdea1
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7be03c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x7be06e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x80674b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00806332
Function at 0x806756
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.008064c1

Function at 0x81e80c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x81e839
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x81e839
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0xa
push eax
push dword [0x409d64]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [0x409d64]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
ja 0x401fa6
xor eax, eax
jmp 0x402096
push edi
push dword [0x409d64]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.00402910
sub esi, 0x20
push 0x20
mov dword [ebp - 0xc], esi
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402910
add esp, 0x18
xor eax, eax
xor ebx, ebx
movzx ecx, byte [ebp + eax - 0x2c]
add ebx, ecx
inc eax
cmp eax, 0x20
jb 0x401fee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jne 0x402032
test ebx, ebx
je 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, dl
and al, 0x23
xor al, byte [edx + edi]
or al, byte [ebp + ecx - 0x2c]
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x402027
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x402011
test ecx, ecx
jne 0x402009
jmp 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, byte [ebp + ecx - 0x2c]
xor al, byte [edx + edi]
xor al, dl
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x40204e
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x40203a
mov edi, dword [edi]
mov dword [ebp + 8], edi
add edi, 0x100
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00401c26
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4024d3
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Query or enumerate registry value

Disassembly:
lea esp, [esp + 4]
cmp dh, 0x5a
sub edi, ebp
mov ax, di
mov edi, 0x104
cmovp eax, ecx
not eax
xor ebx, ebx
mov eax, 0x7f7792c
push edi
movsx ax, al
sete ah
lea eax, [ebp - 0x114]
push ebx
jmp loc.0040b8bd
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x4070fc
jmp 0x40221d

Function at 0x40268b
Capabilities:
Accept command line arguments
Create thread
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push 0x40716c
jmp loc.0040b08a
Function at 0x4035c0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4035d4
inc dword [0x4a9e8c]
add dword [0x4a6440], 0xe8
mov edx, dword [0x4a6440]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4a89d0
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 0x403603
push 0
mov eax, 0x4abd80
call fcn.00415830
cmp dword [0x4a9ebc], 0
mov dword [0x4ac388], 0
mov dword [0x4ac38c], 0
je 0x40362b
push 0x4aa520
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x4036af
or ecx, 0xffffffff
cmp byte [esi + 0xca], 0
jne 0x40365a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xca], al
test al, al
je 0x40365a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4ac394], 0
je 0x40366c
cmp dword [0x4ac390], 0
jne 0x403675
cmp byte [esi + 0xca], 0
je 0x4036af
cmp byte [esi + 0xca], 0
mov byte [esi + 0xc8], 0
jne 0x4036af
cmp dword [0x4ac394], 0
jge 0x403697
pop edi
mov dword [esi + 0xbc], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb8], eax
mov edx, dword [0x4ac394]
mov dword [esi + 0xbc], edx
pop edi
pop esi
ret
Function at 0x404330
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ac3ec], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404348
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404395
cmp ebx, 0xffffffff
jne 0x404362
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404357
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404395
push edi
lea edi, [ebx + 1]
mov esi, 0x4ac3e0
call fcn.004043b0
pop edi
test eax, eax
jne 0x40437f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ac3ec]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00488060
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ac3e0
jmp fcn.00404420

Function at 0x404420
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x404444
push esi
call fcn.00404700
test eax, eax
jne 0x404444
push 0x4989b8
call fcn.00404530
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40447e
cmp dword [esi + 0x18], edi
je 0x40446f
cmp dword [esi + 8], edi
je 0x404464
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 0x4989dc
call fcn.00404530
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 0x4044c1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4044e9
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x4044a0
cmp word [eax], di
jmp 0x4044a3
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 0x4044e9
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 0x4044de
cmp dword [esi + 8], edi
je 0x4044d3
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 0x404501
mov dword [esi + 4], edi
jmp 0x4044c1
cmp dword [esi + 0x18], edi
je 0x40451e
cmp dword [esi + 8], edi
je 0x404513
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 0x4989ec
call fcn.00404530
pop ebp
pop edi
pop esi
ret 4
Function at 0x404600
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404610
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4046df
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push 0x498a00
push edx
call fcn.00485b40
add esp, 0xc
test eax, eax
je 0x4046d6
lea eax, [esp]
push 0x498a0c
push eax
call fcn.004850c1
add esp, 8
test eax, eax
je 0x4046d6
lea ecx, [esp]
push 0x498a18
push ecx
call fcn.004850c1
add esp, 8
test eax, eax
je 0x4046d6
lea edx, [esp]
push 0x498a24
push edx
call fcn.004850c1
add esp, 8
test eax, eax
je 0x4046d6
lea eax, [esp]
push 0x498a2c
push eax
call fcn.004850c1
add esp, 8
test eax, eax
je 0x4046d6
lea ecx, [esp]
push 0x498a3c
push ecx
call fcn.004850c1
add esp, 8
test eax, eax
je 0x4046cc
lea edx, [esp]
push 0x498a50
push edx
call fcn.004850c1
add esp, 8
test eax, eax
jne 0x4046e3
test esi, esi
je 0x4046d6
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 0x404700
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x404712
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4a9d20]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x404780
mov eax, dword [0x4a63a0]
cmp eax, 0xffffffff
je 0x404751
test eax, eax
je 0x404796
call esi
mov edx, dword [0x4a63a0]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x404796
push 1
push 0x8000012f
mov dword [0x4a63a4], 0
call fcn.00401290
mov eax, dword [0x4a9d20]
add esp, 8
push eax
mov dword [0x4a63a4], 1
call ebx
test eax, eax
je 0x404732
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x407890
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4a8c22], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x40794b
mov al, byte [0x4a8c2a]
cmp al, 0xa0
je 0x4078b6
cmp al, 0x10
jne 0x40794b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a8c24]
cmp eax, 0x16
jae 0x40794b
test ebp, 0x100
jne case.0x4078e7.13
movzx eax, byte [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x4078e7.13
movzx eax, byte [eax + 0x407af4]
jmp dword [eax*4 + 0x407aec]
mov cl, 1
jmp 0x4078f4
xor cl, cl
cmp byte [0x4a8c23], 0
jne 0x407911
xor ecx, ecx
nop
cmp byte [ecx + 0x4a8c0c], 0
jne 0x40791c
inc ecx
cmp ecx, 0x16
jl 0x407900
jmp 0x40794b
cmp byte [esp + 0x1c], 0
je 0x407925
test cl, cl
je 0x40794b
mov byte [0x4a8c2b], 1
jmp 0x407929
test cl, cl
je 0x40794b
mov cl, byte [0x4a8b2f]
mov dl, byte [0x4a8b2e]
mov al, byte [0x4a8b2d]
mov byte [0x4a9d1f], cl
mov byte [0x4a9d50], dl
mov byte [0x4a9de0], al
mov cl, byte [0x4a9d1f]
movzx esi, byte [esp + 0x14]
mov dl, byte [0x4a9d50]
mov al, byte [0x4a9de0]
mov byte [0x4a8b2f], cl
lea ecx, [esi + esi*8]
mov byte [0x4a8b2e], dl
mov edx, dword [0x4aa650]
shl ecx, 5
mov bl, byte [ecx + edx + 4]
mov byte [0x4a8b2d], al
test bl, bl
je case.default.0x407ac2
cmp dword [edi + 0x10], 0xffc3d44f
setne dl
test byte [edi + 8], 0x10
mov byte [esp + 0xf], dl
je 0x4079a2
xor al, al
jmp 0x4079b7
mov eax, dword [esp + 0x1c]
push eax
mov al, byte [esp + 0x18]
call fcn.00407b50
mov dl, byte [esp + 0x13]
add esp, 4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x18], al
je 0x407a8e
cmp byte [esp + 0x20], 0
jne 0x4079e1
mov cl, bl
not cl
and byte [0x4a9d1d], cl
test dl, dl
je 0x4079e1
and byte [0x4a9d1e], cl
cmp byte [esp + 0x18], 0
je case.default.0x407ac2
not bl
and byte [0x4a9d1f], bl
lea ecx, [esi - 0xa0]
mov byte [esi + 0x4a9d40], 0
cmp ecx, 5
ja case.default.0x407ac2
jmp dword [ecx*4 + 0x407b18]
mov cl, byte [0x4a9de1]
mov byte [0x4a9d50], cl
jmp case.default.0x407ac2
mov dl, byte [0x4a9de0]
mov byte [0x4a9d50], dl
jmp case.default.0x407ac2
mov al, byte [0x4a9de3]
mov byte [0x4a9d51], al
jmp case.default.0x407ac2
mov cl, byte [0x4a9de2]
mov byte [0x4a9d51], cl
jmp case.default.0x407ac2
mov dl, byte [0x4a9de5]
mov byte [0x4a9d52], dl
jmp case.default.0x407ac2
mov al, byte [0x4a9de4]
mov byte [0x4a9d52], al
test byte [edi + 8], 0x10
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop esi
mov word [0x4a8c28], bp
pop ebp
mov byte [0x4a8c2a], al
mov byte [0x4a8c23], cl
pop ebx
je 0x407ad0
xor al, al
mov byte [0x4a8c22], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a8c24], eax
pop ecx
ret
cmp byte [esp + 0x20], 0
jne 0x407aa5
or byte [0x4a9d1d], bl
test dl, dl
je 0x407aa5
or byte [0x4a9d1e], bl
test al, al
je case.default.0x407ac2
or byte [0x4a9d1f], bl
lea ecx, [esi - 0xa0]
mov al, 0x80
mov byte [esi + 0x4a9d40], al
cmp ecx, 5
ja case.default.0x407ac2
jmp dword [ecx*4 + 0x407b30]
mov byte [0x4a9d50], al
jmp case.default.0x407ac2
push ecx
call fcn.00407b50
add esp, 4
mov byte [0x4a8c22], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a8c24], eax
pop ecx
ret
Function at 0x407b50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp al, 0xa0
je 0x407b5f
cmp al, 0x10
jne case.0x407bb6.13
cmp byte [esp + 8], 0
jne case.0x407bb6.13
cmp byte [0x4a8c2b], 0
je 0x407b8b
xor eax, eax
cmp byte [eax + 0x4a8c0c], 0
jne 0x407b8b
inc eax
cmp eax, 0x16
jl 0x407b71
mov byte [0x4a8c2b], 0
xor al, al
pop esi
ret
cmp byte [0x4a8c23], 0
je case.0x407bb6.13
test dword [0x4a8c28], 0x100
jne case.0x407bb6.13
movzx eax, byte [0x4a8c2a]
add eax, 0xfffffff4
cmp eax, 0x22
ja case.0x407bb6.13
movzx eax, byte [eax + 0x407be0]
jmp dword [eax*4 + 0x407bd8]
call esi
sub eax, dword [0x4a8c24]
cmp eax, 0x16
jb 0x407b87
call esi
mov dword [0x4ac54c], eax
mov al, 1
pop esi
ret