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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400489f0
mov eax, dword [rsi]
mov dword [0x1401b3570], eax
test al, 1
jne 0x140048941
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401c6880]
test rcx, rcx
jne 0x14004895b
mov rcx, qword [0x1401c6858]
test rcx, rcx
je 0x14004897f
jmp 0x1400489a1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401c6880], 0
mov rcx, qword [0x1401c6858]
test rcx, rcx
jne 0x1400489a1
and byte [0x1401b3570], 0xfe
mov ecx, 0x18
call fcn.1400e07ec
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401c6858], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x1400489d6
call fcn.14003b010
cmp dword [rsi + 0x14], 0
jne 0x1400489cb
mov rcx, qword [0x1401c6858]
cmp byte [rcx + 0x17], 0
jns 0x1400489c5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140133e80
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude_string:2719:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.140119a40
int3
Function at 0x14004cb30
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 [0x1401b1028]
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.1400b7730
cmp byte [rdi + 0x17], 0
jns 0x14004cb71
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 0x14004cb92
mov rcx, qword [rsp + 0x58]
call fcn.1400e0828
test rsi, rsi
je 0x14004cc39
test edi, edi
je 0x14004cc39
mov ecx, edi
add rcx, rcx
call fcn.1400e085c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.1400b7730
cmp byte [r14 + 0x17], 0
jns 0x14004cbd5
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 0x14004cbf5
mov rcx, qword [rsp + 0x58]
call fcn.1400e0828
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14004cc57
mov rcx, rbx
call fcn.1400ff904
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1400b7760
cmp byte [rsi + 0x17], 0
js 0x14004cc6a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1400e0864
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140119a40
mov rcx, qword [rsi]
call fcn.1400e0828
jmp 0x14004cc20
Function at 0x14004d2e0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401c6948]
test rdi, rdi
jne 0x14004d393
mov ecx, 0x50
call fcn.1400e07ec
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400e07ec
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14004d3b5
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1401c6948], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14004d3c8
mov rcx, rax
call fcn.1400ff904
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14004d3e0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140119a40
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140119a40
int3
Function at 0x14004d3e0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14003d7c0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14004d56c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1401922f8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14004d5c3
lea rdx, [0x140192348]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004d5b2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401a3088]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x14004d502
test r12d, r12d
js 0x14004d5b9
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400e07ec
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x14004d58c
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.140118b10
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14004d4db
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14004cec0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14004d529
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14004d56c
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14004d564
add rdi, 0xffffffffffffffe8
jmp 0x14004d557
mov rcx, qword [rdi]
call fcn.1400e0828
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14004d564
test rdi, rdi
je 0x14004d59f
cmp byte [rdi + 0x17], 0
js 0x14004d543
jmp 0x14004d54b
mov rcx, rsi
call fcn.1400e0828
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e1d10
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140119a40
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140119a40
xor ebx, ebx
jmp 0x14004d48f
lea rcx, [rsp + 0x20]
call fcn.1401188d0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14004d48c
Function at 0x1400588c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140058a09
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14017d9f0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x1401a3088]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x1401a3088]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401a3088]
test r14, r14
je 0x1400589a3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140058993
mov ecx, 1
call fcn.1400c6160
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140058a0d
call fcn.140002fe0
lea rax, [0x140001d60]
lea rcx, section..text
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400e1d10
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400589ec
bt eax, 9
jae 0x140058a28
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [0x1400042a0]
jmp 0x1400589d3
call fcn.140138ea0
lea rax, [0x1401396a0]
lea rcx, [0x140138d80]
jmp 0x1400589d3

Function at 0x140058a50
Capabilities:
Encode data using xor
Hash data using sha1 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.1400c6160
mov ebp, eax
bt eax, 0x1d
jb 0x140058a93
not ebp
test ebp, 0x128
jne 0x140058ab9
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400100b0
mov ecx, 1
call fcn.1400c6160
bt eax, 9
jae 0x140058a73
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000ef40
mov ecx, 1
call fcn.1400c6160
mov ebp, eax
bt eax, 0x1c
jae 0x140058ad8
xor ecx, ecx
call fcn.1400c6160
bt eax, 0x1e
jb 0x140058a7d
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x140058af4
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000df00
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000f210
Function at 0x140058b10
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401c6ba8]
mov ecx, dword [0x1401c0158]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140058b4b
movzx eax, word [0x1401c6b78]
cmp eax, 9
jne 0x140058b93
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401c6ba8]
call fcn.1400e0940
cmp dword [0x1401c6ba8], 0xffffffff
jne 0x140058b35
xorps xmm0, xmm0
movups xmmword [0x1401c6b98], xmm0
movups xmmword [0x1401c6b88], xmm0
movups xmmword [0x1401c6b78], xmm0
lea rcx, [0x1401c6b78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401c6ba8]
call fcn.1400e09d8
jmp 0x140058b35
test eax, eax
je 0x140058b46
cmp eax, 6
jne 0x140058ba3
mov eax, 2
jmp 0x140058b46
cmp eax, 0xc
jne 0x140058baf
mov eax, 3
jmp 0x140058b46
mov eax, 4
jmp 0x140058b46

Function at 0x140059480
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x14017d9f0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1400bd740
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400b56a0
mov rcx, rsi
call fcn.1400b22f0
test al, al
je 0x140059590
lea rbx, [rsi + 0x40]
mov rcx, rsi
call fcn.14003dfc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rbx
mov rdx, rax
call fcn.14002ffe0
mov rcx, qword [rsi + 0x40]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140059590
mov qword [rsp + 0x20], 0
xor edi, edi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140059590
lea rdx, fcn.14013a530
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.14006fd50
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400b5720
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400e1d10
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140066900
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140066977
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401b36a0], rax
jne 0x14006697a
mov rsi, rcx
call fcn.1400dca50
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.1400256c0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400cd850
mov ecx, dword [0x1401c6dc8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401c0158]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x170], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14006f440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14006f410]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401c9580]
lea rdx, [0x14006f2b0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006f538
cmp dword [0x1401c9588], 0
jne 0x14006f545
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401c958c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14006f4ec
mov ecx, 1
mov edx, 0x28
call fcn.1400c2830
test rax, rax
je 0x14006f545
mov r14, rax
mov ecx, dword [0x1401c958c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006f53d
lea r15, [0x1401c9590]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401c95a0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400e1d10
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400f61a0
mov rcx, r14
call fcn.1400c2790
mov rcx, rsi
mov rax, rdi
call qword [0x1401a3088]
xor esi, esi
jmp 0x14006f51c

Function at 0x14006f9b0
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 [0x1401bf6d8]
cmp ecx, 0xffffffff
je 0x14006f9d2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006f9d7
call fcn.14006fb00
mov eax, dword [0x1401cadf0]
mov ecx, dword [0x1401c0158]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006fa87
mov rbx, qword [0x1401cade8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006fad0
mov rax, qword [0x1401c95d8]
inc rax
xor ecx, ecx
lea rdx, [0x1401c95e0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14006fadd
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401cade0]
inc ecx
mov dword [0x1401cade0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1401c95d8], 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 0x14006facd
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401cadf0]
call fcn.1400e0940
cmp dword [0x1401cadf0], 0xffffffff
jne 0x14006f9fc
mov ecx, 8
call fcn.1400e07ec
mov rbx, rax
mov rcx, rax
call fcn.1400b1ec0
mov qword [0x1401cade8], rbx
lea rcx, [0x1401cadf0]
call fcn.1400e09d8
jmp 0x14006f9fc
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14006fa14
inc rcx
cmp rcx, 0x100
jne 0x14006fa27
jmp 0x14006fa6d
Function at 0x14006fb00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400e1cb0
sub rsp, rax
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401bf6d8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14006fbb4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006fbf2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400e3e50
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400e085c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400e37a0
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.1400e1d10
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140085c20
test al, al
je 0x14006fbf5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14006fbf8
mov eax, 0xffffffff
lock cmpxchg dword [0x1401bf6d8], ecx
je 0x14006fb38
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401bf6d8]
mov dword [rsp + 0x2c], ecx
jmp 0x14006fb38
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140085c20
test al, al
je 0x14006fc1d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14006fc1d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14006fbcb
int3

Function at 0x14006fc30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401bf6d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x14006fc7b
and rax, 0xfffffffffffffffc
je 0x14006fcae
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14006fcae
add rax, rcx
mov rsi, qword [rax]
jmp 0x14006fcb0
lea rdx, [0x14019a914]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400bd740
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.140135700
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400e1d10
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x14006fcd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401bf6d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006fd0e
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
test rdi, rdi
je 0x14006fd07
call fcn.14006fb00
jmp 0x14006fcee
Function at 0x1400702d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400702e0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140070301
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140070321
cmp byte [r14 + 0x50], 0
jne 0x1400703ac
or edi, 0x20000000
test dil, 8
jne 0x1400703b7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14007033f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140070350
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x1400703de
cmp byte [r14 + 0x18], 0
jne 0x1400703ef
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400703ff
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400703d4
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140070321
cmp byte [r14 + 0x68], 0
je 0x1400703c9
or edi, 0x40000000
jmp 0x14007032b
or edi, 0x10000000
jmp 0x14007032b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140070397
lea rcx, [r14 + 0x20]
call fcn.14003dfc0
mov r15, rax
jmp 0x14007035b
mov rcx, r14
call fcn.14003dfc0
mov r9, rax
jmp 0x140070369
cmp ebx, 4
jne 0x14007040e
mov edx, 6
jmp 0x140070376
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140070420
mov edx, 7
jmp 0x140070376
cmp ebx, 1
jne 0x14007042f
mov edx, 4
jmp 0x140070376
xor edx, edx
jmp 0x140070376
Function at 0x1400702e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400702e0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140070301
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140070321
cmp byte [r14 + 0x50], 0
jne 0x1400703ac
or edi, 0x20000000
test dil, 8
jne 0x1400703b7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14007033f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140070350
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x1400703de
cmp byte [r14 + 0x18], 0
jne 0x1400703ef
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400703ff
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400703d4
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140070321
cmp byte [r14 + 0x68], 0
je 0x1400703c9
or edi, 0x40000000
jmp 0x14007032b
or edi, 0x10000000
jmp 0x14007032b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140070397
lea rcx, [r14 + 0x20]
call fcn.14003dfc0
mov r15, rax
jmp 0x14007035b
mov rcx, r14
call fcn.14003dfc0
mov r9, rax
jmp 0x140070369
cmp ebx, 4
jne 0x14007040e
mov edx, 6
jmp 0x140070376
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140070420
mov edx, 7
jmp 0x140070376
cmp ebx, 1
jne 0x14007042f
mov edx, 4
jmp 0x140070376
xor edx, edx
jmp 0x140070376

Function at 0x140070440
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140070478
cmp byte [r15 + 0x50], 0
jne 0x14007050f
or edi, 0x20000000
test dil, 8
jne 0x14007051a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x140070496
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x1400704a7
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x140070541
cmp byte [r15 + 0x18], 0
jne 0x140070552
xor r9d, r9d
cmp ebx, 4
jne 0x140070500
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140070537
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140070562
mov edx, 7
jmp 0x1400704ca
or edi, 0x80000000
jmp 0x140070478
cmp byte [r15 + 0x68], 0
je 0x14007052c
or edi, 0x40000000
jmp 0x140070482
or edi, 0x10000000
jmp 0x140070482
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400704eb
lea rcx, [r15 + 0x20]
call fcn.14003dfc0
mov r14, rax
jmp 0x1400704b2
mov rcx, r15
call fcn.14003dfc0
mov r9, rax
jmp 0x1400704c0
mov edx, 1
test ebx, ebx
je 0x1400704ca
cmp ebx, 1
jne 0x14007057e
mov edx, 4
jmp 0x1400704ca
xor edx, edx
jmp 0x1400704ca