joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002943c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1406d4c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6d4c70
movabs r10, 0x6d4c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406d4c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406d4c50
lea rax, [r9 + r11]
jmp rax
Function at 0x1405b2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405b21df
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 0x1405b2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b206f
add dl, dl
jne 0x1405b2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b20f6
xor eax, eax
add dl, dl
jne 0x1405b20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b21ad
add dl, dl
jne 0x1405b20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405b20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405b207e
mov eax, 1
add dl, dl
jne 0x1405b2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b20fb
sub eax, ebx
mov ebx, 1
jne 0x1405b214c
mov ecx, 1
add dl, dl
jne 0x1405b212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405b213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405b2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405b2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b215d
cmp eax, 0x7d00
jae 0x1405b219b
cmp eax, 0x500
jb 0x1405b2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b207e
cmp eax, 0x7f
ja 0x1405b219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405b21d2
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 0x1405b207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400e3740]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400e3750]
mov dword [rax], 1
mov rax, qword [0x1400e3760]
mov dword [rax], 1
mov rax, qword [0x1400e36e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400e3730]
mov dword [0x1400f800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400e3810]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400e37f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400e3690]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400066e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, qword [rdx + 0x20]
mov r11, qword [rdx + 0x28]
lea r10, [r11 + 1]
mov qword [rdx + 0x28], r10
mov al, 1
cmp r10, rsi
jae 0x140006720
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + r10]
mov al, 1
cmp edi, 0x2b
je 0x140006715
cmp edi, 0x2d
jne 0x140006720
xor eax, eax
add r11, 2
mov qword [rdx + 0x28], r11
mov r10, r11
cmp r10, rsi
jae 0x1400068b4
mov rdi, qword [rdx + 0x18]
movzx r11d, byte [rdi + r10]
lea rbx, [r10 + 1]
mov qword [rdx + 0x28], rbx
add r11b, 0xd0
cmp r11b, 0xa
jae 0x1400068bf
movzx r11d, r11b
cmp rbx, rsi
jae 0x1400067bd
mov ebx, 1
sub rbx, rsi
add r10, 2
jmp 0x14000677c
movzx esi, sil
lea r11d, [r11 + r11*4]
lea r11d, [rsi + r11*2]
lea rsi, [rbx + r10]
inc rsi
inc r10
cmp rsi, 2
je 0x1400067bd
movzx esi, byte [rdi + r10 - 1]
add sil, 0xd0
cmp sil, 0xa
jae 0x1400067bd
mov qword [rdx + 0x28], r10
cmp r11d, 0xccccccb
jle 0x140006760
cmp r11d, 0xccccccc
jne 0x1400067a8
cmp sil, 7
jbe 0x140006760
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
call sym._RNvMs3_NtCsehxn4gaosGE_10serde_json2deINtB5_12DeserializerNtNtB7_4read7StrReadE23parse_exponent_overflowCs9zJ99nKH2i5_3rls
jmp 0x1400068a1
mov r10d, dword [rsp + 0x80]
test al, al
je 0x1400067da
lea eax, [r10 + r11]
sar eax, 0x1f
add eax, 0x80000000
add r10d, r11d
jmp 0x1400067ea
xor eax, eax
cmp r10d, r11d
setns al
add eax, 0x7fffffff
sub r10d, r11d
cmovo r10d, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x1400b79d0]
subpd xmm1, xmmword [0x1400b79e0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jb 0x14000685c
xorpd xmm1, xmm1
movsd xmm2, qword [0x1400b79f0]
nop dword [rax + rax]
ucomisd xmm0, xmm1
jne 0x140006838
jnp 0x14000688a
test r10d, r10d
jns 0x1400068e8
divsd xmm0, xmm2
add r10d, 0x134
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x134
ja 0x140006830
mov eax, eax
mov r9, qword [0x1400b6058]
movsd xmm1, qword [r9 + rax*8]
test r10d, r10d
js 0x1400068a9
mulsd xmm0, xmm1
movapd xmm1, xmmword [0x1400b7a00]
andpd xmm1, xmm0
ucomisd xmm1, qword [0x1400b7a10]
jae 0x1400068e8
test r8b, r8b
jne 0x140006897
xorpd xmm0, xmmword [0x1400b7a20]
movsd qword [rcx + 8], xmm0
xor eax, eax
mov qword [rcx], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x14000688f
jmp 0x140006897
mov qword [rsp + 0x28], 5
jmp 0x1400068c8
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call sym._RNvMs3_NtCsehxn4gaosGE_10serde_json2deINtB5_12DeserializerNtNtB7_4read7StrReadE5errorCs9zJ99nKH2i5_3rls
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400068a1
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call sym._RNvMs3_NtCsehxn4gaosGE_10serde_json2deINtB5_12DeserializerNtNtB7_4read7StrReadE5errorCs9zJ99nKH2i5_3rls
mov rcx, rsi
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14000689e
Function at 0x14000f510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, qword [rdx + 0x20]
mov r11, qword [rdx + 0x28]
lea r10, [r11 + 1]
mov qword [rdx + 0x28], r10
mov al, 1
cmp r10, rsi
jae 0x14000f550
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + r10]
mov al, 1
cmp edi, 0x2b
je 0x14000f545
cmp edi, 0x2d
jne 0x14000f550
xor eax, eax
add r11, 2
mov qword [rdx + 0x28], r11
mov r10, r11
cmp r10, rsi
jae 0x14000f6e4
mov rdi, qword [rdx + 0x18]
movzx r11d, byte [rdi + r10]
lea rbx, [r10 + 1]
mov qword [rdx + 0x28], rbx
add r11b, 0xd0
cmp r11b, 0xa
jae 0x14000f6ef
movzx r11d, r11b
cmp rbx, rsi
jae 0x14000f5ed
mov ebx, 1
sub rbx, rsi
add r10, 2
jmp 0x14000f5ac
movzx esi, sil
lea r11d, [r11 + r11*4]
lea r11d, [rsi + r11*2]
lea rsi, [rbx + r10]
inc rsi
inc r10
cmp rsi, 2
je 0x14000f5ed
movzx esi, byte [rdi + r10 - 1]
add sil, 0xd0
cmp sil, 0xa
jae 0x14000f5ed
mov qword [rdx + 0x28], r10
cmp r11d, 0xccccccb
jle 0x14000f590
cmp r11d, 0xccccccc
jne 0x14000f5d8
cmp sil, 7
jbe 0x14000f590
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
call sym._RNvMs3_NtCsehxn4gaosGE_10serde_json2deINtB5_12DeserializerNtNtB7_4read7StrReadE23parse_exponent_overflowB7_
jmp 0x14000f6d1
mov r10d, dword [rsp + 0x80]
test al, al
je 0x14000f60a
lea eax, [r10 + r11]
sar eax, 0x1f
add eax, 0x80000000
add r10d, r11d
jmp 0x14000f61a
xor eax, eax
cmp r10d, r11d
setns al
add eax, 0x7fffffff
sub r10d, r11d
cmovo r10d, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x1400b9380]
subpd xmm1, xmmword [0x1400b9390]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jb 0x14000f68c
xorpd xmm1, xmm1
movsd xmm2, qword [0x1400b93a0]
nop dword [rax + rax]
ucomisd xmm0, xmm1
jne 0x14000f668
jnp 0x14000f6ba
test r10d, r10d
jns 0x14000f718
divsd xmm0, xmm2
add r10d, 0x134
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x134
ja 0x14000f660
mov eax, eax
lea r9, [0x1400b9538]
movsd xmm1, qword [r9 + rax*8]
test r10d, r10d
js 0x14000f6d9
mulsd xmm0, xmm1
movapd xmm1, xmmword [0x1400b93b0]
andpd xmm1, xmm0
ucomisd xmm1, qword [0x1400b93c0]
jae 0x14000f718
test r8b, r8b
jne 0x14000f6c7
xorpd xmm0, xmmword [0x1400b93d0]
movsd qword [rcx + 8], xmm0
xor eax, eax
mov qword [rcx], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x14000f6bf
jmp 0x14000f6c7
mov qword [rsp + 0x28], 5
jmp 0x14000f6f8
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call sym._RNvMs3_NtCsehxn4gaosGE_10serde_json2deINtB5_12DeserializerNtNtB7_4read7StrReadE5errorB7_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14000f6d1
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call sym._RNvMs3_NtCsehxn4gaosGE_10serde_json2deINtB5_12DeserializerNtNtB7_4read7StrReadE5errorB7_
mov rcx, rsi
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14000f6ce
Function at 0x140022580
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x1400225e3
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x1400225ef
lea rax, [0x1400b389c]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.h__f_
call sym.core::option::unwrap_failed::ha3c77bb25081c189
mov qword [rbp + 0x138], 0
lea rdx, [0x1400c55b8]
lea r9, [0x1400c55c0]
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call dbg.assert_failed<i32, i32>
int3

Function at 0x14003ff20
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.P__f_
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x1400412b0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140041340
jmp 0x14004132f
jae 0x1400413fb
cmp r8, 0x201
jae 0x140041340
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140041397
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14004136f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h1b52ae8375a25493
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x1400413bd
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140041467
mov r8d, r13d
cmp r12, r8
jne 0x140041320
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14004149a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14004132f
jmp 0x140041340
cmp r14, r8
jb 0x1400414b4
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call dbg.from_wide
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x140041450
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x14004143b
jmp 0x140041450
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call dbg.panic
jmp 0x1400414c9
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x140041500
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x14004151f
mov rdx, rax
add rsp, 0x68
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hea00aa0932122f19]
mov qword [rbp - 8], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rdx, str.library_std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x40]
call dbg.panic_fmt
ud2
Function at 0x140041ef0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
movabs r13, 0x8000000000000000
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r9
lea rsi, [rbp - 0x10]
mov rcx, rsi
call sym.std::sys::pal::windows::to_u16s::inner::hf8e031e8090685fa
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
cmp rdi, r13
jne 0x140041f4f
mov r14, rbx
jmp 0x140041fb4
lea rcx, [rbp - 0x10]
mov rdx, r15
mov r8, r14
call sym.std::sys::pal::windows::to_u16s::inner::hf8e031e8090685fa
mov r12, qword [rbp - 0x10]
mov r15, qword [rbp - 8]
cmp r12, r13
jne 0x140041f70
mov r14, r15
jmp 0x140041f9b
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140041fcd
xor r14d, r14d
test r12, r12
je 0x140041f9b
add r12, r12
mov r8d, 2
mov rcx, r15
mov rdx, r12
call sym.__rust_dealloc
test rdi, rdi
je 0x140041fb4
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x140041fe4
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r12, r12
jne 0x140041f87
jmp 0x140041f9b
mov qword [rbp + 0x20], r14
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::ffi::os_str::Display_as_core::fmt::Debug_::fmt::h5740cac66c485837]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x30]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hea00aa0932122f19]
mov qword [rbp + 0x18], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 3
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 3
lea rdx, str.library_std_srcenv.rs
lea rcx, [rbp - 0x60]
call dbg.panic_fmt
ud2
Function at 0x1400420a0
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov r8, rdx
mov rdx, rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], r8
lea rcx, [rbp - 0x40]
call sym.std::sys::pal::windows::to_u16s::inner::hf8e031e8090685fa
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
movabs rax, 0x8000000000000000
cmp rdi, rax
jne 0x1400420e6
mov rsi, rbx
jmp 0x14004211e
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x140042105
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x14004211e
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test rsi, rsi
jne 0x14004212f
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp], rsi
lea rax, [rbp - 0x10]
mov qword [rbp - 0x60], rax
lea rax, [sym.__std::ffi::os_str::Display_as_core::fmt::Debug_::fmt::h5740cac66c485837]
mov qword [rbp - 0x58], rax
mov rax, rbp
mov qword [rbp - 0x50], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hea00aa0932122f19]
mov qword [rbp - 0x48], rax
lea rax, str.failed_to_remove_environment_variable__
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 2
lea rdx, str.library_std_srcenv.rs
lea rcx, [rbp - 0x40]
call dbg.panic_fmt
ud2
Function at 0x140043720
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm7
movdqa xmmword [rbp - 0x20], xmm6
mov rsi, r8
mov rdi, rcx
test r8, r8
je 0x1400437ac
js 0x1400438f6
mov r15, rdx
mov rax, qword [0x1400e37a8]
movzx eax, byte [rax]
mov ebx, 1
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x1400438f8
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sym.memcpy
mov rdx, r14
cmp rsi, 8
jb 0x1400438ac
movabs rax, 0x7fffffffffffffe0
cmp rsi, 0x20
jae 0x1400437b6
xor ecx, ecx
jmp 0x140043846
mov ebx, 1
jmp 0x1400438cf
mov rcx, rsi
and rcx, rax
xor edx, edx
movdqa xmm0, xmmword [0x1400bf880]
movdqa xmm1, xmmword [0x1400bf890]
movdqa xmm2, xmmword [0x1400bf8a0]
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rbx + rdx]
movdqu xmm4, xmmword [rbx + rdx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rdx], xmm7
movdqu xmmword [rbx + rdx + 0x10], xmm5
add rdx, 0x20
cmp rcx, rdx
jne 0x1400437e0
cmp rcx, rsi
je 0x1400438cf
test sil, 0x18
je 0x1400438a6
add rax, 0x18
and rax, rsi
lea rdx, [r14 + rax]
movdqa xmm0, xmmword [0x1400bf8b0]
movdqa xmm1, xmmword [0x1400bf8c0]
movdqa xmm2, xmmword [0x1400bf8d0]
nop dword [rax]
movq xmm3, qword [rbx + rcx]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rcx], xmm5
add rcx, 8
cmp rax, rcx
jne 0x140043870
cmp rax, rsi
jne 0x1400438ac
jmp 0x1400438cf
add rcx, r14
mov rdx, rcx
add r14, rsi
nop
movzx eax, byte [rdx]
lea ecx, [rax - 0x61]
cmp cl, 0x1a
setb cl
shl cl, 5
xor cl, al
mov byte [rdx], cl
lea rax, [rdx + 1]
mov rdx, rax
cmp rax, r14
jne 0x1400438b0
mov qword [rdi], rsi
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], 0
mov rax, rdi
movaps xmm6, xmmword [rbp - 0x20]
movaps xmm7, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
xor ebx, ebx
mov rcx, rbx
mov rdx, rsi
call dbg.handle_error
int3

Function at 0x140044ff0
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x140045005
mov rcx, rdx
mov rdx, r8
pop rbp
jmp dbg.create_dir_all
mov rcx, rdx
mov rdx, r8
pop rbp
jmp dbg.mkdir