joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400868f0
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x141949208]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x14008693a
lock inc dword [rax]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 4]
cmp r8d, 2
jne 0x1400869b0
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x1400869b0
cmp dword [rax], 1
ja 0x140086964
mov edx, dword [rax + 8]
btr edx, 0x1f
lea ecx, [r8 + 2]
cmp ecx, edx
jbe 0x14008697a
lea edx, [r8 + 2]
mov r8b, 1
lea rcx, [rsp + 0x20]
call fcn.1400336f0
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea r8, [rcx + rdx*2]
mov ecx, 0x5c
mov word [r8 + rax], cx
mov rax, qword [rsp + 0x20]
inc dword [rax + 4]
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea r8, [rcx + rdx*2]
xor ecx, ecx
mov word [r8 + rax], cx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14008da50
nop
mov rcx, rax
call fcn.1400360e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
or edi, 0xffffffff
test eax, eax
je 0x1400869f5
cmp eax, edi
je 0x140086a03
mov edx, edi
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x140086a03
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
cmp ebx, 0xffffffff
jne 0x140086a3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140086a18
cmp eax, 0x20
jne 0x140086a3b
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14008da50
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140085ff0
test al, al
cmovne ebx, dword [rsp + 0x50]
test rsi, rsi
je 0x140086a48
cmp ebx, 0xffffffff
setne al
mov byte [rsi], al
cmp ebx, 0xffffffff
jne 0x140086a51
xor bl, bl
jmp 0x140086a57
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140086a75
cmp eax, 0xffffffff
je 0x140086a83
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140086a83
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
movzx eax, bl
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140103500
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140086fe0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x4e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x510], rbx
mov rax, qword [0x141949208]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x38], 0
lea rax, [0x140168648]
mov qword [rcx], rax
mov dword [rsp + 0x38], 1
xor sil, sil
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14028f0c8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14028f0e8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x800401f0
jne 0x140087090
mov sil, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14028f0c8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14028f0e8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400871ac
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x14028f0d8]
call qword [rax]
test eax, eax
js 0x1400871a1
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140081990
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
call fcn.1400360e0
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [rbx + 0x28]
mov ebp, eax
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx]
or ebx, 0xffffffff
test edx, edx
je 0x140087105
cmp edx, ebx
je 0x140087113
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140087113
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test ebp, ebp
js 0x140087196
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x70]
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
call qword [rax + 0x18]
test eax, eax
jne 0x140087196
mov r8d, ebx
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x50]
call fcn.140004300
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x68], rcx
mov rax, qword [rax]
mov qword [rdi], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140087188
cmp eax, 0xffffffff
je 0x140087196
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140087196
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test sil, sil
je 0x1400871b7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rdi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140103500
mov rbx, qword [rsp + 0x510]
add rsp, 0x4e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140087b10
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.140081990
nop
mov rcx, rax
call fcn.1400360e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140087b69
cmp eax, 0xffffffff
je 0x140087b77
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140087b77
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test bl, bl
jne 0x140087b95
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 0x140087bb0
Capabilities:
Move file

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov r14, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140081990
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140081990
mov rdi, rax
mov rcx, rsi
call fcn.1400360e0
mov rbx, rax
mov rcx, rdi
call fcn.1400360e0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x140087c3e
cmp eax, ebx
je 0x140087c4d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140087c4d
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140087c6b
cmp eax, 0xffffffff
je 0x140087c79
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140087c79
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test dil, dil
jne 0x140087c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [r14], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400880c0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14008da50
nop
mov rcx, rax
call fcn.1400360e0
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 0x140088114
cmp eax, 0xffffffff
je 0x140088122
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140088122
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140088600
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rdx
mov rbx, rcx
xor bpl, bpl
xor esi, esi
call fcn.1400816d0
test al, al
je 0x14008869b
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.1400812c0
nop
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
movzx ecx, word [rdx + rcx]
call fcn.1400357f0
lea ecx, [rax - 0x41]
mov ebx, 1
shl ebx, cl
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14008867b
cmp eax, 0xffffffff
je 0x140088689
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x140088689
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
and ebx, esi
setne bpl
neg ebx
sbb esi, esi
and esi, 0x14
jmp 0x14008877c
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140081990
nop
mov dword [rsp + 0x30], 7
lea rax, [0x1401b2110]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140035030
test al, al
je 0x14008874d
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov r9d, ebx
lea r8d, [rbx + 6]
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x70]
call fcn.140031860
mov r8d, eax
test eax, eax
jle 0x140088737
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
inc r8d
mov r9d, ebx
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x70]
call fcn.140031860
test eax, eax
jle 0x140088737
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 4]
dec edx
cmp eax, edx
jne 0x140088752
lea rcx, [rsp + 0x70]
call fcn.140088a50
test al, al
je 0x14008874d
mov esi, 0x10
movzx ebp, bl
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x14008876e
cmp eax, 0xffffffff
je 0x14008877c
or eax, 0xffffffff
lock xadd dword [rcx], eax
sub eax, 1
jne 0x14008877c
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test bpl, bpl
je 0x1400887a5
mov dword [rdi + 0x10], esi
test sil, 0x10
mov ecx, 0x20000
mov eax, 0x40000
cmovne ecx, eax
or dword [rdi + 4], ecx
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
movzx eax, bpl
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008e490
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 + 0x9c], 1
je 0x140082a82
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 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 0x14008e490
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rax, qword [rcx + 0x70]
test rax, rax
jne 0x14008e5c4
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14008e5bf
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14008e62c
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401b2c80]
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0xa8]
cmp rdi, 0x2000000
cmovge rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008e555
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14008e5b7
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x14008e5b7
jmp 0x14008e500
test rbx, rbx
jne 0x14008e5b7
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400426a0
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14008e5a0
cmp eax, 0xffffffff
je 0x14008e62c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008e62c
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
or rax, 0xffffffffffffffff
jmp 0x14008e640
mov rax, rbx
jmp 0x14008e640
test rax, rax
je 0x14008e632
call fcn.14008e210
test al, al
je 0x14008e632
mov rcx, qword [rsi + 0x70]
call fcn.14010f554
test eax, eax
je 0x14008e632
call fcn.140108e74
mov edx, dword [rax]
lea rcx, [rsp + 0x38]
call fcn.1400426a0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14008e61e
cmp eax, 0xffffffff
je 0x14008e62c
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008e62c
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
or rax, 0xffffffffffffffff
jmp 0x14008e640
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140082aa0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008e840
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
cmp dword [rbx + 0x9c], 2
je 0x140083262
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 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 0x14008e840
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x70], 0
jne 0x14008e952
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14008e952
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14008e947
mov edi, ebp
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401b2c88]
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
cmp edi, 0x2000000
cmovae rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008e8ed
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14008e94d
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jge 0x14008e94d
jmp 0x14008e8a0
test rbx, rbx
jne 0x14008e94d
or edx, 0xffffffff
lea rcx, [rsp + 0x98]
call fcn.1400426a0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx]
test eax, eax
je 0x14008e939
cmp eax, 0xffffffff
je 0x14008e947
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008e947
mov rcx, qword [rsp + 0x98]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
or rax, 0xffffffffffffffff
jmp 0x14008e957
mov rax, rbx
jmp 0x14008e957
call fcn.140083280
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008eb50
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140082380
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.QFSFileEngine.virtual_96
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rsi, rcx
mov rdi, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400810c0
nop
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140081990
mov rbx, rax
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x70]
call fcn.140081990
mov rdi, rax
mov rcx, rbx
call fcn.1400360e0
mov rbx, rax
mov rcx, rdi
call fcn.1400360e0
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14008ebe4
cmp eax, ebx
je 0x14008ebf3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008ebf3
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x14008ec19
cmp eax, 0xffffffff
je 0x14008ec28
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008ec28
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14008ec48
cmp eax, 0xffffffff
je 0x14008ec56
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008ec56
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14008ec76
cmp eax, 0xffffffff
je 0x14008ec84
mov eax, ebx
lock xadd dword [rcx], eax
sub eax, 1
jne 0x14008ec84
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
test dil, dil
jne 0x14008ecf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], 2
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x88]
call fcn.1400bcf40
nop
mov r8, rax
mov edx, 0xa
mov rcx, rsi
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14008ece3
cmp eax, 0xffffffff
je 0x14008ecf1
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14008ecf1
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
movzx eax, dil
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008ee50
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rcx + 8]
mov rsi, qword [rax + 0x78]
cmp rsi, 0xffffffffffffffff
jne 0x14008efd3
cmp dword [rax + 0x98], esi
jne 0x14008efa7
cmp qword [rax + 0x70], 0
jne 0x14008efa7
lea rsi, [rax + 0x20]
mov rcx, rsi
call fcn.140081740
test al, al
jne 0x14008f020
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.1400812c0
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14002ab40
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or esi, 0xffffffff
test eax, eax
je 0x14008eef5
cmp eax, esi
je 0x14008ef03
mov eax, esi
lock xadd dword [rcx], eax
mov rbx, qword [rsp + 0x78]
cmp eax, 1
jne 0x14008ef03
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov dword [rsp + 0x70], 3
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.14002b660
test al, al
je 0x14008ef9b
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14002c240
movzx ebx, al
test al, al
jne 0x14008ef89
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.14004e0c0
nop
mov r8, rax
mov edx, 0xc
mov rcx, rdi
call fcn.140080fa0
nop
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x14008ef7a
cmp eax, 0xffffffff
je 0x14008ef89
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14008ef89
mov rcx, qword [rsp + 0x88]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
nop
lea rcx, [rsp + 0x28]
call fcn.14002ac10
movzx eax, bl
jmp 0x14008f022
lea rcx, [rsp + 0x28]
call fcn.14002ac10
jmp 0x14008f020
cmp rsi, 0xffffffffffffffff
jne 0x14008efd3
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14008efbf
call fcn.140111a00
mov ecx, eax
jmp 0x14008efc5
mov ecx, dword [rax + 0x98]
call fcn.140111884
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008f020
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov rbp, rax
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [r8 + 0x38]
test al, al
je 0x14008f014
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14008f014
mov rax, qword [rdi]
cmp rbp, rbx
cmovl rbx, rbp
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x38]
mov al, 1
jmp 0x14008f022
mov rax, qword [rdi]
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x38]
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140097910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x14009799d
mov dword [rsp + 0x260], eax
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x260]
cmp edi, dword [rsp + 0x30]
cmovge rcx, rax
mov r8d, dword [rcx]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140087650
mov edx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
mov r8d, edi
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140004300
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1400979c2
call fcn.140108da8
mov rax, rbx
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1400b3b70
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x141949208]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 0xf]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x28]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400b3c06
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140004300
nop
mov rdx, rax
mov rcx, rbx
call fcn.14006f120
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400b3bf6
cmp eax, edi
je 0x1400b3c10
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400b3c10
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
jmp 0x1400b3c10
mov dword [rbx + 8], 0x80000000
mov qword [rbx], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140103500
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret