joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018b400
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call fcn.1401891e0
mov edx, dword [rbx + 2]
cmp edx, dword [rax + 2]
jne 0x14018b512
movzx edx, word [rbx + 6]
cmp dx, word [rax + 6]
jne 0x14018b512
cmp dword ds:[rbx + 8], 1
jne 0x14018b512
mov eax, dword [rbx + 0xc]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x34], eax
call sym.SystemInformer.exe_PhFormatGuid
mov rbx, rax
test rax, rax
je 0x14018b512
mov rdx, qword [0x1402ca978]
mov qword [rsp + 0x58], rbp
mov rbp, qword [rax + 8]
mov qword [rsp + 0x60], rsi
mov rsi, qword [rax]
and rsi, 0xfffffffffffffffe
mov qword [rsp + 0x68], rdi
sub rsi, 4
lea rcx, [rsi + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rsi
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rsi], ax
add rbp, 2
je 0x14018b4d5
mov rcx, qword [rdi + 8]
mov r8, rsi
mov rdx, rbp
call fcn.14020a640
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
cmp eax, 1
jne 0x14018b4f7
call fcn.140141ca0
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x40
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x40
pop rbx
ret

Function at 0x14018c820
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
mov qword [rsp + 0x28], 0
mov rdx, rcx
mov qword [rsp + 0x20], 0x30
mov rcx, 0xffffffffffffffff
lea r9, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018c8ad
mov rdx, qword [rsp + 0x38]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14018c8ad
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14018c8ad
mov r8, qword [rax + rdx + 0xe8]
mov rcx, r8
shr rcx, 0x20
test r8d, r8d
je 0x14018c8ad
test ecx, ecx
je 0x14018c8ad
mov eax, r8d
add rax, rdx
cmp rbx, rax
jb 0x14018c8ad
add ecx, r8d
add rcx, rdx
cmp rbx, rcx
jae 0x14018c8ad
mov al, 1
add rsp, 0x60
pop rbx
ret
xor al, al
add rsp, 0x60
pop rbx
ret

Function at 0x14018cb20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x1402ceaa0]
test rbx, rbx
je 0x14018cb9d
mov qword [rsp + 0x58], rdi
xor edi, edi
nop dword [rax]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], 0x10000
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFlushInstructionCache]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14018cb40
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
Function at 0x14018cbc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x14018cbe2
sub rbx, rax
add rbx, 0x10000
mov qword [rsp + 0x80], rsi
cmp rbx, rdi
jae 0x14018cce9
xor esi, esi
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14018cc1b
add rbx, 0x8000000
jmp 0x14018ccda
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018cce9
cmp dword [rsp + 0x50], 0x10000
mov rcx, qword [rsp + 0x48]
jne 0x14018ccbf
cmp rcx, 0x10000
jb 0x14018ccbf
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], 0x10000
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x14018cd01
cmp eax, 0xc0000604
je 0x14018cce9
add rbx, 0x10000
jmp 0x14018ccda
mov rbx, qword [rsp + 0x30]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14018ccda
mov eax, 0x10000
sub rax, rcx
add rbx, rax
nop word [rax + rax]
cmp rbx, rdi
jb 0x14018cc00
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov rax, qword [rsp + 0x70]
jmp 0x14018cceb

Function at 0x14018cd20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14018ce49
xor esi, esi
nop dword [rax]
nop dword [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14018cd7b
sub rbx, 0x8000000
jmp 0x14018ce38
xorps xmm0, xmm0
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
js 0x14018ce49
cmp dword [rsp + 0x50], 0x10000
jne 0x14018ce1c
cmp qword [rsp + 0x48], 0x10000
jb 0x14018ce1c
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], 0x10000
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x14018ce5d
cmp eax, 0xc0000604
je 0x14018ce49
sub rbx, 0x10000
jmp 0x14018ce38
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
nop dword [rax + rax]
cmp rbx, rdi
ja 0x14018cd60
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140193f00
Capabilities:
Get file attributes

Disassembly:
push rsi
sub rsp, 0x80
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov dword [rsp + 0x30], 0x60
mov rdx, rcx
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 5
mov r9d, 0x80
mov r8d, 0x120089
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x140193f58
lfence
jmp 0x140193ffc
mov qword [rsp + 0xa8], rdi
lea r8, [rsp + 0x60]
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x20], 5
mov r9d, 0x18
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x140193fad
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x48], xmm0
cmp qword [rsp + 0x50], 0
jne 0x140193fad
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0xc0000011
jmp 0x140193ff4
mov rdx, rdi
mov qword [rsp + 0xa0], rbx
call fcn.1401da430
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtClose]
test rbx, rbx
je 0x140193fe7
cmp dword [rbx], 0
jne 0x140193fdf
test rsi, rsi
je 0x140193fdb
mov qword [rsi], rbx
xor eax, eax
jmp 0x140193fec
mov rcx, rbx
call fcn.1401d9de0
mov eax, 0xc0000102
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x80
pop rsi
ret
Function at 0x1401955a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov r9, rcx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], r8
cmp r8, 0x40
jae 0x1401955bf
mov eax, 0xc000001f
add rsp, 0x28
ret
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401956d2
lea rax, [rdx + 0x40]
cmp rax, rdx
jb 0x1401956c4
lea r10, ds:[rdx + r8]
cmp rax, r10
ja 0x1401956c4
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x1401955fd
mov eax, 0xc000012f
add rsp, 0x28
ret
lfence
movsxd rax, dword [rdx + 0x3c]
cmp rax, r8
jae 0x1401956ba
cmp rax, 0x10000000
jae 0x1401956ba
lea r8, [rax + rdx]
lea r11, [r8 + 0x18]
cmp r11, r8
jb 0x1401956ac
cmp r8, rdx
jb 0x1401956ac
cmp r11, r10
ja 0x1401956ac
movzx eax, word [r8 + 6]
lea rcx, [rax + rax*4]
movzx eax, word [r8 + 0x14]
lea rax, [rax + rcx*8]
add rax, 0x18
add rax, r8
cmp rax, r8
jb 0x1401956a1
cmp rax, r10
ja 0x1401956a1
cmp dword ds:[r8], 0x4550
jne 0x1401956ba
movzx eax, word [r11]
mov word [r9 + 0x30], ax
mov ecx, 0x10b
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x1401956ba
mov qword [r9 + 0x18], r8
movzx eax, word [r8 + 6]
mov dword [r9 + 0x20], eax
movzx ecx, word [r8 + 0x14]
add rcx, 0x18
add rcx, r8
mov qword [r9 + 0x28], rcx
xor eax, eax
add rsp, 0x28
ret
mov ecx, 0xc0000005
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, 0xc0000005
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
jmp 0x1401956d7
mov eax, 0xc000007b
add rsp, 0x28
ret
mov ecx, 0xc0000005
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop
jmp 0x1401956d7
mov eax, 0xc000000d
add rsp, 0x28
ret
Function at 0x1401956e0
Capabilities:
Get file attributes
Map section object

Disassembly:
push rsi
push rdi
push r12
push r15
sub rsp, 0xc8
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor r15b, r15b
mov qword [rsp + 0x70], rdx
xor r12d, r12d
mov rsi, r8
mov rdi, rdx
test rdx, rdx
jne 0x140195775
test rcx, rcx
jne 0x140195725
mov eax, 0xc0000030
jmp 0x1401958e4
mov qword ss:[rsp + 0x40], r12
mov rdx, rcx
mov dword [rsp + 0x38], 0x60
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, 0x100081
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
js 0x1401958e4
mov rdi, qword [rsp + 0x70]
mov r15b, 1
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0x88]
mov qword [rsp + 0xb8], rbp
lea rdx, [rsp + 0x70]
mov r9d, 0x18
mov qword [rsp + 0xb0], r14
mov rcx, rdi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140195876
movups xmm0, xmmword [rsp + 0x88]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x58]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov edx, 5
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x140195876
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x68], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword ds:[rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140195876
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
jmp 0x140195880
mov rbp, qword [rsp + 0x50]
mov r14, qword [rsp + 0x50]
test r15b, r15b
je 0x14019588e
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1401958ca
mov r8, r14
mov rdx, rbp
mov rcx, rsi
call fcn.1401955a0
mov ebx, eax
test eax, eax
jns 0x1401958cc
cmp qword [rsi + 8], r12
je 0x1401958cc
lfence
mov rdx, qword [rsi + 8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov qword [rsi + 8], r12
mov eax, ebx
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0xc8
pop r15
pop r12
pop rdi
pop rsi
ret
Function at 0x140195920
Capabilities:
Get file attributes
Map section object

Disassembly:
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor r15b, r15b
mov qword [rsp + 0x70], rdx
mov rdi, r8
mov r14, rdx
test rdx, rdx
jne 0x1401959a6
test rcx, rcx
jne 0x140195965
mov eax, 0xc0000030
jmp 0x140195b64
mov dword [rsp + 0x30], 0x60
mov rdx, rcx
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x70]
mov r9d, 0x80
mov dword [rsp + 0x20], 1
mov r8d, 0x100081
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
js 0x140195b64
mov r14, qword [rsp + 0x70]
mov r15b, 1
mov qword [rsp + 0xc8], rbx
lea r8, [rsp + 0x88]
mov qword [rsp + 0xc0], rbp
lea rdx, [rsp + 0x70]
mov qword [rsp + 0xb8], rsi
mov r9d, 0x18
mov rcx, r14
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
xor r12d, r12d
mov ebp, eax
test eax, eax
js 0x140195ab6
movups xmm0, xmmword [rsp + 0x88]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x58]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov edx, 5
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebp, eax
test eax, eax
js 0x140195ab6
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x68], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword ds:[rsp + 0x60]
mov ebp, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebp, ebp
js 0x140195ab6
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
jmp 0x140195ac0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x50]
test r15b, r15b
je 0x140195ace
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtClose]
test ebp, ebp
js 0x140195b42
movzx eax, word [rbx]
mov ecx, 0x457f
mov word [rdi], ax
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rsi
cmp ax, cx
je 0x140195b0b
mov ecx, 0x5a4d
cmp ax, cx
je 0x140195afb
mov ebx, 0xc00001a3
jmp 0x140195b1f
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.1401955a0
jmp 0x140195b19
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.1401de220
mov ebx, eax
test eax, eax
jns 0x140195b3e
nop
cmp qword [rdi + 8], r12
je 0x140195b3e
lfence
mov rdx, qword [rdi + 8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov qword [rdi + 8], r12
mov eax, ebx
jmp 0x140195b44
mov eax, ebp
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
Function at 0x140195ba0
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
sub rsp, 0x60
xor sil, sil
mov rbp, r8
mov rbx, rdx
test rdx, rdx
jne 0x140195c1f
test rcx, rcx
jne 0x140195bcc
mov eax, 0xc0000030
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
mov dword ss:[rsp + 0x30], 0x60
mov rdx, rcx
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x88]
mov r9d, 0x80
mov dword [rsp + 0x20], 1
mov r8d, 0x100081
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x140195c14
lfence
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
mov rbx, qword [rsp + 0x88]
mov sil, 1
mov qword ss:[rsp + 0x30], rbx
lea r9, [rsp + 0x58]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x80]
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 5
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x58], 0x1000
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test sil, sil
je 0x140195c76
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x140195c8f
lfence
mov eax, edi
mov rdi, qword [rsp + 0x90]
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
xor ecx, ecx
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x98]
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x98], 0x1000
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140195d13
lfence
mov rdi, qword [rsp + 0x90]
mov eax, ebx
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
mov r8, qword [rsp + 0x98]
mov rcx, rbp
mov rdx, qword [rsp + 0x50]
call fcn.1401955a0
mov rdi, qword [rsp + 0x90]
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
Function at 0x140195fe0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rsp + 0x70]
mov r15, r9
mov rbp, r8
mov rbx, rdx
mov r14, rcx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], r8
cmp r8, 0x1000
jae 0x14019601f
mov eax, 0xc0000017
jmp 0x140196193
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401961a7
mov rcx, qword [0x1402caad0]
mov edx, 4
mov r8d, 0x1000
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
mov rsi, rax
call fcn.14020a280
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, rbx
mov rcx, r14
mov rax, r15
call qword [case.0x14013d64a.0]
mov ebx, eax
lfence
test eax, eax
js 0x14019618e
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140196172
movsxd rcx, dword ds:[rsi + 0x3c]
test rcx, rcx
je 0x140196172
cmp rcx, rbp
jae 0x140196172
cmp rcx, 0x10000000
jae 0x140196172
lea rax, [rcx + 0x108]
cmp rax, 0x1000
jb 0x1401960d8
mov ebx, 0xc0000017
jmp 0x140196177
cmp dword [rcx + rsi], 0x4550
lea r8, [rcx + rsi]
je 0x1401960ef
mov ebx, 0xc000007b
jmp 0x140196177
movzx eax, word [r8 + 0x14]
mov edx, 0xe0
sub ax, dx
mov edx, 0xffef
test dx, ax
je 0x14019610d
mov ebx, 0xc0000903
jmp 0x140196177
movzx eax, word [r8 + 0x18]
mov edx, 0x10b
mov word [rdi + 0x30], ax
sub ax, dx
mov edx, 0xfeff
test dx, ax
jne 0x1401960e5
movzx eax, word [r8 + 6]
mov dword [rdi + 0x20], eax
cmp eax, 0x7f
jae 0x1401960e5
lea rdx, [rax + rax*4]
movzx eax, word [r8 + 0x14]
add rcx, rax
lea rax, [rdx + 0x24]
lea rax, [rcx + rax*8]
cmp rax, 0x1000
jae 0x1401960ce
mov qword [rdi], r14
mov qword [rdi + 0x18], r8
movzx ecx, word [r8 + 0x14]
add rcx, 0x18
mov qword [rdi + 0x38], rsi
add rcx, r8
mov qword [rdi + 0x28], rcx
jmp 0x14019618c
mov ebx, 0xc000012f
lfence
mov rcx, qword [0x1402caad0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, 0xc000000d
jmp 0x140196193
Function at 0x1401961c0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, qword [rsp + 0x1f0]
mov r14, r9
mov qword [rsp + 0x20], rdi
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.140195fe0
nop
cmp eax, 0xc0000017
jne 0x14019640e
mov qword [rsp + 0x198], r12
mov qword [rsp + 0x190], r15
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rsi
cmp rsi, 0x40
jb 0x1401963f9
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401963f2
lfence
xor r12d, r12d
lea r8, [rsp + 0x30]
mov r9d, 0x40
mov qword [rsp + 0x20], r12
mov rdx, rbx
mov rcx, rbp
mov rax, r14
call qword [case.0x14013d64a.0]
test eax, eax
js 0x1401962d6
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
je 0x140196285
mov eax, 0xc000012f
jmp 0x1401963fe
movsxd rax, dword [rsp + 0x6c]
test rax, rax
je 0x1401963f9
cmp rax, rsi
jae 0x1401963f9
nop dword [rax]
cmp rax, 0x10000000
jae 0x1401963f9
lfence
lea r15, [rbx + rax]
mov qword [rsp + 0x20], r12
mov rdx, r15
lea r8, [rsp + 0x70]
mov r9d, pe_nt_image_headers64
mov rcx, rbp
mov rax, r14
call qword [case.0x14013d64a.0]
test eax, eax
jns 0x1401962de
lfence
jmp 0x1401963fe
cmp dword [rsp + 0x70], 0x4550
jne 0x1401963f9
movzx edx, word [rsp + 0x84]
mov ecx, 0xe0
movzx eax, dx
sub ax, cx
mov ecx, 0xffef
test cx, ax
je 0x140196313
mov eax, 0xc0000903
jmp 0x1401963fe
movzx eax, word [rsp + 0x88]
mov ecx, 0x10b
mov word [rdi + 0x30], ax
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x1401963f9
movzx ecx, word ds:[rsp + 0x76]
mov dword [rdi + 0x20], ecx
cmp ecx, 0x7f
jae 0x1401963f9
lea eax, ds:[rdx + 0x18]
lea rcx, [rcx + rcx*4]
lea rsi, [rax + rcx*8]
cmp rsi, 0x100000
ja 0x1401963f9
lfence
mov rcx, qword [0x1402caad0]
mov r8, rsi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.14020a280
mov r9, rsi
mov qword [rdi + 0x18], rbx
mov r8, rbx
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, rbp
mov rax, r14
call qword [case.0x14013d64a.0]
mov ebx, eax
lfence
test eax, eax
jns 0x1401963d8
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rcx, qword [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov qword [rdi + 0x18], r12
jmp 0x1401963fe
mov rcx, qword [rdi + 0x18]
mov qword [rdi], rbp
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rdi + 0x28], rcx
xor eax, eax
jmp 0x1401963fe
mov eax, 0xc000000d
jmp 0x1401963fe
mov eax, 0xc000007b
mov r12, qword [rsp + 0x198]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14019c340
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
push r15
sub rsp, 0x28
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14019c4b6
lea rcx, str.BinaryData
mov qword [rsp + 0x48], rbp
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
jne 0x14019c395
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x14019c4ab
mov qword [rsp + 0x40], rbx
mov rcx, rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbp
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [rdi + 0x1c]
mov rsi, rax
mov r9d, dword [rdi + 0x20]
mov ebx, ecx
mov r14d, dword [rdi + 0x14]
cmp ecx, r9d
jle 0x14019c3df
mov ebx, r9d
mov dword [rdi + 0x20], ecx
mov dword [rdi + 0x1c], ebx
mov r9d, ecx
test byte [rdi + 0x2c], 0x10
je 0x14019c447
cmp ebx, 0xffffffff
jne 0x14019c40d
cmp dword [rdi + 0x18], 3
mov ebx, r14d
jne 0x14019c3fa
lea ebx, [r14 + 1]
mov dword [rdi + 0x14], ebx
mov r9d, esi
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14019c5c0
jmp 0x14019c466
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14019c4c0
mov r9d, esi
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14019c5c0
mov r9d, 0xffffffff
mov rdx, rdi
mov r8d, r9d
mov rcx, r15
call fcn.14019bf00
jmp 0x14019c466
cmp ebx, 0xffffffff
jne 0x14019c45c
cmp dword [rdi + 0x18], 3
mov ebx, r14d
jne 0x14019c45c
lea ebx, [r14 + 1]
mov dword [rdi + 0x14], ebx
mov eax, dword [rdi + 8]
sub eax, ebx
cmp esi, eax
cmova esi, eax
mov ecx, ebx
mov rdx, r12
add rcx, qword [rdi]
mov r8d, esi
call fcn.14020a640
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r9d, 0x105
mov dword [rdi + 0x14], r14d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.USER32.dll_RedrawWindow]
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x48]
add rsp, 0x28
pop r15
pop rdi
ret