joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x39]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140053183
test ecx, ecx
jne 0x1400531d2
movzx r15d, byte [rdi + 0x38]
cmp al, 0xff
je 0x140053190
test ecx, ecx
jne 0x1400531d2
mov rcx, rdi
call dbg.include_cur_dir
movzx r10d, al
test bl, bl
jne 0x1400531d9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x1400531c6.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14005334c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x1400531c6.2
xor r10d, r10d
test bl, bl
je 0x1400531a0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14005332e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14005320b
xor edi, edi
jmp 0x140053288
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140053250
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14005326b
inc rsi
dec rax
cmp rsi, 1
jne 0x140053230
jmp 0x140053288
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14005326b
cmp ebx, 0x5c
je 0x14005326b
inc rsi
dec rax
cmp rsi, 1
jne 0x140053250
jmp 0x140053288
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14005333c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x1400532b2
mov al, 9
cmp rdx, 2
je 0x1400532b6
cmp rdx, 1
jne 0x1400532c6
cmp byte [r9], 0x2e
jne 0x1400532c6
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400532c6
mov al, 0xa
jmp 0x1400532c6
cmp byte [r9], 0x2e
jne 0x1400532c6
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x1400531c6.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x1400531c6.2
mov esi, 2
jmp case.0x1400531c6.2
lea r8, [0x140144948]
call dbg.slice_start_index_len_fail
ud2
lea r8, [0x140144960]
call dbg.slice_start_index_len_fail
ud2
Function at 0x140056ef0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x140056f82
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x140056f50
mov eax, dword [rsp + 0x34]
test rax, rax
je 0x140056f9c
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140056fa6
call fcn.1400d46b0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140056fa9
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret

Function at 0x140057030
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x1400570c2
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x140057090
mov eax, dword [rsp + 0x34]
test rax, rax
je 0x1400570dc
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400570e6
call fcn.1400d46b0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400570e9
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret

Function at 0x140057190
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140057221
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x1400571f0
mov edi, dword [rsp + 0x34]
test edi, edi
je 0x140057242
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
jne 0x140057233
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14005724f
call fcn.1400d46b0
mov edi, eax
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
je 0x140057219
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x140057248
mov edi, dword [rsp + 0x38]
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140057a40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
test eax, eax
je 0x140057a5c
xor eax, eax
add rsp, 0x28
ret
call fcn.1400d46b0
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x1400593d0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x140059428
lea rsi, [rsp + 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 [rsp + 0x2c], eax
test eax, eax
jne 0x140059442
lea rax, [0x1400d4928]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_897e37553bba8b42751c67658967889d11ecd120library_alloc_srccollections_btreemapentry.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
Function at 0x14005b740
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call dbg.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rdi, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x30]
mov qword [rsp + 0x58], r13
lea rbp, [dbg.callback]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, r15
mov rdx, rdi
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x14005b8fa
mov r14d, 0xffffffff
lea r12, [rsp + 0x40]
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x14005b7f0
cmp dword [rsp + 0x34], 0
jne 0x14005b8ff
mov eax, dword [rsp + 0x38]
mov edi, eax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rdi
test eax, eax
je 0x14005b8ff
cmp edi, 0x1000
ja 0x14005b93f
xor ebx, ebx
nop dword [rax + rax]
cmp rbx, rdi
ja 0x14005b92b
lea rdx, [rsp + rbx]
add rdx, 0x80
mov r8, rdi
sub r8, rbx
cmp r8, r14
cmovae r8, r14
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14005b8fa
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x14005b890
cmp dword [rsp + 0x34], 0
jne 0x14005b8ff
mov eax, dword [rsp + 0x38]
add rbx, rax
cmp rbx, rdi
jne 0x14005b840
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, r15
lea rdx, [rsp + 0x80]
mov r8d, 0x1000
mov r9, r12
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x14005b7f0
call fcn.1400d46b0
mov rcx, r15
call fcn.1400d47f8
mov rcx, rsi
call fcn.1400d47f8
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov rdx, rdi
call dbg.slice_index_order_fail
jmp 0x14005b953
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rdi
call dbg.slice_end_index_len_fail
ud2
Function at 0x14005c900
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
lea rcx, [0x140180130]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rbx, qword [rsi]
test rbx, rbx
jne 0x14005c98b
mov rbx, qword [rsi + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14005c9a5
mov edi, eax
test rbx, rbx
je 0x14005c97f
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ca72
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x1401801a8]
nop word cs:[rax + rax]
mov qword [rcx + 8], rax
lock cmpxchg qword [0x1401801a8], rcx
jne 0x14005c970
mov ebx, edi
mov rax, rbx
xchg qword [rsi], rax
test edi, edi
je 0x14005c9c2
lea rcx, [0x140180130]
call fcn.1400d45a8
mov rax, rbx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
lea r8, [0x140147168]
mov edx, 0x2e
call dbg.panic
jmp 0x14005ca81
mov byte [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
lea rax, str.assertion_failed:_key___0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x80], 0
lea rax, str._rustc_897e37553bba8b42751c67658967889d11ecd120librarycore_src_sliceiter.rs
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [sym.__core::fmt::Arguments_as_core::fmt::Display_::fmt::h85c6f92a7138b212]
mov qword [rsp + 0x38], rax
lea rax, [0x140142d58]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call dbg.write_fmt<std::sys::windows::stdio::Stderr>
mov rcx, rax
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2
mov ecx, 0x18
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x14005fb60
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 rdi, rcx
mov rcx, qword [0x1400d7038]
test rcx, rcx
je 0x14005fb82
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005fb9c
jmp 0x14005fbae
lea rcx, [0x1400d7038]
call dbg.lazy_init
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005fbae
mov rcx, rax
cmp qword [rax], 0
je 0x14005fbae
add rcx, 8
jmp 0x14005fd1e
mov rcx, qword [0x1400d7038]
test rcx, rcx
je 0x14005fc91
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005fcaf
mov rsi, rax
test rax, rax
jne 0x14005fc25
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005fd28
mov rsi, rax
mov qword [rax], 0
lea rax, [0x1400d7038]
mov qword [rsi + 0x18], rax
mov rcx, qword [0x1400d7038]
test rcx, rcx
jne 0x14005fc1d
lea rcx, [0x1400d7038]
call dbg.lazy_init
mov rcx, rax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14005fc46
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov qword [rdi], 0
cmp rcx, 1
je 0x14005fd0b
mov rdi, qword [0x1401801a0]
mov qword [rsp + 0x20], rdi
cmp rdi, 0xffffffffffffffff
je 0x14005fcb3
test rdi, rdi
jne 0x14005fcd6
lea rdx, [0x140146f40]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor r9d, r9d
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x14005fcba
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x1401801a0], rcx
jne 0x14005fcc7
mov rdi, qword [rsp + 0x20]
jmp 0x14005fcd6
lea rcx, [0x1400d7038]
call dbg.lazy_init
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005fbcd
xor ecx, ecx
jmp 0x14005fd1e
mov eax, 0xc00000bb
jmp 0x14005fd04
mov qword [0x1401801a0], 0xffffffffffffffff
jmp 0x14005fd04
mov rdi, rax
mov rcx, qword [rsp + 0x20]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x10
xor r9d, r9d
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14005fd04
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005fd0b
mov ecx, eax
call dbg.fallback_rng
mov qword [rsi], 1
lea rcx, [rsi + 8]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x140060650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [0x1400d7048]
test rcx, rcx
je 0x140060673
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14006068d
jmp 0x14006069f
lea rcx, [0x1400d7048]
call dbg.lazy_init
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14006069f
mov rbx, rax
cmp qword [rax], 0
je 0x14006069f
add rbx, 8
jmp 0x140060794
mov rcx, qword [0x1400d7048]
test rcx, rcx
je 0x140060774
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060792
mov rdi, rax
test rax, rax
jne 0x140060716
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14006079f
mov rdi, rax
mov qword [rax], 0
lea rax, [0x1400d7048]
mov qword [rdi + 0x10], rax
mov rcx, qword [0x1400d7048]
test rcx, rcx
jne 0x14006070e
lea rcx, [0x1400d7048]
call dbg.lazy_init
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x140060744
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsi], 0
test rax, rax
je 0x140060744
cmp rax, 1
je 0x140060746
test rcx, rcx
je 0x140060744
lock dec qword [rcx]
jne 0x140060744
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>>
xor ecx, ecx
lea rbx, [rdi + 8]
mov rax, qword [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 1
mov qword [rdi + 8], rcx
je 0x140060794
test rax, rax
je 0x140060794
lock dec qword [rax]
jne 0x140060794
mov rcx, rax
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>>
jmp 0x140060794
lea rcx, [0x1400d7048]
call dbg.lazy_init
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400606be
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x18
mov edx, 8
call dbg.handle_alloc_error
ud2

Function at 0x140062fb0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call dbg.maybe_verbatim
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rdi, rdi
je 0x140062feb
mov rcx, rdi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x140062ff0
xor ebx, ebx
test rsi, rsi
jne 0x140063004
jmp 0x140063018
mov rbx, rsi
jmp 0x140063018
call fcn.1400d46b0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140063018
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140063030
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call dbg.maybe_verbatim
mov r15, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test r15, r15
je 0x1400630de
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov r8, rbx
call dbg.maybe_verbatim
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
test r14, r14
je 0x14006310e
mov rcx, r15
mov rdx, r14
mov r8d, 1
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x1400630e3
test rbx, rbx
je 0x1400630c1
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
test rsi, rsi
je 0x1400630da
add rsi, rsi
mov r8d, 2
mov rcx, r15
mov rdx, rsi
call sym.__rust_dealloc
xor ebx, ebx
jmp 0x140063127
mov rbx, rsi
jmp 0x140063127
call fcn.1400d46b0
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x140063136
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call sym.__rust_dealloc
mov rbx, rdi
test rsi, rsi
je 0x140063127
add rsi, rsi
mov r8d, 2
mov rcx, r15
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, rdi
test rsi, rsi
jne 0x140063113
jmp 0x140063127

Function at 0x140063160
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call dbg.maybe_verbatim
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rdi, rdi
je 0x14006319b
mov rcx, rdi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x1400631a0
xor ebx, ebx
test rsi, rsi
jne 0x1400631b4
jmp 0x1400631c8
mov rbx, rsi
jmp 0x1400631c8
call fcn.1400d46b0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400631c8
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140064070
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call dbg.maybe_verbatim
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400640b0
mov rcx, rdi
mov edx, ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x1400640b5
xor ebx, ebx
test rsi, rsi
jne 0x1400640c9
jmp 0x1400640dd
mov rbx, rsi
jmp 0x1400640dd
call fcn.1400d46b0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400640dd
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400643a0
Capabilities:
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, r9
mov rsi, rcx
lea rcx, [rsp + 0x38]
call dbg.maybe_verbatim
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test r12, r12
je 0x140064454
mov r8, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov rdx, rbx
call dbg.maybe_verbatim
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
test r15, r15
je 0x140064461
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [sym.std::sys::windows::fs::copy::callback::he299008fbdee2cbe]
lea r9, [rsp + 0x38]
mov rcx, r12
mov rdx, r15
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x14006446e
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r14, r14
jne 0x14006448b
jmp 0x14006449f
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400644b8
mov qword [rsi + 8], r14
mov qword [rsi], 1
jmp 0x14006449f
call fcn.1400d46b0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r14, r14
je 0x14006449f
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x1400644b8
add rdi, rdi
mov r8d, 2
mov rcx, r12
mov rdx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140064ab0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x60]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], r10
lea r9, [rsp + 0x2c]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x140064b06
mov eax, dword [rsp + 0x2c]
mov qword [rsi], 1
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret
call fcn.1400d46b0
cmp eax, 0x6d
je 0x140064b20
cmp eax, 0x3e5
jne 0x140064b2c
mov qword [rsi], 0
jmp 0x140064afd
movaps xmm0, xmmword [0x140141660]
movups xmmword [rsi], xmm0
jmp 0x140064afd
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 2
jmp 0x140064afd
Function at 0x140065180
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400651d4
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006526a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x1400651e7
cmp eax, 0x2739
jne 0x140065235
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140065230
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14006524a
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14006526a
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14006526a
call fcn.1400d46b0
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.1400d48e0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140065670
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400656ae
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400656d5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400656c2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400656d5
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1400656e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x140065742
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140065753
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140065766
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140065766
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x140065770
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400657b1
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400657d8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400657c5
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400657d8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret