joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058130
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140058204
mov ebx, eax
mov edx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x140270690]
movaps xmmword [r14], xmm0
mov rcx, r14
xor r8d, r8d
call fcn.140058240
cmp byte [r14 + 0x17], 0
jns 0x14005819d
mov r14, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140058214
mov edx, eax
movzx eax, byte [rsp + 0x37]
test al, al
jns 0x1400581c2
mov rcx, qword [rsp + 0x28]
jmp 0x1400581c7
mov ecx, eax
and ecx, 0x7f
cmp rcx, rdx
jbe 0x140058218
lea rdi, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.14014b240
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400581ea
mov al, byte [rsp + 0x37]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
test al, al
jns 0x1400581ea
mov rcx, qword [rsp + 0x20]
call fcn.14017b254
jmp 0x1400581ea
Function at 0x140058920
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140058948
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005897b
test al, 0x10
jne 0x140058a13
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140074550
xor edi, edi
jmp 0x140058a2c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov r9d, eax
and r9d, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
cmovs r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x1400589c7
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x1400589c1
cmp ecx, 0x2f
jne 0x1400589a8
cmp r9, 0xfffffffffffffffe
jne 0x140058a46
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140058a00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140058a86
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140074550
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140058a2c
mov rcx, qword [rsp + 0x40]
call fcn.14017b254
jmp 0x140058a2c
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140074550
mov dil, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14017e7b0
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400239e0
mov rcx, rbx
call fcn.140058920
test al, al
jne 0x1400589c7
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140074550
jmp 0x1400589fe
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1401bc8c0
cmp byte [r14 + 0x17], 0
jns 0x140058aa2
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x140058acd
mov rcx, qword [rsp + 0x28]
call fcn.14017b254
test bpl, bpl
je 0x1400589ec
jmp 0x140058a00
Function at 0x14005c470
Capabilities:
Clear file content

Disassembly:
push rsi
sub rsp, 0x180
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x178], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x170]
mov qword [r8], rax
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005c4eb
cmp qword [rsp + 0x170], 0
jne 0x14005c586
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14005c535
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x180
pop rsi
ret
cmp dword [0x1402a0cb8], 2
jg 0x14005c586
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xf1
mov r9d, 2
call fcn.1401dfc50
lea rcx, [rsp + 0x40]
lea rdx, [0x1402870c5]
mov r8d, 0x10
jmp 0x14005c579
cmp dword [0x1402a0cb8], 2
jg 0x14005c586
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1401dfc50
lea rcx, [rsp + 0x40]
lea rdx, [0x1402870d6]
mov r8d, 0xc
call fcn.1401b98e0
mov rcx, rsi
call fcn.1401dfcd0
xor esi, esi
jmp 0x14005c4d0

Function at 0x14005c650
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x298
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rbx, [rsp + 0x80]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1401808d0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x14005c754
lea r14, [rsp + 0x28]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14017bd98
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, r14
call fcn.14014b0f0
movaps xmm0, xmmword [0x140270690]
lea r14, [rsp + 0x50]
movaps xmmword [r14], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14 + 0x10], rax
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
cmovs rcx, qword [rbx + 8]
mov qword [rdx + 8], rcx
mov rcx, r14
call fcn.14014b0f0
mov rcx, r14
call fcn.14014afe0
cmp byte [rsi + 0x17], 0
js 0x14005c77c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x67], 0
mov word [rsp + 0x50], 0
cmp byte [rsp + 0x4f], 0
jns 0x14005c754
mov rcx, qword [rsp + 0x38]
call fcn.14017b254
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14017e7b0
mov eax, ebx
add rsp, 0x298
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14017b254
jmp 0x14005c726
Function at 0x14005d150
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov sil, 1
test r8, r8
je 0x14005d1da
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov r12d, 0xffffffff
lea r15, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, r12
mov r8d, 0xffffffff
cmovb r8, rdi
mov dword [rsp + 0x28], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rbx
mov r9, r15
call r13
test eax, eax
je 0x14005d1ff
mov eax, dword [rsp + 0x28]
cmp rax, r12
je 0x14005d254
add rbx, rax
sub rdi, rax
jne 0x14005d197
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [0x1402a0cb8], 2
jg 0x14005d250
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8c
mov r9d, 2
call fcn.1401dfc50
lea rcx, [rsp + 0x38]
lea rdx, [0x14028713f]
mov r8d, 9
call fcn.1401b98e0
mov rcx, rsi
call fcn.1401dfcd0
xor esi, esi
jmp 0x14005d1da
int3
Function at 0x14005fee0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r15, qword [rsp + 0x120]
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x14006009a
mov edi, r9d
mov r14d, edx
mov rsi, rcx
xor ecx, ecx
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov rbx, rax
cmp qword [rsi], rax
je 0x14005ff6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140060077
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14005ff63
mov qword [rsi], rbx
call fcn.140105b90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 1
jbe 0x1400600a1
xor r12d, r12d
lea rcx, [rsp + 0x28]
mov r8d, 0x90
xor edx, edx
call fcn.1401808d0
test r14d, r14d
jne 0x140060046
mov eax, 0xff
mov edx, 0x408
mov dword [rsp + 0x50], 1
mov r12d, edx
mov r8d, eax
mov ecx, r12d
mov dword [rsp + 0x20], r8d
mov r12d, r8d
test r15, r15
je 0x14005ffd0
or ecx, 0x100
mov qword [rsp + 0x98], r15
or ecx, 0x2000
mov dword [rsp + 0x38], ecx
lea r8, [rsp + 0x28]
mov rcx, rbx
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140060090
not edi
and r12d, edi
lea r8, [rsp + 0x20]
mov dword [r8], r12d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor ebp, ebp
test eax, eax
je 0x140060090
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14017e7b0
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
dec r14d
cmp r14d, 3
ja case.default.0x140060074
mov ebp, 0xa0
mov r8d, 0xc8
mov eax, 0xd8
mov edx, 8
lea rcx, [0x1400600cc]
movsxd r9, dword [rcx + r14*4]
add r9, rcx
xor ecx, ecx
jmp r9
call fcn.140105b90
mov rcx, qword [rsi]
call fcn.1401651a0
mov qword [rsi], 0
jmp 0x14005ff4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp case.0x140060074.4
mov ebp, 0x4df
jmp case.0x140060074.4
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140062710
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.140063130
mov rax, qword [rsi]
test rax, rax
je 0x140062787
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14006278e
lea rcx, [rsp + 0x28]
call fcn.1400627f0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x140062760
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x1400627a6
add rbx, 0x70
cmp rbx, r15
je 0x140062760
jmp 0x140062795
cmp byte [rbx + 0x27], 0
jns 0x1400627b2
mov rcx, qword [rbx + 0x10]
jmp 0x1400627b6
lea rcx, [rbx + 0x10]
call r12
test al, 0x10
jne 0x14006279b
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
je 0x1400627dc
mov rcx, r14
mov rdx, rbx
call fcn.1400d87f0
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14006279b
mov rcx, rdi
mov rdx, rbx
call fcn.1400d85d0
jmp 0x14006279b
Function at 0x1400671a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rcx], 0
mov byte [rcx + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x14006729c
lea rdi, [rsi + 0x10]
lea rdx, str.ExitCodeWatcherThread
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.1401bae30
mov rcx, rdi
mov rdx, rbx
call fcn.1400672b0
cmp byte [rbx + 0x17], 0
js 0x14006729f
mov dword [rsi + 0x98], 0x103
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xa0], 0
test rax, rax
je 0x140067266
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0xa0]
inc rax
cmp rax, 2
jae 0x14006727e
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006725e
mov qword [rsi + 0xa0], rdi
call fcn.140105b90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140105b90
mov rcx, qword [rsi + 0xa0]
call fcn.1401651a0
mov qword [rsi + 0xa0], 0
jmp 0x140067248
int3
mov rcx, qword [rsp + 0x20]
call fcn.14017b254
jmp 0x140067200
Function at 0x140067760
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, r15
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x1400678f0
test dl, dl
jne 0x1400678f0
mov rdi, r9
mov r13, qword [rsi + 0x160]
mov rbp, qword [rsi + 0x168]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x1400677e1
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x1401e7f70.0]
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
jne 0x140067901
mov r12, r15
test byte [rsi + 0x178], 1
je 0x140067828
test r12, r12
je 0x140067828
lea rax, [rsi + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, r12
mov r9, r14
call fcn.140087a40
add rbx, rax
add rdi, rax
sub r12, rax
mov qword [rsp + 0x38], rbp
mov rax, qword [rsp + 0xb8]
mov r13d, dword [rsi + 0xc]
bswap r13d
cmp r12, 0xc00
jae 0x14006794c
mov rbp, r12
and rbp, 0xff0
je 0x1400678a1
mov r15, r12
shr r15, 4
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, r15
mov r9, r14
call qword [case.0x1401e7f70.0]
add r13d, r15d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
add rbx, rbp
and r12d, 0xf
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, rdi
mov r9, rbp
mov rax, qword [rsp + 0x38]
call qword [case.0x1401e7f70.0]
add rdi, rbp
test r12, r12
je 0x140067948
mov rax, qword [rsi + 0x170]
lea rdx, [rsi + 0x10]
mov rcx, rsi
mov r8, r14
call qword [case.0x1401e7f70.0]
inc r13d
bswap r13d
mov dword [rsi + 0xc], r13d
xor eax, eax
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rbx + rcx]
mov byte [rdi + rcx], dl
xor byte [rsi + rcx + 0x40], dl
inc rax
cmp r12, rax
jne 0x1400678cd
mov dword [rsi + 0x180], eax
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r15, r15
je 0x1400678e5
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rbx]
inc rbx
mov byte [rdi], dl
xor byte [rsi + rcx + 0x40], dl
inc rdi
lea r12, [r15 - 1]
inc eax
and eax, 0xf
je 0x14006792e
cmp r15, 1
mov r15, r12
jne 0x140067906
test eax, eax
jne 0x1400678e5
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x1401e7f70.0]
jmp 0x1400677f2
xor eax, eax
jmp 0x1400678e5
lea rcx, [rsi + 0x60]
mov qword [rsp + 0x40], rcx
lea rbp, [rsi + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
mov r15, rax
call qword [case.0x1401e7f70.0]
add r13d, 0xc0
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov r9d, 0xc00
mov rcx, rbp
mov rdx, qword [rsp + 0x40]
mov r8, rdi
mov rax, qword [rsp + 0x38]
call qword [case.0x1401e7f70.0]
mov rax, r15
mov ecx, 0xc00
add rdi, rcx
add rbx, rcx
add r12, 0xfffffffffffff400
cmp r12, 0xbff
jbe 0x140067849
jmp 0x140067959
Function at 0x140068530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14006858d
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [case.0x1401e7f70.0]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rax, qword [r9 + 0x30]
lea rbx, [rbp - 0x20]
mov qword [rbx], rax
mov qword [rbp - 8], rax
lock inc dword [rax + 8]
lea rdx, [0x14029ff48]
mov rcx, rbx
call fcn.140160c60
mov r14, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 8]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400685d5
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401e7f70.0]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbp - 0x10], rax
movaps xmm0, xmmword [0x140270690]
movaps xmmword [rbp - 0x20], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [case.0x1401e7f70.0]
mov al, byte [rbp - 9]
test al, al
mov rcx, qword [rbp - 0x20]
mov r14, rbx
cmovs r14, rcx
mov rdx, rbx
test al, al
cmovs rdx, rcx
js 0x14006864e
movzx eax, al
add rdx, rax
cmp r14, rdx
je 0x14006867f
test rdi, rdi
je 0x140068671
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x140068659
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x140068673
add rdx, qword [rbp - 0x18]
cmp r14, rdx
jne 0x140068630
jmp 0x140068687
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [case.0x1401e7f70.0]
cmp eax, 0xffffffff
jne 0x140068673
xor edi, edi
inc r14
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
jmp 0x14006861a
mov qword [rsi], rdi
jmp 0x14006857d
mov qword [rsi], rdi
call fcn.14017b254
jmp 0x14006857d
Function at 0x14006f880
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov r14, qword [rcx + 0x20]
mov rcx, qword [r14 + 8]
mov rdi, qword [r14 + 0x18]
lea rax, [rdi + 0x1000]
cmp rax, rcx
ja 0x14006f8f4
mov rdx, qword [r14]
add rdx, qword [r14 + 0x18]
lea rax, [rsi + 0xb0]
mov rcx, qword [rsi + 0x78]
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006f8df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14006f97b
mov byte [rsi + 0xd1], 1
lock inc dword [rsi + 8]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
test rcx, rcx
js 0x14006f900
cvtsi2ss xmm0, rcx
jmp 0x14006f915
mov rdx, rcx
shr rdx, 1
and ecx, 1
or rcx, rdx
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mulss xmm0, dword [0x14025d778]
cvttss2si rdx, xmm0
mov r8, rdx
subss xmm0, dword [0x14025dc48]
cvttss2si rcx, xmm0
sar r8, 0x3f
and rcx, r8
or rcx, rdx
cmp rax, rcx
cmova rcx, rax
mov qword [r14 + 8], rcx
call fcn.14017b340
test rax, rax
je 0x14006f9a4
mov rbx, rax
mov rdx, qword [r14]
mov rcx, rax
mov r8, rdi
call fcn.140180220
mov rcx, qword [r14]
mov qword [r14], rbx
test rcx, rcx
je 0x14006f8a4
call fcn.14017b220
jmp 0x14006f8a4
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14006f8ea
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov r8, qword [case.0x1401e7f70.0]
xor edx, edx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp r8
int3

Function at 0x140071df0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402a0d88]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071e59
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140071ea3
mov rcx, qword [0x1402a0d78]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402a0d80]
mov rdx, qword [0x1402a0d78]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov byte [rsi + 0x58], 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402a0d88]
call fcn.14017b2bc
cmp dword [0x1402a0d88], 0xffffffff
jne 0x140071e19
mov qword [0x1402a0d80], 0
lea rcx, [0x1402a0d78]
mov qword [0x1402a0d78], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a0d88]
call fcn.14017b25c
jmp 0x140071e19
test rsi, rsi
je 0x140071e4f
call fcn.140002990
jmp 0x140071e2b
Function at 0x140073120
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x450]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x140270690]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x140275876]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x240]
mov rcx, r15
mov r9d, 0x196
call fcn.140120f60
xor r12d, r12d
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140121610
lea rcx, [rsp + 0x240]
mov r8d, 0x208
mov dl, 0xaa
call fcn.1401808d0
cmp byte [rbx + 0x17], 0
mov rax, rbx
jns 0x1400731d7
mov rax, qword [rbx]
movzx ecx, word [rax + r12*2]
mov word [rsp + r12*2 + 0x240], cx
test cx, cx
je 0x140073200
inc r12
cmp r12, 0x104
jne 0x1400731d7
mov word [rsp + 0x446], 0
lea rcx, [rsp + 0x240]
call fcn.140110840
lea rcx, [rsp + 0x30]
mov r8d, 0x208
mov dl, 0xaa
call fcn.1401808d0
cmp byte [rdi + 0x17], 0
mov rax, rdi
jns 0x14007322b
mov rax, qword [rdi]
xor ecx, ecx
movzx edx, word [rax + rcx*2]
mov word [rsp + rcx*2 + 0x30], dx
test dx, dx
je 0x140073251
inc rcx
cmp rcx, 0x104
jne 0x14007322d
mov word [rsp + 0x236], 0
lea rcx, [rsp + 0x30]
call fcn.140110840
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140073267
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140073273
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 0x1400732fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140017d90
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400732a6
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400732af
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 0x1400732ca
test eax, eax
je 0x140073300
lea rcx, [rsp + 0x450]
call fcn.140120f80
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.14017e7b0
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov dil, 1
jmp 0x1400732ca
cmp ebp, 0xfffffffc
jne 0x14007330c
call fcn.1401e7570
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1400732ca
Function at 0x140073320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140270690]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1f2
call fcn.140120f60
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140121610
cmp byte [rdi + 0x17], 0
jns 0x1400733a4
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.140120f80
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14017e7b0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret