joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400084e0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140008570
jmp 0x14000855f
jae 0x140008630
cmp r8, 0x201
jae 0x140008570
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400085c8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000859f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140031de0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400085f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008698
mov r8d, r14d
cmp r15, r8
jne 0x140008550
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400086bb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000855f
jmp 0x140008570
cmp rsi, r8
jb 0x1400086d5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000a320
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140008681
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140004520
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140008669
jmp 0x140008681
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140032930
jmp 0x1400086ea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140032d20
ud2
Function at 0x14000f2b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14004c6b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000f2f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000f35a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000f391
test eax, eax
js 0x14000f36b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000f384
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140005f30
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.14000a120
mov rcx, rax
call fcn.1400063e0
mov ecx, 7
int 0x29
ud2
Function at 0x14001dac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001db3a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001db30
cmp r11, r10
ja 0x14001dbd3
cmp r10, rdx
ja 0x14001dbe7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001db32
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001db10
jmp 0x14001dba7
ja 0x14001db3a
mov r11, r10
cmp rax, r8
jne 0x14001dae2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001dbab
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001db80
mov r8, r10
sub ecx, r9d
jns 0x14001db9e
jmp 0x14001dbad
cmp r10, rdx
je 0x14001dbb9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001dbad
xor al, 1
cmp r8, rdx
jne 0x14001db60
jmp 0x14001dbad
xor eax, eax
jmp 0x14001dbad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140032930
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140032d90
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140032d20
ud2
Function at 0x140021840
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r13
sub rsp, 0x28
mov dword [rcx], 0x4000400
mov r10, rcx
mov r13d, edx
mov r9d, 0x400
test edx, edx
je 0x1400218bd
lea rax, [rcx + 8]
mov ecx, r13d
nop word [rax + rax]
mov dword [rax - 4], 0x4000400
mov dword [rax], 0x4000400
mov dword [rax + 4], 0x4000400
mov dword [rax + 8], 0x4000400
mov dword [rax + 0xfc], 0x4000400
mov dword [rax + 0x100], 0x4000400
mov dword [rax + 0x104], 0x4000400
mov dword [rax + 0x108], 0x4000400
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x140021870
movzx eax, r9w
lea rdi, [r10 + 0x204]
mov ecx, 0x100
rep stosw word [rdi], ax
test r8b, r8b
jne 0x140021a2f
test edx, edx
je 0x140021a2f
mov qword [rsp + 0x48], rbx
lea rax, [r10 + 0x4808]
mov qword [rsp + 0x20], rbp
xor ebx, ebx
mov qword [rsp + 0x18], rsi
lea rsi, [0x140044160]
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
lea r15, [r10 + 0x404]
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov ebp, dword [r10 + 0x4804]
lea rdi, [0x140044160]
mov dword [rax], ebp
movzx ecx, word [r10]
mov eax, ecx
xor rcx, 0x7f0
shr rcx, 4
shr rax, 4
movzx edx, byte [rcx + rdi]
movzx esi, byte [rax + rsi]
movzx ecx, word [r10 + 2]
mov eax, ecx
mov dword [rsp + 0x50], esi
shr rax, 4
xor rcx, 0x7f0
shr rcx, 4
movzx r14d, byte [rax + rdi]
xor eax, eax
movzx r12d, byte [rcx + rdi]
add r14d, edx
add r12d, edx
test ebp, ebp
je 0x1400219e8
mov r11, r15
cmp eax, 8
jae 0x140021a37
xor r9d, r9d
lea r8d, [rax + 8]
lea rsi, [0x140044160]
nop word [rax + rax]
mov edx, r8d
shr r8d, 1
and edx, 1
mov ecx, r8d
add rcx, rbx
movzx edi, word [r10 + rcx*2 + 4]
mov ecx, edx
neg ecx
shr rdi, 4
shr rcx, 4
and ecx, 0x7f
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x1400219a0
mov ecx, dword [rsp + 0x50]
inc eax
add ecx, r9d
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140021980
lea rsi, [0x140044160]
mov rax, qword [rsp + 0x40]
add r15, 0x440
add rax, 4
add rbx, 8
mov qword [rsp + 0x40], rax
sub r13, 1
jne 0x140021920
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop r13
pop rdi
ret
cmp eax, ebp
jae 0x1400219e8
lea r11, [r15 + rax*4]
lea rsi, [0x140044160]
cmp eax, 0x10
jae 0x140021a9e
xor r9d, r9d
mov r8d, eax
mov edx, r8d
shr r8d, 1
and edx, 1
mov ecx, r8d
add rcx, rbx
movzx edi, word [r10 + rcx*2 + 0x104]
mov ecx, edx
neg ecx
shr rdi, 4
shr rcx, 4
and ecx, 0x7f
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140021a51
lea ecx, [r9 + r14]
inc eax
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140021a46
jmp 0x1400219ef
lea r11, [r15 + rax*4]
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
lea r8d, [rax + 0xf0]
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx edi, word [r10 + r8*2 + 0x204]
and ecx, 0x7f
shr rdi, 4
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140021ac0
lea ecx, [r9 + r12]
inc eax
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140021ab0
jmp 0x1400219ef
Function at 0x140021b10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
lea r9, [0x140044160]
mov ebp, edx
mov r11, rcx
mov dword [rcx + rbp*4 + 0x4808], esi
lea r12, [r11 + 0x404]
movzx edx, word [rcx]
movzx ecx, word [rcx + 2]
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
movzx r14d, byte [rax + r9]
mov eax, ecx
movzx r8d, byte [rdx + r9]
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
movzx r13d, byte [rcx + r9]
add r15d, r8d
imul rax, rbp, 0x440
add r13d, r8d
xor r9d, r9d
add r12, rax
test esi, esi
je 0x140021cf9
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x140021c1f
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x140044160]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140021bd0
mov eax, dword [rsp + 0x38]
inc r9d
add eax, r10d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x140021ba8
jmp 0x140021cef
cmp r9d, esi
jae 0x140021cef
lea rdi, [r12 + r9*4]
lea r14, [0x140044160]
cmp r9d, 0x10
jae 0x140021c9c
xor r10d, r10d
lea rbx, [rbp*8]
mov r8d, r9d
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x140021c50
lea eax, [r10 + r15]
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x140021c33
jmp 0x140021cef
lea rbx, [r12 + r9*4]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x140021cb0
lea eax, [r10 + r13]
inc r9d
mov dword [rbx], eax
add rbx, 4
cmp r9d, esi
jb 0x140021ca0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140029840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x1400463a0]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x140029946
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x14002988f
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
test r11b, 7
jne 0x140029870
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x140029941
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x1400298b0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x14002996d
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
sub rbx, 1
jne 0x140029950
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret

Function at 0x140029980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x1400483a0]
mov rbx, rdx
mov r11, rcx
not r8
cmp rdx, 4
jbe 0x140029a4f
mov qword [rsp + 0x10], rdi
test cl, 3
je 0x1400299cf
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
shr r8, 8
xor r8, qword [rsi + rcx*8]
test r11b, 3
jne 0x1400299b0
mov rdi, rbx
and ebx, 3
and rdi, 0xfffffffffffffffc
add rdi, r11
cmp r11, rdi
jae 0x140029a4a
nop dword [rax]
nop word [rax + rax]
mov r10d, dword [r11]
add r11, 4
mov eax, r8d
xor r10, rax
mov rax, r10
shr rax, 0x10
movzx edx, al
mov rax, r10
shr rax, 8
movzx ecx, al
mov rax, r10
shr rax, 0x18
mov r9, qword [rsi + rdx*8 + 0x800]
xor r9, qword [rsi + rcx*8 + 0x1000]
xor r9, qword [rsi + rax*8]
movzx eax, r10b
xor r9, qword [rsi + rax*8 + 0x1800]
mov rax, r8
shr rax, 0x20
mov r8, r9
xor r8, rax
cmp r11, rdi
jb 0x1400299f0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x140029a7d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8, 8
xor r8, qword [rsi + rcx*8]
sub rbx, 1
jne 0x140029a60
mov rbx, qword [rsp + 0x18]
not r8
mov rax, r8
pop rsi
ret
Function at 0x14002cdd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r12d, 4
lea rbx, [rcx + 0x10290]
mov ebp, r12d
lea rsi, [rcx + 0x10698]
mov r10, rcx
lea r13, [0x140044160]
xor edi, edi
nop
mov eax, dword [r10 + 0x10e90]
xor r11d, r11d
test eax, eax
je 0x14002ce77
nop
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r13]
add r9d, ecx
cmp eax, 1
jne 0x14002ce30
mov dword [rbx + r11*4], r9d
inc r11d
mov eax, dword [r10 + 0x10e90]
cmp r11d, eax
jb 0x14002ce20
mov edx, 0xe
cmp eax, edx
jbe 0x14002cea0
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
shr eax, 1
inc edx
shl eax, 4
sub eax, 0x50
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x14002ce80
nop dword [rax]
mov eax, dword [rbx]
add rdi, 0x40
mov dword [rsi - 8], eax
mov eax, dword [rbx + 4]
mov dword [rsi - 4], eax
mov eax, dword [rbx + 8]
mov dword [rsi], eax
mov eax, dword [rbx + 0xc]
add rbx, 0x100
mov dword [rsi + 4], eax
add rsi, 0x200
sub rbp, 1
jne 0x14002ce10
mov r15, r12
lea r14, [0x1400441e4]
lea rdi, [r10 + 0x10aa0]
nop dword [rax]
nop word [rax + rax]
movzx r9d, byte [r14]
mov ebx, r12d
mov r11d, r9d
mov eax, r9d
and eax, 1
shr r11d, 1
dec r11d
or eax, 2
mov ecx, r11d
shl eax, cl
sub ebx, eax
mov ebp, eax
xor r8d, r8d
lea esi, [r8 + 1]
nop dword [rax]
mov eax, esi
mov edx, ebx
sub rax, r9
shr ebx, 1
add rax, rbp
and edx, 1
movzx ecx, word [r10 + rax*2 + 0x70fa]
lea esi, [rdx + rsi*2]
mov eax, edx
shr rcx, 4
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r13]
add r8d, eax
add r11d, 0xffffffff
jne 0x14002cf20
mov ecx, dword [r10 + r9*4 + 0x10290]
inc r12d
add ecx, r8d
inc r15
mov dword [rdi - 0x400], ecx
inc r14
mov ecx, dword [r10 + r9*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 0x200], ecx
mov ecx, dword [r10 + r9*4 + 0x10490]
add ecx, r8d
mov dword [rdi], ecx
mov ecx, dword [r10 + r9*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x200], ecx
add rdi, 4
cmp r12d, 0x80
jb 0x14002cef0
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [r10 + 0x10e94], r11d
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x14002cfe0
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
sub ecx, r10d
shr r8d, cl
mov ecx, r10d
mov eax, dword [r11 + 0xb98]
xor r10d, r10d
and eax, edx
shl eax, cl
mov ecx, dword [rsp + 0x38]
add r8d, eax
add ecx, 0x100
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x140044160]
test r9b, r9b
jne 0x14002d066
nop dword [rax]
mov r8d, ecx
shr ecx, 1
and r8d, 1
neg r8d
shr r8, 4
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 0x7f
shr r9, 4
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x14002d030
mov eax, r10d
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov r9d, 0x100
mov ebx, dword [rsp + 0x30]
nop word [rax + rax]
mov edx, ecx
add ebx, ebx
shr edx, 8
mov eax, r9d
and eax, ebx
add eax, r9d
add edx, eax
movzx r8d, word [rdi + rdx*2 + 0xb9c]
mov edx, ecx
shr edx, 7
add ecx, ecx
and edx, 1
shr r8, 4
neg edx
shr rdx, 4
and edx, 0x7f
xor r8, rdx
movzx eax, byte [r8 + r11]
add r10d, eax
mov eax, ebx
xor eax, ecx
not eax
and r9d, eax
cmp ecx, 0x10000
jb 0x14002d080
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14006f980]
mov dword [rax], 1
mov rax, qword [0x14006f990]
mov dword [rax], 1
mov rax, qword [0x14006f9a0]
mov dword [rax], 1
mov rax, qword [0x14006f8c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140032410
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.14004ebd0
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 0x1400324d5
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 0x14005fab6
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400324b6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400324a8
test rsi, rsi
je 0x14005fab6
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140032468
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 0x140032504
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 0x140032520
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 0x1400325dd
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 0x14005fabc
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400325be
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400325b0
test rsi, rsi
je 0x14005fabc
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140032570
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 0x140032610
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, qword [0x14006fe10]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi]
mov rsi, rdx
mov rbx, r8
test rcx, rcx
je 0x140032803
lea rdx, str.environ
call qword [sym.imp.python312.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov rbp, rax
test rbx, rbx
je 0x14003270d
mov rdx, rbx
mov rcx, rsi
call fcn.140032520
mov rcx, rbx
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdx, rbp
mov rcx, rdi
mov rbx, rax
mov r8, rax
call qword [sym.imp.python312.dll_PyObject_SetItem]
test eax, eax
jne 0x140032824
mov rax, qword [rbx]
test eax, eax
js 0x1400326af
sub rax, 1
mov qword [rbx], rax
je 0x1400327f5
mov rax, qword [rbp]
test eax, eax
js 0x1400326c1
sub rax, 1
mov qword [rbp], rax
je 0x140032702
mov rax, qword [rdi]
test eax, eax
js 0x1400326d1
sub rax, 1
mov qword [rdi], rax
je 0x1400326e5
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.python312.dll__Py_Dealloc]
mov rcx, rbp
call qword [sym.imp.python312.dll__Py_Dealloc]
jmp 0x1400326c1
movzx eax, byte [rsi]
mov word [rsp + 0x50], 0
test al, al
je 0x14003283a
lea rdx, [rsp + 0x4a]
xor r14d, r14d
lea r12, [rsp + 0x50]
mov r13d, 0x28
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x30], rdx
nop dword [rax]
mov rdx, qword [rsp + 0x28]
mov r15, r13
mov byte [rsp + 0x4a], al
lea rbx, [r12 + r14*2]
mov rcx, qword [rsp + 0x30]
mov r8d, 2
sub r15, r14
mov byte [rsp + 0x4b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14005fac2
cmp word [r12 + r14*2], 0
movzx eax, word [rsp + 0x4c]
je 0x14003279e
nop word [rax + rax]
add rbx, 2
sub r15, 1
cmp word [rbx], 0
jne 0x140032790
test r15, r15
je 0x14005fac2
add r14, 1
mov word [rbx], ax
xor ecx, ecx
movzx eax, byte [rsi + r14]
mov word [rbx + 2], cx
test al, al
jne 0x140032748
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.python312.dll_PyObject_DelItem]
test eax, eax
je 0x1400326af
mov rax, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov qword [rax + 0x60], rdx
call fcn.140001cd0
jmp 0x1400326af
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
jmp 0x1400326af
lea rcx, [0x14006ac15]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140032641
jmp 0x14005fac2
mov ecx, 1
call qword [sym.imp.python312.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python312.dll_Py_Exit]
lea r12, [rsp + 0x50]
jmp 0x1400327bd