joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006140
Capabilities:
Find process by pid

Disassembly:
mov rdx, qword [rcx + 0x18]
lea r8, [0x140019f80]
xor eax, eax
cmp qword [r8 + rax*8], rdx
je 0x140006161
inc rax
cmp rax, 0x104
jb 0x14000614d
xor al, al
ret
and qword [r8 + rax*8], 0
xor edx, edx
jmp fcn.140006214

Function at 0x140006170
Capabilities:
Find process by pid

Disassembly:
xor edx, edx
lea r8, [0x140019f80]
cmp qword [r8 + rdx*8], 0
je 0x14000618f
inc rdx
cmp rdx, 0x104
jb 0x140006179
xor al, al
ret
mov rax, qword [rcx + 0x18]
mov qword [r8 + rdx*8], rax
mov dl, 1
jmp fcn.140006214

Function at 0x1400063b4
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140006473
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 0x20]
mov rax, qword [rsp + 0x30]
mov r8, qword [rax + rdx]
test r8, r8
je 0x140006473
mov rax, qword [rbx + 0x28]
mov r8, qword [r8 + rax]
test r8, r8
je 0x140006473
mov rax, r8
and eax, 3
je 0x14000645a
sub rax, 1
je 0x140006438
cmp rax, 1
jne 0x14000646f
mov rdx, qword [rbx + 0x30]
and r8, 0xfffffffffffffffc
mov rcx, rdx
mov rax, rdx
shr rcx, 0x14
shr rax, 0xa
mov rcx, qword [r8 + rcx*8]
mov rcx, qword [rcx + rax*8]
jmp 0x14000644b
mov rdx, qword [rbx + 0x30]
mov rcx, rdx
shr rcx, 0xa
and r8, 0xfffffffffffffffc
mov rcx, qword [r8 + rcx*8]
mov eax, dword [rbx + 0x38]
and edx, 0x3ff
mov dword [rcx + rdx*4 + 8], eax
jmp 0x14000646f
mov ecx, dword [rbx + 0x30]
mov eax, dword [rbx + 0x38]
and ecx, 0x3ff
and r8, 0xfffffffffffffffc
mov dword [r8 + rcx*4 + 8], eax
mov al, 1
jmp 0x140006475
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d164
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x14000d660], r14
mov dword [rbp + 0x28], r14d
je 0x14001d1a2
test rcx, rcx
je 0x14001d2c2
mov eax, dword [0x14000d668]
mov dword [rcx], eax
jmp 0x14001d2c2
xorps xmm0, xmm0
lea r8, [0x14001ee90]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x14001d1ce
add rax, rdx
sub rcx, 1
jne 0x14001d1bd
jmp 0x14001d1e8
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x14001d2cb
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x14001d2cb
mov edx, eax
xor ecx, ecx
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140006a40
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14001d2af
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x14001d2af
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x14001d279
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x14001d289
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14001d2af
jmp 0x14001d266
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x14000d660], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x14000d668], eax
test rdi, rdi
je 0x14001d2af
mov dword [rdi], eax
test rbx, rbx
je 0x14001d2c2
mov edx, 0x656e6f42
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x14000d660]
jmp 0x14001d2cd
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14001d2e0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000d2b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
call fcn.14001d164
mov rsi, rax
mov rax, qword [0x14000d670]
test rax, rax
jne 0x14001d3d0
test rsi, rsi
je 0x14001d3ce
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rbp, rax
movzx ecx, word [rax + 6]
lea rdi, [rax + 0x108]
lea rdx, [rcx + rcx*4]
lea rcx, [rdi + rdx*8]
cmp rdi, rcx
jae 0x14001d3ce
lea rbx, [rdi + 8]
mov ecx, dword [rbx + 0x1c]
and ecx, 0x2a000000
cmp ecx, 0x28000000
jne 0x14001d3b5
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x14001d3b5
cmp eax, 0x45474150
je 0x14001d3b5
movups xmm0, xmmword [0x14001eeb0]
mov r9d, dword [rbx + 4]
lea rcx, [rsp + 0x30]
mov eax, dword [rbx]
add r9, rsi
and qword [rsp + 0x30], 0
mov r8d, 0xf
mov qword [rsp + 0x28], rcx
mov dl, 0xcc
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x38], xmm0
call fcn.140001850
test eax, eax
jns 0x14001d3f2
movzx eax, word [rbp + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rdi + rcx*8]
lea rax, [rbx - 8]
cmp rax, rdx
jb 0x14001d352
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400067f0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + 3]
add rax, 7
add rax, rcx
mov qword [0x14000d670], rax
jmp 0x14001d3d0
Function at 0x14001d5e0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
test rcx, rcx
je 0x14001d77e
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14000d2b8]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rbp - 0x50], 0
mov rbx, rcx
and qword [rbp - 0x48], 0
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov r14d, 2
cmp rax, qword [rbx]
jne 0x14001d632
lea edi, [r14 - 1]
jmp 0x14001d661
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rbx]
lea rdx, [rbp - 0x48]
xor edi, edi
cmp rax, qword [rbx + 0x10]
cmove edi, r14d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14001d69d
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001d674
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
lea rdx, [rbx + 0x38]
mov cl, 1
call fcn.14001d538
cmp edi, 1
je 0x14001d68e
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001d69d
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp edi, r14d
je 0x14001d6c8
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14001d70e
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbp - 0x50]
jmp 0x14001d6ce
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx + 0x30]
mov r8b, 1
mov rcx, rax
call fcn.14001d820
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001d6f0
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
cmp edi, r14d
je 0x14001d6ff
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14001d70e
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001d742
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x14001d732
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
mov edx, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbx + 0x20], 0
lea rdx, [rbx + 0x38]
xor ecx, ecx
call fcn.14001d538
mov rdx, rbx
lea rcx, [0x14001a860]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400067f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001d96c
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [rax + 8], 0
lea rdx, [rax + 8]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14001d9f4
and qword [rsp + 0x58], 0
lea rdi, [rbx + 8]
cmp byte [rbx + 0x1c], 0
je 0x14001d9ba
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx]
mov rsi, rax
mov rax, qword [rsp + 0x50]
jmp 0x14001d9cb
mov rsi, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rdi]
mov rdi, rbx
mov r9, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov r8, rax
mov rcx, qword [rbx + 0x10]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001da04
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14001da3c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rbx, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14001db56
mov eax, dword [0x14001a8f0]
test eax, eax
je 0x14001db51
mov ecx, eax
mov eax, dword [0x14001a8e0]
add rcx, qword [rsp + 0x30]
cmp eax, 0x611
jg 0x14001daaa
mov eax, dword [rbx + 4]
cmp eax, 1
jne 0x14001da99
bts dword [rcx], 0xb
jmp 0x14001db56
test eax, eax
jne 0x14001db56
btr dword [rcx], 0xb
jmp 0x14001db56
cmp eax, 0x620
jne 0x14001dac5
cmp dword [rbx + 4], 2
je 0x14001db56
mov al, byte [rbx + 4]
mov byte [rcx], al
jmp 0x14001db56
cmp eax, 0x630
jl 0x14001db4a
mov eax, dword [rbx + 4]
test eax, eax
jne 0x14001dad7
mov byte [rcx], al
jmp 0x14001dadf
cmp eax, 1
jne 0x14001dadf
mov byte [rcx], 0x62
mov edx, dword [rbx + 8]
cmp edx, 2
je 0x14001db21
mov eax, dword [0x14001a8f4]
test eax, eax
je 0x14001db21
mov ecx, eax
and edx, 1
add rcx, qword [rsp + 0x30]
cmp dword [0x14001a8e0], 0xa03
mov eax, dword [rcx]
jl 0x14001db16
btr eax, 8
shl edx, 8
or eax, edx
mov dword [rcx], eax
jmp 0x14001db21
shl edx, 0xa
btr eax, 0xa
or edx, eax
mov dword [rcx], edx
mov edx, dword [rbx + 0xc]
cmp edx, 2
je 0x14001db56
mov eax, dword [0x14001a8f0]
mov rcx, qword [rsp + 0x30]
cmp edx, 1
jne 0x14001db42
mov word [rax + rcx - 2], 0x808
jmp 0x14001db56
and word [rax + rcx - 2], 0
jmp 0x14001db56
mov edi, 0xc00000bb
jmp 0x14001db56
mov edi, 0xc0000141
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001db66
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14001de10
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14000d2b8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
xor r15b, r15b
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
and qword [r11 - 0x70], 0
xor ebx, ebx
mov qword [r11 - 0x60], rbx
xor sil, sil
mov byte [rsp + 0x20], sil
mov rcx, qword [rcx + 0x18]
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14001de7a
xor al, al
jmp 0x14001df70
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r14, rax
mov rcx, rax
call fcn.14000177c
test al, al
jne 0x14001df55
mov ecx, dword [rdi + 0x3c]
test cl, cl
jns 0x14001def0
mov edx, dword [rdi + 0x38]
mov r8d, 1
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov edx, dword [rdi + 0x38]
mov ecx, 1
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14001df55
mov r8d, dword [rdi + 0x38]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call fcn.140006b40
jmp 0x14001df13
lea r8, [rsp + 0x28]
mov edx, 0xcf0
mov rcx, qword [rdi + 0x20]
call fcn.14000377c
mov rbx, rax
test rax, rax
je 0x14001df55
cmp qword [rsp + 0x28], 0
je 0x14001df55
mov r9, qword [rsp + 0x30]
cmp r14, r9
je 0x14001df33
lea rdx, [rsp + 0x40]
mov rcx, r9
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r15b, 1
mov r9, qword [rsp + 0x30]
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov rcx, rbx
call fcn.14001df98
mov sil, al
test r15b, r15b
je 0x14001df55
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140003d2c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, sil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400067f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14001e214
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x14001e293
and dword [rsp + 0x48], 0
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call fcn.1400016bc
test eax, eax
js 0x14001e293
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140006a40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call fcn.1400016bc
mov al, 1
jmp 0x14001e297
jmp 0x14001e295
xor al, al
add rsp, 0x38
ret
Function at 0x14001e29c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x60
mov r15, r9
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
and qword [rax - 0x28], 0
mov qword [rax - 0x30], 0x1000
xor bl, bl
mov dword [rax - 0x50], 0x40
mov dword [rax - 0x58], 0x3000
lea r9, [rax - 0x30]
xor r8d, r8d
lea rdx, [rax - 0x28]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
jns 0x14001e2fc
xor eax, eax
jmp 0x14001e3b1
mov dl, r14b
mov rcx, qword [rsp + 0x50]
call fcn.14001e3c8
mov r10, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001e376
lea rax, [rdi + 0x520]
lea rcx, [rdi + 0x41c]
lea r9, [rdi + 0x1c]
mov edx, dword [rdi + 0x51c]
mov dword [rsp + 0x30], edx
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rcx
mov rcx, r10
test r14b, r14b
je 0x14001e356
call fcn.14001e928
jmp 0x14001e35b
call fcn.14001ea98
mov byte [rsp + 0x40], al
mov bl, al
jmp 0x14001e371
mov r10, qword [rsp + 0x58]
test bl, bl
jne 0x14001e39e
and qword [rsp + 0x48], 0
mov r9d, 0x8000
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x14001e2f5
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, r10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001f000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor ebx, ebx
mov r14, rcx
test rcx, rcx
jne 0x14001f02e
mov eax, 0xc000000d
jmp 0x14001f1c1
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x7e007c
lea rax, [0x14001f590]
mov dword [rbp + 7], 0x160014
mov qword [rbp - 0x11], rax
lea r8, [rbp + 0x17]
lea rax, [0x14001f610]
mov dword [rbp - 9], 0x80006
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x6f]
lea rax, [0x14001f630]
mov qword [rbp + 0x6f], rbx
mov qword [rbp - 1], rax
mov edx, 0x20019
lea rax, [rbp - 0x19]
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rbx
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
test eax, eax
js 0x14001f1bf
mov edx, 0x1000
mov ecx, 1
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [rbp + 0x67], ebx
mov rdi, rax
test rax, rax
je 0x14001f1b0
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 9]
mov r9, rdi
mov dword [rsp + 0x20], 0x1000
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x14001f10e
mov eax, dword [rdi + 8]
mov ecx, dword [rax + rdi]
mov dword [r14], ecx
jmp 0x14001f1a0
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 7]
mov r9, rdi
mov dword [rsp + 0x20], 0x1000
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x14001f1a0
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0xc]
add r8, rdi
test edx, edx
je 0x14001f1a0
mov r9d, ebx
cmp word [r8 + r9*2 + 0x14], 0x2e
jne 0x14001f16a
lea ecx, [rbx + 1]
jmp 0x14001f166
cmp word [r8 + rcx*2 + 0x14], 0x2e
je 0x14001f172
inc ecx
cmp ecx, edx
jb 0x14001f15b
inc ebx
cmp ebx, edx
jae 0x14001f1a0
jmp 0x14001f14a
add r8, 0x16
sub cx, bx
add cx, cx
mov edx, 0xa
mov word [rbp - 0x27], cx
mov word [rbp - 0x29], cx
lea rcx, [rbp - 0x29]
lea rax, [r8 + r9*2]
mov r8, r14
mov qword [rbp - 0x21], rax
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToInteger]
mov esi, eax
mov edx, 0x656e6f42
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14001f1b5
mov esi, 0xc0000017
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001f3b8
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xa0]
mov rbp, r9
mov r12b, r8b
mov r13, rdx
test r15, r15
jne 0x14001f3f8
mov eax, 0xc000000d
jmp 0x14001f490
xor ecx, ecx
call fcn.14001d164
mov rbx, rax
test rax, rax
je 0x14001f48b
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x14001f423
mov eax, 0xc000007b
jmp 0x14001f490
lea r14, [rax + 0x108]
movzx eax, word [rax + 6]
mov rdi, r14
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp r14, rax
jae 0x14001f48b
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x14001f4ae
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x14001f43e
mov eax, 0xc0000225
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xa0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xa0], 0
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001850
test eax, eax
js 0x14001f490
mov ecx, dword [rsp + 0xa0]
sub ecx, ebx
mov dword [r15], ecx
jmp 0x14001f490
Function at 0x140007700
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400077c9
cmp byte [rcx + 0x71], 0
je 0x1400077c9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400077bc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007778
sub eax, 1
je 0x14000777c
cmp eax, 2
jne 0x1400077bc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1400077aa
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400077bc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x14000a520
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x14007c440]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x14000a64a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov r8d, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test r8d, r8d
jns 0x14000a57e
mov eax, r8d
mov rcx, rbx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, r8d
test eax, eax
cmovg edx, eax
call fcn.1400029f0
mov eax, esi
mov dword [rbx], esi
cmp dword [rbx + 4], eax
jne 0x14000a596
mov edx, 8
mov rcx, rbx
call fcn.1400029f0
mov eax, dword [rbx]
movsxd rcx, eax
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x14000a5ea
mov qword [rsp + 0x50], r14
mov r14, rsi
nop word [rax + rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x14000a5c0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x14000a5f9
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x140047ad4]
test rax, rax
movsxd rsi, esi
lea rdi, [0x14007c438]
mov rcx, r15
cmovne rdi, rax
call fcn.14001d530
mov rbx, rax
test rax, rax
je 0x14000a645
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001d410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x14001d429
mov qword [r8], 0
lea rdx, [0x140047ad0]
call fcn.14001d530
mov rbx, rax
test rax, rax
jne 0x14001d448
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d508
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001d508
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d508
mov rax, qword [0x14007c440]
mov rbp, rsi
test rax, rax
je 0x14001d4a5
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14001d508
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x14001d4f5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14007c440]
test rax, rax
je 0x14001d4ea
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001d511
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x14001d503
mov qword [rdi], rbp
mov rax, rsi
jmp 0x14001d513
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret