joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14198
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, 0x80
mov rbx, rcx
call fcn.00013fe0
xor r10d, r10d
mov edx, eax
mov r11d, eax
shl edx, 2
movsxd r9, edx
cmp r9, r10
jle 0x14215
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x141cc
cmp r11d, 1
jle 0x143a2
lea r10d, [r11 - 1]
lea rdi, [0x00010000]
add rbx, 0x10
mov r9d, dword [rbx]
mov rax, r9
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 1]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
movzx eax, byte [rbx + 2]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x31b0]
mov rax, r9
mov dword [rbx], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 5]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
movzx eax, byte [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x31b0]
mov rax, r9
mov dword [rbx + 4], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 9]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
movzx eax, byte [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
mov r9d, dword [rbx + 0xc]
xor r8d, dword [rdi + rcx*4 + 0x31b0]
mov rax, r9
mov dword [rbx + 8], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 0xd]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, byte [rbx + 0xe]
mov r8d, dword [rdi + rdx*4 + 0x25b0]
xor r8d, dword [rdi + rcx*4 + 0x2db0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x29b0]
movzx ecx, byte [rdi + rax*4 + 0x21b0]
xor r8d, dword [rdi + rcx*4 + 0x31b0]
sub r10, 1
mov dword [rbx + 0xc], r8d
jne 0x1422a
mov eax, r11d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x19958
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x1810
call sub.ntoskrnl.exe___chkstk
sub rsp, rax
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x1800], rax
cmp dword [0x000172d4], 0x10
mov rsi, r8
mov edi, edx
mov rbx, rcx
jae 0x19b1b
lea rcx, [rsp + 0x48]
mov rdx, rbx
mov r8d, 0x34
call fcn.00015fc0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.0001da8c
xor r13d, r13d
cmp eax, r13d
jl 0x19b20
mov edx, dword [0x000172d4]
mov eax, dword [rbx + 4]
lea r8, [0x00010000]
mov dword [r8 + rdx*4 + 0x71e0], eax
mov eax, dword [rbx + 8]
lea r12, [rdi - 0x34]
mov dword [r8 + rdx*4 + 0x7220], eax
shr r12, 1
lea ebp, [r13 + 1]
add edx, ebp
lea eax, [r12 - 1]
mov dword [0x000172d4], edx
cmp r13w, word [rbx + rax*2 + 0x34]
jne 0x19b1b
lea eax, [r12 - 2]
cmp r13w, word [rbx + rax*2 + 0x34]
jne 0x19b1b
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [rsi + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
lea r11, [rsi + 0x30]
mov rax, qword [r11]
cmp rax, r11
je 0x19a52
mov ecx, dword [rbx + 4]
cmp ecx, dword [rax - 8]
je 0x19a4f
mov rax, qword [rax]
cmp rax, r11
jne 0x19a40
jmp 0x19a52
mov bpl, r13b
lea rcx, [rsi + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
cmp bpl, r13b
je 0x19b1b
mov rcx, qword [rsi]
lea rax, [rsp + 0x40]
mov r9d, 0x2a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x17d0
mov byte [rsp + 0x28], r13b
add r12d, r12d
mov dword [rsp + 0x20], 0x180
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, r13d
mov edi, eax
jl 0x19b20
mov rax, qword [rsp + 0x40]
mov r8d, 0x62735556
mov rdx, r12
mov rbp, qword [rax + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rbp + 0x28], rax
cmp rax, r13
jne 0x19adc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc000009a
jmp 0x19b20
lea rdx, [rbx + 0x34]
mov r8, r12
mov rcx, rax
call fcn.00015fc0
mov r11d, dword [rbx + 4]
mov rdx, rsi
mov dword [rbp + 0x30], r11d
mov rcx, qword [rsp + 0x40]
call fcn.000198a4
lea rcx, [rbp + 0x50]
lea rdx, [rsp + 0x80]
mov r8d, 0x177b
call fcn.00015fc0
mov eax, edi
jmp 0x19b20
mov eax, 0xc000000d
mov rcx, qword [rsp + 0x1800]
xor rcx, rsp
call fcn.00015f60
mov rbx, qword [rsp + 0x1858]
add rsp, 0x1810
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1a590
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x1a0
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
mov rax, cr8
xor ebx, ebx
cmp al, bl
je 0x1a5cb
lea eax, [rbx + 1]
jmp 0x1a688
lea r8, str.RegistryMACHINESystemCurrentControlSetutool
lea rdx, [0x0001f800]
lea rcx, [rsp + 0x90]
add r9, 0x14f0
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 0x20006
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0x30
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 0x40
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
mov edi, eax
jl 0x1a681
lea rcx, [rsp + 0x68]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
setl bl
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.00015f60
add rsp, 0x1a0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1e040
Capabilities:
Encode data using xor

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 r13
sub rsp, 0x20
xor esi, esi
mov r10, r8
mov rdi, rcx
cmp r8, rsi
je 0x1e300
test dl, 1
je 0x1e08f
cmp dword [r9], 8
jb 0x1e300
mov dword [r9], 8
mov rax, qword [rcx + 0x1530]
mov qword [r8], rax
jmp 0x1e300
xor eax, eax
mov qword [rcx + 0x1528], rax
mov qword [rcx + 0x1530], rax
cmp dword [r9], 8
jne 0x1e300
mov rax, qword [r8]
mov qword [rcx + 0x1528], rax
cmp byte [rcx + 0x152d], 0xff
jne 0x1e0de
cmp word [rcx + 0x152e], si
jne 0x1e0de
add rcx, 0x1538
xor edx, edx
mov r8d, 0x133
call fcn.000163a0
jmp 0x1e300
mov ecx, esi
lea rdx, [rdi + 0x1528]
mov al, byte [rdi + 0x152f]
xor al, byte [rdi + 0x152e]
xor al, byte [rdx]
xor al, cl
inc ecx
mov byte [rdx], al
inc rdx
cmp ecx, 5
jl 0x1e0e7
mov al, byte [rdi + 0x152f]
xor al, byte [rdi + 0x152e]
xor byte [rdi + 0x152d], al
cmp byte [rdi + 0x1528], sil
je 0x1e248
cmp byte [rdi + 0x1529], sil
je 0x1e248
cmp byte [rdi + 0x152a], sil
je 0x1e248
cmp byte [rdi + 0x152b], 3
jne 0x1e248
cmp byte [rdi + 0x152d], sil
jne 0x1e248
xor ecx, ecx
lea rdx, [rdi + 0x1528]
lea r8d, [rcx + 5]
call fcn.0001e90c
cmp word [rdi + 0x152e], ax
jne 0x1e248
lea rcx, [rdi + 0x1538]
xor edx, edx
mov r8d, 0x133
call fcn.000163a0
mov r11b, byte [rdi + 0x152c]
xor eax, eax
mov byte [rdi + 0x153f], r11b
mov qword [rdi + 0x1530], rax
mov byte [rdi + 0x1530], sil
mov byte [rdi + 0x1531], 0x31
mov byte [rdi + 0x1532], 0x42
mov byte [rdi + 0x1533], 0xe3
mov byte [rdi + 0x1538], 0x75
mov byte [rdi + 0x1539], 0x67
mov byte [rdi + 0x153a], 0x67
mov byte [rdi + 0x153b], 0xa
lea r8d, [rax + 5]
lea rdx, [rdi + 0x1530]
xor ecx, ecx
mov byte [rdi + 0x1534], 0x21
mov byte [rdi + 0x153c], 0x5d
mov byte [rdi + 0x1535], 0x5d
call fcn.0001e90c
mov word [rdi + 0x153d], si
mov word [rdi + 0x1536], ax
lea rcx, [rdi + 0x1530]
mov al, byte [rcx]
xor al, byte [rdi + 0x1537]
xor al, byte [rdi + 0x1536]
xor al, sil
inc esi
mov byte [rcx], al
inc rcx
cmp esi, 5
jl 0x1e214
mov al, byte [rdi + 0x1537]
xor al, byte [rdi + 0x1536]
xor byte [rdi + 0x1535], al
jmp 0x1e300
mov rax, qword [r10]
lea r13, [0x0001e950]
lea rcx, [rdi + 0x1528]
mov r8, r13
mov rdx, rdi
mov qword [rdi + 0x1528], rax
call fcn.0001e894
cmp r13, rsi
je 0x1e27c
mov al, byte [rdi + 0x153c]
sub byte [rdi + 0x152e], al
movzx ecx, word [rdi + 0x153d]
lea rdx, [rdi + 0x1528]
mov r8d, 5
call fcn.0001e90c
mov word [rdi + 0x153d], ax
cmp word [rdi + 0x152e], ax
jne 0x1e300
xor eax, eax
mov rcx, rdi
mov qword [rdi + 0x1530], rax
call fcn.0001e324
cmp al, sil
je 0x1e300
mov al, byte [rdi + 0x153c]
movzx ecx, word [rdi + 0x153d]
lea rdx, [rdi + 0x1530]
mov r8d, 5
mov byte [rdi + 0x1535], al
call fcn.0001e90c
lea rcx, [rdi + 0x1530]
mov r8, r13
mov rdx, rdi
mov word [rdi + 0x153d], ax
mov word [rdi + 0x1536], ax
call fcn.0001e894
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
ret
Function at 0x1eda4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r9b, byte [rcx + 1]
mov dil, byte [rcx + 2]
mov r11b, byte [rcx]
shr dil, 7
mov al, r9b
mov rbx, rcx
shr al, 5
not dil
and al, 1
and dil, 1
mov byte [rcx + 0xa], al
jne 0x1ede9
not r11b
and dword [rsp + 0x50], 0
mov esi, 0x1f
mov r10b, byte [rsp + 0x50]
lea edx, [rsi - 0x1b]
and r9b, sil
mov al, r10b
mov cl, r9b
shl al, 2
add cl, cl
not cl
and cl, 2
mov r10b, cl
or r10b, al
mov al, r9b
shr r9b, 1
and al, 1
or r10b, al
sub rdx, 1
jne 0x1edfe
mov bpl, r10b
xor r12d, r12d
mov byte [rsp + 0x50], r10b
not bpl
or r13d, 0xffffffff
lea r14d, [rdx + 0x18]
mov byte [rsp + 0x52], bpl
mov r15d, 0xfe
lea rax, [r14 - 0x10]
mov r8d, r13d
dec r13d
sar rax, 2
and r8d, 7
and rax, r15
mov cl, r8b
mov dl, byte [rax + rbx + 2]
mov rax, r14
inc r14
shr dl, cl
mov ecx, r12d
sar rax, 2
and dl, 1
and rax, r15
xor dl, r9b
shl dl, cl
mov cl, r8b
xor r10b, dl
mov dl, byte [rax + rbx + 2]
shr dl, cl
mov ecx, r12d
inc r12d
and dl, 1
xor dl, r9b
shl dl, cl
xor bpl, dl
cmp r13d, 0xfffffff7
jg 0x1ee46
and dword [rbx + 0xb], 0
movzx r12d, r11b
xor r13d, r13d
mov r14d, r12d
mov byte [rsp + 0x51], r10b
mov byte [rsp + 0x53], bpl
shl r14d, 3
mov r15, rsi
mov dword [rbx + 0xf], r14d
mov ebp, 0xc
mov rdx, rbx
mov ecx, esi
call fcn.0001ece8
sub rbp, 1
mov r11d, eax
jne 0x1eec7
mov eax, dword [rsp + 0x50]
mov rcx, r15
dec r15
sar rcx, 2
and ecx, 0xfe
movzx edx, byte [rcx + rbx + 2]
mov ecx, 0xff
sub cl, sil
and ecx, 7
shr edx, cl
mov ecx, esi
shr eax, cl
xor edx, eax
movzx eax, r11b
xor edx, esi
and edx, 1
xor edx, eax
lea eax, [r13 + r13]
mov r13d, edx
or r13d, eax
sub esi, 1
jns 0x1eebe
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, dil
lea ecx, [r12 + r12]
mov dword [rbx + 0xb], r13d
or ecx, eax
add ecx, ecx
or ecx, eax
add ecx, ecx
or ecx, eax
mov dword [rbx + 0xf], ecx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1efec
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, rdx
mov edi, ecx
lea rdx, [rsp + 0x20]
mov esi, 0xf
xor ebx, ebx
mov rcx, rax
mov r11, r8
mov word [rsp + 0x20], si
mov word [rsp + 0x22], bx
call fcn.0001f1b8
movzx r8d, word [rsp + 0x20]
movzx edx, word [rsp + 0x24]
lea r9, [rsp + r8 + 0x28]
shr edi, 0x1c
mov al, bl
mov cl, dil
add dx, dx
xor al, 1
inc ebx
shl al, 2
sub cl, al
movzx eax, byte [r9]
and cl, sil
xor cl, byte [rsp + rax + 0x38]
movzx eax, cl
xor r8w, ax
movzx eax, r8w
mov word [rsp + 0x20], r8w
lea r9, [rsp + rax + 0x28]
mov al, byte [r9]
and al, 1
movzx ecx, al
or cx, dx
cmp ebx, 8
mov dx, cx
mov word [rsp + 0x24], cx
jl 0x1f043
mov word [r11], cx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.00015f60
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1f0b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov rbp, rcx
call fcn.0001f1b8
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x38]
call fcn.000163a0
mov r11, qword [rbp + 0x93]
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x68], r11
mov esi, 6
sub rdi, 4
mov eax, dword [rsp + 0x6c]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x6c]
mov r9, rbp
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call fcn.00015e60
add rdi, 4
movzx r11d, al
mov eax, dword [rsp + 0x68]
dec esi
xor dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x60]
add word [rsp + 0x5c], r11w
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x64]
mov dword [rdi], eax
test esi, esi
jg 0x1f10f
mov eax, dword [rsp + 0x44]
mov dword [rbx], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x4c]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x48]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], eax
movzx eax, word [rsp + 0x5c]
mov word [rbx + 0x18], ax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.00015f60
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1f2e8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x00017100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
lea rdx, [rsp + 0x28]
mov rbp, rcx
call fcn.0001f1b8
movzx r12d, word [rbx]
movzx r13d, word [rbx + 2]
movzx esi, word [rbx + 4]
movzx edi, word [rbx + 6]
mov r14d, 5
lea r15d, [r14 - 4]
mov eax, 0xf
lea r8, [rsp + 0x28]
xor edx, edx
mov word [rsp + 0x28], ax
xor eax, eax
mov r9, rbp
movzx ecx, si
mov word [rsp + 0x2a], ax
call fcn.0001f238
lea r8, [rsp + 0x28]
mov r9, rbp
movzx edx, ax
movzx ecx, di
call fcn.0001f238
xor ax, di
movzx ecx, ax
add ax, ax
shr cx, 0xf
add cx, ax
mov word [rsp + 0x20], cx
shr cx, 8
add byte [rsp + 0x20], cl
movzx r8d, word [rsp + 0x20]
xor r8w, di
xor r8w, si
movzx eax, r8w
shr ax, 8
add al, r8b
mov cl, al
add al, al
shr cl, 7
add cl, al
add cl, r15b
mov dl, cl
add cl, cl
shr dl, 7
add dl, cl
add r8b, dl
mov cl, r8b
add r8b, r8b
shr cl, 7
add cl, r8b
mov al, cl
add cl, cl
shr al, 7
add al, cl
mov ecx, 0x100
movzx r8d, al
movzx eax, dl
imul ax, cx
mov ecx, 0xff
add r8w, ax
lea edx, [rdi + r8]
xor r8w, r12w
mov r12w, si
lea eax, [r15 + rdx]
xor si, r8w
xor ax, dx
and ax, cx
xor dx, ax
movzx ecx, dx
add dx, dx
shr cx, 0xf
add cx, dx
movzx eax, cx
add cx, cx
shr ax, 0xf
add ax, cx
xor ax, r13w
mov r13w, di
xor di, ax
sub r14, r15
jne 0x1f336
mov word [rbx], si
mov word [rbx + 2], di
mov word [rbx + 4], r12w
mov word [rbx + 6], r13w
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.00015f60
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f14e0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14026abd0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1401f15a5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027baee
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401f1586
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401f1578
test rsi, rsi
je 0x14027baee
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401f1538
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1401f15d4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1401f15f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1401f16ad
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027baf4
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401f168e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401f1680
test rsi, rsi
je 0x14027baf4
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401f1640
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14020fe70
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1402b79d0]
mov rsi, rcx
test rbx, rbx
je 0x14020fef0
mov rax, qword [0x140293b80]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14020fee0
mov rdx, qword [0x1402b7c08]
test rdx, rdx
je 0x14020ffe0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x14020fec1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1401f14e0
test rax, rax
je 0x140210000
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027bb82
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14020ff8e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14020ff80
test rbx, rbx
je 0x14027bb82
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14020ff40
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.14020fd00
mov rbx, rax
mov qword [0x1402b79d0], rbx
jmp 0x14020fe92
lea rcx, [0x140290077]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1402b7c08], rax
mov rdx, rax
jmp 0x14020feb2
mov rbx, qword [0x1402b79e8]
test rbx, rbx
jne 0x14020ffd1
cmp byte [0x1402b7c02], 0
jne 0x14021001f
mov ecx, 1
call fcn.1401e3510
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b7a00]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1402b79e8], rax
mov rbx, rax
test rax, rax
je 0x14021004d
mov eax, dword [rax]
add eax, 1
je 0x14020ffd1
mov dword [rbx], eax
jmp 0x14020ffd1
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x1402108e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1401f14e0
test rax, rax
je 0x140210a30
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14027bb9a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140210996
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140210988
test rbx, rbx
je 0x14027bb9a
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140210948
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1402b8120]
mov rsi, rax
mov rax, qword [0x140293b80]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140210aa5
mov rdx, rbx
call fcn.1401e1cd0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140204800
mov rdx, qword [rbx]
test edx, edx
js 0x140210a12
sub rdx, 1
mov qword [rbx], rdx
je 0x140210a8d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1402b79e0]
lea rsi, [0x1402b79e0]
test bl, bl
je 0x140210a50
mov rax, qword [0x1402b79e8]
lea rsi, [0x1402b79e8]
test rax, rax
jne 0x140210a12
cmp byte [0x1402b7c02], 0
jne 0x140210a66
movzx ecx, bl
call fcn.1401e3510
mov rdx, 0xffffffffffffffff
lea rcx, [0x1402b7a00]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140210acf
mov edx, dword [rax]
add edx, 1
je 0x140210a12
mov dword [rax], edx
jmp 0x140210a12
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140210a12
mov rcx, qword [0x1402b8098]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x140210ada
mov rdx, rdi
call fcn.1401e1cd0
mov qword [0x1402b8120], rax
mov rcx, rax
jmp 0x1402109e9
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14028b7fb]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1402b8098], rax
mov rcx, rax
test rax, rax
je 0x14027bb9a
jmp 0x140210ab8
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop