joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov rax, qword [rcx + 0x320]
mov rax, qword [rcx + 0x258]
lea r15, [rcx + 0x260]
xor ebp, ebp
cmp rax, r15
je 0x140001e92
lea rbx, [rsp + 0x38]
mov r12, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test rax, rax
je 0x140001f9f
mov rcx, qword [rax + 8]
mov rdx, rax
test rcx, rcx
jne 0x140001e81
mov r13, qword [rdx + 0x10]
cmp qword [r13], rdx
mov rdx, r13
jne 0x140001de1
mov r14, qword [rax + 0x20]
test bpl, bpl
jne 0x140001e4b
mov rax, qword [fcn.140105050]
lea rcx, [0x140182e50]
cmp rax, rcx
jne 0x140001f79
mov qword [rsp + 0x38], 0
mov rcx, rbx
call r12
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140001fcb
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov rdi, rax
mov bpl, 1
mov rcx, r14
mov rdx, rdi
call fcn.140002020
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x140001e73
call fcn.1400e29d0
mov rcx, qword [r14 + 0xb8]
call fcn.1400e29d0
mov rax, r13
cmp r13, r15
jne 0x140001dc8
jmp 0x140001e92
mov r13, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140001dee
jmp 0x140001e81
mov rax, qword [rsi + 0x270]
mov qword [rsp + 0x30], rax
add rsi, 0x278
cmp rax, rsi
je 0x140001f5a
lea rbx, [rsp + 0x30]
lea r12, [0x140182e50]
lea r14, [rsp + 0x38]
mov r13, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r15, qword [rax + 0x20]
mov rcx, rbx
call fcn.1401c12e0
test bpl, bpl
jne 0x140001f24
mov rax, qword [fcn.140105050]
cmp rax, r12
jne 0x140001f8f
mov qword [rsp + 0x38], 0
mov rcx, r14
call r13
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140001ff5
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov rdi, rax
mov bpl, 1
mov rcx, r15
mov rdx, rdi
call fcn.140002020
mov rcx, qword [r15 + 0xb0]
test rcx, rcx
je 0x140001f4c
call fcn.1400e29d0
mov rcx, qword [r15 + 0xb8]
call fcn.1400e29d0
mov rax, qword [rsp + 0x30]
cmp rax, rsi
jne 0x140001ec6
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401874c0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x38]
mov rcx, rdi
call qword [case.0x1401eda70.0]
mov rdi, qword [rdi]
jmp 0x140001e48
mov rcx, r14
call qword [case.0x1401eda70.0]
mov rdi, qword [rsp + 0x38]
jmp 0x140001f21
lea rax, str.node_shouldnt_be_null
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__tree
lea r9, str.__x___nullptr
mov r8d, 0xcf
call fcn.1401c1b10
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x140001e48
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x140001f21
Function at 0x140008750
Capabilities:
Delete file
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x1402b0d20]
test rdi, rdi
je 0x1400087a0
lea rbx, [0x14027bce3]
mov rcx, rdi
mov rdx, rbx
call fcn.1400ea630
test al, al
jne 0x1400087c9
lea rdx, str.vmodule
mov rcx, rdi
call fcn.1400ea630
test al, al
jne 0x1400087c9
mov eax, dword [rsi]
mov dword [0x14029ee60], eax
test al, 1
jne 0x140008882
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401874c0
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.vmodule
lea r8, [rsp + 0x48]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea r14, [rsp + 0x58]
mov rcx, rdi
mov rdx, r14
call fcn.140149330
lea r8, [rsp + 0x20]
mov qword [r8], rbx
mov qword [r8 + 8], 1
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
call fcn.140149330
mov ecx, 0x20
call fcn.140184834
mov rdi, rax
lea r9, [0x1402b0c58]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.1401fcb50
cmp byte [rbx + 0x17], 0
jns 0x140008842
mov rcx, qword [rsp + 0x30]
call fcn.14018482c
cmp byte [rsp + 0x6f], 0
jns 0x140008853
mov rcx, qword [rsp + 0x58]
call fcn.14018482c
test rdi, rdi
je 0x1400087a0
xor eax, eax
lock cmpxchg qword [0x1402b0c68], rdi
je 0x1400087a0
mov rcx, rdi
call fcn.1401fcc00
mov rcx, rdi
call fcn.14018482c
jmp 0x1400087a0
mov rcx, qword [0x1402b0c60]
test rcx, rcx
jne 0x14000889c
mov rcx, qword [0x1402b0c50]
test rcx, rcx
je 0x1400088c0
jmp 0x1400088e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1402b0c60], 0
mov rcx, qword [0x1402b0c50]
test rcx, rcx
jne 0x1400088e2
and byte [0x14029ee60], 0xfe
mov ecx, 0x18
call fcn.140184834
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1402b0c50], rax
mov rdx, qword [rsi + 8]
call fcn.140072130
cmp dword [rsi + 0x14], 0
jne 0x140008907
mov rcx, qword [0x1402b0c50]
cmp byte [rcx + 0x17], 0
jns 0x140008901
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401874c0
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1401f11f0
Function at 0x14000c1c0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, 2
cmp rcx, 1
jne 0x14000c1f2
mov rdi, qword [0x1402b07a8]
cmp rsi, rdi
jbe 0x14000c200
lea rcx, [0x1402b07a0]
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140110f90
lea rax, [rcx - 1]
test rcx, rax
jne 0x14000c219
mov rsi, rcx
jmp 0x14000c1d1
jae 0x14000c306
mov rax, qword [0x1402b07b8]
test rax, rax
js 0x14000c223
cvtsi2ss xmm0, rax
jmp 0x14000c238
call fcn.140143080
mov rsi, rax
jmp 0x14000c1d1
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1402b07c0]
call fcn.1401a3294
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140260048]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rdi, 3
jb 0x14000c2ee
mov rax, rdi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rdi
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x14000c2ee
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x14000c2f6
mov rcx, rdx
call fcn.140143080
cmp rsi, rax
cmovbe rsi, rax
cmp rsi, rdi
jb 0x14000c1dd
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140011c90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1402724c0]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x60]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140011d7d
mov r8, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
movabs rcx, 0xffffffffffff
and rcx, rax
shr rax, 0x30
and eax, 0x3fff
or eax, 0x8000
mov edx, r8d
and edx, 0xfff
or edx, 0x4000
mov r9d, r8d
shr r9d, 0x10
shr r8, 0x20
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x28], eax
lea rdx, str._08x__04x__04x__04x__012llx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400f0a40
cmp byte [rdi + 0x17], 0
jns 0x140011d80
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rcx, rsi
call fcn.140108ef0
cmp byte [rsp + 0x57], 0
jns 0x140011d66
mov rcx, qword [rsp + 0x40]
call fcn.14018482c
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401874c0
mov rax, rsi
add rsp, 0x78
pop rdi
pop rsi
ret
int3
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x140011d66
Function at 0x140013e90
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x140013ebc
call fcn.1400e8860
mov qword [rsi], 0
test r15, r15
je 0x140013ef2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140013f4a
cmp r12, 2
jb 0x140013eea
mov qword [rsi], r15
call fcn.1400e8860
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 0x140013f19
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400e8860
mov rbx, qword [rdi]
cmp qword [0x1402b0e48], 0
je 0x140013f7e
mov rcx, qword [0x1402b0e48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x1401eda70.0]
mov qword [rdi], 0
jmp 0x140013f08
call fcn.1400e8860
mov r14, qword [rsi]
cmp qword [0x1402b0e48], 0
je 0x140013fc2
mov rcx, qword [0x1402b0e48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401eda70.0]
mov qword [rsi], 0
jmp 0x140013edc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014006
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140013fbc
call qword [case.0x1401eda70.0]
mov rcx, rax
xor edx, edx
call fcn.14003dd60
jmp 0x140013f2b
xor ecx, ecx
mov dl, 1
jmp 0x140013fb2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001400a
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140014000
call qword [case.0x1401eda70.0]
mov rcx, rax
xor edx, edx
call fcn.14003dd60
jmp 0x140013f5c
xor ecx, ecx
mov dl, 1
jmp 0x140013ff6
xor ecx, ecx
jmp 0x140013fb0
xor ecx, ecx
jmp 0x140013ff4
Function at 0x140015690
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x1400156dc
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 0x1400156e7
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400156ca
mov qword [rdi], rsi
call fcn.1400e8860
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400e8860
mov r14, qword [rdi]
cmp qword [0x1402b0e48], 0
je 0x140015718
mov rcx, qword [0x1402b0e48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401eda70.0]
mov qword [rdi], 0
jmp 0x1400156b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015759
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140015753
call qword [case.0x1401eda70.0]
mov rcx, rax
xor edx, edx
call fcn.14003dd60
jmp 0x1400156f9
xor ecx, ecx
mov dl, 1
jmp 0x14001574c
xor ecx, ecx
jmp 0x14001574a

Function at 0x14001bb60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140187460
sub rsp, rax
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x1402ab29c]
cmp esi, 0xffffffff
je 0x14001bc13
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14001bc45
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140189600
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.140184cf8
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.140188f50
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1401874c0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001bc48
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x1402ab29c], esi
je 0x14001bb93
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x1402ab29c]
jmp 0x14001bb93
int3
int3
Function at 0x14001c9f0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.140184834
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x1402aaec8]
je 0x14001cabe
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140005c00]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14001cac8
test r14, r14
je 0x14001cb0c
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401874c0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400da330
jmp 0x14001ca55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14001cae1
mov ebp, eax
cmp eax, 0x5af
je 0x14001cae1
cmp ebp, 0xe
jne 0x14001cb17
mov rcx, rbx
call fcn.1401f36e0
test rsi, rsi
je 0x14001ca98
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1402aaec8]
jne 0x14001cb02
call fcn.1400da480
mov rcx, rsi
call fcn.14018482c
jmp 0x14001ca98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001ca98
mov eax, dword [0x1402b0ac0]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001cb8a
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400b5b70
movzx eax, byte [rbx + 0x17]
test al, al
mov rcx, qword [rbx]
cmovns rcx, rbx
cmovs rax, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1402b0ab8]
call fcn.1400da320
cmp byte [rbx + 0x17], 0
jns 0x14001cae9
mov rcx, qword [rsp + 0x38]
call fcn.14018482c
jmp 0x14001cae9
lea rcx, [0x1402b0ac0]
call fcn.140184b80
cmp dword [0x1402b0ac0], 0xffffffff
jne 0x14001cb38
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400051f0
mov qword [0x1402b0ab8], rax
lea rcx, [0x1402b0ac0]
call fcn.140184be8
jmp 0x14001cb38
Function at 0x14001d960
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402b09c8]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001d9c0
lea rsi, [0x1402b09c0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401874c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402b09c8]
call fcn.140184b80
cmp dword [0x1402b09c8], 0xffffffff
jne 0x14001d99c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140189600
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140184834
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402b0a10]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001da80
lea r8, [0x1402b09e0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140030170
mov qword [0x1402b09c0], rsi
lea rcx, [0x1402b09c8]
call fcn.140184be8
jmp 0x14001d99c
lea rcx, [0x1402b0a10]
call fcn.140184b80
cmp dword [0x1402b0a10], 0xffffffff
jne 0x14001da51
xorps xmm0, xmm0
movups xmmword [0x1402b0a00], xmm0
movups xmmword [0x1402b09f0], xmm0
movups xmmword [0x1402b09e0], xmm0
lea rcx, [0x1402b09e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402b0a10]
call fcn.140184be8
jmp 0x14001da51
Function at 0x140025f40
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x328
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x320], rax
lea rbx, [rsp + 0x58]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140189600
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140026290
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1402724c0]
movaps xmmword [rsi], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.140026640
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140025fd3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x140026016
test al, al
jns 0x140025fe6
mov rcx, qword [rsp + 0x40]
call fcn.14018482c
lea rcx, [rsp + 0x58]
call fcn.140026110
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1401874c0
mov eax, ebp
add rsp, 0x328
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x58]
lea rbx, [rsp + 0x28]
xor r13d, r13d
cmp byte [rsp + 0x58], 0
je 0x1400260d9
mov edx, dword [rsp + 0x5c]
test dl, 1
jne 0x1400260e3
test dl, 0x10
jne 0x1400260d5
cmp byte [rsp + 0x57], 0
mov rcx, rsi
jns 0x140026064
mov rcx, qword [rsp + 0x40]
call r15
test eax, eax
jne 0x1400260d5
call r12
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebp, r14d
test r13d, r13d
cmovne ebp, r13d
mov rcx, rdi
mov rdx, rbx
call fcn.140026640
cmp byte [rsp + 0x57], 0
js 0x1400260c9
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rsp + 0x40], xmm0
movzx eax, byte [rsp + 0x57]
mov rcx, rax
test al, al
jns 0x1400260b8
mov rcx, qword [rsp + 0x48]
mov r13d, ebp
test rcx, rcx
je 0x140025fd8
jmp 0x140026034
mov rcx, qword [rsp + 0x40]
call fcn.14018482c
jmp 0x140026093
xor ebp, ebp
jmp 0x14002607a
call fcn.1401c5160
jmp 0x140026055
xor ebp, ebp
test dl, 0x10
jne 0x14002607a
and edx, 0xfffffffe
test al, al
jns 0x1400260f8
mov rcx, qword [rsp + 0x40]
jmp 0x1400260fd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140026055
Function at 0x14002d640
Capabilities:
Get file size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], r15
movaps xmm0, xmmword [0x1402724c0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xac
call fcn.1400ed710
xor ebx, ebx
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.14011a620
mov qword [r14], r15
mov rcx, qword [rdi]
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [rdi]
mov rcx, rsi
call fcn.14011a160
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401874c0
mov rax, rbx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14002ea60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1402b86c8]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002eb8a
mov ecx, dword [0x1402ab29c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002eabf
mov rcx, qword [0x1402b86b8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b86c0]
jne 0x14002eabf
cmp qword [rax + rcx], 0
jne 0x14002eb46
mov ecx, 4
call fcn.140184834
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x1402ab29c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ebe1
mov rcx, qword [0x1402b86b8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b86c0]
jne 0x14002ebe1
mov rdi, qword [rax + rcx]
mov ecx, dword [0x1402ab29c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002eb7e
mov rcx, qword [0x1402b86b8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402b86c0]
mov rdx, qword [0x1402b86b8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14002ebe8
mov ecx, dword [0x1402ab29c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ebdd
mov rcx, qword [0x1402b86b8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b86c0]
jne 0x14002ebdd
mov rax, qword [rax + rcx]
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x14002eb3d
call fcn.14001bb60
jmp 0x14002eb19
lea rcx, [0x1402b86c8]
call fcn.140184b80
cmp dword [0x1402b86c8], 0xffffffff
jne 0x14002ea8b
mov qword [0x1402b86c0], 0
lea rcx, [0x1402b86b8]
mov qword [0x1402b86b8], 0xffffffffffffffff
lea rdx, [0x140071680]
call fcn.1400310f0
lea rcx, [0x1402b86c8]
call fcn.140184be8
jmp 0x14002ea8b
xor eax, eax
jmp 0x14002eb77
xor edi, edi
jmp 0x14002eb07
mov rcx, rdi
call fcn.14018482c
jmp 0x14002eb46