joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e6ff0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400e7090
jmp 0x1400e707f
jae 0x1400e714f
cmp r8, 0x201
jae 0x1400e7090
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400e70e7
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x1400e70bf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140103450
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400e7110
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e71bb
mov r8d, r13d
cmp r12, r8
jne 0x1400e7070
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400e71ef
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400e707f
jmp 0x1400e7090
cmp r14, r8
jb 0x1400e7209
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400e98f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400e71a4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400082b0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400e718f
jmp 0x1400e71a4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_8b3870784f69d8ed2ae4246d1b56f150e3131499library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140104730
jmp 0x1400e721e
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140104b20
ud2
Function at 0x1400ee160
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x140187a88]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400ee1f6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1400ee223
test eax, eax
js 0x1400ee202
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1400ee219
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1400e9380
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1400e57b0
mov ecx, 7
int 0x29
ud2
Function at 0x1400fe284
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fe2ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fe2ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fe2ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fe2ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fe2ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400fe2d0
xor al, al
add rsp, 0x28
ret
Function at 0x140102f60
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x58], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
lea rcx, [rbp + 0x57]
lea rsi, [rbp + 0x30]
mov r8d, 0x20
mov rdx, rsi
call fcn.1400e4940
test rax, rax
jne 0x140103160
movaps xmm0, xmmword [rbp + 0x30]
movaps xmm1, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp]
lea r8, [0x140185c80]
lea rdx, [rbp - 0x30]
mov r9d, 8
call fcn.1400e4720
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmm2, xmmword [rbp + 0x20]
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm1
movups xmmword [rbp + 0x18], xmm2
movzx eax, byte [0x1401ab1c1]
mov ecx, 0x170
mov edx, 0x10
call fcn.1400082a0
test rax, rax
je 0x1401031b4
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
movaps xmmword [rax + 0xc0], xmm0
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
movaps xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
movups xmm0, xmmword [rbp - 0x10]
movups xmm1, xmmword [rbp]
movups xmm2, xmmword [rbp + 0x10]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rcx, qword [rbp + 0x20]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov ecx, dword [0x1401ab318]
mov rdx, qword gs:[0x58]
mov r8, qword [rdx + rcx*8]
mov rdx, qword [r8 + 0x18]
mov rcx, qword [r8 + 0x20]
mov qword [r8 + 0x18], 1
mov qword [r8 + 0x20], rax
cmp rdx, 1
je 0x140103130
test rdx, rdx
jne 0x14010313b
mov eax, dword [0x1401ab318]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x18]
lea rdx, [0x1400e2150]
call fcn.1400efd20
jmp 0x14010313b
dec qword [rcx]
jne 0x14010313b
dec qword [rcx + 8]
je 0x140103146
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x170
mov r8d, 0x10
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
jmp fcn.1400082b0
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
mov qword [rbp - 0x30], rsi
lea rax, [0x1400e48e0]
mov qword [rbp - 0x28], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
mov qword [rbp + 0x10], 0
lea rax, [rbp - 0x30]
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rdx, str.C:UsersHarrisonEdwards.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rbp - 0x10]
call fcn.140104690
ud2
mov ecx, 0x10
mov edx, 0x170
call fcn.140104440
int3
Function at 0x1805ab058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805ab1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1805ab089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ab06f
add dl, dl
jne 0x1805ab096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ab0f6
xor eax, eax
add dl, dl
jne 0x1805ab0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ab1ad
add dl, dl
jne 0x1805ab0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805ab0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805ab07e
mov eax, 1
add dl, dl
jne 0x1805ab106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ab0fb
sub eax, ebx
mov ebx, 1
jne 0x1805ab14c
mov ecx, 1
add dl, dl
jne 0x1805ab12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ab13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ab123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ab07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805ab168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ab175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ab15d
cmp eax, 0x7d00
jae 0x1805ab19b
cmp eax, 0x500
jb 0x1805ab196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ab07e
cmp eax, 0x7f
ja 0x1805ab19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ab07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805ab1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1805ab07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400113cf
Capabilities:
Terminate process

Disassembly:
jmp 0x140019f90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400114b5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001aac0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001aae0
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001aaf3
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001ab1d
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ab31
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ab43
xor al, al
jmp 0x14001ab61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ab5f
xor al, al
jmp 0x14001ab61
mov al, 1
add rsp, 0x38
ret
Function at 0x140018250
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400116cc
movzx eax, al
test eax, eax
jne 0x140018270
mov ecx, 7
call fcn.1400115be
nop
mov byte [rsp + 0x20], 0
call fcn.1400115f0
mov byte [rsp + 0x21], al
cmp dword [0x140026520], 1
jne 0x140018294
mov ecx, 7
call fcn.1400115be
nop
jmp 0x1400182ec
cmp dword [0x140026520], 0
jne 0x1400182e7
mov dword [0x140026520], 1
lea rdx, [0x140021770]
lea rcx, [0x140021440]
call fcn.140011311
test eax, eax
je 0x1400182c8
mov eax, 0xff
jmp 0x1400183f1
lea rdx, [0x140021330]
lea rcx, [section..rdata]
call fcn.1400115d7
mov dword [0x140026520], 2
jmp 0x1400182ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400115a0
call fcn.1400114dd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140018349
mov rcx, qword [rsp + 0x30]
call fcn.14001128a
movzx eax, al
test eax, eax
je 0x140018349
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002c020]
nop
call fcn.140011528
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001837d
mov rcx, qword [rsp + 0x38]
call fcn.14001128a
movzx eax, al
test eax, eax
je 0x14001837d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011677
nop
call fcn.1400184a0
mov dword [rsp + 0x28], eax
call fcn.1400114b5
movzx eax, al
test eax, eax
jne 0x14001839c
mov ecx, dword [rsp + 0x28]
call fcn.140011091
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400183ab
call fcn.140011695
nop
xor edx, edx
mov cl, 1
call fcn.140011258
mov eax, dword [rsp + 0x28]
jmp 0x1400183f1
add rsp, 0x68
ret
Function at 0x140004780
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], rdx
test rdx, rdx
je 0x140004795
lock inc dword [rdx + 8]
mov qword [rsi + 8], rdx
mov eax, dword [0x140144720]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004865
lea rdi, [rsi + 8]
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140004901
mov rcx, qword [0x140144710]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x140144718]
mov rdx, qword [0x140144710]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x140146308]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400048b3
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140004914
mov rcx, qword [0x1401462f8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140146300]
mov rdx, qword [0x1401462f8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140144720]
call fcn.140096578
cmp dword [0x140144720], 0xffffffff
jne 0x1400047be
mov qword [0x140144718], 0
lea rcx, [0x140144710]
mov qword [0x140144710], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x140144720]
call fcn.1400966f0
jmp 0x1400047be
lea rcx, [0x140146308]
call fcn.140096578
cmp dword [0x140146308], 0xffffffff
jne 0x140004821
mov qword [0x140146300], 0
lea rcx, [0x1401462f8]
mov qword [0x1401462f8], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x140146308]
call fcn.1400966f0
jmp 0x140004821
test rdi, rdi
je 0x1400047fc
call fcn.1400051d0
jmp 0x1400047d8
test rsi, rsi
je 0x14000485b
call fcn.1400051d0
jmp 0x140004837
Function at 0x140004930
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [0x140146308]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004b0a
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140004998
mov rcx, qword [0x1401462f8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x140146300]
mov rdx, qword [0x1401462f8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x140144720]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004abc
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400049f7
mov rcx, qword [0x140144710]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x140144718]
mov rdx, qword [0x140144710]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140004a0a
lock dec dword [rcx + 8]
je 0x140004b62
mov rsi, qword [rsi]
test rsi, rsi
je 0x140004a66
lock dec dword [rsi + 8]
jne 0x140004a66
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
lea rdx, [0x1400e4a90]
cmp qword [rcx + 0x10], rdx
jne 0x140004aa4
lea rcx, [0x1400fe6a0]
cmp rax, rcx
jne 0x140004aa4
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140004a4a
lock dec dword [rcx]
je 0x140004b58
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x140004a58
lock dec dword [rdi]
je 0x140004a6e
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140096334
nop
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, qword [rdi + 0x20]
mov rax, qword [0x14012dfa0]
and rax, rcx
cmp rax, qword [0x14012df88]
je 0x140004b6c
mov qword [rdi + 0x20], 0
lea rcx, [rdi + 8]
call fcn.14000a020
mov rcx, rdi
call fcn.140096334
jmp 0x140004a58
mov r8, qword [0x140150008]
mov rcx, rsi
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp r8
lea rcx, [0x140144720]
call fcn.140096578
cmp dword [0x140144720], 0xffffffff
jne 0x1400049bd
mov qword [0x140144718], 0
lea rcx, [0x140144710]
mov qword [0x140144710], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x140144720]
call fcn.1400966f0
jmp 0x1400049bd
lea rcx, [0x140146308]
call fcn.140096578
cmp dword [0x140146308], 0xffffffff
jne 0x14000495e
mov qword [0x140146300], 0
lea rcx, [0x1401462f8]
mov qword [0x1401462f8], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x140146308]
call fcn.1400966f0
jmp 0x14000495e
call fcn.140096334
jmp 0x140004a4a
call fcn.140075c60
jmp 0x140004a0a
call fcn.14006a8b0
jmp 0x140004a89
Function at 0x1400051d0
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.140098580
sub rsp, rax
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x14013b660]
cmp esi, 0xffffffff
je 0x140005283
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400052b5
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.14009a700
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.140096570
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.14009a050
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400985e0
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 0x1400052b8
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x14013b660], esi
je 0x140005203
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x14013b660]
jmp 0x140005203
int3
int3

Function at 0x140005670
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 [0x14013b660]
cmp ecx, 0xffffffff
je 0x140005739
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140005739
mov eax, dword [0x140144598]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005743
mov rbx, qword [0x140144590]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140005785
mov rax, qword [0x140142d88]
inc rax
xor ecx, ecx
lea rdx, [0x140142d90]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140005792
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140142d88], 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 0x1400057a7
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400051d0
jmp 0x14000569a
lea rcx, [0x140144598]
call fcn.140096578
cmp dword [0x140144598], 0xffffffff
jne 0x1400056bf
mov ecx, 8
call fcn.14009633c
mov qword [rax], 0
mov qword [0x140144590], rax
lea rcx, [0x140144598]
call fcn.1400966f0
jmp 0x1400056bf
mov rcx, rbx
call fcn.140062160
jmp 0x1400056d7
inc rcx
cmp rcx, 0x100
jne 0x1400056ea
jmp 0x14000571f
int3
Function at 0x140008ae0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x1401445d8]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008ba5
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x140008b82
lea rdx, [0x14011a2a2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1db
call fcn.140061ec0
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1400c7be0
xor eax, eax
lea ecx, [rax - 1]
test rax, rax
mov esi, 2
cmovne esi, ecx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov eax, esi
add rsp, 0x50
pop rsi
ret
and rax, 0xfffffffffffffffc
je 0x140008b5d
mov rcx, qword [0x1401445c8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401445d0]
jne 0x140008b5d
mov rax, qword [rax + rcx]
jmp 0x140008b5f
lea rcx, [0x1401445d8]
call fcn.140096578
cmp dword [0x1401445d8], 0xffffffff
jne 0x140008b19
mov qword [0x1401445c8], 0xffffffffffffffff
lea rcx, [0x1401445c8]
mov dword [0x1401445d0], 0
xor edx, edx
call fcn.140005670
lea rcx, [0x1401445d8]
call fcn.1400966f0
jmp 0x140008b19

Function at 0x140008c00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14007d240
test rax, rax
jne 0x140008cdf
call fcn.14007d240
xor edx, edx
test rax, rax
je 0x140008c28
cmp dword [rax + 0x38], 1
sete dl
mov ecx, esi
call fcn.140008d10
mov eax, dword [0x1401445d8]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008c96
movsxd rsi, esi
inc rsi
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140008cf3
mov rcx, qword [0x1401445c8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1401445d0]
mov rdx, qword [0x1401445c8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401445d8]
call fcn.140096578
cmp dword [0x1401445d8], 0xffffffff
jne 0x140008c50
mov qword [0x1401445c8], 0xffffffffffffffff
lea rcx, [0x1401445c8]
mov dword [0x1401445d0], 0
xor edx, edx
call fcn.140005670
lea rcx, [0x1401445d8]
call fcn.1400966f0
jmp 0x140008c50
cmp dword [rax + 0x38], 3
jne 0x140008c15
mov edx, 3
jmp 0x140008c28
test rsi, rsi
je 0x140008c90
call fcn.1400051d0
jmp 0x140008c6c
Function at 0x140008fb0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x140114940]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, [0x14011794f]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x3d3
call fcn.140061ec0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.140070470
test byte [0x14012e040], 0x19
jne 0x140009075
cmp byte [rsi + 0x17], 0
jns 0x140009040
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x50]
call fcn.140083f80
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400985e0
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x48]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.1400e4800
jmp 0x140009037