joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cff0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401ce780]
test rdi, rdi
jne 0x14004d0a3
mov ecx, 0x50
call fcn.1400dcb68
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400dcb68
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14004d0c5
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 [0x1401ce780], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14004d0f1
mov rcx, rax
call fcn.1400fbc84
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14004d120
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400de090
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140115c90
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140115c90
int3
Function at 0x14004d120
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14003e2c0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14004d2b0
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x14019a588]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14004d349
lea rdx, [0x14019a5d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004d32d
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x1401ea008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14004d33f
test r12d, r12d
js 0x14004d335
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400dcb68
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x14004d2d5
mov rdx, qword [r14 + r15]
call fcn.140114bf0
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x14004d222
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14004cc20
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14004d276
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14004d2b0
cmp r15, rbx
je 0x14004d2a8
add r15, 0xffffffffffffffe8
jmp 0x14004d29a
mov rcx, qword [r15]
call fcn.1400dcba4
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14004d2a8
test r15, r15
je 0x14004d301
cmp byte [r15 + 0x17], 0
jns 0x14004d28e
jmp 0x14004d286
mov rcx, rbx
call fcn.1400dcba4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400de090
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140115c90
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140115c90
xor r14d, r14d
jmp 0x14004d1d4
lea rcx, [rsp + 0x30]
call fcn.140114980
xor r15d, r15d
xor ebx, ebx
jmp 0x14004d24f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14004d1d1
Function at 0x140052e10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x140052e2a
test r8d, r8d
jne 0x140052e23
call fcn.140067d80
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140052500
Function at 0x1400591a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400592f1
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401879f0]
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 [0x1401ea008]
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 [0x1401ea008]
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 [0x1401ea008]
test r14, r14
je 0x140059283
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140059273
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.1400bdc80
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400592f5
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400592c2
lea rcx, section..text
mov qword [r14], 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.1400de090
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400592d4
bt eax, 9
jae 0x140059315
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400592c2
lea rcx, [0x140004520]
jmp 0x1400592bf
call fcn.140136890
lea rax, [0x140137090]
test r14, r14
je 0x1400592c2
lea rcx, [0x140136770]
jmp 0x1400592bf

Function at 0x140059340
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401ce9d8]
mov ecx, dword [0x1401c8138]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005937b
movzx eax, word [0x1401ce9a8]
cmp eax, 9
jne 0x1400593c3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401ce9d8]
call fcn.1400dccc0
cmp dword [0x1401ce9d8], 0xffffffff
jne 0x140059365
xorps xmm0, xmm0
movups xmmword [0x1401ce9c8], xmm0
movups xmmword [0x1401ce9b8], xmm0
movups xmmword [0x1401ce9a8], xmm0
lea rcx, [0x1401ce9a8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ce9d8]
call fcn.1400dcd58
jmp 0x140059365
test eax, eax
je 0x140059376
cmp eax, 6
jne 0x1400593d3
mov eax, 2
jmp 0x140059376
cmp eax, 0xc
jne 0x1400593df
mov eax, 3
jmp 0x140059376
mov eax, 4
jmp 0x140059376
Function at 0x140059db0
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401879f0]
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.1400b5720
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400ac3f0
mov rcx, rsi
call fcn.1400a98c0
test al, al
je 0x140059ef5
mov rcx, rsi
call fcn.14003ea50
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x140059e9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140059f1e
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140059e91
mov qword [rsi + 0x40], rbx
call fcn.1400b5740
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140059f39
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rbx
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 0x140059ef5
lea rdx, fcn.140137f30
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.14006eb70
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400ac470
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400de090
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400b5740
mov rcx, qword [rsi + 0x40]
call fcn.1400a9180
mov qword [rsi + 0x40], 0
jmp 0x140059e7c
xor edi, edi
jmp 0x140059ef5
Function at 0x140059f40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401879f0]
lea r15, [rsp + 0x60]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x3a
call fcn.1400b5720
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1400ac3f0
mov rcx, rsi
call fcn.1400a98c0
test al, al
je 0x14005a0c7
test ebx, ebx
jne 0x14005a0fb
mov ebp, 2
mov ebx, 4
xor r15d, r15d
mov rcx, rsi
call fcn.14003ea50
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x14005a04c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14005a1b4
mov rax, r14
inc rax
cmp rax, 2
jb 0x14005a040
mov qword [rsi + 0x40], r14
call fcn.1400b5740
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x14005a0f6
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
cmp rcx, qword [0x14019fd28]
jne 0x14005a13d
cmp rdx, qword [0x14019fd30]
jne 0x14005a13d
mov rcx, rsi
call fcn.14003eb90
xor r14d, r14d
test rax, rax
jle 0x14005a0c7
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebx
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14005a0f6
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov r14b, 1
lea rcx, [rsp + 0x60]
call fcn.1400ac470
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400de090
mov eax, r14d
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14005a0c7
dec ebx
cmp ebx, 3
ja case.default.0x14005a114
lea rax, [0x14019fd14]
movsxd rcx, dword [rax + rbx*4]
add rcx, rax
jmp rcx
mov r14, qword [rdi + 8]
mov r15, r14
shr r15, 0x20
mov ebp, 4
mov ebx, 2
jmp 0x140059fe2
mov rcx, rsi
call fcn.140059db0
mov r14d, eax
jmp 0x14005a0c7
xor eax, eax
lea r14, [rsp + 0x40]
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
lea r15, [rsp + 0x3c]
mov qword [rsp + 0x20], r15
mov r8, r14
call fcn.14005a3f0
mov rcx, qword [rdi + 8]
movsxd rax, dword [r15]
mov r8, rax
sar r8, 0x3f
add rax, rcx
adc r8, 0
mov edx, r8d
and edx, 1
neg rdx
xor r8, rdx
setne r8b
mov r14, qword [r14]
test r14, r14
js 0x14005a0f6
test r8b, r8b
jne 0x14005a0f6
test rdx, rdx
js 0x14005a0f6
mov r8, r14
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x14005a09b
call fcn.1400b5740
mov rcx, qword [rsi + 0x40]
call fcn.1400a9180
mov qword [rsi + 0x40], 0
jmp 0x14005a02b
mov ebx, 0xaaaaaaaa
xor ebp, ebp
jmp 0x140059fdf
mov ebp, 4
mov ebx, 2
jmp 0x140059fdf
mov ebp, 8
mov ebx, 1
jmp 0x140059fdf
Function at 0x140064c60
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140064ea0
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401bb690], rax
jne 0x140064ea3
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x140188ba0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140188bf0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1401a0b40]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
mov eax, r12d
lea r15, [rsi + rax*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140064e38
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x140064e45
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x140064e31
lea rdx, [rsi + 0x48]
mov r9d, r12d
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r9*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x140064ead
mov edx, ecx
and edx, 0x1fc000
je 0x140064ead
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1400c6750
mov ecx, dword [0x1401cebd8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401c8138]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x170], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400de090
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140064d92
mov rcx, rdi
call fcn.1400c7520
jmp 0x140064d3c
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1400d7280
test rax, rax
je 0x140064ea6
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xfe0
add rax, rcx
add rax, 0x1000
movzx ecx, byte [rax + 0x1e]
and ecx, 0x3f
shl ecx, 5
sub rax, rcx
jmp 0x140064dac
int3
int3
xor ebx, ebx
jmp 0x140064dd6
movaps xmm0, xmmword [0x1401879f0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.140114640
mov rcx, rsi
call fcn.140024cf0
mov rcx, r14
call fcn.140149c60
int3
Function at 0x14006e260
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 [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14006e230]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401da7c8]
lea rdx, [0x14006e0d0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006e358
cmp dword [0x1401da7d0], 0
jne 0x14006e365
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401da7d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14006e30c
mov ecx, 1
mov edx, 0x28
call fcn.1400bad70
test rax, rax
je 0x14006e365
mov r14, rax
mov ecx, dword [0x1401da7d4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006e35d
lea r15, [0x1401da7d8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401da7e0]
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.1400de090
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400f2520
mov rcx, r14
call fcn.1400bacd0
mov rcx, rsi
mov rax, rdi
call qword [0x1401ea008]
xor esi, esi
jmp 0x14006e33c

Function at 0x14006e7d0
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 [0x1401c76d0]
cmp ecx, 0xffffffff
je 0x14006e7f2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006e7f7
call fcn.14006e920
mov eax, dword [0x1401dc030]
mov ecx, dword [0x1401c8138]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006e8b0
mov rbx, qword [0x1401dc028]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006e8f9
mov rcx, qword [0x1401da818]
inc rcx
xor edx, edx
lea rax, [0x1401da820]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
mov r10d, r9d
cmp dword [rax + r10*8], 0
jne 0x14006e906
lea rcx, [rax + r10*8]
mov dword [rcx], 1
mov ecx, r9d
mov qword [rax + rcx*8 + 8], rdi
mov edx, dword [0x1401dc020]
inc edx
mov dword [0x1401dc020], edx
mov dword [rax + rcx*8 + 0x14], edx
mov qword [0x1401da818], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14006e8f6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401dc030]
call fcn.1400dccc0
cmp dword [0x1401dc030], 0xffffffff
jne 0x14006e81c
mov ecx, 8
call fcn.1400dcb68
mov rbx, rax
mov rcx, rax
call fcn.1400a9400
mov qword [0x1401dc028], rbx
lea rcx, [0x1401dc030]
call fcn.1400dcd58
jmp 0x14006e81c
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14006e834
inc rdx
cmp rdx, 0x100
jne 0x14006e847
jmp 0x14006e896
Function at 0x14006e920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400de030
sub rsp, rax
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401c76d0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14006e9d4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006ea12
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400e01d0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400dcbdc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400dfb20
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.1400de090
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140083ad0
test al, al
je 0x14006ea15
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14006ea18
mov eax, 0xffffffff
lock cmpxchg dword [0x1401c76d0], ecx
je 0x14006e958
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401c76d0]
mov dword [rsp + 0x2c], ecx
jmp 0x14006e958
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140083ad0
test al, al
je 0x14006ea3d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14006ea3d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14006e9eb
int3

Function at 0x14006ea50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401b9028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401c76d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x14006ea99
and rax, 0xfffffffffffffffc
je 0x14006eacc
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14006eacc
mov rsi, qword [rax + rcx]
jmp 0x14006eace
lea rdx, [0x1401a015a]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400b5720
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.140132820
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400de090
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x14006eaf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401c76d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006eb2e
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 0x14006eb27
call fcn.14006e920
jmp 0x14006eb0e
Function at 0x14006f110
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14006f120
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 0x14006f141
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14006f161
cmp byte [r14 + 0x50], 0
jne 0x14006f1ec
or edi, 0x20000000
test dil, 8
jne 0x14006f1f7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14006f17f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14006f190
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14006f21e
cmp byte [r14 + 0x18], 0
jne 0x14006f22f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14006f23f
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 0x14006f214
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 0x14006f161
cmp byte [r14 + 0x68], 0
je 0x14006f209
or edi, 0x40000000
jmp 0x14006f16b
or edi, 0x10000000
jmp 0x14006f16b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006f1d7
lea rcx, [r14 + 0x20]
call fcn.14003ea50
mov r15, rax
jmp 0x14006f19b
mov rcx, r14
call fcn.14003ea50
mov r9, rax
jmp 0x14006f1a9
cmp ebx, 4
jne 0x14006f24e
mov edx, 6
jmp 0x14006f1b6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14006f260
mov edx, 7
jmp 0x14006f1b6
cmp ebx, 1
jne 0x14006f26f
mov edx, 4
jmp 0x14006f1b6
xor edx, edx
jmp 0x14006f1b6