joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40f085
cmp dword [edi + 0xc], 0
je 0x40ef93
mov eax, dword [edi + 0xc]
dec eax
je 0x40ef7d
dec eax
je 0x40ef89
jmp 0x40ef93
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40ef93
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
mov byte [ebp - 5], 0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], 0
je 0x40efef
xor ebx, ebx
cmp esi, ebx
jle 0x40f00c
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x40efc0
mov ecx, esi
sub ecx, ebx
jmp 0x40efc5
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x40f00c
add ebx, 0x4000
cmp esi, ebx
jg 0x40efa8
jmp 0x40f00c
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x40f081
cmp byte [edi + 0x14], 0
je 0x40f081
cmp dword [edi + 0xc], 0
jne 0x40f081
lea edx, [edi + 0x17]
mov eax, 0x41c1a0
call fcn.0040cf10
test al, al
je 0x40f06b
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40ef93
cmp dword [ebp - 0xc], 0
jbe 0x40ef93
mov eax, edi
call fcn.0040f2bc
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040f204
jmp 0x40ef93
lea ecx, [edi + 0x17]
mov eax, 0x41c1a0
xor edx, edx
call fcn.0040cef8
jmp 0x40f081
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40f1aa
cmp esi, 0x4e20
jle 0x40f1a0
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40f1fa
mov eax, ebx
call fcn.0040f4c8
test al, al
je 0x40f1e1
cmp esi, 0x4e20
jle 0x40f1e1
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040f180
jmp 0x40f1fd
cmp dword [ebx + 0xc], 1
jne 0x40f1f5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40f1f5
xor eax, eax
jmp 0x40f1fd
or eax, 0xffffffff
jmp 0x40f1fd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x410764
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x415788], 0
jne 0x41077d
call fcn.004103a8
mov dword [0x415784], eax
inc byte [0x415788]
call fcn.004103a8
sub eax, dword [0x415784]
cmp eax, 0x64
jle 0x4107b9
cmp dword [0x416194], 0
je 0x4107b4
mov eax, 0x41c1a0
mov edx, 0xff
call fcn.0040d0b0
mov eax, 0x41c1a0
mov edx, 0xff
call fcn.0040d0a8
call fcn.00402c88
ret
Function at 0x52ea30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd8000]
push edi
jmp 0x52ea4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52ea51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52ea40
mov eax, 1
add ebx, ebx
jne 0x52ea63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52ea74
jne 0x52ea93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52ea93
dec eax
add ebx, ebx
jne 0x52ea80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52ea58
add ebx, ebx
jne 0x52ea8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52eae5
xor ecx, ecx
sub eax, 3
jb 0x52eaab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52eb1a
sar eax, 1
mov ebp, eax
jmp 0x52eab6
add ebx, ebx
jne 0x52eab6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52ea84
inc ecx
add ebx, ebx
jne 0x52eac4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52ea84
add ebx, ebx
jne 0x52ead1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52eac6
jne 0x52eae2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52eac6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52eb04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52eaf6
jmp 0x52ea46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52eb04
add edi, ecx
jmp 0x52ea46
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52eb22
cmp byte [edi], 0x11
jne 0x52eb22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52eb27
lea edi, [esi + 0x127000]
mov eax, dword [edi]
or eax, eax
je 0x52eb9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1847cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x184948]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52eb54
mov ecx, edi
jns 0x52eb83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18494c]
or eax, eax
je 0x52eb99
mov dword [ebx], eax
add ebx, 4
jmp 0x52eb71
call dword [esi + 0x18495c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52ebd0
cmp al, 0xef
ja 0x52ebc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52eba5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52ebb2
mov ebp, dword [esi + 0x184950]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52ec04
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401de1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4060e0
cmp edx, dword [eax]
je 0x401e03
add eax, 8
inc ecx
cmp eax, 0x406170
jl 0x401df4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4060e0]
jne 0x401f31
mov eax, dword [0x4084c8]
cmp eax, 1
je 0x401f0b
test eax, eax
jne 0x401e34
cmp dword [0x406034], 1
je 0x401f0b
cmp edx, 0xfc
je 0x401f31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004023c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401eae
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053b0
push edi
call fcn.00403c10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004023c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004023d0
lea eax, [ebp - 0xa0]
push 0x405390
push eax
call fcn.004023d0
push dword [esi + 0x4060e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004023d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403b84
add esp, 0x2c
pop edi
jmp 0x401f31
lea eax, [ebp + 8]
lea esi, [esi + 0x4060e4]
push 0
push eax
push dword [esi]
call fcn.00402570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402834
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402871
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402891
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00404014
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402a50
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a7f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ecc
jmp 0x402a9d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402978
mov edi, eax
test ebx, ebx
je 0x402a9d
cmp dword [esi], 0
je 0x402a9d
dec ebx
jmp 0x402a86
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d1c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4de040], 0x8088405
inc edx
mov dword [0x4de040], edx
mul edx
mov eax, edx
ret

Function at 0x402d34
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4de040], 0x8088405
inc edx
mov dword [0x4de040], edx
fld qword [0x4db02c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
ret

Function at 0x402f34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fac
xor eax, eax
push ebp
push 0x402fa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fe8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d98
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4de045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d60
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4055a8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405764
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405609
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405780
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40567b
xor eax, eax
push ebp
push 0x405674
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405400
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40565d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40567b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40575c
cmp byte [ebp - 0xd], 0
jne 0x4056bd
cmp byte [ebp - 0x12], 0
je 0x40575c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056d6
dec ebx
cmp byte [ebx], 0x2e
je 0x4056e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056d5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40575c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405712
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40575c
cmp byte [ebp - 0xd], 0
je 0x40575c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40575c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408ee0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404228
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40929c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ecc
add esp, 0x104
pop ebx
ret
Function at 0x40a0b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a0ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ecc
jmp 0x40a0f6
mov eax, ebx
mov edx, esi
call fcn.00403e38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a100
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a121
mov al, byte [esp]
jmp 0x40a123
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414104
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x414119
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x416128
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41612e
ret

Function at 0x418be0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x418c31
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x418c18
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x418c08
jmp 0x418c31
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x418c19
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428514
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x428568
mov eax, dword [0x4dce0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x428540
push ebx
push 0x428570
call fcn.004430cc
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x428564
mov ecx, dword [0x4dcad0]
mov dl, 1
mov eax, dword [0x407d24]
call fcn.0040a904
call fcn.00403814
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x428590
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x428602
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4285d6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403f9c
jmp 0x4285dd
mov eax, ebx
call fcn.00403de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428609
cmp dword [ebp - 8], 0
je 0x4285f9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.004284e8
ret

Function at 0x428610
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor edx, edx
push ebp
push 0x4286b2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x428685
mov edx, ebx
mov eax, dword [0x415bfc]
call fcn.0041a608
test al, al
je 0x428675
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041a518
call fcn.004038b4
jmp 0x4286b9
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x428640
mov ecx, dword [0x4dcb6c]
mov dl, 1
mov eax, dword [0x407d24]
call fcn.0040a904
call fcn.00403814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4286b9
mov eax, dword [ebp - 4]
call fcn.004284e8
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4286c0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor eax, eax
push ebp
push 0x428718
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42871f
mov eax, dword [ebp - 4]
call fcn.004284e8
ret
Function at 0x428728
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor edx, edx
push ebp
push 0x42877d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428784
mov eax, dword [ebp - 4]
call fcn.004284e8
ret

Function at 0x4287f4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor eax, eax
push ebp
push 0x428869
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004284cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0041a5dc
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x428853
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428870
mov eax, dword [ebp - 4]
call fcn.004284e8
ret

Function at 0x428878
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00428514
xor eax, eax
push ebp
push 0x4288ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004284cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4288d7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4288f4
mov eax, dword [ebp - 4]
call fcn.004284e8
ret
Function at 0x42b668
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4de784], 0
sete dl
or al, dl
jne 0x42b7a8
mov eax, dword [0x4de788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4de784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42b777
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4de784]
call fcn.0040f280
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42b76f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42b76f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42b76f
mov eax, dword [ebp - 0x14]
call fcn.00433a50
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42b76f
push ebp
call fcn.0042b624
pop ecx
test al, al
jne 0x42b76f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42b72b
mov eax, dword [ebp - 0x14]
call fcn.00432330
dec eax
jle 0x42b76f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403298
cmp byte [ebp - 1], 0
je 0x42b76f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42b76f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4de788]
call fcn.0042ae70
inc edi
dec esi
jne 0x42b6be
mov eax, dword [0x4de788]
cmp dword [eax + 8], 0
jle 0x42b78f
mov eax, dword [0x4de788]
call fcn.0042af00
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42b7a8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042b48c
pop ecx
test al, al
jne 0x42b7a8
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret