joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013db0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e534
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013e3a
cmp byte [rbp - 0x21], r15b
je 0x140013e35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013e70
call fcn.14000b078
test eax, eax
jne 0x140013e5c
cmp byte [rbp - 0x21], r15b
je 0x140013e54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013e70
cmp byte [rbp - 0x21], r15b
je 0x140013e6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000db14
test eax, eax
jne 0x140013f10
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e534
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013eaf
cmp byte [rbp - 0x21], r15b
je 0x140013ee4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013ee4
call fcn.14000b078
test eax, eax
jne 0x140013ed0
cmp byte [rbp - 0x21], r15b
je 0x140013ec9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013ee4
cmp byte [rbp - 0x21], r15b
je 0x140013ee1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000db14
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013f10
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013f13
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013f21
mov rcx, rdi
call fcn.14000ae28
cmp byte [rbp + 0x3f], r15b
je 0x140013f30
mov rcx, qword [rbp + 0x27]
call fcn.14000ae28
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140016020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001490
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0xa
lea r8, [0x140507753]
call fcn.14000102c
mov rbx, rax
test rax, rax
je 0x14000151e
mov rdx, rax
lea rcx, [0x1400038f0]
call sub.ntoskrnl.exe_DbgPrint
mov ecx, 8
lea rax, [0x14050775d]
lea edx, [rcx + 0x78]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rbx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rbx + 0x60], xmm0
add rbx, rdx
movups xmm1, xmmword [rax + 0x70]
add rax, rdx
movups xmmword [rbx - 0x10], xmm1
sub rcx, 1
jne 0x1400014ce
add rsp, 0x20
pop rbx
ret
lea rcx, [0x140003910]
add rsp, 0x20
pop rbx
jmp sub.ntoskrnl.exe_DbgPrint

Function at 0x140001604
Capabilities:
Create device object
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
lea rcx, [0x140003b80]
call sub.ntoskrnl.exe_DbgPrint
mov qword [0x140007530], rbx
lea rax, [0x140001730]
mov qword [rbx + 0x68], rax
lea rdx, [0x140003ba0]
mov rax, qword [rbx + 0x28]
lea rcx, [rsp + 0x40]
or dword [rax + 0x68], 0x20
lea rax, [0x140001530]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x80], rax
lea rax, [0x140001550]
mov qword [rbx + 0xe0], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140003b20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
mov r9d, 0x22
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x1400016be
lfence
lea rcx, [0x140003be0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x14000171d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x1400016e5
lfence
lea rcx, [0x140003c00]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001712
lea rcx, [0x1400011c0]
call qword [sym.imp.ntoskrnl.exe_PsSetLoadImageNotifyRoutine]
mov ebx, eax
lfence
test eax, eax
jns 0x14000171f
lea rcx, [0x140003c20]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x140001780
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov eax, 0x1000
mov qword [rbp + 0x7f], r14
mov rbx, r8
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov qword [rbp - 0x21], r14
mov rsi, rcx
mov qword [rbp - 0x15], r14
xor r8d, r8d
mov qword [rbp - 5], r14
lea rdx, [rbp + 0x7f]
mov qword [rbp + 0x27], r14
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x37]
mov dword [rbp - 0x59], 0x56415741
mov dword [rbp - 0x55], 0x54415541
mov dword [rbp - 0x51], 0x52415341
mov dword [rbp - 0x4d], 0x50415141
mov dword [rbp - 0x49], 0x52535150
mov dword [rbp - 0x45], 0x57565455
mov dword [rbp - 0x41], 0x83489c66
mov dword [rbp - 0x3d], 0x314826ec
mov dword [rbp - 0x39], 0xd23148c9
mov dword [rbp - 0x35], 0x48c0334d
mov qword [rbp - 0x31], 0xb9
mov dword [rbp - 0x29], 0x4d909000
mov dword [rbp - 0x25], 0xb848c933
mov dword [rbp - 0x19], 0xba48d0ff
mov dword [rbp - 0xd], 0x1e7e02c7
mov dword [rbp - 9], 0xba48c037
mov dword [rbp + 3], 0x83480289
mov dword [rbp + 7], 0x9d6626c4
mov dword [rbp + 0xb], 0x5d5c5e5f
mov dword [rbp + 0xf], 0x58595b5a
mov dword [rbp + 0x13], 0x59415841
mov dword [rbp + 0x17], 0x5b415a41
mov dword [rbp + 0x1b], 0x5d415c41
mov dword [rbp + 0x1f], 0x5f415e41
mov dword [rbp + 0x23], 0xb8485050
mov dword [rbp + 0x2f], 0x24448948
mov word [rbp + 0x33], 0x5808
mov byte [rbp + 0x35], 0xc3
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001957
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x59]
movups xmm0, xmmword [rcx]
mov eax, 0x80
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
add rdx, rax
movups xmm0, xmmword [rcx + 0x70]
add rcx, rax
movups xmmword [rdx - 0x10], xmm0
mov rax, qword [rcx]
mov qword [rdx], rax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
movzx eax, word [rcx + 0xc]
mov word [rdx + 0xc], ax
mov al, byte [rcx + 0xe]
mov byte [rdx + 0xe], al
mov rax, qword [rbp + 0x7f]
mov qword [rax + 0x29], rdi
mov rax, qword [rbp + 0x7f]
mov qword [rax + 0x38], rsi
mov rcx, qword [rbp + 0x7f]
lea rax, [rcx + 0x5f0]
mov qword [rcx + 0x44], rax
mov rcx, qword [rbp + 0x7f]
lea rax, [rcx + 0x5f4]
mov qword [rcx + 0x54], rax
mov rax, qword [rbp + 0x7f]
mov qword [rax + 0x80], rbx
mov rax, qword [rbp + 0x7f]
jmp 0x140001959
xor eax, eax
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400023b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
and qword [rcx + 0x38], 0
mov rbx, rcx
cmp qword [rcx + 0xb8], 0
mov edi, 0xc0000001
je 0x1400024cc
call fcn.140001974
test eax, eax
jns 0x1400023f7
lea rcx, [0x140004500]
call sub.ntoskrnl.exe_DbgPrint
mov qword [rbx + 0x38], 2
jmp 0x1400024cf
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400024cc
mov r8d, 0x500620
lea rcx, [0x140007540]
call fcn.140003440
mov qword [rbx + 0x38], 1
movzx edx, byte [0x140007540]
movzx eax, byte [0x140507651]
movzx ecx, byte [0x140507650]
test dl, dl
je 0x140002467
mov dword [rsp + 0x30], eax
lea r9, [0x140007541]
mov rax, qword [0x140507648]
lea r8, [0x140507652]
mov dword [rsp + 0x28], ecx
lea rcx, [0x140004530]
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400024ca
movsx edx, byte [0x140007645]
movsx r8d, byte [0x140007644]
movsx r10d, byte [0x140007643]
movsx r11d, byte [0x140007642]
movsx r9d, byte [0x140007641]
mov dword [rsp + 0x50], eax
mov rax, qword [0x140507648]
mov dword [rsp + 0x48], ecx
lea rcx, [0x140004590]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
xor edx, edx
mov dword [rsp + 0x30], r8d
lea r8, [0x140507652]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call sub.ntoskrnl.exe_DbgPrint
xor edi, edi
mov dword [rbx + 0x30], edi
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x60
pop rdi
ret

Function at 0x1400024dc
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xb8], 0
mov rbx, rcx
je 0x14000250e
mov rdx, qword [rcx + 0x18]
test rdx, rdx
je 0x14000250e
mov rdx, qword [rdx]
lea rcx, [0x1400044e0]
mov qword [0x140507b88], rdx
call sub.ntoskrnl.exe_DbgPrint
and dword [rbx + 0x30], 0
xor eax, eax
mov qword [rbx + 0x38], 1
add rsp, 0x20
pop rbx
ret
Function at 0x140002524
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140007450]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov qword [r11 - 0x50], rdx
xor ebx, ebx
mov qword [r11 - 0x68], rbx
mov qword [r11 - 0x48], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x58], rbx
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000258c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000259b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400025a5
mov eax, 0xc0000001
jmp 0x140002629
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140003700
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000261c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400032b0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret

Function at 0x14000264c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x80
mov rax, qword [0x140007450]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x58], rdx
mov qword [r11 - 0x50], r8
and qword [r11 - 0x68], 0
and qword [r11 - 0x48], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [r11 - 0x20], rax
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400026aa
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400026b9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400026c0
mov eax, 0xc0000001
jmp 0x14000271e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140002711
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400032b0
add rsp, 0x80
pop rbx
ret
Function at 0x140002734
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x140007450]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
and dword [rsp + 0x20], ebp
mov rsi, rdx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbp + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140002797
mov edx, eax
lea rcx, [0x1400046a0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x1400028b9
mov edx, dword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1400027b8
mov edx, dword [rsp + 0x20]
lea rcx, [0x1400046e0]
jmp 0x14000278b
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, eax
lfence
test eax, eax
jns 0x1400027e9
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, edi
lea rcx, [0x140004720]
jmp 0x14000278b
xor edi, edi
cmp dword [rbx], edi
jbe 0x1400028ab
mov eax, edi
lea rcx, [rsp + 0x30]
imul rax, rax, 0x128
mov edx, 2
add rax, 8
add rax, rbx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14000280d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.140002a98
mov rcx, rax
mov rdx, r14
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000289b
inc edi
cmp edi, dword [rbx]
jb 0x1400027f3
jmp 0x1400028ab
mov rbp, qword [rsp + 0x40]
test rsi, rsi
je 0x1400028ab
mov ecx, dword [rsp + 0x48]
mov dword [rsi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400032b0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400028e4
Capabilities:
Get file attributes
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140007450]
xor rax, rsp
mov qword [rbp + 0x27], rax
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x31]
and qword [rsp + 0x48], 0
mov r15, r8
and qword [rbp - 0x19], 0
lea r8, [rbp - 0x21]
mov dword [rsp + 0x40], 0x20
mov r14, rdx
mov dword [rsp + 0x38], 1
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov edx, 0x80000000
mov qword [rbp - 0x11], rcx
lea rcx, [rbp - 0x39]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp - 0x21], 0x30
mov dword [rbp - 9], 0x240
movdqu xmmword [rbp - 1], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
jns 0x140002995
lfence
mov edx, eax
lea rcx, [0x140004600]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140002a73
mov rcx, qword [rbp - 0x39]
lea r8, [rbp + 0xf]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x31]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
jns 0x1400029d1
lfence
mov edx, eax
lea rcx, [0x140004630]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140002a52
mov edi, dword [rbp + 0x17]
mov ecx, 1
mov edx, edi
mov esi, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1400029fe
lea rcx, [0x140004660]
call sub.ntoskrnl.exe_DbgPrint
mov ebx, 0xc000009a
jmp 0x140002a52
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x31]
and qword [rsp + 0x38], 0
xor r9d, r9d
mov rcx, qword [rbp - 0x39]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
test eax, eax
jns 0x140002a61
lfence
mov edx, eax
lea rcx, [0x140004680]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, edi
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000298e
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [r14], rbx
xor eax, eax
mov qword [r15], rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400032b0
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
movsxd rax, dword [rcx + 0x3c]
xor r11d, r11d
mov rsi, rdx
mov rbx, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov ebp, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rbp, rcx
mov r14d, dword [r8 + 0x24]
add r10, rcx
add r14, rcx
cmp rdx, 0x10000
jae 0x1400010ef
mov r9d, dword [r8 + 0x10]
movzx edx, si
cmp edx, r9d
jb 0x1400010db
mov ecx, dword [r8 + 0x14]
add ecx, r9d
cmp edx, ecx
jae 0x1400010db
sub edx, r9d
mov r11d, dword [rbp + rdx*4]
add r11, rbx
jmp 0x14000114a
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
pop r14
ret
mov qword [rsp + 0x10], rdi
mov r9d, r11d
mov edi, dword [r8 + 0x18]
test edi, edi
je 0x140001145
nop
mov r8d, dword [r10]
mov rax, rsi
add r8, rbx
sub r8, rsi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001123
inc rax
test ecx, ecx
jne 0x140001110
test edx, edx
je 0x140001135
inc r9d
add r10, 4
cmp r9d, edi
jb 0x140001100
jmp 0x140001145
mov eax, r9d
movzx ecx, word [r14 + rax*2]
mov r11d, dword [rbp + rcx*4]
add r11, rbx
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r11
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140eaa590]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140eaa5a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140eaa5a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140eaa5a0]
mov dword [rax], 1
mov rax, qword [0x140eaa5e0]
mov rdx, rax
mov rax, qword [0x140eaa5d0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140eaf024], 1
mov rax, qword [0x140eaa5a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140eaa5c0]
mov rdx, rax
mov rax, qword [0x140eaa5b0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140eaa5a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140eaa590]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140eaa4f0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140eaa4f0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140eaa580]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140eaf004]
lea rdx, [0x140eaf008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140eaa510]
mov rax, qword [rax]
mov rdx, qword [0x140eaf010]
mov qword [rax], rdx
mov rcx, qword [0x140eaf010]
mov rdx, qword [0x140eaf008]
mov eax, dword [0x140eaf004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x140eaf01c], eax
mov eax, dword [0x140eaf020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x140eaf01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140eaf024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x140eaf01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140eaa540]
mov dword [rax], 1
mov rax, qword [0x140eaa550]
mov dword [rax], 1
mov rax, qword [0x140eaa560]
mov dword [rax], 1
mov rax, qword [0x140eaa4c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
lea rdx, [0x140eaa050]
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001722
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.Error_creating_file:__s_n
mov rcx, rax
call sym.printf
mov ecx, 1
call sym.exit
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x30
pop rbp
ret