joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004b50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
call fcn.14004afb0
lea rdx, [0x140022be0]
xor ecx, ecx
call sub.KERNEL32.dll_AddVectoredExceptionHandler
mov dword [rbp - 0x58], 0x5000
lea rcx, [rbp - 0x58]
call sub.KERNEL32.dll_SetThreadStackGuarantee
call sub.KERNEL32.dll_GetCurrentThread
mov r8, qword [0x14004d008]
lea rdx, [0x140059758]
mov rcx, rax
call r8
mov ecx, dword [0x140061130]
test ecx, ecx
je 0x140004bb7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140004bd4
jmp 0x140004bcf
lea rcx, [0x140061118]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140004bd4
call fcn.140022e10
mov byte [0x140061048], 0
lea rdx, [0x140061040]
mov qword [0x140061040], rax
xor ecx, ecx
call fcn.140022e80
cmp rax, 2
jne 0x140004cf4
lea rcx, [0x1400022d0]
call fcn.140001450
test rax, rax
je 0x140004ca8
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], rax
lea rax, [0x1400022b0]
mov qword [rbp - 0x10], rax
lea rax, str.Error:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x18]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x58]
call fcn.140046560
mov rsi, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, qword [rdi]
test rax, rax
je 0x140004c73
mov rcx, rsi
call rax
cmp qword [rdi + 8], 0
je 0x140004c96
cmp qword [rdi + 0x10], 0x11
jb 0x140004c85
mov rsi, qword [rsi - 8]
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov esi, 1
mov eax, dword [0x140061034]
cmp eax, 3
jne 0x140004cb5
jmp 0x140004ce6
xor esi, esi
mov eax, dword [0x140061034]
cmp eax, 3
je 0x140004ce6
mov byte [rbp - 0x18], 1
lea rax, [rbp - 0x18]
mov qword [rbp - 0x58], rax
lea rax, str.std_src_rt.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140061034]
lea r9, [0x140058798]
lea r8, [rbp - 0x58]
xor edx, edx
call fcn.140022fd0
mov eax, esi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rdi, rax
mov qword [rbp - 0x18], rax
lea rsi, [rbp - 0x10]
mov rbx, rdx
mov qword [rbp - 0x10], rdx
mov dword [rbp - 8], 0
mov byte [rbp - 4], 0
lea rax, str.fatal_runtime_error:_code_running_before_main_must_not_use_thread::current_n
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
mov rax, rbp
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x58]
call fcn.140020bf0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140020d30
mov ecx, 7
int 0x29
ud2
Function at 0x14000bcc0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov eax, dword [rcx + 0x10]
cmp eax, 0x3b9aca00
jne 0x14000bd1e
mov rcx, qword [rbx]
xor edx, edx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x28]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14000bd66
xor r14d, r14d
mov eax, r14d
and eax, 3
cmp eax, 1
je 0x14000bd81
jmp 0x14000bdd0
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], eax
call fcn.140023c20
mov r8d, edx
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.140023db0
cmp edx, 0x3b9aca00
je 0x14000be23
mov r8, rax
cmp edx, 0x3b9aca01
jne 0x14000be50
test r8, r8
jne 0x14000be3a
jmp 0x14000bdd0
call sub.WS2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14000bdd0
mov r15, qword [r14 - 1]
mov r12, qword [r14 + 7]
mov rax, qword [r12]
test rax, rax
je 0x14000bd97
mov rcx, r15
call rax
dec r14
cmp qword [r12 + 8], 0
je 0x14000bdbf
cmp qword [r12 + 0x10], 0x11
jb 0x14000bdae
mov r15, qword [r15 - 8]
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, r15
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [rbx]
cmp rdi, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x14000bdfb
movsxd r8, eax
xor eax, eax
jmp 0x14000be3f
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
xor r8d, r8d
mov eax, 0
cmp ecx, 0x274a
je 0x14000be3f
mov eax, 1
cmp ecx, 0x2733
jne 0x14000bed0
lea rdx, str.the_timeout_of_the_request_was_reachedMINREQ_TIMEOUTsrc_index.crates.io_6f17d22bba15001f_minreq_2.12.0_src_connection.rs
mov r8d, 0x26
mov cl, 0x16
call fcn.14000bee0
mov r8, rax
mov eax, 1
mov rdx, r8
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, edx
mov rcx, qword [rbx]
mov edx, 0x3e8
mov rax, r8
mul rdx
mov edx, 0xffffffff
jo 0x14000bce5
mov r8d, r9d
mov r9d, r9d
imul r9, r9, 0x431bde83
shr r9, 0x32
add rax, r9
jb 0x14000bce5
imul r9d, r9d, 0xf4240
xor r10d, r10d
sub r8d, r9d
setne r10b
add rax, r10
jb 0x14000bce5
mov edx, 0xffffffff
cmp rax, rdx
cmovb rdx, rax
test rax, rax
jne 0x14000bce5
lea r14, str.cannot_set_a_0_duration_timeout
mov eax, r14d
and eax, 3
cmp eax, 1
je 0x14000bd81
jmp 0x14000bdd0
shl rcx, 0x20
or rcx, 2
mov r8, rcx
jmp 0x14000be3f
Function at 0x14000eb90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14000ebd2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14000ebda
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000ebeb
jmp 0x14000ec02
xor r10d, r10d
jmp 0x14000ec8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14000ec02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14000ec19
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14000ec39
add r11, r8
jmp 0x14000ed69
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14000ed02
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14000ecb0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14000ed1f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x14000ed30
jmp 0x14000ed4b
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x14000ed4b
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x14000ed65
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140015280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14004d098]
test esi, esi
je 0x1400152ac
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400152a4
jne 0x1400152c9
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14004d080]
call fcn.140020a10
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400152a0
jmp 0x1400152a4
call fcn.1400472c0
mov rdi, rax
movzx eax, byte [0x140061030]
mov ecx, 0x10
call fcn.1400474f0
test rax, rax
je 0x14001533b
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140015333
mov rax, qword [rdi]
test rax, rax
je 0x140015322
lock dec qword [rax]
jne 0x140015322
mov rcx, qword [rdi]
call fcn.140015190
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x1400152a4
mov ecx, 8
mov edx, 0x10
call fcn.140005059
int3

Function at 0x140017bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov esi, dword [0x14004d078]
test esi, esi
je 0x140017be8
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140017c03
add rax, 4
jmp 0x140017c5c
lea rcx, [0x14004d060]
call fcn.140020a10
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140017be2
je 0x140017c5a
movzx eax, byte [0x140061030]
mov ecx, 8
call fcn.1400474f0
test rax, rax
je 0x140017c66
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r14, rax
mov byte [rbx + 4], 0
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140017c55
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, r14
jmp 0x140017c5c
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 4
mov edx, 8
call fcn.140005059
int3
Function at 0x140018090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov esi, dword [0x14004d0d8]
test esi, esi
je 0x140018137
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001812a
je 0x140018128
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x140061030]
mov ecx, 0x18
call fcn.1400474f0
test rax, rax
je 0x140018158
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140018123
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x14001812a
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14004d0c0]
call fcn.140020a10
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400180b9
jmp 0x14001812a
mov ecx, 8
mov edx, 0x18
call fcn.140005059
int3

Function at 0x14001d100
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14001d125
cmp rax, rcx
je 0x14001d12b
cmp rdx, 4
jae 0x14001d12f
xor eax, eax
xor r8d, r8d
jmp 0x14001d1c0
pop rbp
jmp fcn.140006650
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004e5f0]
movdqa xmm3, xmmword [0x14004e600]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001d150
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001d1d7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001d1c0
pop rbp
ret
Function at 0x140020a10
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140020aa5
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x140020ae4
cmp dword [rbp], 0
je 0x140020ac8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140020b07
mov edi, eax
mov rax, qword [0x140064038]
mov rax, qword [0x140061110]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140061110], rsi
jne 0x140020a80
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140020ad9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140020b49
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140020acd
mov edi, dword [rbp + 4]
jmp 0x140020ad9
mov edi, dword [rsi + 0x18]
jmp 0x140020ad7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x140059320]
lea r9, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.1400220e7
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.140006190
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140022123
int3
Function at 0x140021140
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
test r8, r8
je 0x140021191
mov rdi, r9
mov r14, r8
mov rbx, rdx
call sub.KERNEL32.dll_GetStdHandle
mov rsi, rax
mov eax, 1
test rsi, rsi
je 0x140021197
cmp rsi, 0xffffffffffffffff
jne 0x1400211af
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
jmp 0x1400211a1
xor edx, edx
xor eax, eax
jmp 0x1400211a1
movabs rdx, 0x600000002
mov dword [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x14002121f
movzx ecx, byte [rdi + 4]
test rcx, rcx
je 0x140021291
cmp cl, 4
jae 0x1400213b0
movzx edx, byte [rbx]
mov eax, edx
and al, 0xc0
neg al
mov eax, 1
jno 0x1400212ea
mov byte [rdi + rcx], dl
movzx eax, byte [rdi + 4]
inc al
mov byte [rdi + 4], al
movzx ecx, byte [rdi]
lea rdx, [0x140059344]
movzx ebx, byte [rcx + rdx]
mov qword [rbp - 0x28], rbx
cmp al, bl
jae 0x14002131b
movups xmm0, xmmword [0x140059108]
movaps xmmword [rbp + 0x20], xmm0
mov eax, 0xffffffff
cmp r14, rax
cmovb rax, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140021282
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp + 0x20]
cmp eax, 0x103
je 0x1400213e2
test eax, eax
js 0x1400212fa
mov rdx, qword [rbp + 0x28]
xor eax, eax
jmp 0x1400211a1
invalid
cmp r14, 0x1000
mov r8d, 0x1000
mov byte [rdi + 4], 0
lea rdx, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
jmp 0x1400211a1
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x140021180
movzx r8d, al
cmp al, 5
jae 0x140021432
lea rcx, [rbp + 0x20]
mov rdx, rdi
call fcn.1400078c0
mov byte [rdi + 4], 0
test byte [rbp + 0x20], 1
jne 0x14002139f
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x30], rax
cmp rax, rbx
jne 0x14002148e
mov rcx, rsi
mov r8, rbx
call fcn.1400214f0
test rax, rax
jne 0x1400211a1
mov qword [rbp + 0x40], rdx
mov qword [rbp - 0x20], rbx
cmp rbx, rdx
jne 0x1400214ae
mov edx, 1
jmp 0x1400211a1
lea rax, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
mov qword [rbp], 8
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
lea rdx, str.std_src_syspalwindows_stdio.rs
lea rcx, [rbp - 0x10]
call fcn.140006190
mov dword [rbp + 0x40], 0
mov byte [rbp + 0x44], 0
lea rax, [0x140059170]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rax, [rbp + 0x48]
mov qword [rbp], rax
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x10]
call fcn.140020bf0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140020d30
mov ecx, 7
int 0x29
ud2
lea rax, str.std_src_syspalwindows_stdio.rs
mov edx, 4
mov rcx, r8
mov r8, rax
call fcn.140006bd0
Function at 0x140021fb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14004d058]
test esi, esi
je 0x14002203c
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140022033
je 0x140022031
movzx eax, byte [0x140061030]
mov ecx, 0x18
call fcn.1400474f0
test rax, rax
je 0x14002205d
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14002202c
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x140022033
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004d040]
call fcn.140020a10
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140021fd6
jmp 0x140022033
mov ecx, 8
mov edx, 0x18
call fcn.140005059
int3

Function at 0x140022e10
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x1400610e8]
nop word cs:[rax + rax]
cmp rax, 0xffffffffffffffff
je 0x140022e73
lea rsi, [rax + 1]
lock cmpxchg qword [0x1400610e8], rsi
jne 0x140022e30
mov ecx, dword [0x140061130]
test ecx, ecx
je 0x140022e63
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140061118]
call fcn.140020a10
mov ecx, eax
jmp 0x140022e51
call fcn.1400238f0
int3
Function at 0x140022e80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 0x10], rcx
lea rsi, [rbp - 8]
mov qword [rbp - 8], rdx
mov ecx, dword [0x140061150]
test ecx, ecx
je 0x140022ebb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140022ed3
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
jmp 0x140022f7c
lea rcx, [0x140061138]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140022eae
mov ecx, dword [0x140061130]
test ecx, ecx
je 0x140022f03
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140022f1b
mov r8, rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov rdx, rax
shl rdx, 4
cmp qword [rcx + rdx], r8
je 0x140022f5c
jmp 0x140022f7c
lea rcx, [0x140061118]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140022ee9
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
shl rax, 4
mov rdi, qword [rcx + rax]
mov ecx, dword [0x140061130]
test ecx, ecx
je 0x140022f39
dec ecx
jmp 0x140022f47
lea rcx, [0x140061118]
call fcn.140020a10
mov ecx, eax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
mov edx, dword [rbp - 0x10]
mov rcx, qword [rbp - 8]
and edx, 1
shl edx, 4
add rdx, rcx
mov rax, qword [0x140064038]
mov ecx, dword [0x140061150]
test ecx, ecx
je 0x140022f87
dec ecx
call sub.KERNEL32.dll_TlsSetValue
mov eax, 2
mov rdx, rcx
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140061138]
mov rsi, rdx
call fcn.140020a10
mov rdx, rsi
mov ecx, eax
jmp 0x140022f72
Function at 0x1400231a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140023319
mov byte [rbp + 7], 0
mov eax, dword [0x140061090]
cmp eax, 3
jne 0x140023208
cmp byte [rbp + 7], 0
jne 0x140023300
mov ecx, dword [0x140061130]
test ecx, ecx
je 0x14002321c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140023234
mov rcx, qword [0x140061058]
cmp rax, rcx
jne 0x140023245
mov eax, dword [0x140061060]
cmp eax, 0xffffffff
je 0x140023300
inc eax
jmp 0x140023266
lea rcx, [rbp + 7]
call fcn.14002338d
cmp byte [rbp + 7], 0
je 0x1400231d3
jmp 0x140023300
lea rcx, [0x140061118]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400231e9
call fcn.140022e10
mov rcx, qword [0x140061058]
cmp rax, rcx
je 0x1400231f5
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x140061064], dl
jne 0x140023300
mov qword [0x140061058], rcx
mov eax, 1
mov dword [0x140061060], eax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 1
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
mov byte [rbp - 3], 0
mov dword [rbp - 7], 0
cmp qword [0x140061068], 0
jne 0x140023325
mov qword [0x140061068], 0xffffffffffffffff
lea rcx, [0x140061070]
call fcn.140023420
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x140061080], xmm1
movups xmmword [0x140061070], xmm0
inc qword [0x140061068]
dec dword [0x140061060]
jne 0x140023300
mov qword [0x140061058], 0
xor eax, eax
xchg byte [0x140061064], al
cmp al, 2
jne 0x140023300
lea rcx, [0x140061064]
call fcn.14004a234
mov eax, dword [0x1400610f8]
cmp eax, 3
jne 0x140023311
call qword [0x1400610f0]
nop
add rsp, 0x48
pop rsi
pop rbp
ret
lea rcx, str.std_src_synconce.rs
call fcn.140008960
lea rcx, str.std_srcio_stdio.rs
call fcn.140007860
ud2