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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov esi, r8d
mov rdi, rdx
mov r10, rcx
mov dword [rsp + 0x20], 0
mov r9, qword [rcx]
mov qword [rdx], r9
movzx eax, r9b
mov ebp, 1
and al, bpl
jne 0x14005a4f4
mov eax, dword [r9 + 8]
mov ecx, eax
and cl, 0x30
cmp cl, 0x10
ja 0x14005a4ec
mov edx, eax
mov rcx, qword [r9]
mov r8, rcx
shl r8, 8
movzx eax, byte [rsp + 0x98]
or rax, r8
sar rax, 8
cmp rax, rcx
jne 0x14005a4ec
and edx, 0xfe
or rdx, rbp
or rdx, r8
mov qword [rdi], rdx
jmp 0x14005a4f4
mov eax, ebp
lock xadd dword [r9 + 0x10], eax
mov dword [rsp + 0x20], ebp
movzx ecx, byte [r10]
and cl, 1
mov rax, qword [r10]
mov rdx, rax
je 0x14005a510
mov r9, rax
sar r9, 8
jmp 0x14005a513
mov r9, qword [rax]
test cl, cl
movzx ecx, dl
jne 0x14005a51d
mov ecx, dword [rax + 8]
mov r10d, 0x253d8c
mov rax, r9
cqo
xor rax, rdx
sub rax, rdx
movabs r11, 0x636ba875fd33dc87
cmp rax, 0x5265c00
jl 0x14005a565
mov rax, r11
imul r9
sar rdx, 0x19
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea r10, [rdx + 0x253d8c]
imul rdx, rdx, 0x5265c00
sub r9, rdx
test r9, r9
jns 0x14005a59b
mov r8d, 0x5265bff
sub r8, r9
mov rax, r11
imul r8
sar rdx, 0x19
mov rax, rdx
shr rax, 0x3f
add rdx, rax
sub r10, rdx
imul r9, rdx, 0x5265c00
sub r9, r8
add r9, 0x5265bff
movabs r11, 0xb69eeff91f
lea rax, [r10 + r11]
movabs r8, 0x8000000000000000
mov rdx, r8
movabs r14, 0x16d3e147973
cmp rax, r14
cmovbe rdx, r10
test cl, 2
je 0x14005a5d1
mov r10, rdx
jmp 0x14005a5d7
mov rdx, r8
mov r10, r8
and ecx, 4
mov eax, 0xffffffff
cmove r9d, eax
mov dword [rsp + 0x58], r9d
mov ebx, esi
lea rax, [r10 + r11]
cmp rax, r14
ja 0x14005a6b6
test esi, esi
jne 0x14005a603
mov r8, r10
jmp 0x14005a6b6
lea rcx, [rsp + 0x40]
call fcn.14005cb20
movsd xmm0, qword [rax]
movsd qword [rsp + 0x30], xmm0
mov r10d, dword [rax + 8]
mov r9d, dword [rsp + 0x30]
mov edx, r9d
mov rcx, qword [rsp + 0x30]
shr rcx, 0x20
mov r8d, 0xffffffff
test ebx, ebx
jns 0x14005a643
cmp ebx, 0xfffffff4
jg 0x14005a65e
add ebx, 0xc
mov eax, r8d
jmp 0x14005a656
cmp ebx, 0xc
jl 0x14005a64d
sub ebx, 0xc
jmp 0x14005a654
cmp ecx, 0xc
jne 0x14005a674
xor ecx, ecx
mov eax, ebp
add edx, eax
test ebx, ebx
je 0x14005a680
jmp 0x14005a632
add ecx, ebx
lea eax, [rdx - 1]
test ecx, ecx
cmovg eax, edx
mov edx, eax
lea eax, [rcx + 0xc]
cmovg eax, ecx
mov ecx, eax
jmp 0x14005a680
add ecx, ebx
cmp ecx, 0xc
jle 0x14005a680
inc edx
sub ecx, 0xc
test r9d, r9d
jle 0x14005a68c
test edx, edx
jle 0x14005a692
test r9d, r9d
jns 0x14005a69b
test edx, edx
js 0x14005a69b
test esi, esi
cmovg r8d, ebp
add edx, r8d
mov r9d, r10d
mov r8d, ecx
lea rcx, [rsp + 0x90]
call fcn.14005b080
mov r8, qword [rsp + 0x90]
mov qword [rsp + 0x50], r8
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14005d400
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14005e8d0
mov rax, rdi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140068c50
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
test r8, r8
je 0x140068c86
nop dword [rax]
movzx eax, word [r9]
lea r9, [r9 + 2]
shl edx, 4
add edx, eax
mov eax, edx
shr edx, 0x17
and edx, 0x1e0
xor edx, eax
and edx, 0xfffffff
sub r8, 1
jne 0x140068c60
mov eax, edx
ret
Function at 0x1400a7160
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x1400a7192
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400b4c00
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x1400b4d43
cmp dword [rsi + 0xa0], 0xffffffff
jne 0x1400b4dd3
mov rcx, qword [rsi + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x1400b4dca
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x48], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b4ccc
nop
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400b4cc4
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x1400b4cc4
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400b4c80
test rdi, rdi
je 0x1400b4ccc
mov rax, rdi
jmp 0x1400b4de1
mov edx, 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14009f5f0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b4d21
cmp ecx, 0xffffffff
je 0x1400b4dca
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x88]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b4dca
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x88]
call fcn.140049bf0
mov rax, 0xffffffffffffffff
jmp 0x1400b4de1
call fcn.140133564
mov ecx, eax
call fcn.1401333e8
cmp rax, 0xffffffffffffffff
je 0x1400b4dd3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400b4dd3
mov rcx, qword [rsi + 0x78]
call fcn.1401310b8
test eax, eax
je 0x1400b4dd3
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14009f7a0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b4db7
cmp ecx, 0xffffffff
je 0x1400b4dca
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b4dca
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call fcn.140049bf0
mov rax, 0xffffffffffffffff
jmp 0x1400b4de1
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.1400a71b0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a71b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rsi, r8
mov r12, rdx
mov rbp, rcx
mov r13, qword [rcx + 0x18]
test r8, r8
js 0x1400a731d
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x1400a7288
mov r15b, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r12]
mov r9, qword [rbp + 0x78]
mov edx, 1
call fcn.140131418
mov rdi, rax
mov rcx, qword [rbp + 0x78]
call fcn.1401310b8
test eax, eax
setne r14b
test r15b, r15b
je 0x1400a7256
test r14b, r14b
je 0x1400a7256
test rdi, rdi
jne 0x1400a7256
mov rcx, qword [rbp + 0x78]
call fcn.14012d7d0
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x78]
call fcn.14012a41c
xor r15b, r15b
jmp 0x1400a7259
add rbx, rdi
test r14b, r14b
jne 0x1400a7384
test rdi, rdi
jne 0x1400a7276
call fcn.1401298b4
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x1400a727e
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x1400a7200
jmp 0x1400a72cb
cmp dword [rcx + 0xa0], 0xffffffff
je 0x1400a72d4
mov rax, rsi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r12]
mov ecx, dword [rbp + 0xa0]
call fcn.140131c20
movsxd rcx, eax
test eax, eax
jle 0x1400a72c2
add rbx, rcx
cmp rbx, rsi
jl 0x1400a7291
cmp ecx, 0xffffffff
jne 0x1400a7384
test rbx, rbx
jne 0x1400a7384
mov rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14009f7a0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400a7316
cmp ecx, ebx
je 0x1400a7384
mov edx, ebx
mov rcx, qword [rsp + 0x70]
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x1400a7384
mov rcx, qword [rsp + 0x70]
jmp 0x1400a7375
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.14009f7a0
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
mov rbx, 0xffffffffffffffff
test ecx, ecx
je 0x1400a736d
cmp ecx, ebx
je 0x1400a7384
mov ecx, ebx
mov rax, qword [rsp + 0x80]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a7384
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140049bf0
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a79d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x40], 0xfdffffff
cmp dword [rbx + 0xa4], 2
je 0x1400a7a09
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400b5020
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x78], 0
jne 0x1400b5155
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x1400b5155
mov rcx, qword [rcx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x1400b514c
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x48], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400b50e9
nop dword [rax]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400b50e4
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x1400b50e4
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400b50a0
test rdi, rdi
je 0x1400b50e9
mov rax, rdi
jmp 0x1400b515a
mov edx, 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14009f5f0
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400b5136
cmp ecx, 0xffffffff
je 0x1400b514c
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x88]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400b514c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x88]
call fcn.140049bf0
mov rax, 0xffffffffffffffff
jmp 0x1400b515a
call fcn.1400a7a30
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a7a30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbp
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov r14, qword [rcx + 0x18]
test r8, r8
js 0x1400a7b6b
xor ebx, ebx
test r8, r8
je 0x1400a7b62
cmp qword [rcx + 0x78], rbx
je 0x1400a7abd
nop dword [rax]
nop word [rax + rax]
mov r8, rdi
sub r8, rbx
lea rcx, [rbx + rbp]
mov r9, qword [rsi + 0x78]
mov edx, 1
call fcn.14012a67c
add rbx, rax
test rax, rax
jne 0x1400a7aaf
call fcn.1401298b4
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x1400a7ab7
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x1400a7a80
jmp 0x1400a7b00
cmp dword [rcx + 0xa0], 0xffffffff
je 0x1400a7b05
nop word [rax + rax]
mov rax, rdi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + rbp]
mov ecx, dword [rsi + 0xa0]
call fcn.140132a10
test eax, eax
jle 0x1400a7b00
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x1400a7ad0
test rbx, rbx
jne 0x1400a7b62
mov rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14009f7a0
mov rdi, rax
call fcn.1401298b4
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400a7b5b
cmp ecx, ebx
je 0x1400a7bc6
mov ecx, ebx
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a7bc6
mov rcx, qword [rsp + 0x50]
jmp 0x1400a7bb7
and dword [rsi + 0x40], 0xffdfffff
jmp 0x1400a7bc6
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.14009f7a0
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.1400a5660
nop
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax]
mov rbx, 0xffffffffffffffff
test ecx, ecx
je 0x1400a7bb2
cmp ecx, ebx
je 0x1400a7bc6
mov ecx, ebx
mov rax, qword [rsp + 0x60]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a7bc6
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140049bf0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a9300
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, r8
mov rax, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rbx, rax
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dil
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x1400a938d
cmp ecx, ebx
je 0x1400a93a1
mov ecx, ebx
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400a93a1
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400a93bf
cmp ecx, 0xffffffff
je 0x1400a93d2
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400a93d2
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x20]
call fcn.140049bf0
test dil, dil
jne 0x1400a93f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400abe50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov r8, qword [rcx]
mov qword [rsp + 0x20], r8
mov eax, dword [r8]
inc eax
mov edi, 1
cmp eax, edi
jbe 0x1400abe9e
mov eax, edi
lock xadd dword [r8], eax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 4], 2
jne 0x1400abf22
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x1400abf22
mov ecx, dword [rax]
mov r8d, dword [rax + 4]
cmp ecx, 1
ja 0x1400abed4
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 8]
btr edx, 0x1f
lea ecx, [r8 + 2]
cmp ecx, edx
jbe 0x1400abeea
lea edx, [r8 + 2]
mov r8b, 1
lea rcx, [rsp + 0x20]
call fcn.140043650
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x10]
add rdx, rax
movsxd rcx, dword [rax + 4]
add rcx, rcx
mov eax, 0x5c
mov word [rdx + rcx], ax
mov rax, qword [rsp + 0x20]
inc dword [rax + 4]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x10]
add rdx, rax
movsxd rcx, dword [rax + 4]
add rcx, rcx
xor eax, eax
mov word [rdx + rcx], ax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400b4120
nop
lea rcx, [rsp + 0x28]
call fcn.140046630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400abf8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400abf5c
cmp eax, 0x20
jne 0x1400abf8e
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x1400abf78
mov rax, qword [rsp + 0x28]
lock xadd dword [rax], edi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400aae50
test al, al
cmovne ebx, dword [rsp + 0x40]
test rsi, rsi
je 0x1400abf9b
cmp ebx, 0xffffffff
setne al
mov byte [rsi], al
cmp ebx, 0xffffffff
jne 0x1400abfa4
xor bl, bl
jmp 0x1400abfaa
shr ebx, 4
and bl, 1
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edi, 0xffffffff
test ecx, ecx
je 0x1400abfce
cmp ecx, edi
je 0x1400abfe2
mov ecx, edi
mov rax, qword [rsp + 0x28]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400abfe2
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x28]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ac000
cmp ecx, 0xffffffff
je 0x1400ac013
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], edi
cmp edi, 1
jne 0x1400ac013
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x20]
call fcn.140049bf0
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400ac5b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x530], rbx
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x30], 0
lea r15, [0x1401a1e20]
mov qword [rcx], r15
mov dword [rsp + 0x30], 1
xor sil, sil
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1402d7760]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402d77b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x800401f0
jne 0x1400ac66b
mov sil, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1402d7760]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402d77b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400ac7de
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x1402d77a0]
call qword [rax]
test eax, eax
js 0x1400ac7d3
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rbx, qword [rdx + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call rbx
mov r14d, eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x1400ac6e7
cmp ecx, ebx
je 0x1400ac6fa
mov ecx, ebx
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ac6fa
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call fcn.140049bf0
test r14d, r14d
js 0x1400ac7c8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
lea r9, [rbp - 0x80]
mov r8d, 0x104
lea rdx, [rbp + 0x1d0]
call qword [rax + 0x18]
test eax, eax
jne 0x1400ac7c8
mov r8d, ebx
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x48]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov qword [rcx], r15
mov dword [rsp + 0x30], 9
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ac779
cmp ecx, 0xffffffff
je 0x1400ac78c
mov ecx, ebx
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ac78c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
mov rcx, qword [rdi]
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x60]
mov qword [rdi], rax
mov eax, dword [rcx]
test eax, eax
je 0x1400ac7b5
cmp eax, 0xffffffff
je 0x1400ac7c8
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400ac7c8
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test sil, sil
je 0x1400ac7e9
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rdi
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140121c90
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ad2e0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rdx
lea rdx, [rsp + 0x50]
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ad33b
cmp ecx, 0xffffffff
je 0x1400ad34e
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ad34e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call fcn.140049bf0
test bl, bl
jne 0x1400ad36c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 2
mov rcx, qword [rsp + 0x50]
mov qword [rdi], rcx
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ad380
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, r8
mov rax, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rbx, rax
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x1400ad407
cmp ecx, ebx
je 0x1400ad41b
mov ecx, ebx
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ad41b
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ad439
cmp ecx, 0xffffffff
je 0x1400ad44c
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400ad44c
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x20]
call fcn.140049bf0
test dil, dil
jne 0x1400ad46b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ad480
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, r8
mov rax, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov rbx, rax
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
mov ebx, 0xffffffff
test ecx, ecx
je 0x1400ad50d
cmp ecx, ebx
je 0x1400ad521
mov ecx, ebx
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ad521
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ad53f
cmp ecx, 0xffffffff
je 0x1400ad552
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400ad552
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x20]
call fcn.140049bf0
test dil, dil
jne 0x1400ad571
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ad590
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400b4120
nop
mov rcx, rax
call fcn.140046630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400ad5e6
cmp eax, 0xffffffff
je 0x1400ad5f9
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x48]
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x1400ad5f9
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
movzx eax, bl
add rsp, 0x30
pop rbx
ret