joyce8/EMBER2024-capa huggingface dataset:
Function at 0x32055dee0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x32055e11b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
nop
call fcn.32055da40
xorps xmm15, xmm15
mov r14, qword [0x32070b898]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
add qword [rcx + 0x68], rax
mov rdx, qword [rcx + 0x60]
test rdx, rdx
jle 0x32055e02a
nop dword [rax]
cmp rdx, 0x40
ja 0x32055e10d
lea rsi, [rdx - 0x40]
mov rdi, rsi
neg rsi
sar rdi, 0x3f
and rdi, rdx
lea rdx, [rcx + rdi]
lea rdx, [rdx + 0x20]
cmp rax, rsi
cmovl rsi, rax
mov qword [rsp + 0x28], rsi
mov rbx, qword [rsp + 0x60]
cmp rbx, rdx
je 0x32055df99
mov rax, rdx
mov rcx, rsi
nop
call fcn.3205124e0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x60]
add rdx, rsi
mov qword [rcx + 0x60], rdx
cmp rdx, 0x40
jne 0x32055e001
mov qword [rsp], rcx
lea rax, [rcx + 0x20]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.32055e560
xorps xmm15, xmm15
mov r14, qword [0x32070b898]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x60], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
cmp rax, rsi
jb 0x32055e102
mov rdi, qword [rsp + 0x70]
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rax
sub r8, rsi
add rbx, rdx
jmp 0x32055e037
mov r8, rax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
cmp r8, 0x40
jl 0x32055e0b5
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x40], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call fcn.32055e560
xorps xmm15, xmm15
mov r14, qword [0x32070b898]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x30]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test r8, r8
je 0x32055e0f8
lea rdx, [rcx + 0x20]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
cmp rbx, rdx
je 0x32055e0f4
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
nop dword [rax + rax]
call fcn.3205124e0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov qword [rcx + 0x60], rsi
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rcx, rax
mov rax, rsi
call fcn.320511c00
mov rax, rdx
mov ecx, 0x40
call fcn.320511c00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.32050f8a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.32055dee0
Function at 0x32056ce80
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x32056cec0
cmp ecx, 0x10
jle 0x32056ceb6
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret
Function at 0x32056f040
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x32056f057
inc rax
cmp rax, 4
jge 0x32056f06f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x32056f054
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x32056f080
inc rax
cmp rax, 4
jge 0x32056f08e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x32056f0b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x32056f09b
jmp 0x32056f07d
Function at 0x3205791a0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x320579439
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
nop
lea rax, [0x3205b93e0]
call fcn.3204bcd60
mov qword [rsp + 0x70], rax
mov qword [rax + 8], 9
lea rcx, [0x3205c6ac5]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x3205b93e0]
call fcn.3204bcd60
mov qword [rsp + 0x68], rax
mov qword [rax + 8], 8
lea rcx, [0x3205c6845]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x3205b94a0]
call fcn.3204bcd60
cmp dword [0x32070b910], 0
jne 0x320579237
mov rcx, qword [rsp + 0x70]
jmp 0x320579244
call fcn.3205117c0
mov rcx, qword [rsp + 0x70]
mov qword [r11], rcx
mov qword [rsp + 0x60], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xd
lea rcx, [0x3205c791a]
mov qword [rax], rcx
nop
lea rax, [0x3205b94a0]
call fcn.3204bcd60
cmp dword [0x32070b910], 0
jne 0x320579280
mov rcx, qword [rsp + 0x68]
jmp 0x32057928d
call fcn.3205117c0
mov rcx, qword [rsp + 0x68]
mov qword [r11], rcx
mov qword [rsp + 0x58], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xc
lea rcx, [0x3205c7482]
mov qword [rax], rcx
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
lea rax, [0x3205a6800]
call fcn.3204bcd60
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], 0x3000
mov qword [rax + 0x18], 0x40
mov rbx, rax
mov edi, 4
mov rax, qword [rsp + 0x58]
mov rcx, rdi
call fcn.3205724a0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jbe 0x32057942e
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rcx
lea rax, [0x3205a67a0]
call fcn.3204bcd60
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
mov rbx, rax
mov ecx, 3
mov rdi, rcx
mov rax, qword [rsp + 0x60]
nop dword [rax]
call fcn.3205724a0
movzx ecx, word [0x32070b662]
mov word [rsp + 0x3e], cx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x80], rdx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x78], rdx
lea rax, [0x3205a6860]
nop dword [rax]
call fcn.3204bcd60
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
movzx ecx, word [rsp + 0x3e]
mov word [rsp], cx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 5
mov qword [rsp + 0x18], 5
call fcn.32056ce80
xorps xmm15, xmm15
mov r14, qword [0x32070b898]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
xor ebx, ebx
mov rcx, rbx
mov rdi, rcx
mov rsi, rcx
nop dword [rax]
call fcn.32050e360
add rsp, 0x98
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.320511b40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.32050f8a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp fcn.3205791a0
Function at 0x32057f760
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 fcn.3205805e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3205805e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x32057f7d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3207101c4]
mov rbx, rcx
test esi, esi
jle 0x32057f900
mov rax, qword [0x3207101c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x32057f81b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x32057f8a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x32057f800
mov rcx, rbx
call fcn.320580030
mov rdi, rax
test rax, rax
je 0x32057f922
mov rax, qword [0x3207101c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.320580170
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3207101c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x32057f907
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x32057f89e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x32057f8b0
add dword [0x3207101c4], 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 [0x3207101c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x32057f89e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.32057f760
nop dword [rax]
xor esi, esi
jmp 0x32057f828
mov rax, qword [0x3207101c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.32057f760
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.32057f760
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x32057fca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x320710200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3207101e0]
test rbx, rbx
je 0x32057fcfc
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 eax, eax
jne 0x32057fcf3
test rsi, rsi
je 0x32057fcf3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x32057fcd8
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 0x320580030
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3206b0410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x320580050
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x320580058
ret
cmp word [r8 + 0x18], 0x20b
jne 0x320580050
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3205800ad
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 0x3205800a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x320580050
add rax, 0x28
cmp rax, r9
jne 0x320580090
xor eax, eax
ret

Function at 0x3205800b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3206b0410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3205800cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3205800d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3205800cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x320580170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3206b0410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x32058018f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x320580198
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140961028
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409611af
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 0x140961059
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096103f
add dl, dl
jne 0x140961066
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409610c6
xor eax, eax
add dl, dl
jne 0x140961075
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096117d
add dl, dl
jne 0x140961086
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140961093
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409610a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409610ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409610ba
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14096104e
mov eax, 1
add dl, dl
jne 0x1409610d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409610e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409610cb
sub eax, ebx
mov ebx, 1
jne 0x14096111c
mov ecx, 1
add dl, dl
jne 0x1409610fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14096110b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409610f3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096104e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140961138
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140961145
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096112d
cmp eax, 0x7d00
jae 0x14096116b
cmp eax, 0x500
jb 0x140961166
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096104e
cmp eax, 0x7f
ja 0x14096116e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096104e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409611a2
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 0x14096104e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b07c
Capabilities:
Check if file exists
Get file attributes

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, 0x30
xor ebx, ebx
mov rbp, r9
mov r14d, r8d
mov rsi, rdx
test rcx, rcx
je 0x14000b187
test rdx, rdx
je 0x14000b187
xor edx, edx
call fcn.14000d0a0
mov rdi, rax
test rax, rax
je 0x14000b11b
xor edx, edx
mov rcx, rsi
call fcn.14000d0a0
mov rbx, rax
test rax, rax
je 0x14000b11b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000b0f1
xor edx, edx
mov rcx, rbx
call fcn.14000b820
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov rdx, rbx
mov dword [rsp + 0x28], r14d
mov rcx, rdi
call fcn.14000b1bc
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebp, eax
jmp 0x14000b130
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor esi, esi
mov ebp, eax
test rdi, rdi
je 0x14000b175
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbx, rbx
je 0x14000b175
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, esi
jmp 0x14000b19a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14000b1bc
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0xa8]
xor edi, edi
mov r13, r9
mov rsi, rdx
mov r15, rcx
test ebx, 0xffffffe0
je 0x14000b20a
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000b40d
mov ecx, ebx
and ecx, 1
mov r14d, ecx
bts r14d, 0xc
test bl, 8
cmove r14d, ecx
xor edx, edx
mov rcx, r15
call fcn.14000d0a0
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14000b40b
xor edx, edx
mov rcx, rsi
call fcn.14000d0a0
mov rbp, rax
test rax, rax
je 0x14000b3c1
xor r12d, r12d
mov r8, qword [rsp + 0x90]
mov r9, r13
and dword [rsp + 0xa8], 0
mov rdx, rsi
mov dword [rsp + 0x28], r14d
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000b314
test bl, 2
je 0x14000b3c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
inc r12d
lea r8, [rsp + 0xa8]
mov edx, eax
mov ecx, r12d
mov r13d, eax
call fcn.14000b7b8
test eax, eax
je 0x14000b3c1
mov edi, dword [rsp + 0xa8]
lea r8, str.WdsCopyFileEx:_Failed_to_copy___s__to___s___GLE__0x_x__will_retry_in__u_ms
mov dword [rsp + 0x30], edi
lea rcx, [0x1400bac20]
mov dword [rsp + 0x28], r13d
mov r9, r15
mov edx, 0x4000000
mov qword [rsp + 0x20], rsi
call fcn.1400098d0
mov r13, qword [rsp + 0x98]
test edi, edi
je 0x14000b252
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
jmp 0x14000b252
test bl, 4
je 0x14000b3c1
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000b3c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r15d, [rdi + 0x1f]
mov r14d, 0x2000000
test eax, eax
lea r8, str.WdsCopyFileEx:_Failed_to_strip_file_attributes_for__s__will_delete._GLE__0x_x
mov ebx, eax
lea rcx, [0x1400bac20]
cmove ebx, r15d
mov r9, rsi
mov edx, r14d
mov dword [rsp + 0x20], ebx
call fcn.1400098d0
xor edx, edx
mov rcx, rsi
call fcn.14000b820
test eax, eax
jne 0x14000b3b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsCopyFileEx:_Failed_to_delete__s._GLE__0x_x
test eax, eax
lea rcx, [0x1400bac20]
mov edx, r14d
cmove eax, r15d
mov dword [rsp + 0x20], eax
call fcn.1400098d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbp, rbp
je 0x14000b40b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000bf00
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rcx
mov edi, ebx
test rcx, rcx
je 0x14000c035
cmp bx, word [rcx]
je 0x14000c035
xor edx, edx
call fcn.14000d0a0
mov rbp, rax
test rax, rax
je 0x14000bff6
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x14000bf85
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbp
lea r8, str.WdsRemoveDirectory:_Unable_to_clear_attributes_on___s___GLE__0x_x
lea rcx, [0x1400bac20]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov edi, eax
call fcn.1400098d0
xor edx, edx
mov rcx, rbp
call fcn.14000b820
mov esi, eax
test eax, eax
jne 0x14000bfd2
test edi, edi
jne 0x14000bfa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbp
lea r8, str.WdsRemoveDirectory:_Unable_to_remove_directory___s___GLE__0x_x
lea rcx, [0x1400bac20]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ebx, esi
jmp 0x14000c023
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsRemoveDirectory:_Unable_to_prepare_path___s___GLE__0x_x
lea rcx, [0x1400bac20]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov edi, eax
call fcn.1400098d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000c048
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c064
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, ebx
test rcx, rcx
je 0x14000c10b
cmp bx, word [rcx]
je 0x14000c10b
xor edx, edx
call fcn.14000d0a0
mov rsi, rax
test rax, rax
je 0x14000c107
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000c0b5
test al, 0x10
je 0x14000c0b5
lea edi, [rbx + 1]
jmp 0x14000c0d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000c0cc
mov ebx, 0x10b
jmp 0x14000c0d9
cmp eax, 2
mov ecx, 3
cmove eax, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000c11e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret