joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530440
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
movzx eax, word [ecx]
mov word [esp + 0x20], ax
add eax, 2
cmp dword [ecx], 0xfffe
mov word [esp + 0x22], ax
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
jbe 0x53047c
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esp, [esp]
call fcn.00530120
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x28]
push ecx
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov ecx, dword ds:[esp + 0x10]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
js 0x530584
mov edx, dword [ecx]
cmp edx, 7
je 0x53057f
cmp edx, 8
je 0x53057f
cmp dword [ebp + 0xc], 0
je 0x530519
mov ebx, dword [ecx + 4]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.00580c90
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [eax], esi
mov esi, dword ds:[ebp + 0x10]
test esi, esi
je 0x530572
mov eax, dword [ecx + 8]
test eax, eax
js 0x530567
lea ecx, ds:[eax + eax*2]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*4]
movzx ecx, word [eax]
test cx, cx
je 0x530567
mov eax, dword ds:[eax + 4]
mov dword [esp + 0x1c], eax
mov eax, ecx
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 0
push eax
call sym.SystemInformer.exe_PhCreateString3
jmp 0x53056c
call sym.SystemInformer.exe_PhReferenceEmptyString
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x530584
mov eax, dword [ecx]
mov dword [edx], eax
jmp 0x530584
mov ebx, 0xc0000073
mov eax, dword [esp + 0x14]
test eax, eax
je 0x530597
push eax
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5305a6
push ecx
call dword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x531560
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov esi, ecx
call fcn.00530060
mov ecx, dword [esi + 2]
mov edx, eax
cmp ecx, dword [edx + 2]
jne 0x531618
movzx eax, word [esi + 6]
cmp ax, word [edx + 6]
jne 0x531618
cmp dword [esi + 8], 1
jne 0x531618
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
call sym.SystemInformer.exe_PhFormatGuid
mov esi, eax
test esi, esi
je 0x531618
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
add ecx, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
push 0
and ecx, 0xfffffffe
push 0
sub ecx, 4
push eax
mov dword [esp + 0x18], ecx
call sym.SystemInformer.exe_PhCreateString3
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x531605
nop
call fcn.004fbd80
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret

Function at 0x532740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push esi
push edi
push 0
push 0x1c
push eax
push 0
push ecx
push 0xffffffffffffffff
mov esi, edx
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
lea ecx, [ecx]
test eax, eax
js 0x5327ac
mov ecx, dword [ebp - 0x18]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5327ac
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5327ac
mov edx, dword [eax + 0xd8]
mov edi, dword [eax + 0xdc]
test edx, edx
je 0x5327ac
test edi, edi
je 0x5327ac
lea eax, [edx + ecx]
cmp esi, eax
jb 0x5327ac
lea eax, ds:[edi + edx]
add eax, ecx
cmp esi, eax
jae 0x5327ac
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x532b00
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 0x532be8
jmp 0x532b30
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x532b48
sub edi, 0x8000000
jmp 0x532bd2
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 0x532be8
cmp dword [ebp - 0x14], 0x10000
jne 0x532bbd
cmp dword [ebp - 0x18], 0x10000
jb 0x532bbd
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 0x532bdc
cmp eax, 0xc0000604
je 0x532be8
sub edi, 0x10000
jmp 0x532bd2
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 0x532b30
jmp 0x532be8
mov eax, dword ds:[ebp - 4]
test eax, eax
jne 0x532cc1
movzx eax, si
test eax, eax
je 0x532bf7
sub esi, eax
add esi, 0x10000
mov edi, dword ds:[ebp + 8]
cmp esi, edi
jae 0x532cbf
jmp 0x532c10
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x532c28
add esi, 0x8000000
jmp 0x532cb7
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 0x532cbf
cmp dword ds:[ebp - 0x14], 0x10000
mov ecx, dword [ebp - 0x18]
jne 0x532ca2
cmp ecx, 0x10000
jb 0x532ca2
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 0x532cca
cmp eax, 0xc0000604
je 0x532cbf
add esi, 0x10000
jmp 0x532cb7
mov esi, dword [ebp - 0x24]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x532cb7
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x532c10
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 0x5369e0
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 0x536a23
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 0x536a3e
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 0x536a3e
or esi, 2
mov eax, ebx
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x536a68
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 0x536a68
cmp byte [ebp - 2], 0
je 0x536a68
or esi, 4
and ebx, 8
je 0x536a93
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 0x536a93
cmp byte [ebp - 2], 0
je 0x536a93
or esi, 8
cmp dword [ebp + 0xc], 1
jne 0x536af5
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 0x536af5
cmp dword [ebp - 0x1c], 0
mov cx, word [ebp - 8]
je 0x536ad5
movzx eax, cx
test eax, 0x1000
je 0x536acf
or esi, 0x80000000
jmp 0x536ad5
or esi, 0x20000000
test ebx, ebx
je 0x536af5
movzx eax, cx
test eax, 0x2000
je 0x536aef
or esi, 0x40000000
jmp 0x536af5
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 0x536b23
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 0x5375e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62d040]
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 0x537633
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057e94f
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 0x53767f
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x3c]
jne 0x53767f
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.0057e94f
mov esp, ebp
pop ebp
ret 8
push ecx
mov edx, edi
call fcn.005768e0
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x5376bc
cmp dword [esi], 0
jne 0x5376b5
test ebx, ebx
je 0x53769f
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.005762e0
mov ecx, dword [esp + 0x4c]
mov eax, 0xc0000102
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 8
Function at 0x5386e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x61f5c8
push 0x57fa20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62d040]
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 0x53873e
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 0x5388d8
cmp edx, 0xffffffff
je 0x5388d8
mov dword ds:[ebp - 4], 0
lea esi, [edx + 0x40]
cmp esi, edx
jb 0x538852
lea ecx, [edx + eax]
mov dword [ebp - 0x1c], ecx
cmp esi, ecx
ja 0x538852
mov dword [ebp - 4], 0xfffffffe
mov ecx, 0x5a4d
cmp word [edx], cx
je 0x5387a3
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 0x53888e
cmp ecx, 0x10000000
jae 0x53888e
lea esi, [ecx + edx]
mov dword [ebp - 4], 1
lea ebx, [esi + 0x18]
cmp ebx, esi
jb 0x538852
cmp esi, edx
jb 0x538852
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x538852
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 0x538852
cmp eax, edx
ja 0x538852
mov dword [ebp - 4], 0xfffffffe
cmp dword [esi], 0x4550
jne 0x53888e
movzx eax, word [ebx]
mov word [edi + 0x18], ax
mov ecx, 0x10b
cmp ax, cx
je 0x538826
mov ecx, 0x20b
cmp ax, cx
jne 0x53888e
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 0x538a00
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 0x538a5a
test eax, eax
jne 0x538a2a
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 0x538a55
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 0x538a93
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x538aa5
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 0x538af8
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.005386e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x538b60
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62d040]
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 0x538bf1
test ecx, ecx
jne 0x538bae
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057e94f
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 0x538beb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057e94f
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 0x538c9e
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 0x538c9e
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 0x538c9e
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 0x538cab
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.0057e94f
mov esp, ebp
pop ebp
ret 8
Function at 0x538ce0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62d040]
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 0x538d6a
test ecx, ecx
jne 0x538d2e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057e94f
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 0x538d64
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057e94f
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 0x538e11
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 0x538e11
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 0x538e11
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 0x538e1c
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.0057e94f
mov esp, ebp
pop ebp
ret 8
Function at 0x539100
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 0x539134
pop edi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x5392bb
lea esp, [esp]
cmp ebx, 0xffffffff
je 0x5392bb
push esi
push 0x1000
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x1000
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.00580b30
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 [0x5a28f0]
call esi
mov esi, eax
lfence
test esi, esi
js 0x5392b2
mov ecx, dword [ebp - 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x539299
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x539299
cmp ebx, dword [ebp + 8]
jae 0x539299
lea ecx, [ecx]
cmp ebx, 0x10000000
jae 0x539299
lea eax, [ebx + 0xf8]
cmp eax, 0x1000
jb 0x5391e5
mov esi, 0xc0000017
jmp 0x53929e
cmp dword [ebx + ecx], 0x4550
lea edx, [ebx + ecx]
je 0x5391fb
mov esi, 0xc000007b
jmp 0x53929e
movzx eax, word [edx + 0x14]
mov dword [ebp - 0xc], 0xe0
cmp ax, word [ebp - 0xc]
je 0x539222
mov dword [ebp - 0xc], 0xf0
cmp ax, word [ebp - 0xc]
je 0x539222
mov esi, 0xc0000903
jmp 0x53929e
movzx eax, word [edx + 0x18]
mov dword [ebp - 0xc], 0x10b
mov word [edi + 0x18], ax
cmp ax, word [ebp - 0xc]
je 0x539246
mov dword ds:[ebp - 0xc], 0x20b
cmp ax, word [ebp - 0xc]
jne 0x5391f1
movzx eax, word [edx + 6]
mov dword [edi + 0x10], eax
cmp eax, 0x7f
jae 0x5391f1
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 0x539274
mov ecx, dword [ebp - 4]
mov esi, 0xc0000017
jmp 0x53929e
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 [0x633f94]
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 0x53ed60
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 0x53ef39
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 0x53ed9c
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 0x53ee65
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x53ef31
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.00580c90
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 0x53ee5f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
mov edx, eax
test esi, esi
je 0x53ee44
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [eax + 0x617900]
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 + 0x617900]
mov word [edx + 2], ax
mov eax, 0x20
mov word [edx + 4], ax
add edx, 6
cmp edi, esi
jb 0x53ee06
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 0x53ef1f
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 0x53ef31
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.00580c90
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x53ef1c
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.00580c90
add esp, 0xc
test esi, esi
je 0x53ef06
mov ecx, 0x5e
cmp byte [ebx + 0x28], 0
mov al, byte [edi]
movzx eax, al
jge 0x53eef1
push 0x117
push eax
call fcn.00588e6e
add esp, 8
mov ecx, 0x5e
jmp 0x53eef9
sub eax, 0x20
cmp ecx, eax
sbb eax, eax
inc eax
test eax, eax
jne 0x53ef00
mov byte [edi], 0x2e
inc edi
sub esi, 1
jne 0x53eed1
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