joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c21
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push 0x447348
mov edi, dword [esi + 0x2c]
push dword [esi + 0xc]
mov dword [ebp - 8], edi
call fcn.004347b0
neg eax
sbb eax, eax
pop ecx
neg eax
test al, al
pop ecx
je 0x405c87
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
je 0x405c87
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404cd4
push ebx
lea ecx, [esi + 0xc]
mov edi, eax
call fcn.004030b3
mov al, byte [eax]
add byte [edi], al
lea eax, [ebx + 1]
cdq
idiv dword [esi + 0x10]
dec dword [ebp - 0x14]
mov ebx, edx
jne 0x405c5a
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
lea edi, [esi + 0x1c]
push 0xfffffffffffffffe
mov ecx, edi
call fcn.00404c7f
mov bl, byte [eax]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00404c7f
xor ecx, ecx
mov ch, byte [eax]
mov cl, bl
push ecx
mov ecx, esi
call fcn.00405fdc
sub dword [ebp - 8], 2
je 0x405cdf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404cd4
mov ecx, esi
mov ebx, eax
call fcn.00405fe7
xor byte [ebx], al
dec dword [ebp - 0x14]
jne 0x405cc0
xor ebx, ebx
sub dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
je 0x405d29
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404cd4
cmp dword [ebp - 0xc], 0
je 0x405d29
movzx eax, byte [eax]
mov ecx, ebx
and ecx, 0xff
xor ecx, eax
xor eax, eax
mov al, bh
mov bx, word [ecx*2 + 0x4400f0]
xor bx, ax
dec dword [ebp - 0x14]
jne 0x405cf3
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404cd4
mov al, byte [eax]
mov ecx, edi
mov byte [ebp - 1], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404cd4
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [ebp - 1]
cmp bx, cx
je 0x405d61
mov ecx, esi
call fcn.00405ad3
jmp 0x405d6b
push dword [ebp - 8]
mov ecx, edi
call fcn.00404b3a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
xor ebx, ebx
push str.CLSID
push MenuHelp
mov dword [ebp - 8], ebx
call edi
test eax, eax
je 0x4065d3
xor eax, eax
jmp 0x406650
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x406648
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push str.InProcServer32
push dword [ebp - 4]
call edi
test eax, eax
jne 0x406643
lea ecx, [ebp - 0xc]
mov eax, 0x104
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xc], eax
call fcn.004032cd
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x447348
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
mov edi, eax
call fcn.0040330b
push dword [ebp + 8]
xor eax, eax
cmp edi, ebx
sete al
mov ebx, eax
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40679c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push 0x800
lea eax, [ebp - 0x160]
push 0x160
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x4067c9
xor al, al
leave
ret
mov eax, dword [ebp - 0x158]
shr eax, 0x10
and eax, 1
leave
ret

Function at 0x40bc88
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push ebx
jne 0x40bcb6
push dword [ebp + 0xc]
call fcn.004345e0
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
neg eax
sbb eax, eax
inc eax
jmp 0x40bd0d
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
neg eax
sbb eax, eax
inc eax
test al, al
je 0x40bd0b
push dword [ebp + 0xc]
call fcn.004345e0
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40bd0b
test bl, bl
je 0x40bd0b
mov al, 1
jmp 0x40bd0d
xor al, al
pop ebx
pop ebp
ret
Function at 0x40bd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00402ea1
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd89
lea ecx, [ebp + 0x10]
mov eax, 0x104
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 0x10], eax
call fcn.004032cd
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bd73
lea ecx, [ebp - 0x10]
call fcn.0040330b
jmp 0x40bd80
push 0x447348
lea ecx, [ebp - 0x10]
call fcn.004031a9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402f56
lea ecx, [ebp - 0x10]
call fcn.00402fbc
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40bdcd
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 0xc]
push eax
mov eax, dword [0x447388]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40bf02
mov eax, dword [0x447388]
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
mov eax, dword [0x447388]
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [edi], eax
je 0x40bf02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [edi + 4], eax
je 0x40bf02
push 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00434840
add esp, 0xc
lea eax, [ebp - 0xc]
push 4
pop ecx
mov dx, word [eax]
xor word [ebp - 4], dx
mov dx, word [eax]
sub word [ebp - 2], dx
inc eax
inc eax
dec ecx
jne 0x40be4a
cmp dword [ebp - 4], 0
jne 0x40bf02
mov ecx, dword [ebp - 6]
push 3
lea eax, [ebp - 0xc]
pop esi
xor word [eax], cx
mov dx, word [eax]
lea ebx, [ecx + ecx]
shr cx, 0xf
or ebx, ecx
add ebx, edx
inc eax
inc eax
dec esi
mov ecx, ebx
jne 0x40be70
mov eax, dword [ebp - 0xc]
add eax, 0xc
cmp eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
ja 0x40bf02
lea ecx, [ebp - 0x20]
call fcn.00404779
mov eax, dword [edi + 4]
push dword [ebp - 0xc]
add eax, 0xc
lea ecx, [ebp - 0x20]
push eax
call fcn.00404791
lea ecx, [ebp - 0x20]
call fcn.004048c7
cmp ax, word [ebp - 8]
jne 0x40befa
push 0
lea ecx, [ebp - 0x20]
call fcn.00404977
lea ecx, [ebp - 0x20]
call fcn.00404908
mov ebx, dword [edi + 8]
mov dword [edi + 0xc], eax
mov esi, eax
cmp byte [esi], 0
je 0x40bef5
push esi
call fcn.004345e0
add ebx, dword [eax + esi + 1]
pop ecx
push esi
call fcn.004345e0
pop ecx
lea esi, [esi + eax + 5]
jmp 0x40bed8
cmp ebx, dword [ebp + 0xc]
jbe 0x40bf06
lea ecx, [ebp - 0x20]
call fcn.0040478c
xor al, al
jmp 0x40bf14
lea ecx, [ebp - 0x20]
mov byte [edi + 0x10], 1
call fcn.0040478c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d795
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
lea eax, [edi + 0x4c]
lea ecx, [ebp - 0xc]
push eax
call fcn.00402f56
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00403052
cmp eax, 0xffffffff
jne 0x40d82a
lea ecx, [ebp - 0x18]
call fcn.00402ea1
mov esi, 0x104
lea ecx, [ebp - 0x18]
push esi
call fcn.004032cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x18]
call fcn.0040330b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403945
add esp, 0xc
lea ecx, [ebp - 0xc]
push eax
call fcn.00403163
lea ecx, [ebp - 0x24]
call fcn.00402fbc
lea eax, [ebp - 0xc]
lea ecx, [edi + 0x4c]
push eax
call fcn.00403163
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.0040cae6
lea ecx, [ebp - 0x18]
call fcn.00402fbc
jmp 0x40d82c
xor esi, esi
push esi
push 0x8000000
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40d88b
push dword [ebp - 0xc]
push 0xd3
call fcn.00420134
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004063c4
mov esi, dword [eax]
add esp, 0xc
push 0x10
push 0xdd
call fcn.00420134
pop ecx
push eax
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x24]
call fcn.00402fbc
jmp 0x40d8b0
push eax
lea ecx, [edi + 0x38]
call fcn.00404c50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0xc]
call fcn.00402fbc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ddc1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov ecx, dword [esi + 0x44]
call fcn.0040a525
test al, al
jne 0x40df2b
mov ecx, dword [esi + 0x44]
push edi
push ebp
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0040a87b
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, dword [esp + 0x24]
mov ecx, dword [esi + 0x44]
setne al
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
call fcn.0040a450
push dword [esi + 4]
mov bl, al
neg bl
sbb ebx, ebx
inc ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esi + 0x44]
push 0
push dword [esp + 0x20]
call fcn.0040a7db
mov edi, eax
push edi
call fcn.004345e0
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
pop ecx
inc eax
push eax
push 2
call ebp
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call fcn.00434d00
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x10]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
call fcn.004345e0
pop ecx
lea eax, [eax + eax + 2]
push eax
push 2
call ebp
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x14], eax
mov al, byte [edi]
mov dword [esp + 0x18], edi
test al, al
je 0x40deaf
push eax
call fcn.004319b4
pop ecx
mov ecx, dword [esp + 0x14]
add dword [esp + 0x14], 2
inc dword [esp + 0x18]
mov word [ecx], ax
mov eax, dword [esp + 0x18]
mov al, byte [eax]
jmp 0x40de8c
mov eax, dword [esp + 0x14]
push dword [esp + 0x10]
and word [eax], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x10]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
call fcn.004345d0
test bl, bl
pop ecx
je 0x40df22
mov ecx, dword [esi + 0x44]
push 1
push dword [esp + 0x20]
call fcn.0040a7db
mov esi, eax
push esi
call fcn.004345e0
pop ecx
inc eax
push eax
push 2
call ebp
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call fcn.00434d00
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push dword [0x4476a0]
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call fcn.004345d0
pop ecx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret
Function at 0x412077
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call esi
cmp eax, 0xffffffff
jne 0x412097
xor al, al
jmp 0x4120f3
mov ecx, dword [ebx + 0x30]
call fcn.0040af95
test al, al
push edi
je 0x4120e0
lea ecx, [ebp - 0xc]
call fcn.00402ebe
push 0x440644
lea ecx, [ebp - 0xc]
call fcn.004034ca
push dword [ebp - 0xc]
call esi
cmp eax, 0xffffffff
je 0x4120cc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0xc]
call fcn.00402fbc
jmp 0x4120e6
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x412651
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402ebe
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
call fcn.004030b3
cmp byte [eax], 0x5c
jne 0x412682
mov eax, dword [ebp - 8]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.00403827
lea ecx, [ebp - 0x18]
call fcn.00402ea1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411d6f
pop ecx
xor edi, edi
pop ecx
cmp dword [ebp - 8], edi
jle 0x412753
push edi
lea ecx, [ebp - 0xc]
call fcn.004030b3
cmp byte [eax], 0x5c
jne 0x4126bd
push 1
push edi
lea ecx, [ebp - 0xc]
call fcn.00403827
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004035a6
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00403052
mov esi, eax
cmp esi, edi
jl 0x412702
push esi
lea eax, [ebp - 0x24]
push edi
push eax
lea ecx, [ebp - 0xc]
call fcn.00403702
push eax
lea ecx, [ebp - 0x18]
call fcn.00403465
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00403827
lea ecx, [ebp - 0x24]
call fcn.00402fbc
jmp 0x41271b
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.00403465
push 0x447348
lea ecx, [ebp - 0xc]
call fcn.004031a9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41269b
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41269b
lea ecx, [ebp - 0x18]
call fcn.00402fbc
lea ecx, [ebp - 0xc]
call fcn.00402fbc
xor al, al
jmp 0x412765
lea ecx, [ebp - 0x18]
call fcn.00402fbc
lea ecx, [ebp - 0xc]
call fcn.00402fbc
mov al, 1
pop edi
pop esi
leave
ret 4

Function at 0x4129aa
Capabilities:
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 4]
dec esi
js 0x4129d1
mov eax, dword [edi]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4129b3
push esi
mov ecx, edi
call fcn.00403e00
jmp 0x4129b3
pop edi
pop esi
ret
Function at 0x4131e3
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push edi
mov edi, dword [ebp + 0xc]
and byte [edi], 0
push dword [0x4476a0]
call esi
test eax, eax
je 0x41320d
mov esi, dword [0x4476a0]
mov byte [edi], 1
jmp 0x413228
push 0xd
call esi
test eax, eax
je 0x413219
push 0xd
jmp 0x413227
push 1
call esi
test eax, eax
je 0x4132d3
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp esi, 0xd
mov dword [ebp - 4], eax
push eax
jne 0x41328e
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp word [esi], 0
je 0x413257
inc eax
inc eax
cmp word [eax], 0
jne 0x41324f
sub eax, esi
sar eax, 1
inc eax
push eax
call fcn.004345c0
mov edi, eax
mov ebx, esi
mov si, word [esi]
pop ecx
mov dword [ebp + 8], edi
test si, si
je 0x413286
movzx eax, si
inc ebx
push eax
inc ebx
call fcn.0043181f
mov byte [edi], al
mov si, word [ebx]
pop ecx
inc edi
jmp 0x41326d
and byte [edi], 0
mov edi, dword [ebp + 0xc]
jmp 0x4132b1
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
call fcn.004345e0
pop ecx
inc eax
push eax
call fcn.004345c0
pop ecx
mov dword [ebp + 8], eax
push esi
push eax
call fcn.00434d00
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp byte [edi], 0
je 0x4132ce
push dword [ebp + 8]
call fcn.00415700
pop ecx
mov eax, dword [ebp + 8]
jmp 0x4132d5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41395d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
test esi, esi
je 0x4139fa
push esi
call fcn.004345e0
pop ecx
inc eax
push eax
push 2
call edi
mov ebp, eax
push esi
push ebp
call ebx
push eax
call fcn.00434d00
pop ecx
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call fcn.004345e0
pop ecx
lea eax, [eax + eax + 2]
push eax
push 2
call edi
push eax
mov dword [esp + 0x18], eax
call ebx
mov ebp, eax
mov al, byte [esi]
test al, al
je 0x4139df
push eax
call fcn.004319b4
mov word [ebp], ax
inc ebp
inc ebp
pop ecx
inc esi
jmp 0x4139c9
push dword [esp + 0x14]
and word [ebp], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x14]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x413a31
push ebp
call fcn.004345e0
pop ecx
inc eax
push eax
push 2
call edi
mov esi, eax
push ebp
push esi
call ebx
push eax
call fcn.00434d00
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push dword [0x4476a0]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x413ae8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [eax], edi
push dword [0x4476a0]
mov dword [esp + 0x14], edi
call esi
test eax, eax
je 0x413b17
mov edi, dword [0x4476a0]
push 0xd
pop ebp
push ebp
call esi
test eax, eax
jne 0x413b2b
push 1
pop ebp
push ebp
call esi
test eax, eax
je 0x413b2f
mov dword [esp + 0x10], ebp
test edi, edi
jne 0x413b3d
cmp dword [esp + 0x10], edi
je 0x413c20
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
test edi, edi
je 0x413b88
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x413b88
push edi
call esi
mov ebp, eax
push ebp
call fcn.004345e0
pop ecx
inc eax
push eax
call fcn.004345c0
pop ecx
mov ecx, dword [esp + 0x20]
push ebp
push eax
mov dword [ecx], eax
call fcn.00434d00
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x413c1a
push ebp
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x413c1a
cmp ebp, 0xd
push edi
jne 0x413bf5
call esi
mov esi, eax
cmp word [esi], 0
je 0x413bbd
inc eax
inc eax
cmp word [eax], 0
jne 0x413bb5
sub eax, esi
sar eax, 1
inc eax
push eax
call fcn.004345c0
mov dword [ebx], eax
mov ebp, esi
mov si, word [esi]
pop ecx
mov edi, eax
test si, si
je 0x413bec
movzx eax, si
inc ebp
push eax
inc ebp
call fcn.0043181f
mov byte [edi], al
mov si, word [ebp]
pop ecx
inc edi
jmp 0x413bd2
and byte [edi], 0
mov edi, dword [esp + 0x20]
jmp 0x413c13
call esi
mov esi, eax
push esi
call fcn.004345e0
pop ecx
inc eax
push eax
call fcn.004345c0
pop ecx
mov dword [ebx], eax
push esi
push eax
call fcn.00434d00
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x417a84
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov esi, ecx
call fcn.004177e6
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x54]
push 0x4e
push eax
push edi
mov dword [esi], 0x43e268
mov dword [esi + 0x28], edi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x54]
push str.EDIT
push eax
call fcn.00437bc0
pop ecx
test eax, eax
pop ecx
je 0x417aef
lea eax, [ebp - 0x54]
push str.TEdit
push eax
call fcn.004347b0
pop ecx
test eax, eax
pop ecx
je 0x417aef
lea eax, [ebp - 0x54]
push str.TMemo
push eax
call fcn.004347b0
pop ecx
test eax, eax
pop ecx
jne 0x417af5
and dword [esi + 0x30], 0
jmp 0x417b3e
lea eax, [ebp - 0x54]
push str.RICHEDIT
push eax
call fcn.00437bc0
pop ecx
test eax, eax
pop ecx
je 0x417b31
lea eax, [ebp - 0x54]
push str.TRichEdit
push eax
call fcn.004347b0
pop ecx
test eax, eax
pop ecx
je 0x417b31
lea eax, [ebp - 0x54]
push str.RICHEDIT20A
push eax
call fcn.00437bc0
pop ecx
test eax, eax
pop ecx
jne 0x417b3a
mov dword [esi + 0x30], 1
jmp 0x417b3e
or dword [esi + 0x30], 0xffffffff
mov eax, dword [esi + 0x30]
test eax, eax
je 0x417b5f
cmp eax, 1
je 0x417b5f
test esi, esi
je 0x417c08
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x417c08
push 0
mov ebx, 0xb0
push 0
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
cmp eax, 0xffffffff
jne 0x417b8a
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp + 0xc]
jmp 0x417b96
movzx ecx, ax
shr eax, 0x10
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push 0
xor edx, edx
push 0
cmp ecx, eax
push 0xe
push dword [ebp + 8]
mov dword [esi + 0xc], ecx
setne dl
and byte [esi + 8], 0
mov byte [esi + 9], dl
mov dword [esi + 0x10], eax
call edi
mov ebx, eax
lea eax, [ebx + 2]
push eax
call fcn.004345c0
pop ecx
inc ebx
push eax
push ebx
push 0xd
mov dword [esi + 4], eax
push dword [ebp + 8]
call edi
cmp byte [esi + 9], 0
je 0x417bf5
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
add ecx, eax
push ecx
push eax
call fcn.00434d00
mov eax, dword [ebp - 4]
pop ecx
sub eax, dword [ebp + 0xc]
pop ecx
mov ecx, dword [esi + 4]
and byte [eax + ecx], 0
mov eax, dword [0x447594]
push 0
push 1
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00417880
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8