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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009f128]
test ecx, ecx
je 0x14005cf32
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005ce62
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005cf2c
mov ecx, dword [0x14009f128]
test ecx, ecx
je 0x14005cf54
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005cf71
mov rdi, rax
test rax, rax
jne 0x14005ced8
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005cf90
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f128]
test ecx, ecx
je 0x14005cf7d
dec ecx
mov rdx, rdi
call fcn.14009c6f4
test rsi, rsi
je 0x14005cef2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005cef4
mov rax, qword [rsi + 8]
jmp 0x14005cef4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005cf2c
test rcx, rcx
je 0x14005cf2c
lock dec qword [rcx]
jne 0x14005cf2c
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005cf73
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005ce54
jmp 0x14005ce62
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005ce81
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
jmp 0x14005ced0
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14005cfa0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14009f148]
test ecx, ecx
je 0x14005cfd3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005cfec
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14005cfec
add rcx, 0x10
jmp 0x14005d0e9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005cfc0
mov ecx, dword [0x14009f148]
test ecx, ecx
je 0x14005d0ca
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d0e7
mov rdi, rax
test rax, rax
jne 0x14005d062
mov rax, qword [str.10_r_]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d106
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x14009f148]
test ecx, ecx
je 0x14005d0f3
dec ecx
mov rdx, rdi
call fcn.14009c6f4
test rsi, rsi
je 0x14005d07f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14005d0b4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14005d0af
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005d0b4
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14005d0e9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d00b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::hbbaa8a327f37e8b1
mov ecx, eax
jmp 0x14005d05a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x140091b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140091bea
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 0x140091be0
cmp r11, r10
ja 0x140091c75
cmp r10, rdx
ja 0x140091c87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140091be2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140091bc0
jmp 0x140091c57
ja 0x140091bea
mov r11, r10
cmp rax, r8
jne 0x140091b92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140091c5b
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 0x140091c30
mov r8, r10
sub ecx, r9d
jns 0x140091c4e
jmp 0x140091c5d
cmp r10, rdx
je 0x140091c69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140091c5d
xor al, 1
cmp r8, rdx
jne 0x140091c10
jmp 0x140091c5d
xor eax, eax
jmp 0x140091c5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400b9af8]
call sym.core::option::unwrap_failed::he3c2cd0918eb9f85
lea r8, [0x1400b9b10]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x1400b9b10]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x14009d530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14009d5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d3224]
mov rbx, rcx
test esi, esi
jle 0x14009d6d0
mov rax, qword [0x1400d3228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009d5eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009d675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009d5d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14009d6f2
mov rax, qword [0x1400d3228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d3228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009d6d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009d66e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009d680
add dword [0x1400d3224], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d3228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009d66e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14009d5f8
mov rax, qword [0x1400d3228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009dc80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d3280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d3260]
test rbx, rbx
je 0x14009dcdc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14009dcd3
test eax, eax
jne 0x14009dcd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009dcb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009def0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14009df08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14009df10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14009df20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009df6d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14009df64
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009df6f
add rax, 0x28
cmp rax, r9
jne 0x14009df50
xor eax, eax
ret

Function at 0x14009df70
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14009e000
mov rdx, qword [0x1400c49c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009dfee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009dfee
cmp word [rax + 0x18], 0x20b
jne 0x14009dfee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14009e000
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14009dfd9
add rbx, 0x28
cmp rbx, rdi
je 0x14009e000
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14009dfd0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14009e010
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c49c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009e030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009e038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009e030
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009e08d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009e084
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009e030
add rax, 0x28
cmp rax, r9
jne 0x14009e070
xor eax, eax
ret

Function at 0x14009e090
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c49c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009e0af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009e0b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009e0af
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14009e0d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c49c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14009e0f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14009e0f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14009e0f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14009e140
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009e137
test rcx, rcx
je 0x14009e0f0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14009e128
xor eax, eax
ret

Function at 0x14009e150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c49c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009e16f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009e178
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14009e190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c49c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009e1b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009e1b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009e1b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14009e1b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14009e204
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14009e210
add rdx, 0x28
cmp rdx, r9
jne 0x14009e1f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14009e220
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c49c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14009e242
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14009e250
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009e242
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14009e242
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14009e242
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14009e2a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14009e2b8
add rdx, 0x28
cmp r10, rdx
jne 0x14009e290
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14009e2c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14009e2d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009e2ae
test ecx, ecx
jg 0x14009e2c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140bd1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bd11df
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 0x140bd1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd106f
add dl, dl
jne 0x140bd1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd10f6
xor eax, eax
add dl, dl
jne 0x140bd10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd11ad
add dl, dl
jne 0x140bd10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bd10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bd107e
mov eax, 1
add dl, dl
jne 0x140bd1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd10fb
sub eax, ebx
mov ebx, 1
jne 0x140bd114c
mov ecx, 1
add dl, dl
jne 0x140bd112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bd1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd115d
cmp eax, 0x7d00
jae 0x140bd119b
cmp eax, 0x500
jb 0x140bd1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd107e
cmp eax, 0x7f
ja 0x140bd119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bd11d2
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 0x140bd107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000f000
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000f0a0
jmp 0x14000f08f
jae 0x14000f160
cmp r8, 0x201
jae 0x14000f0a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000f0f8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000f0cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140025830
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x14000f121
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f1c8
mov r8d, r14d
cmp r15, r8
jne 0x14000f080
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f1f5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000f08f
jmp 0x14000f0a0
cmp rsi, r8
jb 0x14000f20f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140011390
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 rbx, rbx
je 0x14000f1b1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140008b90
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000f199
jmp 0x14000f1b1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_aedd173a2c086e558c2b66d3743b344f977621a7library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140026260
jmp 0x14000f224
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400266b0
ud2
Function at 0x140015a90
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 [0x14002a210]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140015ad4
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 0x140015b3a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140015b71
test eax, eax
js 0x140015b4b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140015b64
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140011170
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000d3c0
mov ecx, 7
int 0x29
ud2
Function at 0x140023be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140023c5a
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 0x140023c50
cmp r11, r10
ja 0x140023ce5
cmp r10, rdx
ja 0x140023cf7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140023c52
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140023c30
jmp 0x140023cc7
ja 0x140023c5a
mov r11, r10
cmp rax, r8
jne 0x140023c02
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140023ccb
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 0x140023ca0
mov r8, r10
sub ecx, r9d
jns 0x140023cbe
jmp 0x140023ccd
cmp r10, rdx
je 0x140023cd9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140023ccd
xor al, 1
cmp r8, rdx
jne 0x140023c80
jmp 0x140023ccd
xor eax, eax
jmp 0x140023ccd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140026100
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140026730
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400266b0
int3

Function at 0x14002529c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400252e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400252e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400252e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400252e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400252e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400252e8
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097b0]
mov dword [rax], 1
mov rax, qword [0x1400097c0]
mov dword [rax], 1
mov rax, qword [0x140009730]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009790]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140009880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009860]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009710]
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