joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180029af0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1800ea200]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.18000b2f0
mov rbx, rax
mov rcx, qword [rax + 0xa0]
cmp dword [rcx + 0x40], 0
jle 0x180029b28
cmp qword [rcx + 0x18], 0
jne 0x180029b42
cmp qword [rcx + 0x20], 0
jne 0x180029b42
mov r8d, 0xcf
lea rdx, str.C:UserscryptoeDesktopAceid_ccincludesimguiimgui_impl_win32.cpp
lea rcx, str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_back_end._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x1800ea428]
lea rdx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x20]
sub eax, dword [rsp + 0x28]
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 8], xmm1
movss dword [rbx + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
xorps xmm1, xmm1
sub rax, qword [0x1800ea430]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1800ea438]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rsp + 0x20]
mov qword [0x1800ea430], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x143], 0
mov byte [rbx + 0x142], al
call fcn.18002a0a0
cmp byte [rbx + 0xc0], 0
je 0x180029c1a
mov eax, 0xffffffff
jmp 0x180029c1f
call fcn.18000b400
cmp dword [0x1800bb1d8], eax
je 0x180029c32
mov dword [0x1800bb1d8], eax
call fcn.180029f20
call fcn.180029c50
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180059b00
add rsp, 0x40
pop rbx
ret

Function at 0x18002c170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r8d, byte [rcx]
xor r9d, r9d
mov r10, rdx
cmp r8b, 0x2d
jne 0x18002c18b
movzx r8d, byte [rcx + 1]
mov r9d, 1
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x18002c1a1
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x18002c1de
movss xmm2, dword [0x180063b58]
cmp al, 0x39
ja 0x18002c1de
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x18002c1b8
mov rax, rcx
test r9d, r9d
je 0x18002c1ed
xorps xmm1, xmmword [0x180063c50]
movss dword [r10], xmm1
ret
Function at 0x18002c200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r8d, byte [rcx]
xor r9d, r9d
mov r10, rdx
cmp r8b, 0x2d
jne 0x18002c21b
movzx r8d, byte [rcx + 1]
mov r9d, 1
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x18002c231
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x18002c26c
movsd xmm2, qword [0x18006b498]
cmp al, 0x39
ja 0x18002c26c
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x18002c248
mov rax, rcx
test r9d, r9d
je 0x18002c27b
xorps xmm1, xmmword [0x18006b560]
movsd qword [r10], xmm1
ret
Function at 0x18003f340
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
movabs rdi, 0x1424304a8
mov rdi, qword [rdi]
test rdi, rdi
je 0x18003f48a
mov rdi, qword [rdi + 0xd0]
test rdi, rdi
je 0x18003f48a
mov edx, 0x68
mov rcx, rdi
call fcn.18003d170
call rax
mov rcx, rax
test rax, rax
je 0x18003f48a
mov qword [rsp + 0x38], rbx
mov edx, 0x470
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call fcn.18003d170
lea rdx, [rsp + 0x30]
call rax
test al, al
jne 0x18003f3af
mov qword [rsp + 0x30], rbx
jmp 0x18003f3b4
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18003f485
mov rdi, qword [rdi + 0x148]
test rdi, rdi
je 0x18003f485
mov rax, qword [0x1800eaa48]
cmp byte [rax + 0x114], 0
je 0x18003f41f
mov ecx, dword [rax + 0x118]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18003f404
mov rcx, qword [0x1800eaa48]
cmp byte [rcx + 0x11c], 0
sete al
mov byte [rcx + 0x11c], al
mov rax, qword [0x1800eaa48]
movzx ecx, byte [rax + 0x11c]
mov byte [rdi + 0x3a4], cl
mov rax, qword [0x1800eaa48]
cmp byte [rax + 0x105], 0
je 0x18003f473
mov ecx, dword [rax + 0x108]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18003f44f
mov rdx, qword [0x1800eaa48]
cmp byte [rdx + 0x10c], 0
sete al
mov byte [rdx + 0x10c], al
mov edx, 0x220
mov rcx, rbx
call fcn.18003d170
mov rdx, qword [0x1800eaa48]
movzx edx, byte [rdx + 0x10c]
call rax
mov rax, qword [0x1800eaa48]
cmp byte [rax + 0x158], 0
je 0x18003f485
mov ecx, dword [rax + 0x15c]
mov dword [rdi + 4], ecx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180054490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x1800544c4
cmp ecx, r10d
jge 0x1800544b2
mov rcx, rbx
call fcn.18004eaf0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x1800544fe
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x1800544e0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x180054513
lea rcx, str.zlib_corrupt
add rsp, 0x20
pop rbx
jmp fcn.18004e9d0
movsxd rcx, r8d
cmp rcx, 4
jge 0x180054542
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x18005452c
xor dl, dl
jmp 0x180054535
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x180054523
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180054502
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180054599
lea rcx, str.read_past_buffer
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp fcn.18004e9d0
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1800545be
mov rcx, rbx
call fcn.180059160
test eax, eax
jne 0x1800545be
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1800596f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp edx, 1
jne 0x18005973f
xor eax, eax
lea r8, [0x18003f1f0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [rsp + 0x40]
lea rdx, [0x18003f4d0]
lea rcx, [rsp + 0x48]
call fcn.180045930
mov rax, qword [rsp + 0x40]
mov qword [0x1800ea4d0], rax
mov eax, 1
add rsp, 0x38
ret
Function at 0x14050af10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14050af1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14050af2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14050af15
lea eax, [rcx + 1]
jmp 0x14050af3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14050af4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14050af34
sub eax, 3
jb 0x14050af6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14050afbd
sar eax, 1
movsxd rbp, eax
jb 0x14050afa4
jmp 0x14050af7c
add ebx, ebx
jne 0x14050af7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14050afa4
inc ecx
add ebx, ebx
jne 0x14050af8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14050afa4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14050af9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14050af8c
add ecx, 2
jmp 0x14050afa9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14050aed2
jmp 0x14050af1d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x508000]
mov eax, dword [rdi]
or eax, eax
je 0x14050b019
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x524d24]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14050afc9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14050b013
mov qword [rbx], rax
add rbx, 8
jmp 0x14050afe9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14050b053
cmp al, 0xef
ja 0x14050b045
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14050b025
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14050b034
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14050b0a7
sub rsp, 0xffffffffffffff80
jmp 0x140070164
Function at 0x1400013a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov r8d, dword [rcx]
mov rdi, rcx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8, qword [rdi + 0x10]
xor edx, edx
sub r8, qword [rdi + 8]
mov r9d, 0x1000
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8, qword [rdi + 8]
mov rcx, rsi
mov r9, qword [rdi + 0x10]
mov rdx, rax
xor edi, edi
sub r9, r8
mov qword [rsp + 0x20], rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rdi
mov r9, rbx
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1402a7b2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402a7958
Function at 0x180004e70
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 0x180004ed3
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 0x180004edf
lea rax, [0x180097e44]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.library_std_src_synconce.rs
call sym.core::option::unwrap_failed::h24b27a0084f6d704
mov qword [rbp + 0x138], 0
lea rdx, [0x1800c5598]
lea r9, [0x1800c55a0]
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::h82c4ad242ba2b309
int3

Function at 0x180022a10
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.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x180023da0
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 0x180023e30
jmp 0x180023e1f
jae 0x180023eeb
cmp r8, 0x201
jae 0x180023e30
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x180023e87
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x180023e5f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h3d3563cc24376e0d
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 0x180023ead
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x180023f57
mov r8d, r13d
cmp r12, r8
jne 0x180023e10
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x180023f8a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x180023e1f
jmp 0x180023e30
cmp r14, r8
jb 0x180023fa4
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h427d7f4b7e8938d8
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 0x180023f40
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 0x180023f2b
jmp 0x180023f40
lea rcx, str.internal_error:_entered_unreachable_codep
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::hf0c717636b14999a
jmp 0x180023fb9
lea rax, str.library_std_src_syspalwindowsmod.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::h3e2d9e3a363f96f3
ud2
Function at 0x180023ff0
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 0x18002400f
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::hdb446fec9916196d]
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 sym.core::panicking::panic_fmt::h57c46dec66ad69af
ud2
Function at 0x1800249e0
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::hebdf92619329dfef
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
cmp rdi, r13
jne 0x180024a3f
mov r14, rbx
jmp 0x180024aa4
lea rcx, [rbp - 0x10]
mov rdx, r15
mov r8, r14
call sym.std::sys::pal::windows::to_u16s::inner::hebdf92619329dfef
mov r12, qword [rbp - 0x10]
mov r15, qword [rbp - 8]
cmp r12, r13
jne 0x180024a60
mov r14, r15
jmp 0x180024a8b
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.DLL_SetEnvironmentVariableW
test eax, eax
je 0x180024abd
xor r14d, r14d
test r12, r12
je 0x180024a8b
add r12, r12
mov r8d, 2
mov rcx, r15
mov rdx, r12
call sym.__rust_dealloc
test rdi, rdi
je 0x180024aa4
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x180024ad4
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 0x180024a77
jmp 0x180024a8b
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::h9aac586a9c9bc361]
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::hdb446fec9916196d]
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 sym.core::panicking::panic_fmt::h57c46dec66ad69af
ud2
Function at 0x180024b90
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::hebdf92619329dfef
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
movabs rax, 0x8000000000000000
cmp rdi, rax
jne 0x180024bd6
mov rsi, rbx
jmp 0x180024c0e
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.DLL_SetEnvironmentVariableW
test eax, eax
jne 0x180024bf5
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x180024c0e
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test rsi, rsi
jne 0x180024c1f
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::h9aac586a9c9bc361]
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::hdb446fec9916196d]
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 sym.core::panicking::panic_fmt::h57c46dec66ad69af
ud2
Function at 0x180026210
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 0x18002629c
js 0x1800263e6
mov r15, rdx
mov rax, qword [0x1800e41a8]
movzx eax, byte [rax]
mov ebx, 1
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x1800263e8
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rdx, r14
cmp rsi, 8
jb 0x18002639c
movabs rax, 0x7fffffffffffffe0
cmp rsi, 0x20
jae 0x1800262a6
xor ecx, ecx
jmp 0x180026336
mov ebx, 1
jmp 0x1800263bf
mov rcx, rsi
and rcx, rax
xor edx, edx
movdqa xmm0, xmmword [0x1800bf890]
movdqa xmm1, xmmword [0x1800bf8a0]
movdqa xmm2, xmmword [0x1800bf8b0]
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 0x1800262d0
cmp rcx, rsi
je 0x1800263bf
test sil, 0x18
je 0x180026396
add rax, 0x18
and rax, rsi
lea rdx, [r14 + rax]
movdqa xmm0, xmmword [0x1800bf8c0]
movdqa xmm1, xmmword [0x1800bf8d0]
movdqa xmm2, xmmword [0x1800bf8e0]
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 0x180026360
cmp rax, rsi
jne 0x18002639c
jmp 0x1800263bf
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 0x1800263a0
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 sym.alloc::raw_vec::handle_error::h08cb50f4b6afae22
int3

Function at 0x180027ae0
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x180027af5
mov rcx, rdx
mov rdx, r8
pop rbp
jmp sym.std::fs::DirBuilder::create_dir_all::h6eee05bcdd951aab
mov rcx, rdx
mov rdx, r8
pop rbp
jmp sym.std::sys::pal::windows::fs::DirBuilder::mkdir::h5b895306268b835f