joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014b3c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400133ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400133ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140014c8c
cmp rax, 0xffffffffffffffff
je 0x140014c8c
xor edi, edi
test rbp, rbp
jle 0x140014c37
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000b36c
mov rbx, rax
test rax, rax
jne 0x140014bc4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140014c2d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400077b4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14000f36c
cmp eax, 0xffffffff
je 0x140014c0d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140014bd4
mov edx, r15d
mov ecx, r14d
call fcn.1400077b4
jmp 0x140014c2d
cmp byte [rsi + 0x38], dil
je 0x140014c24
cmp dword [rsi + 0x34], 5
jne 0x140014c24
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140014c2d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000813c
jmp 0x140014ca0
jns 0x140014ca0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400133ec
cmp rax, 0xffffffffffffffff
jne 0x140014c58
cmp byte [rsi + 0x30], dil
je 0x140014ca0
mov edi, dword [rsi + 0x2c]
jmp 0x140014ca0
mov ecx, r14d
call fcn.14000d528
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140014ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140014ca0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140014c99
mov eax, dword [rsi + 0x2c]
jmp 0x140014c9e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400133ec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400159f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400032c0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
movups xmm0, xmmword [rcx]
xorps xmm4, xmm4
lea rax, [r8 + 0x10]
cmp edx, 0x100
je 0x140003490
cmp edx, 0xc0
je 0x1400033f0
cmp edx, 0x80
jne 0x140003560
mov edx, 9
movdqa xmm5, xmmword [0x140154190]
mov r10d, 8
movdqa xmm4, xmmword [0x1401541b0]
movdqa xmm2, xmm0
movdqu xmmword [r8], xmm0
jmp 0x140003320
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
lea rax, [rax + 0x10]
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqa xmm2, xmm0
dec r10d
jne 0x140003320
movdqa xmm4, xmmword [str.eeee]
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
movdqa xmm2, xmm0
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
mov dword [rax + 0x60], edx
xor eax, eax
jmp 0x140003567
movq xmm2, qword [rcx + 0x10]
mov edx, 0xb
movdqa xmm5, xmmword [0x1401541a0]
movdqa xmm4, xmmword [0x1401541b0]
mov r10d, 8
movdqu xmmword [r8], xmm0
jmp 0x140003420
movq qword [rax], xmm2
movdqa xmm1, xmm2
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
pslld xmm4, 1
lea rax, [rax + 0x18]
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pshufd xmm3, xmm0, 0xff
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pxor xmm0, xmm2
pxor xmm2, xmm3
movdqu xmmword [rax - 0x10], xmm0
dec r10d
jne 0x140003420
mov dword [rax + 0x20], edx
xor eax, eax
jmp 0x140003567
movups xmm2, xmmword [rcx + 0x10]
mov edx, 0xd
lea rax, [rax + 0x10]
movdqa xmm5, xmmword [0x140154190]
movdqa xmm4, xmmword [0x1401541b0]
mov r10d, 7
movdqu xmmword [r8], xmm0
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x10], xmm2
jmp 0x1400034d0
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pslld xmm4, 1
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
dec r10d
je 0x140003552
pshufd xmm2, xmm0, 0xff
pxor xmm3, xmm3
aesenclast xmm2, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm1, xmm3
pxor xmm2, xmm1
movdqu xmmword [rax + 0x10], xmm2
lea rax, [rax + 0x20]
movdqa xmm1, xmm2
jmp 0x1400034d0
mov dword [rax + 0x10], edx
xor eax, eax
jmp 0x140003567
mov rax, 0xfffffffffffffffe
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
add rsp, 8
ret
Function at 0x140022d2d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
mov r9, rsp
sub rsp, 0x68
movaps xmmword [r9 - 0x28], xmm6
movaps xmmword [r9 - 0x18], xmm7
movdqa xmm0, xmmword [str.expand_32_byte_k]
movdqu xmm1, xmmword [rcx]
movdqu xmm2, xmmword [rcx + 0x10]
movdqu xmm3, xmmword [r8]
movdqa xmm6, xmmword [0x1401554c0]
movdqa xmm7, xmmword [0x1401554d0]
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
mov r8d, 0xa
jmp 0x140022de0
movdqa xmm3, xmmword [0x140155450]
movdqa xmm0, xmmword [rsp]
movdqa xmm1, xmmword [rsp + 0x10]
movdqa xmm2, xmmword [rsp + 0x20]
paddd xmm3, xmmword [rsp + 0x30]
mov r8d, 0xa
movdqa xmmword [rsp + 0x30], xmm3
jmp 0x140022de0
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm6
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x14
pslld xmm4, 0xc
por xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm7
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x19
pslld xmm4, 7
por xmm1, xmm4
pshufd xmm2, xmm2, 0x4e
pshufd xmm1, xmm1, 0x39
pshufd xmm3, xmm3, 0x93
nop
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm6
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x14
pslld xmm4, 0xc
por xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm7
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x19
pslld xmm4, 7
por xmm1, xmm4
pshufd xmm2, xmm2, 0x4e
pshufd xmm1, xmm1, 0x93
pshufd xmm3, xmm3, 0x39
dec r8
jne 0x140022de0
paddd xmm0, xmmword [rsp]
paddd xmm1, xmmword [rsp + 0x10]
paddd xmm2, xmmword [rsp + 0x20]
paddd xmm3, xmmword [rsp + 0x30]
cmp rdx, 0x40
jb 0x140022f20
movdqu xmm4, xmmword [rsi]
movdqu xmm5, xmmword [rsi + 0x10]
pxor xmm0, xmm4
movdqu xmm4, xmmword [rsi + 0x20]
pxor xmm1, xmm5
movdqu xmm5, xmmword [rsi + 0x30]
lea rsi, [rsi + 0x40]
pxor xmm2, xmm4
pxor xmm3, xmm5
movdqu xmmword [rdi], xmm0
movdqu xmmword [rdi + 0x10], xmm1
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmmword [rdi + 0x30], xmm3
lea rdi, [rdi + 0x40]
sub rdx, 0x40
jne 0x140022da0
jmp 0x140022f58
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
xor r8, r8
movzx eax, byte [rsi + r8]
movzx ecx, byte [rsp + r8]
lea r8, [r8 + 1]
xor eax, ecx
mov byte [rdi + r8 - 1], al
dec rdx
jne 0x140022f3a
movaps xmm6, xmmword [r9 - 0x28]
movaps xmm7, xmmword [r9 - 0x18]
lea rsp, [r9]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x140036dd0
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 0x140036e17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036e31
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140036e0f
mov qword [rsi], rdi
call fcn.14008b200
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 0x140036e47
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008b200
mov rcx, qword [rsi]
call fcn.1400866e0
mov qword [rsi], 0
jmp 0x140036dfd
int3

Function at 0x140036e80
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 0x140036eaa
call fcn.14008b200
cmp qword [rsi], r14
je 0x140036ed9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036f14
cmp r15, 2
jb 0x140036ed1
mov qword [rsi], r14
call fcn.14008b200
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 0x140036efe
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14008b200
mov rcx, qword [rdi]
call fcn.1400866e0
mov qword [rdi], 0
jmp 0x140036eef
call fcn.14008b200
mov rcx, qword [rsi]
call fcn.1400866e0
mov qword [rsi], 0
jmp 0x140036ec3
Function at 0x1400371a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400371e6
mov r15, rbx
test r15, r15
je 0x1400372c2
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140037242
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140037231
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400e6940
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400371c2
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400372de
lea rcx, [r13*8]
call fcn.1400b5178
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x1400372a4
lea r15, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x1400372c2
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x14003728c
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x1400372c4
add rbx, 0xfffffffffffffff8
jne 0x1400372b7
ud2
test r12, r12
je 0x1400371c2
mov rcx, r12
call fcn.1400b51b4
mov r15, qword [rsi + 0x10]
jmp 0x1400371c2
call fcn.1400e7a60
int3
Function at 0x140037e50
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14015feb0]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x99
call fcn.14008b1e0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140091510
test esi, esi
js 0x140037f60
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1400917b0
test al, al
jne 0x140037f67
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140091830
lea rcx, [rsp + 0x50]
call fcn.1400915a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140037f4f
call fcn.1400b64a0
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140037f2b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14010d190
jmp 0x140037ef0

Function at 0x140037f90
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14015feb0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xaf
call fcn.14008b1e0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140091510
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.1400917b0
test al, al
jne 0x140038076
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140091830
lea rcx, [rsp + 0x50]
call fcn.1400915a0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038066
call fcn.1400b64a0
int3
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.14010d190
jmp 0x140038019
Function at 0x140038090
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14015feb0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xbc
call fcn.14008b1e0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140091510
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.1400917b0
test al, al
jne 0x1400381c2
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003817f
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003817f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400381be
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140091830
lea rcx, [rsp + 0x50]
call fcn.1400915a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x1400381ad
call fcn.1400b64a0
int3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14003817f
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.14010d190
jmp 0x140038122
Function at 0x1400382f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14015feb0]
lea r14, [rsp + 0x60]
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, 0x174
call fcn.14008b1e0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140091510
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 0x140038565
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 0x14003853a
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 0x140038453
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 0x1400384ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003854c
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400384a2
mov qword [rsi], r14
call fcn.14008b200
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14003850d
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14003851f
test bl, 0xa
je 0x1400384d3
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x140038530
lea rcx, [rsp + 0x60]
call fcn.1400915a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x1400384fd
call fcn.1400b64a0
int3
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400381e0
mov dword [rsi + 0x24], eax
jmp 0x1400384d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400384d3
mov rcx, rdi
call fcn.140039ab0
jmp 0x1400384d9
bt ebx, 0x15
jb 0x140038581
or r8d, 0x20000000
jmp 0x1400383d1
call fcn.14008b200
mov rcx, qword [rsi]
call fcn.1400866e0
mov qword [rsi], 0
jmp 0x14003848e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.14010c680
jmp 0x1400384d9
int3
Function at 0x140038980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14015feb0]
lea rsi, [rsp + 0x40]
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, 0x20e
call fcn.14008b1e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140091510
cmp byte [rdi + 0x17], 0
jns 0x1400389f2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400915a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038a23
call fcn.1400b64a0
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14015feb0]
lea r14, [rsp + 0x60]
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, 0x217
call fcn.14008b1e0
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140091510
cmp byte [rdi + 0x17], 0
jns 0x140038ab2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038b45
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 0x140038b28
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x140038b7b
call fcn.14008b200
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 0x140038b45
call fcn.14008b200
mov rcx, r14
call fcn.1400866e0
lea rcx, [rsp + 0x60]
call fcn.1400915a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038b69
call fcn.1400b64a0
int3
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140038b20
Function at 0x140038b80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14015feb0]
lea rsi, [rsp + 0x40]
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, 0x236
call fcn.14008b1e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140091510
cmp byte [rdi + 0x17], 0
jns 0x140038bf2
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.1400915a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038c2e
call fcn.1400b64a0
int3
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140038c40
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e6fe0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140038cdf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400d1ba8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14008b270
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14003e840
mov rcx, rsi
mov rdx, r14
call fcn.14003d700
mov rcx, r14
call fcn.14008b3b0
mov rcx, rbx
call fcn.14008b3b0
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038d02
call fcn.1400b64a0
int3
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140038d10
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e6fe0
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 0x140038daf
cmp word [rsp + 0x70], 0
je 0x140038daf
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400d1ba8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14008b270
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140038da1
call fcn.1400b64a0
int3
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14015feb0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14008b210
mov rcx, rdi
call fcn.140038c40
test al, al
jne 0x140038e01
lea rax, [0x140166938]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14008b270
jmp 0x140038e0e
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003d6e0
lea rcx, [rsp + 0x40]
call fcn.14008b3b0
jmp 0x140038d87