joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x530508
jmp 0x530450
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x530468
sub edi, 0x8000000
jmp 0x5304f2
xor eax, eax
push eax
push 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push 0
push edi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x530508
cmp dword [ebp - 0x14], 0x10000
jne 0x5304dd
cmp dword [ebp - 0x18], 0x10000
jb 0x5304dd
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x5304fc
cmp eax, 0xc0000604
je 0x530508
sub edi, 0x10000
jmp 0x5304f2
mov ecx, dword [ebp - 0x20]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x530450
jmp 0x530508
mov eax, dword ds:[ebp - 4]
test eax, eax
jne 0x5305e1
movzx eax, si
test eax, eax
je 0x530517
sub esi, eax
add esi, 0x10000
mov edi, dword ds:[ebp + 8]
cmp esi, edi
jae 0x5305df
jmp 0x530530
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x530548
add esi, 0x8000000
jmp 0x5305d7
xor eax, eax
push eax
push 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push 0
push esi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x5305df
cmp dword ds:[ebp - 0x14], 0x10000
mov ecx, dword [ebp - 0x18]
jne 0x5305c2
cmp ecx, 0x10000
jb 0x5305c2
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x5305ea
cmp eax, 0xc0000604
je 0x5305df
add esi, 0x10000
jmp 0x5305d7
mov esi, dword [ebp - 0x24]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x5305d7
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x530530
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x534320
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 0x14]
test bl, 1
je 0x534363
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetOwnerSecurityDescriptor]
test eax, eax
mov ecx, 1
cmovns esi, ecx
test bl, 2
je 0x53437e
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetGroupSecurityDescriptor]
test eax, eax
js 0x53437e
or esi, 2
mov eax, ebx
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x5343a8
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetDaclSecurityDescriptor]
test eax, eax
js 0x5343a8
cmp byte [ebp - 2], 0
je 0x5343a8
or esi, 4
and ebx, 8
je 0x5343d3
lea eax, ds:[ebp - 1]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetSaclSecurityDescriptor]
test eax, eax
js 0x5343d3
cmp byte [ebp - 2], 0
je 0x5343d3
or esi, 8
cmp dword [ebp + 0xc], 1
jne 0x534435
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlGetControlSecurityDescriptor]
test eax, eax
js 0x534435
cmp dword [ebp - 0x1c], 0
mov cx, word [ebp - 8]
je 0x534415
movzx eax, cx
test eax, 0x1000
je 0x53440f
or esi, 0x80000000
jmp 0x534415
or esi, 0x20000000
test ebx, ebx
je 0x534435
movzx eax, cx
test eax, 0x2000
je 0x53442f
or esi, 0x40000000
jmp 0x534435
or esi, 0x10000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
pop edi
pop esi
pop ebx
test eax, eax
je 0x534463
push eax
call sym.SystemInformer.exe_PhDosErrorToNtStatus
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x534f20
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x60
push 1
push 5
push 0x80
push 0x120089
push eax
lea eax, [esp + 0x24]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x534f73
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x30]
push 5
push 0x18
push eax
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x534fbf
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x3c]
jne 0x534fbf
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.005741e0
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x534ffc
cmp dword [esi], 0
jne 0x534ff5
test ebx, ebx
je 0x534fdf
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00573be0
mov ecx, dword [esp + 0x4c]
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
Function at 0x536020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x61d200
push 0x57d340
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62a040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [edi + 4], edx
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
cmp eax, 0x40
jae 0x53607e
mov eax, 0xc000001f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, edi
test edx, edx
je 0x536218
cmp edx, 0xffffffff
je 0x536218
mov dword ds:[ebp - 4], 0
lea esi, [edx + 0x40]
cmp esi, edx
jb 0x536192
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x536192
mov dword [ebp - 4], 0xfffffffe
mov ecx, 0x5a4d
cmp word [edx], cx
je 0x5360e3
mov eax, 0xc000012f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lfence
mov ecx, dword [edx + 0x3c]
cmp ecx, eax
jae 0x5361ce
cmp ecx, 0x10000000
jae 0x5361ce
lea esi, [ecx + edx]
mov dword [ebp - 4], 1
lea ebx, [esi + 0x18]
cmp ebx, esi
jb 0x536192
cmp esi, edx
jb 0x536192
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x536192
movzx eax, word [esi + 6]
lea ecx, [eax + eax*4]
movzx eax, word [esi + 0x14]
lea eax, [eax + ecx*8]
add eax, 0x18
add eax, esi
cmp eax, esi
jb 0x536192
cmp eax, edx
ja 0x536192
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi], 0x4550
jne 0x5361ce
movzx eax, word [ebx]
mov word [edi + 0x18], ax
mov ecx, 0x10b
cmp ax, cx
je 0x536166
mov ecx, 0x20b
cmp ax, cx
jne 0x5361ce
mov dword [edi + 0xc], esi
movzx eax, word [esi + 6]
mov dword [edi + 0x10], eax
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, esi
mov dword [edi + 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc0000005
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, 1
ret
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x536340
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
test esi, esi
jne 0x53639a
test eax, eax
jne 0x53636a
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x60
push 1
push 1
push 0x80
push 0x100081
push eax
lea eax, [ebp + 0xc]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x536395
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov bl, 1
push esi
push 0x8000000
push 2
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x1000
push eax
push 0
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x34], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test bl, bl
je 0x5363d3
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x5363e5
lfence
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 2
push 0
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword ds:[esp + 0xc]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x536438
lfence
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00536020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5364a0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
push edi
test esi, esi
jne 0x536531
test ecx, ecx
jne 0x5364ee
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
push 0
push 0x60
push 1
push 1
push 0x80
push 0
push 0x100081
push ecx
lea eax, [esp + 0x44]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x53652b
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x5365de
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push esi
push 0x8000000
push 2
push eax
push 0
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x5365de
mov eax, dword [esp + 0x18]
push 2
push 0
push 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword ds:[esp + 0x10]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x5365de
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov edi, edi
test bl, bl
je 0x5365eb
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
Function at 0x536620
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
push edi
test esi, esi
jne 0x5366aa
test ecx, ecx
jne 0x53666e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
push 0x60
push 1
push 1
push 0x80
push 0x100081
push ecx
lea eax, [esp + 0x3c]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x5366a4
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x536751
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push esi
push 0x8000000
push 2
push eax
push 0
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x536751
mov eax, dword [esp + 0x18]
push 2
push 0
push 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x536751
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
test bl, bl
je 0x53675c
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 8
Function at 0x536a40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
push ebx
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
cmp eax, 0x1000
jae 0x536a74
pop edi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x536bfb
lea esp, [esp]
cmp ebx, 0xffffffff
je 0x536bfb
push esi
push 0x1000
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x1000
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.0057e450
add esp, 0xc
push 0
push 0x1000
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push ebx
push dword [ebp - 8]
call dword [0x5a08ec]
call esi
mov esi, eax
lfence
test esi, esi
js 0x536bf2
mov ecx, dword [ebp - 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x536bd9
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x536bd9
cmp ebx, dword [ebp + 8]
jae 0x536bd9
lea ecx, [ecx]
cmp ebx, 0x10000000
jae 0x536bd9
lea eax, [ebx + 0xf8]
cmp eax, 0x1000
jb 0x536b25
mov esi, 0xc0000017
jmp 0x536bde
cmp dword [ebx + ecx], 0x4550
lea edx, [ebx + ecx]
je 0x536b3b
mov esi, 0xc000007b
jmp 0x536bde
movzx eax, word [edx + 0x14]
mov dword [ebp - 0xc], 0xe0
cmp ax, word [ebp - 0xc]
je 0x536b62
mov dword [ebp - 0xc], 0xf0
cmp ax, word [ebp - 0xc]
je 0x536b62
mov esi, 0xc0000903
jmp 0x536bde
movzx eax, word [edx + 0x18]
mov dword [ebp - 0xc], 0x10b
mov word [edi + 0x18], ax
cmp ax, word [ebp - 0xc]
je 0x536b86
mov dword ds:[ebp - 0xc], 0x20b
cmp ax, word [ebp - 0xc]
jne 0x536b31
movzx eax, word [edx + 6]
mov dword [edi + 0x10], eax
cmp eax, 0x7f
jae 0x536b31
lea ecx, [eax + eax*4]
movzx eax, word [edx + 0x14]
add eax, ebx
lea eax, [eax + ecx*8]
add eax, 0x110
cmp eax, 0x1000
jb 0x536bb4
mov ecx, dword [ebp - 4]
mov esi, 0xc0000017
jmp 0x536bde
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 0xc], edx
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x1c], eax
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0xc000012f
push ecx
push 0
lfence
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0xc000000d
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53c6a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push ecx
mov ebx, edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53c879
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
cmp ecx, esi
jle 0x53c6dc
mov eax, esi
mov dword [ebx + 0x1c], ecx
mov esi, ecx
mov dword [ebx + 0x18], eax
mov ecx, eax
sub esi, ecx
cmp dword [ebx + 0x14], 1
push esi
push 0x42
je 0x53c7a5
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x53c871
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
push esi
push ecx
push eax
call fcn.0057e5b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esi + esi*2]
lea eax, [eax*2 + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x53c79f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
mov edx, eax
test esi, esi
je 0x53c784
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [eax + 0x6154e0]
mov word [edx], ax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx]
movzx eax, byte [eax + edi]
inc edi
and eax, 0xf
movsx eax, byte [eax + 0x6154e0]
mov word [edx + 2], ax
mov eax, 0x20
mov word [edx + 4], ax
add edx, 6
cmp edi, esi
jb 0x53c746
mov esi, dword [ebp - 4]
xor eax, eax
push esi
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, dword [ebp - 8]
push edi
jmp 0x53c85f
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esi + 1]
mov dword [ebp - 4], eax
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
test eax, eax
je 0x53c871
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
push esi
push ecx
push eax
call fcn.0057e5b0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x53c85c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword ds:[ebx + 0x18]
mov edi, eax
add ecx, dword [ebx]
push esi
push ecx
push edi
call fcn.0057e5b0
add esp, 0xc
test esi, esi
je 0x53c846
mov ecx, 0x5e
cmp byte [ebx + 0x28], 0
mov al, byte [edi]
movzx eax, al
jge 0x53c831
push 0x117
push eax
call fcn.0058678e
add esp, 8
mov ecx, 0x5e
jmp 0x53c839
sub eax, 0x20
cmp ecx, eax
sbb eax, eax
inc eax
test eax, eax
jne 0x53c840
mov byte [edi], 0x2e
inc edi
sub esi, 1
jne 0x53c811
mov esi, dword [ebp - 8]
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 4]
push str.BinaryData
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53c880
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
mov edi, edx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53c9af
push str.BinaryData
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x53c8d3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x53c9a9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [edi + 0x18]
mov ebx, eax
mov edx, dword [edi + 0x1c]
mov esi, ecx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
cmp ecx, edx
jle 0x53c904
mov esi, edx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], esi
mov edx, ecx
test byte [edi + 0x28], 0x10
je 0x53c955
cmp esi, 0xffffffff
jne 0x53c92b
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x53c91d
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov ecx, dword [ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.0053caa0
jmp 0x53c972
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.0053c9c0
mov ecx, dword ds:[ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.0053caa0
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0053c4c0
jmp 0x53c972
cmp esi, 0xffffffff
jne 0x53c968
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x53c968
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov eax, dword [edi + 4]
sub eax, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword ds:[edi]
push ebx
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.0057e5b0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
push 0x105
push 0
push 0
push dword [ebp - 4]
mov dword [edi + 0x10], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret