joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012840
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x140012960
lea rdi, [0x140016388]
mov rcx, rdi
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call dbg.pthread_mutex_unlock
test rbx, rbx
je 0x140012960
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140012960
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140012960
test byte [rbx + 0x44], 4
jne 0x140012970
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140016398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012990
cmp rsi, qword [rax + 0x1d8]
je 0x1400129b8
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x1400128eb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400128fa
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001290e
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x1400129a8
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x1400129bf
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140012980
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140012956
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x1400128c6
jmp 0x1400128d3
call dbg.pthread_mutex_destroy
jmp 0x140012930
mov eax, 0x24
jmp 0x140012965
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x1400129d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x140016388]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140012af0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140012af0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140012af0
test byte [rbx + 0x44], 4
jne 0x140012b10
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140016398]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012b50
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x140012b88
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x140012a77
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140012b30
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012a8b
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x140012b68
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call dbg.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x140012b9a
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140012b78
mov rcx, rbp
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x140012a73
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140012ade
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140012a45
jmp 0x140012a4c
call dbg.pthread_mutex_destroy
jmp 0x140012aac
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140012ad4
mov rcx, rbp
call dbg.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140012ade
call sym.replace_spin_keys.part.0
nop
Function at 0x140011311
Capabilities:
Terminate process

Disassembly:
jmp 0x140015ed0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113de
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017220
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017240
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017253
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001727d
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017291
xor al, al
jmp 0x1400172c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400172a3
xor al, al
jmp 0x1400172c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400172bf
xor al, al
jmp 0x1400172c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400115a0
Capabilities:
Change the wallpaper

Disassembly:
jmp 0x1400146a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
mov rcx, qword [rbp + 0xe0]
call fcn.14001108c
mov r9d, 3
mov r8, rax
xor edx, edx
mov ecx, 0x14
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140001ea0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001eee
lea rdx, str.____Error_for_opening_the_given_pid_
call fcn.140004a70
mov rcx, rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
jmp fcn.140004d60
mov r9d, 0x3000
mov qword [rsp + 0x50], rdi
mov r8, rsi
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x140001f30
lea rdx, str.____Error_on_allocation__
call fcn.140004a70
mov rcx, rax
call fcn.140004d60
jmp 0x140001fd5
mov qword [rsp + 0x58], r14
mov r9, rsi
xor r14d, r14d
mov r8, rbp
mov rdx, rdi
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001f69
lea rdx, str.____Error_on_remote_writing__
call fcn.140004a70
mov rcx, rax
call fcn.140004d60
jmp 0x140001fd0
mov qword [rsp + 0x30], r14
mov r9, rdi
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp rax, 0xffffffffffffffff
jne 0x140001fa5
lea rdx, str.____Error_on_remote_thread_creation__
call fcn.140004a70
mov rcx, rax
call fcn.140004d60
jmp 0x140001fd0
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret

Function at 0x140016c7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016aa8
Function at 0x14084c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14084c1df
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 0x14084c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084c06f
add dl, dl
jne 0x14084c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084c0f6
xor eax, eax
add dl, dl
jne 0x14084c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14084c1ad
add dl, dl
jne 0x14084c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14084c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14084c07e
mov eax, 1
add dl, dl
jne 0x14084c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14084c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084c0fb
sub eax, ebx
mov ebx, 1
jne 0x14084c14c
mov ecx, 1
add dl, dl
jne 0x14084c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14084c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14084c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14084c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14084c15d
cmp eax, 0x7d00
jae 0x14084c19b
cmp eax, 0x500
jb 0x14084c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084c07e
cmp eax, 0x7f
ja 0x14084c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14084c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14084c1d2
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 0x14084c07e
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 [0x1400c52d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c52e0]
mov dword [rax], 1
mov rax, qword [0x1400c52f0]
mov dword [rax], 1
mov rax, qword [0x1400c5280]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c52c0]
mov dword [0x1400d600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c53a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c5380]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c5220]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
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
mov rcx, qword [dbg._matherr]
call dbg.__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 0x1400044f0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140004508
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call fcn.1400a21b8
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h455ab218a7898fa4]
mov qword [rsp + 0x38], rax
lea rax, str._b__n_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_os.rs
lea rcx, [rsp + 0x40]
call sym.core::panicking::panic_fmt::h42f2b602a3a68c01
ud2
Function at 0x140004a50
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor esi, esi
mov edi, 0xffffffff
xor r13d, r13d
xor ebx, ebx
cmp r8, 0x201
jae 0x140004ae0
jmp 0x140004abf
jae 0x140004b8e
cmp r8, 0x201
jae 0x140004ae0
mov r14d, 0x200
lea r15, [rsp + 0x98]
mov r12, r8
jmp 0x140004b26
sub r8, rbx
sub r13, rbx
cmp r13, r8
jae 0x140004b07
lea rcx, [rsp + 0x28]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h14c7d7b0ae0947f0
mov rsi, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
cmp rsi, rdi
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x38], rbx
mov r13, rsi
mov r14, rbx
mov r15, qword [rsp + 0x48]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x140004b4b
call fcn.1400a21b8
test eax, eax
jne 0x140004bfb
mov r8d, ebp
cmp r12, r8
jne 0x140004ab0
call fcn.1400a21b8
cmp eax, 0x7a
jne 0x140004c2a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140004abf
jmp 0x140004ae0
cmp r14, r8
jb 0x140004c44
lea rcx, [rsp + 0x50]
mov rdx, r15
call sym.std::sys_common::wtf8::Wtf8Buf::from_wide::h291f248259eaa4f4
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov rsi, qword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140004be4
mov rcx, qword [rsp + 0x30]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400a21b8
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x40]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x140004bd1
jmp 0x140004be4
lea rcx, str.internal_error:_entered_unreachable_codeoverflow_when_adding_duration_to_instant_Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_time.rs
lea r8, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h467566c8418d2e96
jmp 0x140004c59
lea rax, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::hc473902aa46132a2
ud2
Function at 0x140004c90
Capabilities:
Set current directory

Disassembly:
push rsi
sub rsp, 0x50
add rdx, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov word [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x38]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h2c08842494
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x20]
jne 0x140004cd3
lea rcx, [rsp + 0x20]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::he945f421e0c90b27
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov word [rax + rdx*2], 0
inc qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x140004d19
xor esi, esi
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140004d10
mov rcx, qword [rsp + 0x28]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x50
pop rsi
ret
call fcn.1400a21b8
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rdx, qword [rsp + 0x20]
test rdx, rdx
jne 0x140004cfd
jmp 0x140004d10
Function at 0x1400050a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x20]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h061608515dc22956E.llvm.12857077654368372277
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
cmp rsi, r12
jne 0x1400050e1
mov rbx, rdi
jmp 0x140005148
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, rbx
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h061608515dc22956E.llvm.12857077654368372277
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
cmp r15, r12
jne 0x140005105
mov rbx, r14
jmp 0x14000512f
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140005159
xor ebx, ebx
test r15, r15
je 0x14000512f
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call sym.__rust_dealloc
test rsi, rsi
je 0x140005148
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400a21b8
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r15, r15
jne 0x14000511b
jmp 0x14000512f

Function at 0x1400051a0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call sym._ZN3std3sys3pal7windows7to_u16s5inner17h061608515dc22956E.llvm.12857077654368372277
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rsi, rax
jne 0x1400051d5
mov rdi, rbx
jmp 0x14000520d
xor edi, edi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x1400051f4
call fcn.1400a21b8
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rsi, rsi
je 0x14000520d
add rsi, rsi
mov r8d, 2
mov rcx, rbx
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140005830
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400058f3
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [sym._ZN3std3sys3pal7windows6thread6Thread3new12thread_start17h6c1df0a4b05124c6E.llvm.12857077654368372277]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400058e6
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400058bf
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
call fcn.1400a21b8
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hc29ae932b255401d
ud2

Function at 0x140005de0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x40]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.p_n_
cmovne rdx, rcx
add rsp, 0x58
ret
Function at 0x140007340
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 2
mov qword [rsp + 0x30], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x40], rax
xor esi, esi
mov edi, 0xffffffff
xor r13d, r13d
xor ebx, ebx
cmp r8, 0x201
jae 0x1400073c0
jmp 0x1400073af
jae 0x14000746a
cmp r8, 0x201
jae 0x1400073c0
mov r15d, 0x200
lea r14, [rsp + 0x48]
mov r12, r8
jmp 0x140007406
sub r8, rbx
sub r13, rbx
cmp r13, r8
jae 0x1400073e7
lea rcx, [rsp + 0x20]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h14c7d7b0ae0947f0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
cmp rsi, rdi
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x30], rbx
mov r13, rsi
mov r15, rbx
mov r14, qword [rsp + 0x40]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r14
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov ebp, eax
test eax, eax
jne 0x140007427
call fcn.1400a21b8
test eax, eax
jne 0x1400074a3
mov r8d, ebp
cmp r12, r8
jne 0x1400073a0
call fcn.1400a21b8
cmp eax, 0x7a
jne 0x14000752e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400073af
jmp 0x1400073c0
cmp r15, r8
jb 0x140007548
test ebp, ebp
je 0x1400074d2
mov rsi, r8
lea rdi, [r8 + r8]
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov edx, 2
mov rcx, rdi
call sym.__rust_alloc
test rax, rax
je 0x14000755f
mov rbx, rax
jmp 0x1400074dc
call fcn.1400a21b8
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x38]
mov qword [rdi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rdi], rax
mov rdx, qword [rsp + 0x20]
test rdx, rdx
jne 0x140007504
jmp 0x140007517
mov rsi, r8
mov ebx, 2
xor edi, edi
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call sym.memcpy
mov rdi, qword [rsp + 0x38]
mov qword [rdi], rsi
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rsi
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140007517
mov rcx, qword [rsp + 0x28]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_codeoverflow_when_adding_duration_to_instant_Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_time.rs
lea r8, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h467566c8418d2e96
jmp 0x14000756c
lea rax, str._Users_elyzianfields_.rustup_toolchains_nightly_aarch64_apple_darwin_lib_rustlib_src_rust_library_std_src_sys_pal_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r15
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::hc473902aa46132a2
jmp 0x14000756c
mov ecx, 2
mov rdx, rdi
call sym.alloc::alloc::handle_alloc_error::hc29ae932b255401d
ud2
Function at 0x140007e80
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov r9d, 0x40
xor r8d, r8d
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h8eeaa6be65b8f314
test rax, rax
je 0x140007f4a
mov rcx, rdx
cmp rcx, 0x40
jb 0x140007f4a
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140007f48
mov esi, dword [rax + 0x3c]
mov r9d, 0x88
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h8eeaa6be65b8f314
test rax, rax
je 0x140007f48
cmp rdx, 0x88
jb 0x140007f48
cmp dword [rax], 0x4550
jne 0x140007f48
movzx ecx, word [rax + 0x18]
cmp ecx, 0x20b
jne 0x140007f48
movzx r9d, word [rax + 0x14]
cmp r9, 0x70
jb 0x140007f48
mov r14, rax
add rsi, 0x88
add r9, 0xffffffffffffff90
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sym.___u8__as_object::read::read_ref::ReadRef_::read_bytes_at::h8eeaa6be65b8f314
test rax, rax
je 0x140007f48
mov r8, rdx
mov r9d, dword [r14 + 0x84]
lea rcx, [rsp + 0x20]
mov rdx, rax
call sym.object::read::pe::data_directory::DataDirectories::parse::h067a7114c9cb9abf
cmp qword [rsp + 0x20], 0
je 0x140007f57
xor esi, esi
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdx, qword [r14 + 0x30]
mov esi, 1
jmp 0x140007f4a