joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401430f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae dbg.do_count_chars
cmp rax, rcx
je 0x140143115
cmp rdx, 4
jae 0x140143118
xor eax, eax
xor r8d, r8d
jmp 0x1401431b0
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14021a600]
movdqa xmm3, xmmword [0x14021a610]
pxor xmm1, xmm1
nop dword [rax]
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 0x140143140
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1401431c7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1401431b0
ret
Function at 0x1401440a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r10, qword [rcx]
test r10, r10
je 0x14014411e
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14014411e
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x140144136
cmp eax, 0x42
jne 0x14014411e
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14014425d
cmp byte [r10 + rsi], 0x5f
jne 0x1401441ec
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14014425d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x1401442b7
mov dil, 1
xor r9d, r9d
jmp 0x14014425f
xor edx, edx
call dbg.print_path
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call dbg.print_path
test al, al
jne 0x14014429d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140144175
lea rdx, [0x14027eb82]
mov r8d, 1
call dbg.pad
mov rdx, rbx
test al, al
jne 0x14014429d
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14014412a
xor r14d, r14d
lea rdi, [0x14027eed9]
nop word [rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x1401441a4
cmp byte [rax + rcx], 0x45
je 0x1401442f4
sub r14, 1
jb 0x1401441cc
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x1401441cc
mov r8d, 2
mov rdx, rdi
call dbg.pad
mov rdx, rbx
test al, al
jne 0x14014429d
mov rcx, rdx
call dbg.print_generic_arg
test al, al
jne 0x14014429d
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x140144190
jmp 0x14014412a
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14014424d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x14014422f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x140144221
add dl, 0xa9
jmp 0x14014422d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14014425d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14014425d
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x14014425f
cmp rsi, r11
jb 0x140144200
jmp 0x14014425f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x1401440f9
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1401442a5
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_____::closureshim_as_mut_const___dyn___unsafe_extern__
lea rdx, [0x14027eeb8]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call dbg.pad
mov rcx, rbx
test al, al
je 0x1401442a5
mov sil, 2
jmp 0x14014412a
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x14014412a
cmp qword [rcx + 0x20], 0
je 0x1401442b0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call dbg.print_path_maybe_open_generics
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14014412c
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14014412a
Function at 0x140146f79
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
mov dword [rsp + 0x88], 4
mov dword [rsp + 0xd0], 0x400010
cmp qword [rcx + 0x18], rax
je 0x140146fe9
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0xb0], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0xb8], rdx
cmp qword [rcx + 0x30], rax
je 0x140147024
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x14014701b
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x1402b1ae8]
xor r10d, r10d
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x140147008
jmp 0x14014701d
xor edx, edx
mov dword [rsp + 0xc0], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x140147079
mov rax, r14
shr rax, 0x3c
jne 0x14014714a
mov rbx, qword [rcx + 8]
lea rdi, [r14*8]
mov al, byte [0x14030f1a8]
xor ecx, ecx
mov rdx, rdi
call dbg.process_heap_alloc
test rax, rax
je 0x14014714f
mov rsi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp r14, rax
jne 0x140147064
mov eax, r14d
jmp 0x140147080
xor eax, eax
mov esi, 8
lea rcx, [rsp + 0x88]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, [0x140281c68]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
mov edi, eax
test eax, eax
je 0x1401470db
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x140147121
movaps xmm0, xmmword [rsp + 0x50]
mov eax, 1
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x78], xmm0
mov al, byte [0x14030f1a8]
mov edx, 0x20
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x14014715c
mov rdi, rax
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor ebx, ebx
test r14, r14
je 0x140147137
mov rcx, qword [0x14030f110]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
mov rax, rbx
mov rdx, rdi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
call sym.alloc::raw_vec::capacity_overflow::heae1a780ed80a88f
mov ecx, 8
mov rdx, rdi
call dbg.handle_alloc_error
lea rbx, [rsp + 0x78]
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x140147604
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140147630
mov rdx, qword [rsp + 0x20]
jmp 0x140147638
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x14014d35d
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 0x14014d393
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14014d39b
mov esi, dword [rdx]
mov r9d, 4
jmp 0x14014d3a0
xor r10d, r10d
jmp 0x14014d44e
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14014d3c3
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14014d3da
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 0x14014d3fa
add r11, r8
jmp 0x14014d51f
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14014d4c2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14014d470
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14014d4d4
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14014d4da
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14014d501
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14014d51b
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 0x14014f9c6
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14014f9f2
xor eax, eax
jmp 0x14014f9ff
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14014fad9
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call sub.WS2_32.dll_connect
test eax, eax
je 0x14014fafc
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
jmp 0x14014fafe
xor eax, eax
add rsp, 0x28
ret
Function at 0x140150450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, byte [0x14030f140]
test al, al
je 0x1401505ef
test edx, edx
je 0x140150477
cmp edx, 3
jne 0x1401505ef
mov rbx, qword [0x14030f148]
test rbx, rbx
je 0x1401505ef
xor r14d, r14d
jmp 0x140150499
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1401504cd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14015063a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140150490
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1401a808c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140150490
test r14b, 1
je 0x1401505ef
mov rbx, qword [0x14030f148]
test rbx, rbx
je 0x1401505ef
xor r14d, r14d
jmp 0x1401504f9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14015052d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14015063a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1401504f0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1401a808c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1401504f0
test r14b, 1
je 0x1401505ef
mov rbx, qword [0x14030f148]
test rbx, rbx
je 0x1401505ef
xor r14d, r14d
jmp 0x140150559
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14015058d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14015063a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140150550
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1401a808c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140150550
test r14b, 1
je 0x1401505ef
mov rbx, qword [0x14030f148]
test rbx, rbx
je 0x1401505ef
xor r14d, r14d
jmp 0x1401505b9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1401505e9
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14015063a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1401505b0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1401a808c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1401505b0
test r14b, 1
jne 0x1401505fb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x14030f148]
jmp 0x140150608
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1401505ef
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14015063a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140150604
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.1401a808c
mov rcx, rdi
call r14
jmp 0x140150604
lea rcx, str.hq__
call dbg.unwrap_failed
ud2
Function at 0x140151150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x140214548]
test ecx, ecx
je 0x140151242
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140151180
cmp qword [rax + 8], 0
je 0x140151180
add rax, 0x10
jmp 0x14015123c
mov ecx, dword [0x140214548]
test ecx, ecx
je 0x140151255
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14015123a
test rax, rax
jne 0x140151200
mov qword [rsp + 0x30], 0
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rsp + 0x28], rax
movzx eax, byte [0x14030f1a8]
mov edx, 0x18
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x140151281
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rax], xmm0
mov ecx, dword [0x140214548]
test ecx, ecx
je 0x140151268
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1401a808c
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x14015123c
test rcx, rcx
je 0x14015123c
lock dec qword [rcx]
jne 0x14015123c
mov rsi, rax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rax, rsi
jmp 0x14015123c
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x140151165
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x140151190
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov rsi, rax
call dbg.init
mov ecx, eax
mov rax, rsi
jmp 0x1401511f2
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1401516a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140151727
mov dword [rsp + 0x2c], 0
lea rdi, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140151768
cmp dword [rsp + 0x2c], 0
je 0x14015174c
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14015178e
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14030f148]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14030f148], rsi
jne 0x140151700
mov byte [0x14030f140], 1
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x140151760
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1401517d8
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140151751
mov eax, dword [rsp + 0x28]
jmp 0x140151760
mov eax, dword [rsi + 0x18]
jmp 0x14015175e
mov ecx, dword [rsp + 0x28]
mov esi, eax
call sub.kernel32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x140286b48]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
mov rcx, rdi
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str._q__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, sym.core::ptr::drop_in_place_widestring::error::ContainsNul_u16__::h4f0bc1d0dae5f8b4
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call dbg.panic_fmt
lea rax, str._q__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, sym.core::ptr::drop_in_place_widestring::error::ContainsNul_u16__::h4f0bc1d0dae5f8b4
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
int3

Function at 0x140151910
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140151927
dec ecx
jmp 0x140151931
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1401a808c
cmp qword [rdi + 8], 0
je 0x14015195a
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14015195a
lock dec qword [rax]
jne 0x14015195a
mov rcx, qword [rdi + 0x10]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, qword [0x14030f110]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140151976
dec ecx
jmp 0x140151980
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.1401a808c
Function at 0x140151e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140214568]
test ecx, ecx
je 0x140151ee6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140151e76
cmp byte [rax + 8], 0
jne 0x140151ed8
mov ecx, dword [0x140214568]
test ecx, ecx
je 0x140151ef9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140151ede
test rax, rax
jne 0x140151ed2
movzx eax, byte [0x14030f1a8]
mov edx, 0x10
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x140151f22
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x140214568]
test ecx, ecx
je 0x140151f0c
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1401a808c
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x140151ee0
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x140151e65
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x140151e82
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
mov rsi, rax
call dbg.init
mov ecx, eax
mov rax, rsi
jmp 0x140151ec4
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3

Function at 0x140152620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1402868a8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140152691
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1401526c7
test eax, eax
js 0x1401526a2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401526ba
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140286910]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::hb4cafe7f16dd1809
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h89c73ec8751a9466
mov ecx, 7
int 0x29
ud2
Function at 0x140152c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140214528]
test ecx, ecx
je 0x140152d1d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140152c90
cmp qword [rax + 8], 0
je 0x140152c90
add rax, 0x10
jmp 0x140152d17
mov ecx, dword [0x140214528]
test ecx, ecx
je 0x140152d30
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140152d15
test rax, rax
jne 0x140152cf8
movzx eax, byte [0x14030f1a8]
mov edx, 0x20
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x140152d59
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140214528]
test ecx, ecx
je 0x140152d43
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1401a808c
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x140152d17
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x140152c75
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x140152ca0
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
mov rsi, rax
call dbg.init
mov ecx, eax
mov rax, rsi
jmp 0x140152cea
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3

Function at 0x140152df0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140152e07
dec ecx
jmp 0x140152e11
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.1401a808c
mov rcx, qword [0x14030f110]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140152e37
dec ecx
jmp 0x140152e41
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.1401a808c
Function at 0x140154b40
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor esi, esi
mov edi, 0xffffffff
xor r13d, r13d
xor ebx, ebx
cmp r8, 0x201
jae 0x140154bd0
jmp 0x140154baf
jae 0x140154c7e
cmp r8, 0x201
jae 0x140154bd0
mov r14d, 0x200
lea r15, [rsp + 0x98]
mov r12, r8
jmp 0x140154c16
sub r8, rbx
sub r13, rbx
cmp r13, r8
jae 0x140154bf7
lea rcx, [rsp + 0x28]
mov rdx, rbx
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rsi, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
cmp rsi, rdi
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x38], rbx
mov r13, rsi
mov r14, rbx
mov r15, qword [rsp + 0x48]
mov r12, rbx
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x140154c3b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140154ce7
mov r8d, ebp
cmp r12, r8
jne 0x140154ba0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140154d14
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140154baf
jmp 0x140154bd0
cmp r14, r8
jb 0x140154d2e
lea rcx, [rsp + 0x50]
mov rdx, r15
call dbg.from_wide
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rsp + 0x28], 0
je 0x140154cd2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x14030f110]
xor edx, edx
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x140154cbf
jmp 0x140154cd2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3406ada96f8e16e49e947a91db3eba0db45245falibrary_std_src_threadmod.rs
lea r8, str.Ms__
mov edx, 0x28
call dbg.panic
jmp 0x140154d43
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call dbg.slice_end_index_len_fail
ud2