joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015f40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140015f8e
mov rdx, qword [rcx]
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140015fb0
mov rcx, rdi
call fcn.140001c40
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140015fd7
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x14001610e
mov word [rsp + 0x70], r14w
lea rdx, [rsp + 0x70]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140016020
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001c40
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14001a450
nop
cmp rdi, rax
je 0x140016076
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14001606a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140001c40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400160b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400160b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400161a9
call fcn.14002f77c
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001610e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016109
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400161af
call fcn.14002f77c
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001b6e0
nop
cmp rdi, rax
je 0x14001613b
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14001612f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140001c40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140016179
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016174
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400161a3
call fcn.14002f77c
mov rax, rdi
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.14002f4c0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140035b04
nop
call fcn.140035b04
nop
call fcn.140035b04
int3
Function at 0x1400161c0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rbp, [rsi - 1]
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x18], 8
jb 0x140016217
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140016226
test al, 0x10
jne 0x140016231
mov rcx, rbx
call fcn.14001bd80
mov rbp, rax
lea rdx, [0x140068600]
mov rcx, rbx
call fcn.14001c1b0
mov r14, rax
test rax, rax
je 0x140016306
mov qword [rsp + 0x40], rsi
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test rbp, rbp
jle 0x1400162fd
mov r15, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r15
sub rcx, rdx
cmp rbp, rcx
jae 0x140016286
lea rax, [rdx + rbp]
jmp 0x1400162b8
jbe 0x1400162bc
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbp, rax
jbe 0x1400162a1
mov rdx, rbp
mov rcx, rdi
call fcn.140019940
jmp 0x1400162bc
mov rbx, rbp
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.140031ee0
lea rax, [rbx + r15]
mov qword [rdi + 8], rax
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400162e6
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400162e6
mov esi, dword [rsp + 0x40]
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
cmp rsi, rcx
jae 0x1400162fd
lea rcx, [rax + rsi]
mov qword [rdi + 8], rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002f4c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, r8
mov r13, rdx
mov r12, rcx
mov r14, qword [rsp + 0xe8]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], bx
test r14, r14
je 0x140016670
test r8, r8
js 0x140016670
xor bpl, bpl
jmp 0x140016678
mov bpl, 1
test r14, r14
je 0x140016684
mov rsi, qword [r14]
test rsi, rsi
jne 0x140016719
lea rdx, [rsp + 0x30]
call fcn.14001a200
nop
mov rcx, rax
call fcn.14001a3c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400166da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400166d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016825
call fcn.14002f77c
lea rdx, [0x140068604]
mov rcx, r12
call fcn.14001c1b0
mov rsi, rax
test r14, r14
je 0x1400166f4
mov qword [r14], rax
test rax, rax
je 0x140016714
mov qword [rsp + 0x50], rbx
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x140016719
test rsi, rsi
je 0x140016790
xor dil, dil
test r15, r15
js 0x140016755
test r13, r13
je 0x14001674b
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8d, r15d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [rsp + 0x50]
jne 0x14001674e
mov rax, rbx
test rax, rax
setne dil
test bpl, bpl
je 0x1400167b5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
movzx ecx, al
movzx eax, dil
test dil, dil
cmovne ecx, eax
movzx edi, cl
mov edx, dword [0x140074c38]
mov rcx, r12
call fcn.14001bb30
test r14, r14
je 0x140016798
mov qword [r14], rbx
jmp 0x140016798
xor dil, dil
test bpl, bpl
je 0x1400167b5
test dil, dil
je 0x1400167b5
cmp qword [rsp + 0x68], 0
je 0x1400167b5
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.14001bef0
movzx edi, al
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400167f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400167ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001681f
call fcn.14002f77c
movzx eax, dil
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002f4c0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140035b04
nop
call fcn.140035b04
nop
int3
Function at 0x14001a3c0
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 0x14001a3d3
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14001a40d
cmp rcx, 8
jb 0x14001a3eb
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001a405
test al, 0x10
je 0x14001a405
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
mov rdx, rbx
cmp rcx, 8
jb 0x14001a41e
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete dil
test eax, eax
jne 0x14001a441
mov edx, dword [0x140074c38]
mov rcx, rbx
call fcn.14001bb30
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x14001ad80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001aea8
mov rax, qword [rsp + 0x50]
lea rdx, [0x1400683c8]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001ae20
lea rcx, [rsp + 0x28]
call fcn.140001c40
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x14001ae5f
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140001c40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001ae9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ae98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001aec6
call fcn.14002f77c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002f4c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call fcn.140035b04
int3
Function at 0x14001ba20
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001ba37
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x14001ba8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14001ba8e
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.14001bb30
mov edx, dword [0x140074c38]
mov rcx, rbx
call fcn.14001bb30
cmp qword [rbx + 0x18], 8
jb 0x14001ba74
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
movzx eax, dil
add rsp, 0x20
pop rdi
ret

Function at 0x14001bb30
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xa0
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor dil, dil
mov ebp, edx
mov rbx, rcx
cmp edx, 0xffffffff
je 0x14001bcdc
test edx, 0xffff0000
jne 0x14001bb84
cmp qword [rcx + 0x18], 8
jb 0x14001bb70
mov rbx, qword [rcx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
jmp 0x14001bce0
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0x90], r15
xor r15d, r15d
cmp qword [rcx + 0x18], 8
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
jb 0x14001bbb0
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x98], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14001bc99
call fcn.14001baa0
mov r14, rax
test rax, rax
je 0x14001bca4
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x78], 5
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
lea ecx, [rsi + 1]
mov dword [rsp + 0x5c], 1
movdqu xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x74], r15d
mov qword [rsp + 0x80], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14001bc8c
cmp qword [rbx + 0x18], 8
jb 0x14001bc61
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov qword [rsp + 0x20], r15
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
mov esi, eax
sete dil
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x14001bca4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor dil, dil
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xd0]
test rcx, rcx
je 0x14001bccc
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001bcdc
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002f4c0
add rsp, 0xa0
pop rdi
pop rbp
pop rbx
ret
Function at 0x14001bd00
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001bd13
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001bd4b
mov edx, 0x80
mov rcx, rbx
call fcn.14001bb30
mov edx, dword [0x140074c38]
mov rcx, rbx
call fcn.14001bb30
cmp qword [rbx + 0x18], 8
jb 0x14001bd42
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 0x14001bd80
Capabilities:
Check if file exists
Get disk size
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp + 0x17], 0xffffffffffffffff
cmp qword [rcx + 0x18], 8
jb 0x14001bdb5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001beb7
test al, 0x10
je 0x14001beb7
mov qword [rbp + 0x17], 0
lea rdx, [rbp + 0x27]
mov rcx, rbx
call fcn.14001ac10
nop
mov rdx, rbx
lea rcx, [rbp + 0x27]
call fcn.140015e30
test eax, eax
jne 0x14001be1e
xor eax, eax
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rcx, qword [rbp + 0x27]
xor r9d, r9d
lea r8, [rbp + 0x1f]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rbp + 0x1f]
mov qword [rbp + 0x17], rax
jmp 0x14001be8d
lea rax, [rbp + 0x17]
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x29], 1
lea rax, [0x14001bd60]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x11], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140016f80
mov byte [rbp - 0x11], 1
mov rcx, rbx
call fcn.140001dc0
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.1400155c0
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.14001c570
nop
lea rcx, [rbp - 9]
call fcn.140001a10
nop
lea rcx, [rbp - 0x39]
call fcn.140016ee0
nop
lea rcx, [rbp + 0x27]
call fcn.140001a10
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14002f4c0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbp
ret
xor edx, edx
mov rcx, rbx
call fcn.14001c1b0
mov rbx, rax
test rax, rax
je 0x14001be96
xor eax, eax
mov qword [rbp + 0x1f], rax
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call fcn.14001c3c0
mov rax, qword [rbp + 0x1f]
jmp 0x14001be9a
Function at 0x14001bef0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov rsi, rcx
call fcn.140015e30
test eax, eax
jne 0x14001bf24
mov al, 1
jmp 0x14001c028
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001bf31
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14001bfce
mov dword [rsp + 0x20], 0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001bf55
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001bfc6
test al, 0x10
je 0x14001bfc6
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
lea rax, [0x140015800]
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140016f80
mov byte [rsp + 0x50], 1
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14001c570
nop
lea rcx, [rsp + 0x28]
call fcn.140016ee0
mov rcx, rdi
call fcn.14001ba20
jmp 0x14001bfce
mov rcx, rdi
call fcn.14001bd00
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001a200
nop
mov rcx, rax
call fcn.14001a3c0
nop
lea rcx, [rsp + 0x28]
call fcn.140001a10
mov rcx, rdi
call fcn.140001dc0
mov rbx, rax
mov rcx, rsi
call fcn.140001dc0
mov r8d, 2
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
test eax, eax
je 0x14001c025
mov rcx, rdi
call fcn.1400159b0
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002f4c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001c050
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.140015e30
test eax, eax
jne 0x14001c080
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001c08d
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14001c0aa
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001a200
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14001c0c7
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14001c0ea
cmp rcx, 8
jb 0x14001c0df
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14001c114
mov rdx, rbx
cmp rcx, 8
jb 0x14001c0f6
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x14001c114
mov edx, dword [0x140074c38]
mov rcx, rbx
call fcn.14001bb30
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001c152
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c14d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c19f
call fcn.14002f77c
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001c15f
mov rdx, qword [rsi]
cmp qword [rdi + 0x18], 8
jb 0x14001c169
mov rdi, qword [rdi]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
test eax, eax
je 0x14001c18c
mov edx, dword [0x140074c38]
mov rcx, rsi
call fcn.14001bb30
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.140035b04
int3
Function at 0x14001c3e0
Capabilities:
Get file version info

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov rsi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x28], edi
jb 0x14001c40b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x80], rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x14001c542
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
cmp r14, 0x1000
jb 0x14001c46c
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14001c569
call fcn.14002f7b0
mov rcx, rax
test rax, rax
je 0x14001c563
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14001c474
mov rcx, r14
call fcn.14002f7b0
mov qword [rsp + 0x78], rbx
mov r8, r14
lea rbx, [rax + r14]
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov rcx, rax
call fcn.140031ee0
cmp qword [rsi + 0x18], 8
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x78]
jb 0x14001c4a8
mov rsi, qword [rsi]
mov r9, qword [rsp + 0x30]
mov r8d, r14d
mov edx, dword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14001c50a
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x2c]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
lea rdx, str..0
mov dword [rsp + 0x2c], edi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001c50a
cmp dword [rsp + 0x2c], edi
je 0x14001c50a
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0xfeef04bd
jne 0x14001c50a
mov edi, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rdi, 0x20
or rdi, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001c542
mov rdx, qword [rsp + 0x40]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001c53d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c563
call fcn.14002f77c
mov rbp, qword [rsp + 0x80]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002f4c0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.140035b04
int3
call fcn.140001c20
int3
Function at 0x14001e850
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x6c], 0
lea rax, [rsp + 0x60]
mov word [rsp + 0x70], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6c]
mov dword [rsp + 0x48], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x12]
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
test eax, eax
je 0x14001e8ec
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x68]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
test eax, eax
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002f4c0
add rsp, 0x80
pop rbx
ret

Function at 0x14001f870
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14001f8a2
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x20], 0
test rcx, rcx
je 0x14001f8a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov rax, rbx
mov qword [rbx + 0x28], rcx
cmp qword [rbx + 0x18], 8
jb 0x14001f8b5
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rax], cx
cmp rbx, rdi
je 0x14001f8da
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14001f8ce
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.140001c40
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x14001f8e7
mov r8, qword [rdi]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001f971
cmp eax, 5
je 0x14001f921
cmp eax, 0xb7
je 0x14001f93f
cmp qword [rbx + 0x28], 0
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x18], 8
jb 0x14001f92b
mov rdi, qword [rdi]
mov r8, rdi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x28], rax
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001f97c
cmp byte [rbx + 0x20], 0
jne 0x14001f97c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
cmp qword [rbx + 0x28], 0
mov byte [rbx + 0x20], al
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x28], 0
je 0x14001f981
mov byte [rbx + 0x20], 1
cmp qword [rbx + 0x28], 0
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret