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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.1400a1c90
cmp byte [rdi + 0x17], 0
jns 0x140093f41
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140093f62
mov rcx, qword [rsp + 0x58]
call fcn.14014847c
test rsi, rsi
je 0x140094009
test edi, edi
je 0x140094009
mov ecx, edi
add rcx, rcx
call fcn.1401484bc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.1400a1c90
cmp byte [r14 + 0x17], 0
jns 0x140093fa5
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140093fc5
mov rcx, qword [rsp + 0x58]
call fcn.14014847c
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140094027
mov rcx, rbx
call fcn.140170424
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1401079a0
cmp byte [rsi + 0x17], 0
js 0x14009402a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1401484c4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.14014847c
jmp 0x140093ff0
Function at 0x140096150
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test rcx, rcx
je 0x140096313
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.140169c10
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x50], rax
movaps xmm6, xmmword [0x140206780]
movaps xmmword [r14 + 0x40], xmm6
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, VarR8FromUI1
call fcn.1400fc5d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401089a0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.14015f934
mov ecx, eax
call fcn.14015f98c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140096317
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [case.0x1401b1830.0]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.140169990
test rax, rax
je 0x1400962b6
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x140096322
add r15, r12
mov rcx, rbx
call fcn.140168f10
test eax, eax
je 0x140096326
mov r12, r15
mov rcx, rbx
call fcn.140168f3c
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [case.0x1401b1830.0]
lea rcx, [rsp + 0x80]
call fcn.140108a00
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400962e8
mov r14d, 0xffff
jmp 0x140096254
xor ebx, ebx
jmp 0x1400962c6
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [case.0x1401b1830.0]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140096279
Function at 0x140097b90
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140097c50
mov eax, dword [rsi]
mov dword [reloc.WS2_32.dll_accept], eax
test al, 1
jne 0x140097bb1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14023d0d0]
test rcx, rcx
jne 0x140097bcb
mov rcx, qword [0x14023d0a8]
test rcx, rcx
je 0x140097bef
jmp 0x140097c11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14023d0d0], 0
mov rcx, qword [0x14023d0a8]
test rcx, rcx
jne 0x140097c11
and byte [reloc.WS2_32.dll_accept], 0xfe
mov ecx, SafeArrayCopy
call fcn.140148440
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14023d0a8], rax
mov rdx, qword [rsi + 8]
call fcn.140098810
cmp dword [rsi + 0x14], 0
jne 0x140097c36
mov rcx, qword [0x14023d0a8]
cmp byte [rcx + 0x17], 0
jns 0x140097c30
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1401a98f0
Function at 0x140099090
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
jae 0x140099103
cmp qword [rsi], r14
je 0x1400990e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14009910a
cmp r15, 2
jb 0x1400990dc
mov qword [rsi], r14
call fcn.1400fc5f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400fc5f0
jmp 0x1400990b5
call fcn.1400fc5f0
mov rcx, qword [rsi]
call fcn.14010ef00
mov qword [rsi], 0
jmp 0x1400990ce
Function at 0x1400a3230
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14022c178]
cmp ecx, 0xffffffff
je 0x1400a3255
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1400a3250

Function at 0x1400a3260
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 [0x14022c178]
cmp ecx, 0xffffffff
je 0x1400a3329
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400a3329
mov eax, dword [0x14023eab8]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a3333
mov rbx, qword [0x14023eab0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a3379
mov rax, qword [0x14023d2a0]
inc rax
xor ecx, ecx
lea rdx, [0x14023d2b0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400a3386
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x14023d2a0], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400a339b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a33a0
jmp 0x1400a328a
lea rcx, [0x14023eab8]
call fcn.1401485a0
cmp dword [0x14023eab8], 0xffffffff
jne 0x1400a32af
mov ecx, 8
call fcn.140148440
mov rbx, rax
mov rcx, rax
call fcn.1400ed3c0
mov qword [0x14023eab0], rbx
lea rcx, [0x14023eab8]
call fcn.140148638
jmp 0x1400a32af
mov rcx, rbx
call fcn.14010ec20
jmp 0x1400a32c7
inc rcx
cmp rcx, 0x100
jne 0x1400a32da
jmp 0x1400a330f
int3
Function at 0x1400a33a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140148f00
sub rsp, rax
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14022c178]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400a3454
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400a3492
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14014bec0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1401484bc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14014b810
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140148f60
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400c8240
test al, al
je 0x1400a3495
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400a3498
mov eax, 0xffffffff
lock cmpxchg dword [0x14022c178], ecx
je 0x1400a33d8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14022c178]
mov dword [rsp + 0x2c], ecx
jmp 0x1400a33d8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400c8240
test al, al
je 0x1400a34bd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400a34bd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400a346b
int3

Function at 0x1400a35b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x14022c178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x1400a360d
lea rdx, [0x140210e2e]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1db
call fcn.1400fc5d0
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1401a91e0
jmp 0x1400a3629
and rax, 0xfffffffffffffffc
je 0x1400a3629
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400a3629
mov rsi, qword [rax + rcx]
jmp 0x1400a362b
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140148f60
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x1400a6830
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x450]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x140206780]
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, [0x140210ece]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x240]
mov rcx, r15
mov r9d, 0x196
call fcn.1400fc5d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401089a0
lea r14, [rsp + 0x240]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14014bec0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400a68e5
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.1401065f0
mov rcx, r14
call fcn.1400e6530
lea r14, [rsp + 0x30]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14014bec0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400a691c
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.1401065f0
mov rcx, r14
call fcn.1400e6530
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400a693e
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400a694a
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 0x1400a69d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a75c0
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400a697d
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400a6986
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 0x1400a69a1
test eax, eax
je 0x1400a69d5
lea rcx, [rsp + 0x450]
call fcn.140108a00
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140148f60
mov eax, edi
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x1400a69a1
cmp ebp, 0xfffffffc
jne 0x1400a69e1
call fcn.1401af950
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1400a69a1

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140206780]
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.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1c9
call fcn.1400fc5d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401089a0
cmp byte [rdi + 0x17], 0
jns 0x1400a6a74
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140108a00
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400a6ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140206780]
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, 0x1f1
call fcn.1400fc5d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401089a0
cmp byte [rdi + 0x17], 0
jns 0x1400a6b34
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.140108a00
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140148f60
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400a6b80
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14014bec0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x1400a6c23
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140170424
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400fb720
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140095b40
mov rcx, rsi
mov rdx, r14
call fcn.140094310
mov rcx, r14
call fcn.1400fb8a0
mov rcx, rbx
call fcn.1400fb8a0
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400a6c50
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14014bec0
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 0x1400a6ce5
cmp word [rsp + 0x70], 0
je 0x1400a6ce5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140170424
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400fb720
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140148f60
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 [0x140206780]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400fb5f0
mov rcx, rdi
call fcn.1400a6b80
test al, al
je 0x1400a6d25
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400fb700
jmp 0x1400a6d44
lea rax, [0x14020d586]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400fb720
lea rcx, [rsp + 0x40]
call fcn.1400fb8a0
jmp 0x1400a6cc7
Function at 0x1400a72f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov dword [r8], 1
movsxd rcx, ecx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400a7340
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14014bec0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400ae2a0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140206780]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.1400ae4a0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400a73d8
mov rax, qword [rsp + 0x38]
jmp 0x1400a73db
and eax, 0x7f
test rax, rax
jne 0x1400a741d
lea rcx, [rsp + 0x30]
call fcn.1400fb8a0
lea rcx, [rsp + 0x298]
call fcn.1400ae3f0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140148f60
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.14014bec0
mov rcx, r15
mov rdx, r14
call fcn.1400ae460
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400a753e
mov rcx, r14
call fcn.1400ae1b0
test al, al
jne 0x1400a74ed
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400a747b
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x1400a7573
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.140039860
mov rcx, r15
mov rdx, r14
call fcn.1400ae4a0
mov rcx, rdi
mov rdx, r14
call fcn.140094310
mov rcx, r14
call fcn.1400fb8a0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400a74d9
mov rax, qword [rsp + 0x38]
jmp 0x1400a74dc
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x1400a73e0
jmp 0x1400a7434
xor ebp, ebp
test bl, bl
je 0x1400a749c
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1400a7340
test eax, eax
jne 0x1400a7590
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400a7518
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400a749c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400a749c
test bl, bl
je 0x1400a7553
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x1400a757a
mov rcx, qword [rsp + 0x30]
jmp 0x1400a757f
lea rcx, [rsp + 0x48]
call fcn.1400ae1b0
test al, al
je 0x1400a758a
lea rcx, [rsp + 0x48]
call fcn.1400ae1b0
test al, al
je 0x1400a746c
xor ebp, ebp
jmp 0x1400a749c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400a745c
mov edx, dword [rsp + 0x48]
jmp 0x1400a7542
mov ebp, eax
jmp 0x1400a749c
Function at 0x1400a7730
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x140206780]
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, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x16f
call fcn.1400fc5d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401089a0
mov eax, edi
and eax, 1
neg eax
and eax, 3
test dil, 2
mov edx, 1
cmove edx, eax
test dil, 4
mov ecx, 4
cmovne edx, ecx
test dil, 8
mov r8d, 2
cmove r8d, edx
test dil, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x1400a7997
mov edx, edi
and edx, 0x40
shl edx, 0x18
test dil, 0x80
cmove ecx, edx
mov edx, edi
rol edx, 0x1a
mov r8d, edi
shl r8d, 0xb
and r8d, 0x20000000
mov r9d, edi
shr r9d, 4
and r9d, 0x10000
and edx, 0x80000100
or edx, r8d
or edx, r9d
or edx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 3
mov r8d, edi
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r14d, edi
and r14d, 0x400
mov ecx, r14d
shl ecx, 0x14
mov r9d, edi
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, edi
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r9d, edi
shl r9d, 0xd
and r9d, 0x4000000
or r9d, ecx
mov ecx, edi
shl ecx, 8
and ecx, 0xa000000
or ecx, r9d
cmp byte [rbx + 0x17], 0
jns 0x1400a78ac
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [rsi], rax
je 0x1400a7908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400a797e
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400a78fd
mov qword [rsi], rbx
call fcn.1400fc5f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
inc rbx
cmp rbx, 2
jb 0x1400a795b
shr r14d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r14b
test dil, 4
jne 0x1400a796d
test dil, 0xa
je 0x1400a7930
mov byte [rsi + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.140108a00
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140148f60
nop
add rsp, 0xc8
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.1400a75c0
mov dword [rsi + 0x24], eax
jmp 0x1400a7930
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400a7930
call fcn.1400fc5f0
mov rcx, qword [rsi]
call fcn.14010ef00
mov qword [rsi], 0
jmp 0x1400a78e9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
jmp 0x1400a7930
Function at 0x1400a8500
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400c6610
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1402051d0]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400a8575
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400a8580
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400a856d
mov qword [rsi + 0x18], rdi
call fcn.1400fc5f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400fc5f0
mov rcx, qword [rsi + 0x18]
call fcn.14010ef00
mov qword [rsi + 0x18], 0
jmp 0x1400a855a