joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006070
Capabilities:
Delete user account

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
xor sil, sil
xor ebx, ebx
mov qword [rax + 0x18], rbx
lea r8, [rax + 0x18]
lea edx, [rbx + 1]
lea rcx, [0x14000a268]
call fcn.140005cc0
test al, al
je 0x14000610b
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x1400060fa
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DeleteProfileW]
test eax, eax
je 0x1400060ef
lea rdx, [0x14000a268]
xor ecx, ecx
call sub.NETAPI32.dll_NetUserDel
test eax, eax
je 0x1400060ec
cmp eax, 0x8ad
jne 0x1400060ef
mov sil, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.140005c90
test sil, sil
jne 0x1400061b5
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, str.An_error_occurred_while_deleting_the__1_user
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rdi, rax
mov dl, 0x20
lea rcx, [rsp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx ebx, word [rax]
mov edx, 3
lea rcx, [0x1400098bc]
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.cpncfg.dll_class_QString___cdecl_CfgTransform::applicationName_class_QString_]
nop
mov word [rsp + 0x20], bx
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x88]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx eax, sil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400061d0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x14000e248]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x140006260
xor ebx, ebx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x44]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140006259
test byte [rsp + 0x40], 8
je 0x140006259
mov eax, ebx
jmp 0x140006266
mov eax, 0x643
jmp 0x140006266
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140006610
add rsp, 0x270
pop rbx
ret
Function at 0x1800010b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
sub rsp, 0x120
lea rax, str.KERNEL32.dll
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rcx, qword [rsp + 0x70]
call sym.sqlite3.dll_sqlite3_column_count
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x34]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x6c], 0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x6c]
movzx eax, word [rax + rcx*2]
cmp eax, 0
je 0x18000115c
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x6c], eax
jmp 0x18000113d
mov eax, dword [rsp + 0x6c]
Function at 0x180001160
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
sub ecx, 1
mov ecx, ecx
movzx eax, word [rax + rcx*2]
cmp eax, 0x5c
je 0x180001197
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
mov word [rax + rcx*2], 0
mov eax, dword [rsp + 0x48]
add eax, 0xffffffff
mov dword [rsp + 0x48], eax
jmp 0x180001164
mov dword [rsp + 0x68], 0
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x68]
movsx eax, byte [rax + rcx]
cmp eax, 0
je 0x1800011e9
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x68]
movsx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x48]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x68]
add eax, 1
mov dword [rsp + 0x68], eax
jmp 0x18000119f
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 1
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xa8], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0xa8], rax
jne 0x180001239
jmp 0x180001622
mov rcx, qword [rsp + 0xa8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4c]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4c]
mov edx, eax
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.dll_sqlite3_column_count
mov dword [rsp + 0x84], 0
mov r8d, dword [rsp + 0xbc]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
lea r9, [rsp + 0x84]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x1800012c8
jmp 0x180001622
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x84]
add rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
cmp eax, dword [rsp + 0xb8]
jae 0x180001384
mov eax, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x58]
add eax, dword [rcx]
mov dword [rcx], eax
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
jmp 0x180001343
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x40]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x40], rcx
mov rdx, qword [rsp + 0x40]
Function at 0x180001170
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
sub ecx, 1
mov ecx, ecx
movzx eax, word [rax + rcx*2]
cmp eax, 0x5c
je 0x180001197
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
mov word [rax + rcx*2], 0
mov eax, dword [rsp + 0x48]
add eax, 0xffffffff
mov dword [rsp + 0x48], eax
jmp 0x180001164
mov dword [rsp + 0x68], 0
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x68]
movsx eax, byte [rax + rcx]
cmp eax, 0
je 0x1800011e9
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x68]
movsx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x48]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x68]
add eax, 1
mov dword [rsp + 0x68], eax
jmp 0x18000119f
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 1
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xa8], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0xa8], rax
jne 0x180001239
jmp 0x180001622
mov rcx, qword [rsp + 0xa8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4c]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4c]
mov edx, eax
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.dll_sqlite3_column_count
mov dword [rsp + 0x84], 0
mov r8d, dword [rsp + 0xbc]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
lea r9, [rsp + 0x84]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
jne 0x1800012c8
jmp 0x180001622
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x84]
add rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
cmp eax, dword [rsp + 0xb8]
jae 0x180001384
mov eax, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x58]
add eax, dword [rcx]
mov dword [rcx], eax
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
jmp 0x180001343
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x40]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x40], rcx
mov rdx, qword [rsp + 0x40]
Function at 0x10009e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x10009f10
cmp r11, r10
ja 0x10009f86
cmp r10, rdx
ja 0x10009f9a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x10009f12
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x10009ef0
jmp 0x10009f74
ja 0x10009f1a
mov r11, r10
cmp rax, r8
jne 0x10009eb4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x10009f50
mov rdi, r8
sub ecx, edx
jns 0x10009f6b
jmp 0x10009f76
cmp r8, rsi
je 0x10009fab
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x10009f76
xor al, 1
cmp rdi, rsi
jne 0x10009f30
jmp 0x10009f76
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.10008030
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.10007600
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.100079a0
ud2

Function at 0x100105e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.10007190
cmp rax, rcx
je 0x10010605
cmp rdx, 4
jae 0x10010608
xor eax, eax
xor r8d, r8d
jmp 0x100106a0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x100475c0]
movdqa xmm3, xmmword [0x100475d0]
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 0x10010630
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x100106b7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x100106a0
ret
Function at 0x100117e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x1001183b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1001183b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x10011856
cmp eax, 0x42
jne 0x1001183b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x10011906
cmp byte [r8 + r11], 0x5f
jne 0x10011906
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1001196e
mov rcx, rsi
xor edx, edx
call fcn.1000cd30
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1000cd30
test al, al
jne 0x10011a01
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011892
lea rdx, [0x104aaed3]
mov r8d, 1
call fcn.10007680
test al, al
jne 0x10011a01
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1001184a
xor r14d, r14d
lea rbx, [0x104ab241]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x100118c4
cmp byte [rax + rcx], 0x45
je 0x10011a2a
sub r14, 1
jb 0x100118e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x100118e9
mov r8d, 2
mov rdx, rbx
call fcn.10007680
test al, al
jne 0x10011a01
mov rcx, rsi
call fcn.1000e5d0
test al, al
jne 0x10011a01
mov rax, qword [rsi]
test rax, rax
jne 0x100118b0
jmp 0x1001184a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x100119c8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x10011962
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1001194c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1001193b
add dl, 0xa9
jmp 0x1001194a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x100119c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x100119c8
movzx edx, bl
add rax, rdx
jae 0x10011910
jmp 0x100119c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x100119c8
cmp rax, rcx
jae 0x100119c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x10011a09
cmp qword [rsi + 0x20], 0
je 0x10011a23
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.100117e0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1001184c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011a18
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x104ab220]
test r9b, r9b
cmovne rdx, rax
call fcn.10007680
test al, al
je 0x10011a18
mov dil, 2
jmp 0x1001184a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x100119d3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1001184a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1001184a
Function at 0x10014df0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x10014e75
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x10014eb6
cmp dword [rsp + 0x2c], 0
je 0x10014e9a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10014ed0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x104b80d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x104b80d8], rsi
jne 0x10014e50
mov byte [0x104b80d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x10014eac
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x10014f1c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x10014e9f
mov edi, dword [rsp + 0x28]
jmp 0x10014eac
mov edi, dword [rsi + 0x18]
jmp 0x10014eaa
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10015380
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x104adc48]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.10006c40
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x104adc48]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.100153d0
ud2
Function at 0x10014f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10014f90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10014fa9
mov rsi, rax
cmp qword [rax + 8], 0
je 0x10014fa9
add rsi, 0x10
jmp 0x1001506d
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10014f7d
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10015090
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x100150ad
mov rdi, rax
test rax, rax
jne 0x1001503e
movzx eax, byte [0x104b8120]
mov rcx, qword [0x104b80c8]
test rcx, rcx
jne 0x10014ffb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x100150cc
mov rcx, rax
mov qword [0x104b80c8], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x100150cc
mov rdi, rax
lea rax, [0x10046078]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x100150b9
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea rsi, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1001506d
test rcx, rcx
je 0x1001506d
lock dec qword [rcx]
jne 0x1001506d
call fcn.10014d90
mov rdi, qword [rsi]
test rdi, rdi
jne 0x10015086
call fcn.10014400
mov rdi, rax
cmp qword [rsi], 0
jne 0x100150dd
mov qword [rsi], rdi
lock inc qword [rdi]
jg 0x100150af
ud2
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10014fc8
xor edi, edi
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
jmp 0x10015036
mov ecx, 8
mov edx, 0x18
call fcn.100064f0
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x104adc48]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x28]
call fcn.10006c40
ud2
Function at 0x10016f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016f2d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10016f46
cmp qword [rax + 8], 0
je 0x10016f46
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10016f1c
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016ff1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1001700e
mov rsi, rax
test rax, rax
jne 0x10016fd3
movzx eax, byte [0x104b8120]
mov rcx, qword [0x104b80c8]
test rcx, rcx
jne 0x10016f98
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10017026
mov rcx, rax
mov qword [0x104b80c8], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10017026
mov rsi, rax
lea rax, [0x10046058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10017016
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10016f65
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
jmp 0x10016fcb
mov ecx, 8
mov edx, 0x20
call fcn.100064f0
ud2