joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b610
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14008b7c0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.14014c69c
movaps xmm6, xmmword [0x1401c1a20]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, VarR8FromUI1
call fcn.1400f15e0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400e48e0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.140143c6c
mov ecx, eax
call fcn.140143ccc
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14008b7c4
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x140224008]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.14014c324
test rax, rax
je 0x14008b763
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14008b7cf
add r15, r12
mov rcx, rbx
call fcn.14014bb10
test eax, eax
je 0x14008b7d3
mov r12, r15
mov rcx, rbx
call fcn.14014bb3c
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140224008]
lea rcx, [rsp + 0x80]
call fcn.1400e4960
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14012cf50
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14008b795
mov r14d, 0xffff
jmp 0x14008b701
xor ebx, ebx
jmp 0x14008b773
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x140224008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x14008b726
Function at 0x1400966d0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.1400967c0
mov eax, dword [rsi]
mov dword [reloc.WS2_32.dll_accept], eax
test al, 1
jne 0x1400966f1
mov al, 1
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x140205ab8]
test rcx, rcx
jne 0x14009670b
mov rcx, qword [0x140205a90]
test rcx, rcx
je 0x14009672f
jmp 0x140096751
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140205ab8], 0
mov rcx, qword [0x140205a90]
test rcx, rcx
jne 0x140096751
and byte [reloc.WS2_32.dll_accept], 0xfe
mov ecx, SafeArrayCopy
call fcn.14012c3a0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140205a90], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140096786
call fcn.14007dc90
cmp dword [rsi + 0x14], 0
jne 0x14009677b
mov rcx, qword [0x140205a90]
cmp byte [rcx + 0x17], 0
jns 0x140096775
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x30
pop rsi
jmp fcn.14018bf30
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.140168c70
int3
Function at 0x14009bc40
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.1400e6fa0
cmp byte [rdi + 0x17], 0
jns 0x14009bc87
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x7f], 0
jns 0x14009bca8
mov rcx, qword [rsp + 0x68]
call fcn.14012c3dc
test rsi, rsi
je 0x14009bd4f
test edi, edi
je 0x14009bd4f
mov ecx, edi
add rcx, rcx
call fcn.14012c41c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.1400e6fa0
cmp byte [r14 + 0x17], 0
jns 0x14009bceb
mov r14, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x7f], 0
jns 0x14009bd0b
mov rcx, qword [rsp + 0x68]
call fcn.14012c3dc
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14009bd7d
mov rcx, rbx
call fcn.14014ecd4
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.1400e6fd0
cmp byte [rsi + 0x17], 0
js 0x14009bd73
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14012c424
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012cf50
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14012c3dc
jmp 0x14009bd36
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.140168c70
int3
Function at 0x14009c3e0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140205b78]
test rdi, rdi
jne 0x14009c493
mov ecx, 0x50
call fcn.14012c3a0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, SafeArrayCopy
call fcn.14012c3a0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14009c4b5
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 [0x140205b78], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14009c4e1
mov rcx, rax
call fcn.14014ecd4
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14009c510
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012cf50
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.140168c70
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.140168c70
int3
Function at 0x14009c510
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 [0x1401f0038]
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.140084020
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14009c6a0
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1401da194]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14009c739
lea rdx, [0x1401da1e4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009c71d
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140224008]
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 0x14009c72f
test r12d, r12d
js 0x14009c725
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14012c3a0
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 0x14009c6c5
mov rdx, qword [r14 + r15]
call fcn.1401679c0
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x14009c612
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14009c110
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14009c666
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14009c6a0
cmp r15, rbx
je 0x14009c698
add r15, 0xffffffffffffffe8
jmp 0x14009c68a
mov rcx, qword [r15]
call fcn.14012c3dc
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14009c698
test r15, r15
je 0x14009c6f1
cmp byte [r15 + 0x17], 0
jns 0x14009c67e
jmp 0x14009c676
mov rcx, rbx
call fcn.14012c3dc
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012cf50
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.140168c70
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.140168c70
xor r14d, r14d
jmp 0x14009c5c4
lea rcx, [rsp + 0x30]
call fcn.140167cc0
xor r15d, r15d
xor ebx, ebx
jmp 0x14009c63f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14009c5c1
Function at 0x1400a0380
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x140205bc8]
cmp rax, 1
jbe 0x1400a03c1
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14012cf50
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x140205bc8]
call fcn.140097fb0
test al, al
je 0x1400a0418
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.14012fee0
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400a03fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x140205bd0]
lea rcx, [0x140205bc8]
xor r8d, r8d
mov r9, rcx
call fcn.140098070
jmp 0x1400a03a7
mov rax, qword [0x140205bc8]
jmp 0x1400a03a7
Function at 0x1400a4d00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400a4e51
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401c1a20]
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 [0x140224008]
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 [0x140224008]
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 [0x140224008]
test r14, r14
je 0x1400a4de3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400a4dd3
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.1400f8bd0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400a4e55
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400a4e22
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.14012cf50
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400a4e34
bt eax, 9
jae 0x1400a4e75
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400a4e22
lea rcx, [0x140004520]
jmp 0x1400a4e1f
call fcn.140192bf0
lea rax, [0x1401933f0]
test r14, r14
je 0x1400a4e22
lea rcx, [0x140192ad0]
jmp 0x1400a4e1f
Function at 0x1400a5110
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400a51fe
cmp qword [rsi], 0
jne 0x1400a51fe
cmp dword [rsi + 0x14], 0
jne 0x1400a51fe
cmp qword [rsi + 8], 0
jne 0x1400a51fe
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400a5180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400a51d0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400a5178
mov qword [rsi], r14
call fcn.1400f1600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400a51ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400a51e6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400a51b2
mov qword [rsi + 8], r14
call fcn.1400f1600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f1600
mov rcx, qword [rsi]
call fcn.1400dc360
mov qword [rsi], 0
jmp 0x1400a5166
call fcn.1400f1600
mov rcx, qword [rsi + 8]
call fcn.1400dc360
mov qword [rsi + 8], 0
jmp 0x1400a519f
mov rcx, rsi
call fcn.1401943c0
mov rax, qword [rsi]
jmp 0x1400a514a
Function at 0x1400abb90
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400abbf1
test r12, r12
je 0x1400abd08
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012cf50
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400abc56
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x1400abc3f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.14012f830
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x1400abbbe
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x1400abd34
lea rcx, [r15*8]
call fcn.14012c3a0
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x1400abcd3
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400abd08
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1400abcbb
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.140196020
mov r12, qword [rsi + 0x10]
jmp 0x1400abbbe
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.140168c70
call fcn.140167b30
int3
Function at 0x1400b2630
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 [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400b2870
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401f29a0], rax
jne 0x1400b2873
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, [0x1401c3570]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1401c35c0]
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, reloc.WS2_32.dll_recv
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 0x1400b2808
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400b2815
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x1400b2801
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 0x1400b287d
mov edx, ecx
and edx, 0x1fc000
je 0x1400b287d
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.140107690
mov ecx, dword [0x140206138]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401feb28]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x188], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012cf50
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x1400b2762
mov rcx, rdi
call fcn.140108460
jmp 0x1400b270c
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.140123610
test rax, rax
je 0x1400b2876
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 0x1400b277c
int3
int3
xor ebx, ebx
jmp 0x1400b27a6
movaps xmm0, xmmword [0x1401c1a20]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1401677f0
mov rcx, rsi
call fcn.140024cf0
mov rcx, r14
call fcn.1401abc70
int3
Function at 0x1400b9550
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 [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400b9520]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140211d48]
lea rdx, [0x1400b93c0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b9648
cmp dword [0x140211d50], 0
jne 0x1400b9655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140211d54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400b95fc
mov ecx, 1
mov edx, 0x28
call fcn.1400f6c40
test rax, rax
je 0x1400b9655
mov r14, rax
mov ecx, dword [0x140211d54]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400b964d
lea r15, [0x140211d58]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140211d60]
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.14012cf50
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140146830
mov rcx, r14
call fcn.1400f6ba0
mov rcx, rsi
mov rax, rdi
call qword [0x140224008]
xor esi, esi
jmp 0x1400b962c

Function at 0x1400b9b50
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 [0x1401fea30]
cmp ecx, 0xffffffff
je 0x1400b9b72
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400b9b77
call fcn.1400b9ca0
mov eax, dword [0x1402135b0]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b9c30
mov rbx, qword [0x1402135a8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b9c79
mov rcx, qword [0x140211d98]
inc rcx
xor edx, edx
lea rax, [0x140211da0]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
mov r10d, r9d
cmp dword [rax + r10*8], 0
jne 0x1400b9c86
lea rcx, [rax + r10*8]
mov dword [rcx], 1
mov ecx, r9d
mov qword [rax + rcx*8 + 8], rdi
mov edx, dword [0x1402135a0]
inc edx
mov dword [0x1402135a0], edx
mov dword [rax + rcx*8 + 0x14], edx
mov qword [0x140211d98], 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 0x1400b9c76
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402135b0]
call fcn.14012c500
cmp dword [0x1402135b0], 0xffffffff
jne 0x1400b9b9c
mov ecx, 8
call fcn.14012c3a0
mov rbx, rax
mov rcx, rax
call fcn.1400dd3e0
mov qword [0x1402135a8], rbx
lea rcx, [0x1402135b0]
call fcn.14012c598
jmp 0x1400b9b9c
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400b9bb4
inc rdx
cmp rdx, 0x100
jne 0x1400b9bc7
jmp 0x1400b9c16