joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030be0
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x30]
xor ebx, ebx
xor edx, edx
call fcn.14004f370
cmp qword [rsi + 0x18], 7
jbe 0x140030c14
mov rsi, qword [rsi]
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140030d40
mov ebp, eax
mov r14d, eax
cmp eax, 0x1000
jb 0x140030c4c
lea rcx, [r14 + 0x27]
call fcn.14014b1a0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140030c57
mov rcx, r14
call fcn.14014b1a0
mov rdi, rax
mov rcx, rdi
xor edx, edx
mov r8, r14
call fcn.14016f6e0
mov edx, dword [rsp + 0x2c]
mov rcx, rsi
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140030d0e
mov qword [rsp + 0x50], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x4c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140030d0e
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x140030d0e
add r14, rdi
mov ecx, 0x38
call fcn.14014b1a0
mov rbx, rax
mov eax, dword [rsi]
lea rcx, [0x14019dd80]
mov qword [rbx], rcx
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x20], rdi
mov dword [rbx + 0x28], eax
mov qword [rsp + 0x50], 0
lea rdx, [0x140199100]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x4c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140030d65
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x30], rax
jmp 0x140030d40
test rdi, rdi
je 0x140030d3e
cmp ebp, 0x1000
jb 0x140030d33
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x140030d6d
add r14, 0x27
mov rdi, rax
mov rcx, rdi
mov rdx, r14
call fcn.14014b210
xor ebx, ebx
lea rcx, [rsp + 0x30]
call fcn.14004f470
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014b5e0
mov rax, rbx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
mov qword [rbx + 0x30], rax
jmp 0x140030d40
call fcn.140179190
ud2
Function at 0x140031c20
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov r15, r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx ebp, word [rcx + 0x28]
movzx r14d, word [rcx + 0x2a]
mov r12, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r12
mov esi, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call r12
mov r12d, eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebp
lea r9, str.StringFileInfo_04x_04x_ls
lea rbp, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rbp
call fcn.140031e70
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140031cd3
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140031df5
movzx eax, si
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140031e70
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140031d33
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140031df5
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140031e70
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140031d94
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140031df5
movzx eax, r12w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140031e70
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140031e69
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x140031e69
mov rcx, rbp
call fcn.140186640
mov rsi, rax
mov rax, qword [r15 + 0x18]
cmp rax, rsi
jae 0x140031e19
mov rcx, r15
mov rdx, rsi
mov r9, rbp
call fcn.140006110
jmp 0x140031e40
mov rdi, r15
cmp rax, 8
jb 0x140031e25
mov rdi, qword [r15]
mov qword [r15 + 0x10], rsi
mov r8, rsi
add r8, rsi
mov rcx, rdi
mov rdx, rbp
call fcn.14016f270
mov word [rdi + rsi*2], 0
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14014b5e0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x140031e43
Function at 0x140035a10
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140035370
test al, al
jne 0x140035a31
mov rcx, rsi
call fcn.140035370
test al, al
je 0x140035a3a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140039c20
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
xor ebp, ebp
xor edx, edx
call fcn.14004f370
cmp qword [rsi + 0x10], 0x103
ja 0x140039d2c
cmp qword [rdi + 0x10], 0x103
ja 0x140039d2a
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x140039c76
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140039c83
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x140039d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rbp, [rsp + 0x40]
mov rcx, rbp
xor edx, edx
call fcn.14004f370
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140039cbf
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14004f470
cmp ebx, 0xffffffff
je 0x140039d21
and ebx, 0x10
je 0x140039d21
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14004f370
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140038270
test al, al
je 0x140039d17
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140037be0
test al, al
je 0x140039d17
lea rcx, [rsp + 0x40]
call fcn.14004f470
jmp 0x140039d2c
lea rcx, [rsp + 0x40]
call fcn.14004f470
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14004f470
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014b5e0
mov eax, ebp
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400365f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x80], 0
je 0x140036670
cmp qword [rsi + 0x68], 0
je 0x1400366aa
cmp byte [rsi + 0x71], 0
je 0x1400366aa
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400366a6
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
test eax, eax
je 0x140036674
cmp eax, 1
je 0x140036678
cmp eax, 3
jne 0x1400366a6
jmp 0x1400366aa
xor edi, edi
jmp 0x1400366c1
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1400366a0
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8, rbx
call fcn.140180360
cmp rbx, rax
jne 0x1400366a6
cmp byte [rsi + 0x71], 0
je 0x1400366aa
xor ebx, ebx
jmp 0x1400366ad
mov rbx, rsi
mov rcx, qword [rsi + 0x80]
call fcn.14017ef70
xor edi, edi
test eax, eax
cmove rdi, rbx
mov byte [rsi + 0x7c], 0
mov byte [rsi + 0x71], 0
lea rax, [rsi + 8]
mov qword [rsi + 0x18], rax
lea rax, [rsi + 0x10]
mov qword [rsi + 0x20], rax
lea rax, [rsi + 0x28]
mov qword [rsi + 0x38], rax
lea rax, [rsi + 0x30]
mov qword [rsi + 0x40], rax
lea rax, [rsi + 0x48]
mov qword [rsi + 0x50], rax
lea rax, [rsi + 0x4c]
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x48], 0
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x80], 0
mov rax, qword [0x1401e6430]
mov qword [rsi + 0x74], rax
mov qword [rsi + 0x68], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014b5e0
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140038100
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x28]
xor edi, edi
xor edx, edx
call fcn.14004f370
cmp qword [rsi + 0x10], 0x103
ja 0x140038151
cmp qword [rsi + 0x18], 7
jbe 0x14003813a
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x28]
call fcn.14004f470
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014b5e0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140038180
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.14004f370
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x1400381bb
mov rdx, qword [rbx]
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x1400381c8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov bpl, 1
test eax, eax
jne 0x140038238
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003a950
mov r14d, eax
cmp qword [rdi + 0x18], 7
jbe 0x1400381ef
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 7
jbe 0x1400381f9
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140038238
test rsi, rsi
je 0x140038236
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003a950
cmp eax, 0xfffffffc
cmovne r14d, eax
mov dword [rsi], r14d
xor ebp, ebp
lea rcx, [rsp + 0x30]
call fcn.14004f470
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14014b5e0
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140038710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.14004f370
cmp qword [rdi + 0x18], 7
jbe 0x140038742
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14004f470
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14014b5e0
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rsi, [rsp + 0x28]
mov rcx, rsi
xor edx, edx
call fcn.14004f370
cmp qword [rdi + 0x18], 7
jbe 0x1400387a1
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14004f470
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014b5e0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400387e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdi, [rsp + 0x70]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x140038820
xor esi, esi
jmp 0x140038885
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x70], 0
je 0x14003883e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140038830
jmp 0x140038840
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400323b0
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.140035290
mov rcx, rsi
mov rdx, rbx
call fcn.140032540
mov rcx, rbx
call fcn.140032460
mov rcx, rdi
call fcn.140032460
mov sil, 1
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14014b5e0
mov eax, esi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400388b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140038920
movzx eax, word [rsp + 0x70]
test ax, ax
je 0x140038920
mov qword [rsp + 0x40], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140038900
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400323b0
jmp 0x140038974
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.140032280
mov rcx, rdi
call fcn.1400387e0
test al, al
je 0x140038948
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140032370
jmp 0x14003896a
lea rax, [0x14019e218]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400323b0
lea rcx, [rsp + 0x50]
call fcn.140032460
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14014b5e0
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140039590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.14004f370
cmp qword [rdi + 0x18], 7
mov rbx, rdi
jbe 0x1400395ca
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140039600
mov bl, 1
test al, 0x10
jne 0x1400396f1
test r15, r15
je 0x1400395ee
mov dword [r15], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400396f1
lea rbp, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbp
call fcn.1400332a0
mov rax, qword [rdi + 0x10]
cmp qword [rsp + 0x60], rax
jne 0x140039667
test rax, rax
je 0x140039654
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x14003962d
mov rcx, qword [rdi]
cmp qword [rsp + 0x68], 7
jbe 0x14003963a
mov rbp, qword [rsp + 0x50]
xor edx, edx
nop dword [rax]
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x140039667
add rdx, 1
cmp rax, rdx
jne 0x140039640
test r15, r15
je 0x140039660
mov dword [r15], 0xfffffffc
mov ecx, 2
jmp 0x1400396df
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.140039590
test al, al
je 0x1400396e5
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400396e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400396ce
lea r14, [rsp + 0x38]
mov rcx, r14
xor edx, edx
call fcn.14004f370
cmp qword [rdi + 0x18], 7
jbe 0x1400396b1
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.14004f470
cmp edi, 0xffffffff
je 0x1400396ce
and edi, 0x10
jne 0x1400396e7
test r15, r15
je 0x1400396dd
mov ecx, ebp
call fcn.14003a950
mov dword [r15], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x50]
call fcn.140032460
lea rcx, [rsp + 0x20]
call fcn.14004f470
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14014b5e0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140039800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.14004f370
cmp qword [rdi + 0x18], 7
jbe 0x140039835
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rdi
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.14000f1e0
mov rcx, qword [rsp + 0x48]
mov edi, 0xffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400398c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rdx, rbx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
cmp dword [rsp + 0x44], esi
mov edi, 0xffffffff
cmove edi, esi
or edi, ecx
mov rcx, qword [rsp + 0x48]
add rcx, 1
cmp rcx, 2
jb 0x1400398fc
call fcn.14003b750
mov r8, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x48]
mov r9, rax
call fcn.14005b200
mov rcx, qword [rsp + 0x48]
call fcn.14005b190
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x50]
call fcn.14004f470
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14014b5e0
mov eax, edi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x140039920
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
lea rcx, [rsp + 0x38]
xor edi, edi
xor edx, edx
call fcn.14004f370
mov word [rsp + 0xb0], 0
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x140039ab0
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], 0
lea rcx, [rsp + 0xb0]
call fcn.140186640
mov rdi, rax
cmp rax, 7
jbe 0x1400399ca
lea rcx, [rsp + 0x90]
lea r9, [rsp + 0xb0]
mov rdx, rdi
call fcn.140006110
jmp 0x1400399f7
mov qword [rsp + 0xa0], rdi
mov r8, rdi
add r8, rdi
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0xb0]
call fcn.14016f270
mov word [rsp + rdi*2 + 0x90], 0
mov rax, qword [rsp + 0xa0]
cmp qword [rsp + 0xa8], 7
jbe 0x140039a14
mov rcx, qword [rsp + 0x90]
jmp 0x140039a1c
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400323b0
lea rbx, [rsp + 0x70]
mov rcx, rdi
mov rdx, rbx
call fcn.140035290
mov rcx, rsi
mov rdx, rbx
call fcn.140032540
mov rcx, rbx
call fcn.140032460
mov rcx, rdi
call fcn.140032460
mov rax, qword [rsp + 0xa8]
cmp rax, 8
jb 0x140039aad
mov rcx, qword [rsp + 0x90]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140039aa8
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140039ad7
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14014b210
mov dil, 1
lea rcx, [rsp + 0x38]
call fcn.14004f470
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.14014b5e0
mov eax, edi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
ret
call fcn.140179190
ud2
Function at 0x140039ae0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.14004f370
cmp qword [rdi + 0x18], 7
jbe 0x140039b12
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14004f470
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14014b5e0
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140039b50
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x28]
xor edi, edi
xor edx, edx
call fcn.14004f370
mov rcx, rbx
call fcn.140035370
test al, al
jne 0x140039bf9
mov rcx, rsi
call fcn.140035370
test al, al
jne 0x140039bf7
cmp qword [rbx + 0x10], 0x103
ja 0x140039bf7
cmp qword [rsi + 0x10], 0x103
ja 0x140039bf7
cmp qword [rsi + 0x18], 7
jbe 0x140039bb4
mov rsi, qword [rsi]
movzx r8d, bpl
cmp qword [rbx + 0x18], 7
jbe 0x140039bc2
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140039bf7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140039bf7
mov dil, 1
test al, 1
je 0x140039bf9
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140039bf9
xor edi, edi
lea rcx, [rsp + 0x28]
call fcn.14004f470
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014b5e0
mov eax, edi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140039c20
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140035370
test al, al
jne 0x140035a31
mov rcx, rsi
call fcn.140035370
test al, al
je 0x140035a3a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140039c20
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e3a38]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
xor ebp, ebp
xor edx, edx
call fcn.14004f370
cmp qword [rsi + 0x10], 0x103
ja 0x140039d2c
cmp qword [rdi + 0x10], 0x103
ja 0x140039d2a
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x140039c76
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140039c83
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x140039d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rbp, [rsp + 0x40]
mov rcx, rbp
xor edx, edx
call fcn.14004f370
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140039cbf
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14004f470
cmp ebx, 0xffffffff
je 0x140039d21
and ebx, 0x10
je 0x140039d21
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14004f370
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140038270
test al, al
je 0x140039d17
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140037be0
test al, al
je 0x140039d17
lea rcx, [rsp + 0x40]
call fcn.14004f470
jmp 0x140039d2c
lea rcx, [rsp + 0x40]
call fcn.14004f470
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14004f470
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014b5e0
mov eax, ebp
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret