joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009bfa0
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14009c06e
mov r14d, r8d
mov rdi, rdx
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], r15
xor eax, eax
mov qword [rsp + 0x40], rax
mov r12d, dword [rsi + 8]
mov r9d, r12d
or r9d, 0x10001
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009c04e
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
and r12d, 0x300
mov dword [rsp + 0x38], r12d
test r14b, r14b
je 0x14009c075
test rbx, rbx
je 0x14009c03f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.14009c0d0
mov ebp, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140152880
mov eax, ebp
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebp, 6
jmp 0x14009c050
lea rdi, [rsp + 0x48]
mov qword [rdi], r15
mov dword [rdi + 8], 0xaaaaaaaa
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.14009c270
cmp byte [rdi], 0
je 0x14009c0a1
mov ebp, dword [rsp + 0x4c]
test rbx, rbx
je 0x14009c050
jmp 0x14009c0bc
mov r8d, dword [rsi + 8]
lea rdx, [0x140209734]
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
jmp 0x14009c09a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14009c050
Function at 0x14009c0d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x48], r14
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x58]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009c1b0
lea rbx, [rsp + 0x58]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x40]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
mov qword [rbx], r14
mov dword [rbx + 8], 0xaaaaaaaa
mov rdx, rbx
call fcn.14009c270
cmp byte [rbx], 0
jne 0x14009c1b8
lea rdx, [0x140209734]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x14009c1be
test rdi, rdi
je 0x14009c18d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140152880
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp eax, 2
cmovne ebx, eax
jmp 0x14009c18d
mov ebx, dword [rsp + 0x5c]
jmp 0x14009c17f
mov ecx, 0x200
call fcn.140151cbc
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.140155860
xorps xmm6, xmm6
lea rbx, [rsp + 0x58]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x58], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x14009c234
mov eax, dword [rsp + 0x58]
cmp rax, 0x100
jae 0x14009c262
cmp word [r14 + rax*2], 0
jne 0x14009c265
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.14009c0d0
test eax, eax
je 0x14009c1ea
lea rdx, [0x140209734]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x14009c17f
mov rcx, r14
call fcn.140151cc4
jmp 0x14009c17f
int3
int3
Function at 0x14009c270
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x14009c2d1
mov byte [rsi], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140152880
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x14009c31f
cmp dword [rsp + 0x3c], 6
jne 0x14009c2b7
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x14009c327
mov edi, eax
mov eax, dword [0x14024a840]
mov ecx, dword [0x14023c288]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009c33a
mov rax, qword [0x14024a838]
test rax, rax
je 0x14009c333
mov ecx, edi
call qword [0x14025e008]
mov byte [rsi], 1
mov dword [rsi + 4], eax
jmp 0x14009c2ba
mov byte [rsi], 1
mov dword [rsi + 4], 0
jmp 0x14009c2ba
mov eax, 5
jmp 0x14009c31f
lea rcx, [0x14024a840]
call fcn.140151da0
cmp dword [0x14024a840], 0xffffffff
jne 0x14009c30b
lea rcx, [0x1402123e6]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14024a838], rax
lea rcx, [0x14024a840]
call fcn.140151e38
jmp 0x14009c30b

Function at 0x14009c3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c428
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14009c412
cmp dword [rsp + 0x38], 4
jne 0x14009c412
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140152880
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14009c412
Function at 0x14009c430
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140152820
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140155860
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c4f3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14009c4f7
lea rcx, [rsp + 0x840]
call fcn.14017acc4
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140095870
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140152880
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14009c4d4
cmp eax, 2
jne 0x14009c54c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140155860
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14009c553
lea rcx, [rsp + 0x40]
call fcn.14017acc4
lea rdx, [rsp + 0x40]
jmp 0x14009c4c7
mov edi, 0x3f4
jmp 0x14009c4d4
mov edi, 0xea
jmp 0x14009c4d4

Function at 0x14009c560
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14017acc4
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14009d660
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, SafeArrayCopy
call fcn.140151c20
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14022cec8]
je 0x14009d72e
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14009db30]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14009d743
test r14, r14
je 0x14009d738
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140152880
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400e9ff0
jmp 0x14009d6c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009d708
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14009d75c
mov ebp, eax
cmp eax, 0x5af
je 0x14009d75c
cmp ebp, 0xe
jne 0x14009d787
mov rcx, rbx
call fcn.140195020
test rsi, rsi
je 0x14009d708
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14022cec8]
jne 0x14009d77d
call fcn.1400ea140
mov rcx, rsi
call fcn.140151c70
jmp 0x14009d708
mov eax, dword [0x14024a8e0]
mov ecx, dword [0x14023c288]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009d80a
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400a9f70
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x14009d7c7
and r8d, 0x7f
jmp 0x14009d7d1
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.1400e2390
mov rcx, qword [0x14024a8d8]
mov rdx, r14
call fcn.1400bad30
cmp byte [rsp + 0x4f], 0
jns 0x14009d764
mov rcx, qword [rsp + 0x38]
call fcn.140151c70
jmp 0x14009d764
lea rcx, [0x14024a8e0]
call fcn.140151da0
cmp dword [0x14024a8e0], 0xffffffff
jne 0x14009d7a8
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400bad00
mov qword [0x14024a8d8], rax
lea rcx, [0x14024a8e0]
call fcn.140151e38
jmp 0x14009d7a8

Function at 0x14009f7e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14009f827
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14009f841
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14009f81f
mov qword [rsi], rdi
call fcn.14011f3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14009f857
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14011f3f0
mov rcx, qword [rsi]
call fcn.140107f20
mov qword [rsi], 0
jmp 0x14009f80d
int3
Function at 0x14009f860
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14009f88a
call fcn.14011f3f0
mov qword [rsi], 0
test r14, r14
je 0x14009f8c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14009f8fb
cmp r15, 2
jb 0x14009f8b8
mov qword [rsi], r14
call fcn.14011f3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14009f8e5
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011f3f0
mov rcx, qword [rdi]
call fcn.140107f20
mov qword [rdi], 0
jmp 0x14009f8d6
call fcn.14011f3f0
mov rcx, qword [rsi]
call fcn.140107f20
mov qword [rsi], 0
jmp 0x14009f8aa

Function at 0x14009f950
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14009f97a
call fcn.14011f3f0
cmp qword [rsi], r14
je 0x14009f9a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14009f9e4
cmp r15, 2
jb 0x14009f9a1
mov qword [rsi], r14
call fcn.14011f3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14009f9ce
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011f3f0
mov rcx, qword [rdi]
call fcn.140107f20
mov qword [rdi], 0
jmp 0x14009f9bf
call fcn.14011f3f0
mov rcx, qword [rsi]
call fcn.140107f20
mov qword [rsi], 0
jmp 0x14009f993
Function at 0x1400a1280
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400bca50
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1402002d8]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400a12f5
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400a1300
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400a12ed
mov qword [rsi + 0x18], rdi
call fcn.14011f3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14011f3f0
mov rcx, qword [rsi + 0x18]
call fcn.140107f20
mov qword [rsi + 0x18], 0
jmp 0x1400a12da
Function at 0x1400a1870
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.14011f3d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401119e0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x1400a1aea
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x1400a1abf
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400a19e1
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x1400a1a3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400a1ad1
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400a1a30
mov qword [rsi], r14
call fcn.14011f3f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400a1aa3
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x1400a1a92
test bl, 0xa
je 0x1400a1a61
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x1400a1ab5
lea rcx, [rsp + 0x60]
call fcn.140111c50
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140152880
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400a1a61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a1770
mov dword [rsi + 0x24], eax
jmp 0x1400a1a67
mov rcx, rdi
call fcn.1400a2f90
jmp 0x1400a1a67
bt ebx, 0x15
jb 0x1400a1b06
or r8d, 0x20000000
jmp 0x1400a195f
call fcn.14011f3f0
mov rcx, qword [rsi]
call fcn.140107f20
mov qword [rsi], 0
jmp 0x1400a1a1c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1401d1030
jmp 0x1400a1a67
int3
Function at 0x1400a1ee0
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x450]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x1402128f1]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x240]
mov rcx, r15
mov r9d, 0x1d6
call fcn.14011f3d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401119e0
lea r14, [rsp + 0x240]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140155860
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400a1f90
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.140116ae0
mov rcx, r14
call fcn.1400e1310
lea r14, [rsp + 0x30]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140155860
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400a1fc7
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.140116ae0
mov rcx, r14
call fcn.1400e1310
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400a1fe9
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400a1ff5
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x1400a207b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a1770
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400a2028
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400a2031
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x1400a204c
test eax, eax
je 0x1400a2080
lea rcx, [rsp + 0x450]
call fcn.140111c50
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140152880
mov eax, edi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x1400a204c
cmp ebp, 0xfffffffc
jne 0x1400a208c
call fcn.1401cb000
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1400a204c

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x209
call fcn.14011f3d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401119e0
cmp byte [rdi + 0x17], 0
jns 0x1400a2120
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140111c50
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140152880
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a2160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x212
call fcn.14011f3d0
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401119e0
cmp byte [rdi + 0x17], 0
jns 0x1400a21f0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a2283
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x1400a2266
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x1400a22af
call fcn.14011f3f0
mov r14, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400a2283
call fcn.14011f3f0
mov rcx, r14
call fcn.140107f20
lea rcx, [rsp + 0x60]
call fcn.140111c50
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140152880
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x1400a225e

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1401fd270]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x231
call fcn.14011f3d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401119e0
cmp byte [rdi + 0x17], 0
jns 0x1400a2340
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.140111c50
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140152880
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret