joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0f40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402efc60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x1400b0f68
test rdi, rdi
je 0x1400b0f81
call fcn.1401486a0
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400b12c0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.14010fb40
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r14, [rsp + 0x830]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140111cd0
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.1400b13d0
test eax, eax
jne 0x1400b136d
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x1400b1371
lea rdx, [rsp + 0x830]
mov rcx, rsi
call fcn.1400cc104
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14010fba0
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400b134e
cmp eax, 2
jne 0x1400b13b9
lea rdi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140111cd0
lea rcx, [rsp + 0x830]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400b13c0
lea rdx, [rsp + 0x30]
jmp 0x1400b1344
mov edi, 0x3f4
jmp 0x1400b134e
mov edi, 0xea
jmp 0x1400b134e

Function at 0x1400b13d0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rdi, qword [rsp + 0xd0]
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x5f]
mov byte [rbx], 0xaa
mov r13, qword [rcx]
lea rdx, str.ReadValue
lea r8, str....._basewin_registry.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x1a6
call fcn.14009b140
mov rcx, rbx
mov rdx, rbp
mov r8, r13
mov r9d, 1
call fcn.1400b1490
mov rcx, qword [r12]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, rbx
call fcn.14008fa20
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b81e0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, 0x20
call fcn.14010cc14
mov rsi, rax
mov ecx, 0x10
call fcn.14010cc14
mov qword [rsi], rax
lea r8, [rax + 0x10]
mov qword [rsi + 0x10], r8
xor ecx, ecx
mov rdx, rax
add rdx, rcx
je 0x1400b83cd
mov dword [rdx], 0
add rcx, 4
cmp rcx, 0x10
jne 0x1400b8209
movabs rcx, 0x200000001
mov qword [rax + 4], rcx
mov dword [rax + 0xc], 0x7fffffff
movzx edx, byte [rax]
xor edx, 4
lea rcx, [0x1402b5b50]
mov edx, dword [rcx + rdx*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 1]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 2]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 3]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov r9d, edx
and r9d, 0xff
xor r9d, 1
shr edx, 8
xor edx, dword [rcx + r9*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 5]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 6]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 7]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov r9d, edx
and r9d, 0xff
movzx r10d, byte [rax + 8]
xor r10d, r9d
shr edx, 8
xor edx, dword [rcx + r10*4]
mov qword [rsi + 8], r8
mov r8d, edx
and r8d, 0xff
movzx r9d, byte [rax + 9]
xor r9d, r8d
shr edx, 8
xor edx, dword [rcx + r9*4]
mov r8d, edx
and r8d, 0xff
movzx r9d, byte [rax + 0xa]
xor r9d, r8d
shr edx, 8
xor edx, dword [rcx + r9*4]
mov r8d, edx
and r8d, 0xff
movzx r9d, byte [rax + 0xb]
xor r9d, r8d
shr edx, 8
xor edx, dword [rcx + r9*4]
mov r8d, edx
not r8d
and r8d, 0xff
shr edx, 8
xor edx, dword [rcx + r8*4]
mov dword [rsi + 0x1c], 0
mov r8d, edx
and r8d, 0xff
movzx r9d, byte [rax + 0xd]
xor r9d, r8d
shr edx, 8
xor edx, dword [rcx + r9*4]
mov r8d, edx
and r8d, 0xff
movzx r9d, byte [rax + 0xe]
xor r9d, r8d
shr edx, 8
xor edx, dword [rcx + r9*4]
mov r8d, edx
and r8d, 0xff
movzx eax, byte [rax + 0xf]
xor eax, r8d
shr edx, 8
xor edx, dword [rcx + rax*4]
mov dword [rsi + 0x18], edx
mov rax, rsi
add rsp, 0x20
pop rsi
ret
int3
Function at 0x1400bbae0
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 r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400bbb25
mov r15, r12
test r15, r15
je 0x1400bbb22
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
int3
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400bbb87
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r15, rbx
sub r15, rax
mov r14, r12
sub r14, rbx
je 0x1400bbb73
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140111620
mov r12, qword [rsi + 8]
add r15, r14
mov qword [rsi + 0x10], r15
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x1400bbb02
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400bbc2d
lea rcx, [r13*8]
call fcn.14010cc14
mov rcx, r13
and rcx, 0xfffffffffffffffc
mov rdx, r12
sub rdx, rbx
mov r8, r12
lea rcx, [rax + rcx*2]
mov r15, rcx
sub r8, rbx
je 0x1400bbbfb
sar rdx, 3
lea r15, [r8 + rcx]
shl rdx, 3
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x1400bbc30
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x1400bbbe3
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 r12, rbx
jne 0x1400bbc33
test r14, r14
je 0x1400bbb02
mov rcx, r14
call fcn.14010cc0c
mov r15, qword [rsi + 0x10]
jmp 0x1400bbb02
int3
int3
add r12, 0xfffffffffffffff8
jne 0x1400bbc0e
int3

Function at 0x1400bc4a0
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov r14, r8
mov rsi, rdx
mov r15, rcx
mov edi, dword [rsp + 0xd0]
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x5f]
mov byte [rbx], 0xaa
mov r12, qword [rcx]
lea rdx, str.WriteValue
lea r8, str....._basewin_registry.cc
lea r13, [rsp + 0x38]
mov rcx, r13
mov r9d, 0x1e3
call fcn.14009b140
mov rcx, rbx
mov rdx, r13
mov r8, r12
mov r9d, 0x20006
call fcn.1400b1490
mov rcx, qword [r15]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r14
mov rdx, rsi
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, rbx
call fcn.14008fa20
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400bd8a0
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x14029bb90]
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x1402aae18]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x298
call fcn.14009b140
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140059ca0
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140111cd0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400bd93f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.1400bda40
mov rcx, r14
call fcn.14008fa20
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140111cd0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400bd976
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.1400bda40
mov rcx, r14
call fcn.14008fa20
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400bd998
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400bd9a4
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 0x1400bda27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400bc1c0
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400bd9d7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400bd9e0
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 0x1400bd9fb
test eax, eax
je 0x1400bda2c
lea rcx, [rsp + 0x30]
call fcn.140059e90
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14010fba0
mov eax, edi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x1400bd9fb
cmp ebp, 0xfffffffc
jne 0x1400bda38
call fcn.1400bda90
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1400bd9fb
Function at 0x1400bfe30
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
cmp rdx, 1
je 0x1400bff4a
mov rbx, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x1400bfe5d
mov rcx, rbx
call fcn.14009db99
mov rbx, rax
mov r14, qword [rsi + 8]
cmp rbx, r14
jbe 0x1400bffd5
mov rdi, rbx
mov rax, rdi
shr rax, 0x3d
jne 0x1400bffc4
lea rcx, [rdi*8]
call fcn.14010cc14
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x1400bfe97
call fcn.14010cc0c
mov qword [rsi + 8], rdi
xor eax, eax
nop dword [rax]
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x1400bfea0
mov r8, qword [rsi + 0x10]
test r8, r8
je 0x1400bffb1
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1400bffc9
cmp rcx, rdi
jb 0x1400bff3e
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
jmp 0x1400bff80
mov ebx, 2
jmp 0x1400bfe5d
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x1400bffb1
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400bffbb
cmp rax, rdi
jb 0x1400bff9c
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
je 0x1400bff74
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
jne 0x1400bff54
mov qword [rdx + rax*8], r8
jmp 0x1400bff77
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [rdi - 1]
and rax, rdx
jmp 0x1400bff9c
call fcn.140165620
lea rax, [rdi - 1]
and rcx, rax
jmp 0x1400bff3e
jae 0x1400bffb1
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x1400bfff7
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1400bfffc
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.14012cc00
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402a301c]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r14, 3
jb 0x1400c00af
mov rcx, r14
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, r14
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x1400c00af
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edi, 1
shl rdi, cl
cmp rax, 2
cmovb rdi, rax
jmp 0x1400c00ba
mov rcx, rax
call fcn.14009db99
mov rdi, rax
cmp rbx, rdi
cmova rdi, rbx
cmp rdi, r14
jae 0x1400bffb1
test rdi, rdi
jne 0x1400bfe6d
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400c00e7
call fcn.14010cc0c
mov qword [rsi + 8], 0
jmp 0x1400bffb1
Function at 0x1400c2ec0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x140302478]
mov ecx, dword [0x1402f0db0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c2f54
lea rcx, [0x140302468]
call fcn.1400a7c90
test rax, rax
jne 0x1400c2f33
mov ecx, 4
call fcn.14010cc14
mov dword [rax], 0
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14005efd0
mov rcx, qword [rsi]
test rcx, rcx
jne 0x1400c2f97
lea rsi, [0x140302468]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010fba0
mov rcx, rsi
add rsp, 0x40
pop rsi
jmp fcn.1400a7c90
lea rcx, [0x140302478]
call fcn.14010d4bc
cmp dword [0x140302478], 0xffffffff
jne 0x1400c2ef5
xorps xmm0, xmm0
movups xmmword [0x140302468], xmm0
lea rcx, [0x140302468]
lea rdx, [0x140075f10]
call fcn.1400c2fa0
lea rcx, [0x140302478]
call fcn.14010d064
jmp 0x1400c2ef5
call fcn.14010cc0c
jmp 0x1400c2f33

Function at 0x1400c3060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402efc60]
cmp ecx, 0xffffffff
je 0x1400c311b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400c311b
call fcn.1400a7cd0
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c3128
mov rcx, qword [0x140300548]
inc rcx
xor edx, edx
lea rax, [0x140300550]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
mov r10d, r9d
cmp dword [rax + r10*8], 0
jne 0x1400c3136
lea rcx, [rax + r10*8]
mov dword [rcx], 1
mov ecx, r9d
mov qword [rax + rcx*8 + 8], rdi
mov edx, dword [0x140301d50]
inc edx
mov dword [0x140301d50], edx
mov dword [rax + rcx*8 + 0x14], edx
mov qword [0x140300548], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400c3125
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401486a0
jmp 0x1400c308a
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400c30a3
inc rdx
cmp rdx, 0x100
jne 0x1400c30b6
jmp 0x1400c3101
Function at 0x1400c3870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x14029bb90]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2d7
call fcn.14009b140
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140059ca0
call fcn.1400c3960
test al, al
jne 0x1400c3931
cmp byte [rsi + 0x17], 0
jns 0x1400c38f3
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.140059e90
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x1400c394c
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.1401e2210
test eax, eax
jmp 0x1400c38ff
Function at 0x1400c7c70
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140111cd0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400c7d25
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14010ced4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400ae6e0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140083f10
cmp byte [rsi + 0x17], 0
js 0x1400c7d4d
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x5f], 0
mov word [rsp + 0x48], 0
cmp byte [rsp + 0x47], 0
jns 0x1400c7d25
mov rcx, qword [rsp + 0x30]
call fcn.14010cc0c
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14010cc0c
jmp 0x1400c7cf7

Function at 0x1400cbff2
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400cc03a
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400cc043
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400cc02a
mov qword [rdi], rsi
call fcn.140096510
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140096510
mov rcx, qword [rdi]
call fcn.140095cd0
mov qword [rdi], 0
jmp 0x1400cc018

Function at 0x1400cc060
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
jne 0x1400cc097
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400cc0c7
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400cc0d8
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400cc0bd
mov qword [rsi], rdi
call fcn.140096510
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400cc07b
int3
call fcn.14004ba00
mov rcx, qword [0x1402f4238]
jmp 0x1400cc0ec
call fcn.140096510
mov r14, qword [rsi]
mov rcx, qword [0x1402f4238]
test rcx, rcx
je 0x1400cc0ca
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140318008]
mov qword [rsi], 0
jmp 0x1400cc0ab
Function at 0x1400cd100
Capabilities:
Check if file exists
Create directory
Get file attributes

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 [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm6, xmmword [0x14029bb90]
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, 0x3c7
call fcn.14009b140
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140059ca0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400cd183
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400cd1cd
mov bl, 1
test al, 0x10
je 0x1400cd2f5
lea rcx, [rsp + 0x40]
call fcn.140059e90
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.1400a0f20
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400cd1ff
and eax, 0x7f
mov rcx, rdi
jmp 0x1400cd206
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x1400cd312
test rcx, rcx
jne 0x1400cd21d
test rax, rax
jne 0x1400cd318
movzx r8d, byte [rsp + 0x37]
mov edx, r8d
and edx, 0x7f
test r8b, r8b
cmovs rdx, qword [rsp + 0x28]
cmovs r14, qword [rsp + 0x20]
test rdx, rdx
js 0x1400cd315
test r14, r14
jne 0x1400cd24f
test rdx, rdx
jne 0x1400cd31b
cmp rdx, rax
je 0x1400cd2bd
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1400cd100
test al, al
je 0x1400cd2f1
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x1400cd294
cmp byte [rsp + 0x37], 0
jns 0x1400cd19b
mov rcx, qword [rsp + 0x20]
call fcn.14010cc0c
jmp 0x1400cd19b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400cd2af
mov rcx, rdi
call fcn.1400cd320
test al, al
jne 0x1400cd27a
test rsi, rsi
je 0x1400cd2e9
mov ecx, ebp
call fcn.1400bc1c0
jmp 0x1400cd2e7
test rdx, rdx
je 0x1400cd2d8
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x1400cd254
inc rdx
cmp rax, rdx
jne 0x1400cd2c4
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x1400cd2e9
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400cd27a
test rsi, rsi
je 0x1400cd300
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400cd19b
int3
int3
int3
int3
Function at 0x1400cd320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14029bb90]
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, 0x306
call fcn.14009b140
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140059ca0
cmp byte [rdi + 0x17], 0
jns 0x1400cd392
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.140059e90
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14010fba0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400dd3c4
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
lea rcx, [0x1402fc7a0]
call sub.KERNEL32.dll_InitializeCriticalSection
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402efc50], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1402fc7c8], eax
add rsp, 0x28
ret