joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14001c472
cmp byte [rdx + 4], 0
je 0x14001c34e
mov eax, dword [rcx]
cmp dword [rdx], eax
jl 0x14001c472
mov r9, r8
mov r8, rdx
lea rdx, str._H:_M:_S
lea rcx, [rbp + 0xf]
call fcn.14001bd10
nop
mov dword [rbp + 7], 0
cmp byte [rbx + 0x10], 0
je 0x14001c411
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rax, qword [rbp + 0xf]
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x1f]
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x2f]
call fcn.1400209c0
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0x3f]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14001c43b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c40a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c495
call fcn.14006235c
jmp 0x14001c43b
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0x1f]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14001c472
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c46d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c48f
call fcn.14006235c
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400620b0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rbp
ret
call fcn.14006b338
nop
call fcn.14006b338
nop
int3
Function at 0x14001de20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [r8]
mov r14, r9
mov rbp, qword [rsp + 0xe0]
mov rsi, rdx
mov r15, qword [rsp + 0xe8]
mov rbx, rcx
mov r12, qword [rsp + 0xf0]
test rdi, rdi
je 0x14001df26
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x14001df26
cmp byte [rcx + 4], 0
je 0x14001de89
mov eax, dword [rdi]
cmp dword [rcx], eax
jl 0x14001df26
mov r9, rsi
lea rdx, [0x1400c3be4]
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.14001bd10
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x68], 0xffffffffffffffff
cmp qword [rsp + 0x50], 0x10
mov dword [rsp + 0x30], eax
cmovae rdx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14001df26
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001df21
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001df6e
call fcn.14006235c
mov rcx, qword [r14]
test rcx, rcx
je 0x14001df39
mov r8, rsi
mov rdx, rbx
call fcn.14001c070
mov r9, r15
mov qword [rsp + 0x20], r12
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.14001f360
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14006b338
int3

Function at 0x140025860
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov ecx, 8
call fcn.140062608
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140007ea0]
xor edx, edx
xor ecx, ecx
call fcn.140068d38
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400258e7
cmp dword [rbx + 0x128], 0
jne 0x1400258e1
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x120], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x50
pop rbx
ret
call fcn.14006b6d0
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.140060758
int3
Function at 0x14002dcb0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x3e8
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x3f8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14002de14
lfence
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.14003aba0
nop
lea rdx, str.SHGetFolderPathW_failed_with_0x
lea rcx, [rsp + 0xb0]
call fcn.14001d2a0
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x98]
call fcn.140061148
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.14001d760
mov qword [rsp + 0x58], rax
mov dl, 0x30
lea rcx, [rsp + 0x30]
call fcn.14001d790
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.14001d7a0
mov qword [rsp + 0x60], rax
lea rdx, [fcn.14001a2e0]
mov rcx, qword [rsp + 0x60]
call fcn.14001cb40
mov qword [rsp + 0x68], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
call fcn.14003adc0
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0xb0]
call fcn.14003aac0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x80]
call fcn.140065380
nop
lea rcx, [rsp + 0x1a0]
call fcn.140019710
lea rcx, [rsp + 0xb0]
call fcn.14002d320
nop
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x3f0]
call fcn.140017700
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x3f0]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x3e8
ret
Function at 0x14002f730
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x318
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x308], rax
mov byte [rsp + 0x2c0], 0
mov byte [rsp + 0x2c1], 0
mov byte [rsp + 0x2c2], 0
mov byte [rsp + 0x2c3], 0
mov byte [rsp + 0x2c4], 0
mov byte [rsp + 0x2c5], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14002f892
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov edx, 1
lea rcx, [rsp + 0xe0]
call fcn.14003aba0
nop
lea rdx, str.AllocateAndInitializeSid_failed_with:
lea rcx, [rsp + 0xe0]
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
lea rdx, [rsp + 0x2c8]
lea rcx, [rsp + 0xe0]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xa8]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0xa8]
call fcn.140065380
nop
lea rcx, [rsp + 0x2c8]
call fcn.140019710
lea rcx, [rsp + 0xe0]
call fcn.14002d320
nop
mov dword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14002f97b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov edx, 1
lea rcx, [rsp + 0x1d0]
call fcn.14003aba0
nop
lea rdx, str.CheckTokenMembership_failed_with:
lea rcx, [rsp + 0x1d0]
call fcn.14001d2a0
mov qword [rsp + 0x90], rax
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
call fcn.140005ba0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0x1d0]
call fcn.14003aac0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xc0]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0xc0]
call fcn.140065380
nop
lea rcx, [rsp + 0x2e8]
call fcn.140019710
lea rcx, [rsp + 0x1d0]
call fcn.14002d320
nop
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], 0
je 0x14002f997
mov dword [rsp + 0x64], 1
jmp 0x14002f99f
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov rcx, qword [rsp + 0x308]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x318
ret
Function at 0x140030130
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x20], 0
mov eax, 2
imul rax, rax, 0
lea rcx, [0x1400e20d0]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x140030230
mov edx, 0x104
lea rcx, [0x1400e20d0]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140030230
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14003aba0
nop
lea rdx, str.GetSystemWow64DirectoryW_failed__error
lea rcx, [rsp + 0x60]
call fcn.14001d2a0
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140005ba0
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x60]
call fcn.14003aac0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x48]
call fcn.140065380
nop
lea rcx, [rsp + 0x150]
call fcn.140019710
lea rcx, [rsp + 0x60]
call fcn.14002d320
nop
lea rdx, [0x1400e20d0]
mov rcx, qword [rsp + 0x198]
call fcn.140017700
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x188
ret
Function at 0x1400302f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x438
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x448]
call fcn.1400196d0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140030343
jmp 0x140030581
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x140030476
mov edx, 1
lea rcx, [rsp + 0x1c0]
call fcn.14003aba0
nop
lea rdx, [0x1400c5cd8]
lea rcx, [rsp + 0x1c0]
call fcn.14001d2a0
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x3a0]
call fcn.140042600
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140017ba0
lea rdx, str._already_exists
mov rcx, rax
call fcn.14001d2a0
nop
lea rcx, [rsp + 0x3a0]
call fcn.140019710
call fcn.14001c880
mov rcx, rax
call fcn.140011b70
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140017560
nop
jmp 0x14003040f
mov byte [rsp + 0x1b8], 1
movzx eax, byte [rsp + 0x1b8]
test eax, eax
jne 0x140030456
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x1c0]
call fcn.14003aac0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.14003d6b0
lea rcx, [rsp + 0x3c0]
call fcn.140019710
jmp 0x140030407
lea rcx, [rsp + 0xb0]
call fcn.1400162f0
nop
lea rcx, [rsp + 0x1c0]
call fcn.14002d320
jmp 0x140030581
mov edx, 1
lea rcx, [rsp + 0x2b0]
call fcn.14003aba0
nop
lea rdx, str.CreateDirectory_for
lea rcx, [rsp + 0x2b0]
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x3e0]
call fcn.140042600
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140017ba0
lea rdx, [0x1400c5cc0]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x3e0]
call fcn.140019710
lea rdx, [rsp + 0x400]
lea rcx, [rsp + 0x2b0]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x90]
call fcn.140065380
nop
lea rcx, [rsp + 0x400]
call fcn.140019710
lea rcx, [rsp + 0x2b0]
call fcn.14002d320
nop
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x438
ret
Function at 0x1400305a0
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x438
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x448]
call fcn.1400196d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400305f1
jmp 0x140030833
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
je 0x14003060d
cmp dword [rsp + 0x20], 3
jne 0x140030728
mov edx, 1
lea rcx, [rsp + 0x1c0]
call fcn.14003aba0
nop
lea rdx, [0x1400c5d30]
lea rcx, [rsp + 0x1c0]
call fcn.14001d2a0
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x3a0]
call fcn.140042600
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140017ba0
lea rdx, str._already_absent
mov rcx, rax
call fcn.14001d2a0
nop
lea rcx, [rsp + 0x3a0]
call fcn.140019710
call fcn.14001c880
mov rcx, rax
call fcn.140011b70
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140017560
nop
jmp 0x1400306c1
mov byte [rsp + 0x1b8], 1
movzx eax, byte [rsp + 0x1b8]
test eax, eax
jne 0x140030708
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x1c0]
call fcn.14003aac0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.14003d6b0
lea rcx, [rsp + 0x3c0]
call fcn.140019710
jmp 0x1400306b9
lea rcx, [rsp + 0xb0]
call fcn.1400162f0
nop
lea rcx, [rsp + 0x1c0]
call fcn.14002d320
jmp 0x140030833
mov edx, 1
lea rcx, [rsp + 0x2b0]
call fcn.14003aba0
nop
lea rdx, str.RemoveDirectory_for
lea rcx, [rsp + 0x2b0]
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x3e0]
call fcn.140042600
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140017ba0
lea rdx, [0x1400c5d18]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x3e0]
call fcn.140019710
lea rdx, [rsp + 0x400]
lea rcx, [rsp + 0x2b0]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x90]
call fcn.140065380
nop
lea rcx, [rsp + 0x400]
call fcn.140019710
lea rcx, [rsp + 0x2b0]
call fcn.14002d320
nop
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x438
ret
Function at 0x140030850
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x218
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rcx, qword [rsp + 0x230]
call fcn.1400196d0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x228]
call fcn.1400196d0
mov qword [rsp + 0x30], rax
mov r8d, 1
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400308c2
jmp 0x140030a36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.14003aba0
nop
lea rdx, str.CopyFile_of_the_file
lea rcx, [rsp + 0xb0]
call fcn.14001d2a0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x228]
lea rcx, [rsp + 0x1c0]
call fcn.140042600
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140017ba0
lea rdx, [0x1400c5664]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x1a0]
call fcn.140042600
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140017ba0
lea rdx, [0x1400c5ce8]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x1a0]
call fcn.140019710
nop
lea rcx, [rsp + 0x1c0]
call fcn.140019710
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0xb0]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x90]
call fcn.140065380
nop
lea rcx, [rsp + 0x1e0]
call fcn.140019710
lea rcx, [rsp + 0xb0]
call fcn.14002d320
nop
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x218
ret
Function at 0x140031030
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x398
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x170]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140031115
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14003aba0
nop
lea rdx, str.GetTempPathW_failed_with
lea rcx, [rsp + 0x60]
call fcn.14001d2a0
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140005ba0
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x60]
call fcn.14003aac0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x48]
call fcn.140065380
nop
lea rcx, [rsp + 0x150]
call fcn.140019710
lea rcx, [rsp + 0x60]
call fcn.14002d320
nop
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x3a8]
call fcn.140017700
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x398
ret
Function at 0x140031530
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x218
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rcx, qword [rsp + 0x230]
call fcn.1400196d0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x228]
call fcn.1400196d0
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14003159c
jmp 0x140031710
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, 1
lea rcx, [rsp + 0xb0]
call fcn.14003aba0
nop
lea rdx, str.MoveFile_of_the_file
lea rcx, [rsp + 0xb0]
call fcn.14001d2a0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x228]
lea rcx, [rsp + 0x1c0]
call fcn.140042600
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140017ba0
lea rdx, [0x1400c5dc8]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x1a0]
call fcn.140042600
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140017ba0
lea rdx, [0x1400c5dd0]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x1a0]
call fcn.140019710
nop
lea rcx, [rsp + 0x1c0]
call fcn.140019710
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0xb0]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x90]
call fcn.140065380
nop
lea rcx, [rsp + 0x1e0]
call fcn.140019710
lea rcx, [rsp + 0xb0]
call fcn.14002d320
nop
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x218
ret
Function at 0x140031730
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x438
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x448]
call fcn.1400196d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140031781
jmp 0x1400319c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
je 0x14003179d
cmp dword [rsp + 0x20], 3
jne 0x1400318b8
mov edx, 1
lea rcx, [rsp + 0x1c0]
call fcn.14003aba0
nop
lea rdx, str.DeleteFile
lea rcx, [rsp + 0x1c0]
call fcn.14001d2a0
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x3a0]
call fcn.140042600
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140017ba0
lea rdx, str.:_file_already_absent
mov rcx, rax
call fcn.14001d2a0
nop
lea rcx, [rsp + 0x3a0]
call fcn.140019710
call fcn.14001c880
mov rcx, rax
call fcn.140011b70
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140017560
nop
jmp 0x140031851
mov byte [rsp + 0x1b8], 1
movzx eax, byte [rsp + 0x1b8]
test eax, eax
jne 0x140031898
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x1c0]
call fcn.14003aac0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.14003d6b0
lea rcx, [rsp + 0x3c0]
call fcn.140019710
jmp 0x140031849
lea rcx, [rsp + 0xb0]
call fcn.1400162f0
nop
lea rcx, [rsp + 0x1c0]
call fcn.14002d320
jmp 0x1400319c3
mov edx, 1
lea rcx, [rsp + 0x2b0]
call fcn.14003aba0
nop
lea rdx, str.DeleteFile:
lea rcx, [rsp + 0x2b0]
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x448]
lea rcx, [rsp + 0x3e0]
call fcn.140042600
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140017ba0
lea rdx, str.__failed_with_error
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x3e0]
call fcn.140019710
lea rdx, [rsp + 0x400]
lea rcx, [rsp + 0x2b0]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x90]
call fcn.140065380
nop
lea rcx, [rsp + 0x400]
call fcn.140019710
lea rcx, [rsp + 0x2b0]
call fcn.14002d320
nop
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x438
ret