joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004bef0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004bf74
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14007b770]
cmp byte [rcx + rax], 0
je 0x14004bf74
dec r8
sub rdx, 1
jne 0x14004bf5a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004e5b4
Capabilities:
Parse pe header

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

Function at 0x1400565fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004e3a0
sub rsp, rax
mov rax, qword [0x14009c078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140066cdc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005664b
mov rax, rbp
jmp 0x140056753
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x9e6a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006a088
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x9e6a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005674f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005674f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006a088
test rax, rax
js 0x14005674f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005674f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140056741
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140056741
cmp byte [rcx], 0xd
jne 0x140056727
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140056736
cmp byte [rcx + 1], 0xa
jne 0x140056736
inc rcx
jmp 0x140056736
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9c460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140056709
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140056753
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004d6c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400632c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400630b4
Function at 0x140068588
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400685ba
call fcn.1400603d0
mov dword [rax], 0x16
call fcn.140054384
jmp 0x1400686d9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400686d9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400686d9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400685e9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400686d9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400685fd
call fcn.140069398
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140066cdc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400698b0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400686c7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140068692
mov rcx, rsi
call fcn.140066cdc
cmp eax, edi
je 0x14006867d
mov rcx, rsi
call fcn.140066cdc
cmp eax, 0xfffffffe
je 0x14006867d
mov rcx, rsi
call fcn.140066cdc
movsxd rbx, eax
lea r14, [0x14009e6a0]
mov rcx, rsi
sar rbx, 6
call fcn.140066cdc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140068684
lea rdx, [0x14009c410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140068692
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400686b6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400686b6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400686b6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400686dc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140069404
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14009e6a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140069462
cmp word [rdx], r12w
jne 0x140069462
or byte [rax + r8*8 + 0x38], cl
jmp 0x140069468
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400695c3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14006959e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400694a1
mov rcx, r9
jmp 0x1400694c4
cmp r9, rdx
jae 0x1400694db
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140069485
jmp 0x1400695c3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069598
cmp dword [rsp + 0x80], edi
je 0x140069598
mov rdx, r14
lea r11, [0x14009e6a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140069571
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140069544
mov word [rbx], r12w
jmp 0x1400695bf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14006954d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400695bf
cmp word [rsp + 0x70], r12w
jne 0x14006957e
cmp rbx, rsi
je 0x14006953e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14006a090
cmp word [rsp + 0x70], r12w
je 0x1400695c3
mov word [rbx], r13w
jmp 0x1400695bf
lea r11, [0x14009e6a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400695bb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400695c3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006c170
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006c190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140060344
or eax, 0xffffffff
jmp 0x14006c192
xor eax, eax
add rsp, 0x28
ret
Function at 0x14006f32c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14006f35c
xor eax, eax
jmp 0x14006f41f
mov rbp, rbx
cmp word [rax], si
je 0x14006f381
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006f368
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006f364
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14006dab0
movsxd r14, eax
test eax, eax
jne 0x14006f3bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006f355
mov rcx, r14
call fcn.14006a1c4
mov rdi, rax
test rax, rax
jne 0x14006f3d8
xor ecx, ecx
call fcn.140068108
jmp 0x14006f3b4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14006dab0
test eax, eax
jne 0x14006f409
mov rcx, rdi
call fcn.140068108
jmp 0x14006f413
xor ecx, ecx
call fcn.140068108
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400769b0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14006a090
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006a090
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140076b00
cmp rax, 0xffffffffffffffff
je 0x140076b00
xor edi, edi
test rbp, rbp
jle 0x140076aab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400686f4
mov rbx, rax
test rax, rax
jne 0x140076a38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140076aa1
mov edx, 0x8000
mov ecx, r14d
call fcn.14006404c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140067df8
cmp eax, 0xffffffff
je 0x140076a81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140076a48
mov edx, r15d
mov ecx, r14d
call fcn.14006404c
jmp 0x140076aa1
cmp byte [rsi + 0x38], dil
je 0x140076a98
cmp dword [rsi + 0x34], 5
jne 0x140076a98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140076aa1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140068108
jmp 0x140076b14
jns 0x140076b14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006a090
cmp rax, 0xffffffffffffffff
jne 0x140076acc
cmp byte [rsi + 0x30], dil
je 0x140076b14
mov edi, dword [rsi + 0x2c]
jmp 0x140076b14
mov ecx, r14d
call fcn.14006fc04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140076b14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140076b14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140076b0d
mov eax, dword [rsi + 0x2c]
jmp 0x140076b12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006a090
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001000
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov edx, 2
mov r8d, 0x1000
xor ecx, ecx
lea r9d, [rdx + 0x3e]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movzx ecx, word [section..data]
xor r9d, r9d
mov r8, rax
xor edx, edx
mov word [rax], cx
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
Function at 0x14000acc0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, rcx
add r8, rdx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], r8
mov word [rbp - 0x38], 0
mov dword [rbp - 0x30], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x48]
call fcn.14000b690
movzx r9d, byte [rsi + 0x18]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov qword [rbp - 0x10], rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14000ad4b
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x10]
call fcn.14000cc60
mov rcx, rsi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test esi, esi
cmovne rax, rcx
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000b090
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x10]
mov rdx, r8
call fcn.14000ccc0
mov rdi, qword [rdi]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
add rcx, rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rcx
mov word [rbp - 0x38], 0
mov dword [rbp - 0x30], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x48]
call fcn.14000b690
movzx r9d, byte [rbp + 8]
mov rdx, qword [rbp - 0x20]
mov rsi, qword [rbp - 8]
mov eax, dword [rbp]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov qword [rbp + 0x10], rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14000b132
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x10]
call fcn.14000cc60
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x14000b149
mov r8d, 1
mov rcx, rsi
call fcn.14000cc60
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test edi, edi
cmovne rax, rcx
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000f130
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
test eax, eax
je 0x14000f172
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14000f1a3
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140015e10
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140012430
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 0x1400124d0
jmp 0x1400124bf
jae 0x140012590
cmp r8, 0x201
jae 0x1400124d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140012528
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400124ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400309a0
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 0x140012551
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400125f8
mov r8d, r14d
cmp r15, r8
jne 0x1400124b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140012625
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400124bf
jmp 0x1400124d0
cmp rsi, r8
jb 0x14001263f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140015e10
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 0x1400125e1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.14000cc60
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 0x1400125c9
jmp 0x1400125e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140031410
jmp 0x140012654
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140031860
ud2
Function at 0x14001c9c0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14001fca0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14001ca7f
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14001e3c0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14001ca7f
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x14001ca53
test rdi, rdi
je 0x14001ca4f
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000cc60
xor esi, esi
jmp 0x14001ca7f
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14001ca7c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000cc60
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001ce70
Capabilities:
Set file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14001fca0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x14001cf36
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.14001e3c0
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cmp rdi, r14
je 0x14001cf36
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x14001cf0a
test rdi, rdi
je 0x14001cf06
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000cc60
xor esi, esi
jmp 0x14001cf36
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14001cf33
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000cc60
mov rsi, rbx
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14001d290
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push rdi
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
sub esp, 0x98
Function at 0x14001d830
Capabilities:
Read 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 [0x140036a90]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001d874
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_NtReadFile]
cmp eax, 0x103
jne 0x14001d8d3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14001d8e2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001d91a
cmp eax, 0x103
je 0x14001d924
test eax, eax
js 0x14001d8ff
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001d91a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140036af0]
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.140015770
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140010730
mov ecx, 7
int 0x29
ud2

Function at 0x14001d990
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 [0x140036a90]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001d9d4
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 0x14001da3a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001da71
test eax, eax
js 0x14001da4b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001da64
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, [0x140036af0]
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.140015770
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140010730
mov ecx, 7
int 0x29
ud2