joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022cb4
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 0x140022ce4
xor eax, eax
jmp 0x140022da7
mov rbp, rbx
cmp word [rax], si
je 0x140022d09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022cf0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022cec
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.140020b50
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140022d4a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022cdd
call fcn.14001d620
mov rdi, rax
test rax, rax
jne 0x140022d60
xor ecx, ecx
call fcn.14001a900
jmp 0x140022d3f
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.140020b50
test eax, eax
jne 0x140022d91
mov rcx, rdi
call fcn.14001a900
jmp 0x140022d9b
xor ecx, ecx
call fcn.14001a900
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 0x140022dc4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140022e4b
mov rsi, rbx
cmp word [rax], bp
je 0x140022e0a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022df4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022df0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d620
mov rdi, rax
test rax, rax
je 0x140022e38
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a0f0
mov rbp, rdi
xor ecx, ecx
call fcn.14001a900
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400274d4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140015208
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002755e
cmp byte [rbp - 0x21], r15b
je 0x140027559
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027594
call fcn.14001f450
test eax, eax
jne 0x140027580
cmp byte [rbp - 0x21], r15b
je 0x140027578
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027594
cmp byte [rbp - 0x21], r15b
je 0x140027591
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400156cc
test eax, eax
jne 0x140027634
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015208
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400275d3
cmp byte [rbp - 0x21], r15b
je 0x140027608
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027608
call fcn.14001f450
test eax, eax
jne 0x1400275f4
cmp byte [rbp - 0x21], r15b
je 0x1400275ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027608
cmp byte [rbp - 0x21], r15b
je 0x140027605
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400156cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027634
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027637
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027645
mov rcx, rdi
call fcn.14001a900
cmp byte [rbp + 0x3f], r15b
je 0x140027654
mov rcx, qword [rbp + 0x27]
call fcn.14001a900
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140028bcc
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.14001c230
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c230
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028d19
cmp rax, 0xffffffffffffffff
je 0x140028d19
xor edi, edi
test rbp, rbp
jle 0x140028cc7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f090
mov rbx, rax
test rax, rax
jne 0x140028c54
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028cbd
mov edx, 0x8000
mov ecx, r14d
call fcn.140019bac
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.14001cf44
cmp eax, 0xffffffff
je 0x140028c9d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028c64
mov edx, r15d
mov ecx, r14d
call fcn.140019bac
jmp 0x140028cbd
cmp byte [rsi + 0x38], dil
je 0x140028cb4
cmp dword [rsi + 0x34], 5
jne 0x140028cb4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028cbd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a900
jmp 0x140028d2b
jns 0x140028d2b
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c230
cmp rax, 0xffffffffffffffff
jne 0x140028ce5
cmp byte [rsi + 0x30], dil
je 0x140028d2b
jmp 0x140028d21
mov ecx, r14d
call fcn.14001873c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028d2b
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 0x140028d2b
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028d26
mov edi, dword [rsi + 0x2c]
jmp 0x140028d2b
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c230
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 0x140029e70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029e98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029e98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002330
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rbp + 0x27], rax
movsxd rdi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x49], rcx
xor r14d, r14d
mov dword [rbp - 0x59], r14d
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x19], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
lea r15, [0x140000000]
lea rax, [r15 + 0x122f48]
mov qword [rbp - 0x39], rax
lea edx, [r14 + 0x10]
lea rcx, [rbp - 0x31]
call fcn.140003c60
nop
lea rax, [r15 + 0x122ff0]
mov qword [rbp - 0x39], rax
lea edx, [r14 + 8]
lea rcx, [rbp - 0x19]
call fcn.140003c60
mov rax, qword [rbp - 9]
mov dword [rax], 0x6a09e667
mov dword [rax + 4], 0xbb67ae85
mov dword [rax + 8], 0x3c6ef372
mov dword [rax + 0xc], 0xa54ff53a
mov dword [rax + 0x10], 0x510e527f
mov dword [rax + 0x14], 0x9b05688c
mov dword [rax + 0x18], 0x1f83d9ab
mov dword [rax + 0x1c], 0x5be0cd19
lea rax, [r15 + 0x123098]
mov qword [rbp - 0x39], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140004000
mov rbx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call qword [rbx + Ordinal_41]
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call qword [rbx + 0x60]
nop
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r14b
mov dword [rbp - 0x59], 2
lea edi, [r14 + 0x37]
nop word [rax + rax]
movzx ebx, byte [rbp + r14 + 7]
movzx eax, bl
shr al, 4
mov ecx, Ordinal_50
cmp al, 0xa
cmovae ecx, edi
add cl, al
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
cmp rdx, r8
jae 0x1400024b3
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp r8, 0x10
jb 0x1400024a9
mov rax, qword [rsi]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x1400024bf
movzx r9d, cl
mov rcx, rsi
call fcn.140004700
and bl, 0xf
mov eax, Ordinal_50
cmp bl, 0xa
cmovae eax, edi
add al, bl
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
cmp rdx, r8
jae 0x1400024fa
lea rcx, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov rcx, rsi
cmp r8, 0x10
jb 0x1400024f0
mov rcx, qword [rsi]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140002506
movzx r9d, al
mov rcx, rsi
call fcn.140004700
inc r14
cmp r14, 0x20
jl 0x140002470
mov rbx, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400cef80
mov rcx, rbx
call fcn.1400ccd64
mov rbx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400cef80
mov rcx, rbx
call fcn.1400ccd64
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012810
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140012871
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140012830
mov ecx, dword [r10]
jmp 0x14001295a
cmp ecx, 0x4e0
jb 0x14001295a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140012890
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400128e0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140015650
Capabilities:
Check if file exists

Disassembly:
test rdx, rdx
je 0x1400156d3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rdx], 0
mov rdi, rdx
mov rbx, rcx
je 0x1400156c9
cmp qword [rcx + 0xc0], 0
je 0x140015694
cmp qword [rcx + 0x18], 0
je 0x1400156aa
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x140015689
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1400156aa
cmp qword [rbx + 0x20], 8
lea rdx, [rbx + 8]
jb 0x1400156a2
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140014c80
cmp qword [rbx + 0xc0], 0
je 0x1400156c9
mov rdx, rdi
lea rcx, [rbx + 0x38]
call fcn.140017c70
lea rcx, [rbx + 0x38]
call fcn.140014090
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140018fc0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140019189
cmp byte [rcx + 0x71], 0
je 0x140019189
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x14001901c
xor al, al
jmp 0x14001918b
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140013730
nop
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x1400190a4
sub eax, 1
je 0x1400190a8
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x140019152
xor bl, bl
jmp 0x140019154
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x1400190f5
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400dbcb0
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14001909d
cmp byte [rdi + 0x71], 0
je 0x140019152
test rbx, rbx
jne 0x140019050
mov rdx, qword [rbp - 0x20]
mov rax, r9
sub rax, rdx
cmp rax, 8
jb 0x140019137
lea rax, [rdx + 8]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
xor ecx, ecx
mov qword [rax + rdx], rcx
mov byte [rax + rdx + 8], cl
jmp 0x140019041
mov byte [rsp + 0x20], 0
mov edx, 8
mov r9d, edx
lea rcx, [rbp - 0x30]
call fcn.140013490
jmp 0x140019041
mov bl, 1
cmp r9, 0x10
jb 0x140019184
lea rdx, [r9 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001917f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400191ad
call fcn.1400ccd64
movzx eax, bl
jmp 0x14001918b
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400ccd40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400d1a34
int3
Function at 0x14001c3c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001c3d3
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14001c40d
cmp rcx, 8
jb 0x14001c3eb
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001c405
test al, 0x10
je 0x14001c405
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
cmp rcx, 8
jb 0x14001c416
mov rbx, qword [rbx]
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d1f0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, rdx
mov rbx, rcx
mov qword [r11 - 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov qword [r11 - 0x20], rdi
lea r9, [r11 - 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001d30d
mov rax, qword [rsp + 0x58]
lea rdx, [0x1401241f8]
test rax, rax
cmovne rdx, rax
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001d285
lea rcx, [rsp + 0x28]
call fcn.1400149d0
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x14001d2c4
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001d302
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d2fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d32b
call fcn.1400ccd64
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call fcn.1400d1a34
int3
Function at 0x14001dbc0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x8b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x8e0], rbx
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x70], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001dc0c
mov rdx, qword [rcx]
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], bp
jne 0x14001dc25
mov rcx, rdi
call fcn.1400149d0
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001dc4c
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x14001dd81
mov word [rsp + 0x80], bp
lea rdx, [rsp + 0x80]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
lea rax, [rsp + 0x80]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001dc91
mov r8, rbx
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400149d0
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14001c430
nop
cmp rdi, rax
je 0x14001dcea
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001dcdd
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rdi
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001dd2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dd27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001de18
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001dd81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dd7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001de18
call fcn.1400ccd64
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001de20
nop
cmp rdi, rax
je 0x14001ddae
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001dda1
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rdi
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001ddec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dde7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001de12
call fcn.1400ccd64
mov rax, rdi
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0x8e0]
add rsp, 0x8b0
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d1a34
nop
call fcn.1400d1a34
int3
Function at 0x14001e550
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001e563
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001e598
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001e57a
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 8
jb 0x14001e58f
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e890
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.14001ce30
test eax, eax
jne 0x14001e8b6
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001c1b0
mov rcx, rax
call fcn.14001c3c0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001e909
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e904
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e93f
call fcn.1400ccd64
cmp qword [rbx + 0x18], 8
jb 0x14001e913
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14001e91d
mov rdi, qword [rdi]
mov r8d, 2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x60]
test eax, eax
setne al
add rsp, 0x40
pop rdi
ret
call fcn.1400d1a34
int3

Function at 0x14001e950
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.14001ce30
test eax, eax
jne 0x14001e976
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001c1b0
mov rcx, rax
call fcn.14001c3c0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001e9c9
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e9c4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e9fc
call fcn.1400ccd64
cmp qword [rbx + 0x18], 8
jb 0x14001e9d3
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14001e9dd
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rbx, qword [rsp + 0x60]
test eax, eax
setne al
add rsp, 0x40
pop rdi
ret
call fcn.1400d1a34
int3