joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403960
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040a6e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x403ae8
mov rax, qword [0x0040a6e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4039ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x403a35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403990
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x403b1d
mov rax, qword [0x0040a6e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040a6e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403b00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x403a2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403a90
add dword [0x0040a6e4], 1
cmp edi, 8
jae 0x403a63
test dil, 4
jne 0x403ad4
test edi, edi
je 0x403a58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x403aef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x403a58
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x403a7c
jmp 0x403a58
add rsi, qword [0x0040a6e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x403a2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x403a58
xor esi, esi
jmp 0x4039b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x403a58
mov rax, qword [0x0040a6e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x404270
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040a9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040a9a0]
test rbx, rbx
je 0x4042c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4042bb
test rsi, rsi
je 0x4042bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4042a0
lea rcx, [0x0040a9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x404500
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x404510
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x404520
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x404561
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x404558
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x404563
add rax, 0x28
cmp rax, r9
jne 0x404544
xor eax, eax
ret

Function at 0x404600
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406fa0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40466d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40466d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40466d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x404664
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40466f
add rax, 0x28
cmp rax, r9
jne 0x404650
xor eax, eax
add rsp, 0x28
ret

Function at 0x404770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406fa0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x404790
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404788
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4047ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4047e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4047f4
add rax, 0x28
cmp rax, r9
jne 0x4047d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x404810
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00406fa0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40487e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40487e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40487e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40487e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x404875
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x404885
add rcx, 0x28
cmp rcx, rax
jne 0x404860
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x404898
jmp 0x40487e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4048a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40487e
test r9d, r9d
jg 0x404890
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x404b20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov dword [rsp + 4], 0
mov dword [rsp + 0x18], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 8], 0
jmp 0x140001046
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x100
jge 0x140001086
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp + 8]
mov byte [rsp + rax + 0x20], cl
mov eax, dword [rsp + 8]
cdq
idiv dword [rsp + 0x248]
mov eax, edx
cdqe
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x240]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 0x120], al
jmp 0x14000103c
mov dword [rsp + 0xc], 0
jmp 0x14000109a
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0x100
jge 0x140001105
movsxd rax, dword [rsp + 0xc]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0xc]
movzx ecx, byte [rsp + rcx + 0x120]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 0xc]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 0xc]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x140001090
mov dword [rsp + 4], 0
mov dword [rsp + 0x14], 0
jmp 0x140001121
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x238]
cmp dword [rsp + 0x14], eax
jge 0x1400011f8
mov eax, dword [rsp + 0x10]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 0x10]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 0x10]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 4]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x18], eax
movsxd rax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x230]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x18]
movzx ecx, byte [rsp + rcx + 0x20]
xor eax, ecx
movsxd rcx, dword [rsp + 0x14]
mov rdx, qword [rsp + 0x250]
mov byte [rdx + rcx], al
jmp 0x140001117
add rsp, 0x228
ret
Function at 0x140002420
Capabilities:
Parse pe header

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

Function at 0x140006188
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 0x140005ff3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005ff3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005ff3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005ff3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005ff3
cmp dword [rcx + 0x84], 0xe
jbe 0x140005ff3
cmp dword [rcx + 0xf8], 0
je 0x140005ff3
mov ecx, ebx
call fcn.1400060a4
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.140005e80
nop
cmp dword [rbp + 0x20], 0
je 0x140006041
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000604c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005f84
Function at 0x14000e334
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 0x14000e364
xor eax, eax
jmp 0x14000e427
mov rbp, rbx
cmp word [rax], si
je 0x14000e389
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e370
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e36c
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.14000e254
movsxd r14, eax
test eax, eax
jne 0x14000e3c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e35d
mov rcx, r14
call fcn.14000b1c0
mov rdi, rax
test rax, rax
jne 0x14000e3e0
xor ecx, ecx
call fcn.140009e70
jmp 0x14000e3bc
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.14000e254
test eax, eax
jne 0x14000e411
mov rcx, rdi
call fcn.140009e70
jmp 0x14000e41b
xor ecx, ecx
call fcn.140009e70
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 0x14001262c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012642
mov al, 1
jmp 0x1400126a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012653
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400126a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000eb38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400126a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400126a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400126a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400126a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400136e0
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.14000d324
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001376a
cmp byte [rbp - 0x21], r15b
je 0x140013765
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400137a0
call fcn.14000a0c0
test eax, eax
jne 0x14001378c
cmp byte [rbp - 0x21], r15b
je 0x140013784
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400137a0
cmp byte [rbp - 0x21], r15b
je 0x14001379d
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.14000c904
test eax, eax
jne 0x140013840
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d324
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400137df
cmp byte [rbp - 0x21], r15b
je 0x140013814
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013814
call fcn.14000a0c0
test eax, eax
jne 0x140013800
cmp byte [rbp - 0x21], r15b
je 0x1400137f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013814
cmp byte [rbp - 0x21], r15b
je 0x140013811
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.14000c904
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013840
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013843
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013851
mov rcx, rdi
call fcn.140009e70
cmp byte [rbp + 0x3f], r15b
je 0x140013860
mov rcx, qword [rbp + 0x27]
call fcn.140009e70
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 0x140015dd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015df8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015df8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
mov eax, 0x22
mov word [rsp + 0x60], ax
mov eax, 0x24
mov word [rsp + 0x62], ax
lea rax, [0x140002a80]
mov qword [rsp + 0x68], rax
mov eax, 0x20
mov word [rsp + 0x70], ax
mov eax, 0x22
mov word [rsp + 0x72], ax
lea rax, [0x140002a50]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x90]
lea rcx, [0x1400017f0]
mov qword [rax + 0x68], rcx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140002036
mov edx, dword [rsp + 0x40]
lea rcx, [0x140002ab0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x50]
call qword [0x1400030d8]
mov eax, dword [rsp + 0x40]
jmp 0x1400020ff
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140002094
mov r9d, dword [rsp + 0x40]
lea r8, [0x140002ad0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x58]
call qword [0x1400030d8]
mov eax, dword [rsp + 0x40]
jmp 0x1400020ff
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
btr eax, 7
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
mov dword [rsp + 0x44], 0
jmp 0x1400020bc
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x1c
jge 0x1400020de
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x90]
lea rdx, [0x140001840]
mov qword [rcx + rax*8 + 0x70], rdx
jmp 0x1400020b2
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x90]
lea rdx, [0x140001880]
mov qword [rcx + rax + 0x70], rdx
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1400a7a90]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400acb04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x1400acb08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x1400acb08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400acb08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x1400acb04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400acb08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x1400acb08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]