joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f980
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140b64a50]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000af0c
xor ebx, ebx
cmp qword [0x140b69068], rbx
mov rdi, rax
jne 0x14000fa93
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000fb6a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000fb6a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140b69068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140b69070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140b69078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140b69088], rax
test rax, rax
je 0x14000fa8a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140b69080], rax
jmp 0x14000fa9a
mov rax, qword [0x140b69080]
jmp 0x14000faa1
mov rax, qword [0x140b69080]
mov r11, qword [0x140b69088]
cmp rax, rdi
je 0x14000fb08
cmp r11, rdi
je 0x14000fb08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140b69088]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000fb08
test rax, rax
je 0x14000fb08
call rsi
test rax, rax
je 0x14000fb02
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000fb02
test byte [rsp + 0x40], 1
jne 0x14000fb08
bts ebp, 0x15
jmp 0x14000fb48
mov rcx, qword [0x140b69070]
cmp rcx, rdi
je 0x14000fb48
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000fb48
call rax
mov rbx, rax
test rax, rax
je 0x14000fb48
mov rcx, qword [0x140b69078]
cmp rcx, rdi
je 0x14000fb48
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000fb48
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140b69068]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000fb6a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000fb6c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005c30
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140018600
Capabilities:
Encode data using xor

Disassembly:
xor r10, r10
xor r11, r11
xor r12, r12
cmp r8, 0xd
jne 0x1400186ae
mov r10, qword [rcx]
mov r11, qword [rcx + 5]
shr r11, 0x18
mov r12d, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
ret
cmp r8, 0x10
jb 0x140018759
add r10, qword [rcx]
adc r11, qword [rcx + 8]
adc r12, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
lea rcx, [rcx + 0x10]
sub r8, 0x10
jmp 0x1400186ae
cmp r8, 0
je 0x14001881f
xor r13, r13
xor r14, r14
xor r15, r15
add rcx, r8
shld r14, r13, 8
shl r13, 8
movzx r15, byte [rcx - 1]
xor r13, r15
dec rcx
dec r8
jne 0x14001876f
add r10, r13
adc r11, r14
adc r12, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
ret
Function at 0x140022da0
Capabilities:
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 [0x14013f4c0]
movdqa xmm7, xmmword [0x14013f4d0]
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
mov r8d, 0xa
jmp 0x140022e60
movdqa xmm3, xmmword [0x14013f450]
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 0x140022e60
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 0x140022e60
paddd xmm0, xmmword [rsp]
paddd xmm1, xmmword [rsp + 0x10]
paddd xmm2, xmmword [rsp + 0x20]
paddd xmm3, xmmword [rsp + 0x30]
cmp rdx, 0x40
jb 0x140022fa0
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 0x140022e20
jmp 0x140022fd8
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 0x140022fba
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 0x140022dad
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 [0x14013f4c0]
movdqa xmm7, xmmword [0x14013f4d0]
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
mov r8d, 0xa
jmp 0x140022e60
movdqa xmm3, xmmword [0x14013f450]
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 0x140022e60
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 0x140022e60
paddd xmm0, xmmword [rsp]
paddd xmm1, xmmword [rsp + 0x10]
paddd xmm2, xmmword [rsp + 0x20]
paddd xmm3, xmmword [rsp + 0x30]
cmp rdx, 0x40
jb 0x140022fa0
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 0x140022e20
jmp 0x140022fd8
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 0x140022fba
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 0x1400365c0
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 0x140036607
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036621
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400365ff
mov qword [rsi], rdi
call fcn.14006ea70
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 0x140036637
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14006ea70
mov rcx, qword [rsi]
call fcn.14006c130
mov qword [rsi], 0
jmp 0x1400365ed
int3

Function at 0x140036670
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 0x14003669a
call fcn.14006ea70
cmp qword [rsi], r14
je 0x1400366c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400366ee
cmp r15, 2
jb 0x1400366c1
mov qword [rsi], r14
call fcn.14006ea70
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 0x140036704
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14006ea70
mov rcx, qword [rsi]
call fcn.14006c130
mov qword [rsi], 0
jmp 0x1400366b3
mov rcx, rdi
call fcn.14006c380
jmp 0x1400366df
Function at 0x140036980
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 0x1400369c6
mov r15, rbx
test r15, r15
je 0x140036aa1
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 0x140036a22
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 0x140036a11
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400b6b20
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400369a2
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 0x140036abd
lea rcx, [r13*8]
call fcn.140083794
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140036a83
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x140036aa1
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x140036a68
add r15, rcx
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 0x140036aa3
add rbx, 0xfffffffffffffff8
jne 0x140036a96
ud2
test r12, r12
je 0x1400369a2
mov rcx, r12
call fcn.1400837d0
mov r15, qword [rsi + 0x10]
jmp 0x1400369a2
call fcn.1400b81d0
int3

Function at 0x140036dd0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14014c6c0]
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, 0xac
call fcn.14006ea50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400428c0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140042ab0
test al, al
jne 0x140036eac
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.140042b30
lea rcx, [rsp + 0x50]
call fcn.140042940
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140084ac0
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.1400e3040
jmp 0x140036e59
Function at 0x140036fd0
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 [0x140175040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14014c6c0]
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, 0x171
call fcn.14006ea50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400428c0
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 0x140037241
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 0x14003720b
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 0x140037133
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 0x140037189
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400371e0
mov rax, r14
inc rax
cmp rax, 2
jb 0x14003717e
mov qword [rsi], r14
call fcn.14006ea70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400371f9
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14003722d
test bl, 0xa
jne 0x14003721d
bt ebx, 0x15
jb 0x140037223
lea rcx, [rsp + 0x60]
call fcn.140042940
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140084ac0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14006ea70
mov rcx, qword [rsi]
call fcn.14006c130
mov qword [rsi], 0
jmp 0x14003716a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140036ed0
mov dword [rsi + 0x24], eax
jmp 0x1400371b5
bt ebx, 0x15
jb 0x14003725d
or r8d, 0x20000000
jmp 0x1400370b1
mov byte [rsi + 0x28], 1
jmp 0x1400371af
mov rcx, rdi
call fcn.1400d63f0
jmp 0x1400371b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400371af
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400e23f0
jmp 0x1400371b5
int3
Function at 0x140037270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14014c6c0]
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, 0x20d
call fcn.14006ea50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400428c0
cmp byte [rdi + 0x17], 0
jns 0x1400372e2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140042940
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140037320
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm6, xmmword [0x14014c6c0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x2f6
call fcn.14006ea50
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400428c0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400373a3
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140037403
mov bl, 1
test al, 0x10
je 0x1400373e9
lea rcx, [rsp + 0x40]
call fcn.140042940
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
test rsi, rsi
je 0x1400373f4
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400373b7
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.140039f10
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x140037439
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x140037510
sete dl
test rcx, rcx
setne r8b
or r8b, dl
je 0x140037510
movsx rdx, byte [rsp + 0x37]
test rdx, rdx
cmovs rdx, qword [rsp + 0x28]
cmovs r14, qword [rsp + 0x20]
test rdx, rdx
js 0x140037510
sete r8b
test r14, r14
setne r9b
or r9b, r8b
je 0x140037510
cmp rdx, rax
jne 0x1400374d1
test rax, rax
je 0x1400374a7
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x1400374d1
inc rdx
cmp rax, rdx
jne 0x140037493
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x1400374b8
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140039e60
jmp 0x1400373b7
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140037320
test al, al
je 0x1400374c0
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400374c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x140037512
test rsi, rsi
je 0x1400374b8
mov ecx, ebp
call fcn.140036ed0
jmp 0x1400374b6
ud2
mov rcx, rdi
call fcn.1400d5990
test al, al
jne 0x1400374c2
jmp 0x140037502
Function at 0x140039340
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140175040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140039500
mov eax, dword [rsi]
mov dword [0x140177044], eax
mov bl, 1
test al, 1
jne 0x140039387
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140084ac0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x140186418]
test rcx, rcx
je 0x1400393b5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140186418], 0
cmp qword [0x140186420], 0
jne 0x1400393b5
and byte [0x140177044], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x1400393de
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x1400393cc
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140039457
mov qword [0x140186418], rax
jmp 0x14003936e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x1400393ec
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400394a6
lea rdi, [rsi + 8]
mov rcx, qword [0x140186420]
test rcx, rcx
jne 0x140039427
mov ecx, 0x18
call fcn.140083794
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140186420], rax
mov rdx, rdi
call fcn.14002f6c0
cmp dword [rsi + 0x24], 0
jne 0x14003944b
mov rcx, qword [0x140186420]
cmp byte [rcx + 0x17], 0
jns 0x140039445
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400d7e70
mov ebx, eax
jmp 0x14003936e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.14006ea50
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400e20b0
mov rcx, r14
call fcn.1400e22c0
mov rax, qword [rsi + 0x28]
jmp 0x1400393d5
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.14006ea50
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400e20b0
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400d7e40
mov rcx, rbx
call fcn.1400e22c0
jmp 0x1400393f5

Function at 0x14003ac30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140036c90
mov qword [rsi], 0
test rax, rax
je 0x14003ac83
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003acb7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003ac7b
mov qword [rsi], rbx
call fcn.14006ea70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140039e20
lea rcx, [rsi + 0x20]
call fcn.140042ad0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14006ea70
mov rcx, qword [rsi]
call fcn.14006c130
mov qword [rsi], 0
jmp 0x14003ac69