joyce8/EMBER2024-capa huggingface dataset:
Function at 0x534020
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 0x534108
jmp 0x534050
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x534068
sub edi, 0x8000000
jmp 0x5340f2
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 0x534108
cmp dword [ebp - 0x14], 0x10000
jne 0x5340dd
cmp dword [ebp - 0x18], 0x10000
jb 0x5340dd
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 0x5340fc
cmp eax, 0xc0000604
je 0x534108
sub edi, 0x10000
jmp 0x5340f2
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 0x534050
jmp 0x534108
mov eax, dword ds:[ebp - 4]
test eax, eax
jne 0x5341e1
movzx eax, si
test eax, eax
je 0x534117
sub esi, eax
add esi, 0x10000
mov edi, dword ds:[ebp + 8]
cmp esi, edi
jae 0x5341df
jmp 0x534130
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x534148
add esi, 0x8000000
jmp 0x5341d7
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 0x5341df
cmp dword ds:[ebp - 0x14], 0x10000
mov ecx, dword [ebp - 0x18]
jne 0x5341c2
cmp ecx, 0x10000
jb 0x5341c2
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 0x5341ea
cmp eax, 0xc0000604
je 0x5341df
add esi, 0x10000
jmp 0x5341d7
mov esi, dword [ebp - 0x24]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x5341d7
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x534130
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 0x537f60
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 0x537fa3
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 0x537fbe
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 0x537fbe
or esi, 2
mov eax, ebx
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x537fe8
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 0x537fe8
cmp byte [ebp - 2], 0
je 0x537fe8
or esi, 4
and ebx, 8
je 0x538013
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 0x538013
cmp byte [ebp - 2], 0
je 0x538013
or esi, 8
cmp dword [ebp + 0xc], 1
jne 0x538075
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 0x538075
cmp dword [ebp - 0x1c], 0
mov cx, word [ebp - 8]
je 0x538055
movzx eax, cx
test eax, 0x1000
je 0x53804f
or esi, 0x80000000
jmp 0x538055
or esi, 0x20000000
test ebx, ebx
je 0x538075
movzx eax, cx
test eax, 0x2000
je 0x53806f
or esi, 0x40000000
jmp 0x538075
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 0x5380a3
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 0x538b60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62f040]
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 0x538bb3
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0058078f
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 0x538bff
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x3c]
jne 0x538bff
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.0058078f
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.00578700
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x538c3c
cmp dword [esi], 0
jne 0x538c35
test ebx, ebx
je 0x538c1f
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00578100
mov ecx, dword [esp + 0x4c]
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 8
Function at 0x539ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6218c8
push 0x581860
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62f040]
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 0x539cfe
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 0x539e98
cmp edx, 0xffffffff
je 0x539e98
mov dword ds:[ebp - 4], 0
lea esi, [edx + 0x40]
cmp esi, edx
jb 0x539e12
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x539e12
mov dword [ebp - 4], 0xfffffffe
mov ecx, 0x5a4d
cmp word [edx], cx
je 0x539d63
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 0x539e4e
cmp ecx, 0x10000000
jae 0x539e4e
lea esi, [ecx + edx]
mov dword [ebp - 4], 1
lea ebx, [esi + 0x18]
cmp ebx, esi
jb 0x539e12
cmp esi, edx
jb 0x539e12
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x539e12
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 0x539e12
cmp eax, edx
ja 0x539e12
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi], 0x4550
jne 0x539e4e
movzx eax, word [ebx]
mov word [edi + 0x18], ax
mov ecx, 0x10b
cmp ax, cx
je 0x539de6
mov ecx, 0x20b
cmp ax, cx
jne 0x539e4e
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 0x539fc0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
test esi, esi
jne 0x53a01a
test eax, eax
jne 0x539fea
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 0x53a015
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 + 0x2c], 0x18
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x34], 0x1000
mov dword [esp + 0x38], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test bl, bl
je 0x53a086
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x53a098
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 [esp + 0xc]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x53a0e8
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.00539ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53a140
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x62f040]
xor eax, esp
mov dword [esp + 0x78], 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 0x53a1d1
test ecx, ecx
jne 0x53a18e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058078f
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 0x53a1cb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x53a2ab
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x74]
push esi
push 0x8000000
push 2
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x28], edx
push eax
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x54], 0x18
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x53a2ab
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 0x53a2ab
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 0x53a2b6
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 8
Function at 0x53a2e0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x62f040]
xor eax, esp
mov dword [esp + 0x78], 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 0x53a36a
test ecx, ecx
jne 0x53a32e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058078f
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 0x53a364
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x53a44a
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x74]
push esi
push 0x8000000
push 2
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x28], edx
push eax
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x54], 0x18
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x53a44a
mov eax, dword ds:[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 0x53a44a
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 0x53a455
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 8
Function at 0x53a740
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 0x53a774
pop edi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x53a8fb
lea esp, [esp]
cmp ebx, 0xffffffff
je 0x53a8fb
push esi
push 0x1000
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x1000
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.005826f0
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 [0x5a48f4]
call esi
mov esi, eax
lfence
test esi, esi
js 0x53a8f2
mov ecx, dword [ebp - 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x53a8d9
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x53a8d9
cmp ebx, dword [ebp + 8]
jae 0x53a8d9
lea ecx, [ecx]
cmp ebx, 0x10000000
jae 0x53a8d9
lea eax, [ebx + 0xf8]
cmp eax, 0x1000
jb 0x53a825
mov esi, 0xc0000017
jmp 0x53a8de
cmp dword [ebx + ecx], 0x4550
lea edx, [ebx + ecx]
je 0x53a83b
mov esi, 0xc000007b
jmp 0x53a8de
movzx eax, word [edx + 0x14]
mov dword [ebp - 0xc], 0xe0
cmp ax, word [ebp - 0xc]
je 0x53a862
mov dword [ebp - 0xc], 0xf0
cmp ax, word [ebp - 0xc]
je 0x53a862
mov esi, 0xc0000903
jmp 0x53a8de
movzx eax, word [edx + 0x18]
mov dword [ebp - 0xc], 0x10b
mov word [edi + 0x18], ax
cmp ax, word [ebp - 0xc]
je 0x53a886
mov dword ds:[ebp - 0xc], 0x20b
cmp ax, word [ebp - 0xc]
jne 0x53a831
movzx eax, word [edx + 6]
mov dword [edi + 0x10], eax
cmp eax, 0x7f
jae 0x53a831
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 0x53a8b4
mov ecx, dword [ebp - 4]
mov esi, 0xc0000017
jmp 0x53a8de
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 [0x636044]
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 0x540240
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 0x540419
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 0x54027c
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 0x540345
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x540411
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.00582850
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 0x54033f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
mov edx, eax
test esi, esi
je 0x540324
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [eax + 0x619b10]
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 + 0x619b10]
mov word [edx + 2], ax
mov eax, 0x20
mov word [edx + 4], ax
add edx, 6
cmp edi, esi
jb 0x5402e6
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 0x5403ff
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 0x540411
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.00582850
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x5403fc
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.00582850
add esp, 0xc
test esi, esi
je 0x5403e6
mov ecx, 0x5e
cmp byte [ebx + 0x28], 0
mov al, byte [edi]
movzx eax, al
jge 0x5403d1
push 0x117
push eax
call fcn.0058a817
add esp, 8
mov ecx, 0x5e
jmp 0x5403d9
sub eax, 0x20
cmp ecx, eax
sbb eax, eax
inc eax
test eax, eax
jne 0x5403e0
mov byte [edi], 0x2e
inc edi
sub esi, 1
jne 0x5403b1
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 0x540420
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 0x54054f
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 0x540473
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x540549
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 0x5404a4
mov esi, edx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], esi
mov edx, ecx
test byte [edi + 0x28], 0x10
je 0x5404f5
cmp esi, 0xffffffff
jne 0x5404cb
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x5404bd
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov ecx, dword [ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.00540640
jmp 0x540512
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.00540560
mov ecx, dword ds:[ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.00540640
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00540060
jmp 0x540512
cmp esi, 0xffffffff
jne 0x540508
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x540508
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.00582850
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