joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
xchg ebx, eax
cdq
invalid
Function at 0x6d8a0040
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8c15e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8a01c8
mov rax, qword [0x6d8c15e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8a008c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8a0115
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8a0070
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8a01fd
mov rax, qword [0x6d8c15e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8c15e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8a01e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8a010e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8a0170
add dword [0x6d8c15e4], 1
cmp edi, 8
jae 0x6d8a0143
test dil, 4
jne 0x6d8a01b4
test edi, edi
je 0x6d8a0138
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8a01cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8a0138
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8a015c
jmp 0x6d8a0138
add rsi, qword [0x6d8c15e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8a010e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8a0138
xor esi, esi
jmp 0x6d8a0097
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8a0138
mov rax, qword [0x6d8c15e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8a0950
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8c18c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8c18a0]
test rbx, rbx
je 0x6d8a09a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8a099b
test rsi, rsi
je 0x6d8a099b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8a0980
lea rcx, [0x6d8c18c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8a0be0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8a0bf0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8a0c00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8a0c41
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8a0c38
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8a0c43
add rax, 0x28
cmp rax, r9
jne 0x6d8a0c24
xor eax, eax
ret

Function at 0x6d8a0ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8be1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8a0d4d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a0d4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8a0d4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8a0d44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a0d4f
add rax, 0x28
cmp rax, r9
jne 0x6d8a0d30
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8a0e50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8be1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8a0e70
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a0e68
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8a0ecd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8a0ec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a0ed4
add rax, 0x28
cmp rax, r9
jne 0x6d8a0eb0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8a0ef0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8be1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8a0f5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a0f5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8a0f5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8a0f5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8a0f55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8a0f65
add rcx, 0x28
cmp rcx, rax
jne 0x6d8a0f40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8a0f78
jmp 0x6d8a0f5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8a0f86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8a0f5e
test r9d, r9d
jg 0x6d8a0f70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8a12f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140005c20
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 0x140005cb0
cmp r10, r11
jb 0x140005d26
cmp r10, rdx
ja 0x140005d3a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140005cb2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005c90
jmp 0x140005d14
ja 0x140005cba
mov r11, r10
cmp rax, r8
jne 0x140005c54
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 0x140005cf0
mov rdi, r8
sub ecx, edx
jns 0x140005d0b
jmp 0x140005d16
cmp r8, rsi
je 0x140005d4b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005d16
xor al, 1
cmp rdi, rsi
jne 0x140005cd0
jmp 0x140005d16
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.1400043f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140003990
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140003d50
ud2
Function at 0x14000ec10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000ec6b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000ec6b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000ec86
cmp eax, 0x42
jne 0x14000ec6b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000ed36
cmp byte [r9 + r11], 0x5f
jne 0x14000ed36
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000ed9e
mov rcx, rsi
xor edx, edx
call fcn.140009fd0
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.140009fd0
test al, al
jne 0x14000ee31
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ecc2
lea rdx, [0x14061bff4]
mov r8d, 1
call fcn.140003a10
test al, al
jne 0x14000ee31
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000ec7a
xor r14d, r14d
lea rbx, [0x14061c3a8]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000ecf4
cmp byte [rax + rcx], 0x45
je 0x14000ee53
sub r14, 1
jb 0x14000ed19
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ed19
mov r8d, 2
mov rdx, rbx
call fcn.140003a10
test al, al
jne 0x14000ee31
mov rcx, rsi
call fcn.14000b890
test al, al
jne 0x14000ee31
mov rax, qword [rsi]
test rax, rax
jne 0x14000ece0
jmp 0x14000ec7a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000edf8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000ed92
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000ed7c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000ed6b
add dl, 0xa9
jmp 0x14000ed7a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000edf8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000edf8
movzx edx, bl
add rax, rdx
jae 0x14000ed40
jmp 0x14000edf8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000edf8
cmp rax, rcx
jae 0x14000edf5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000ee4b
cmp qword [rsi + 0x20], 0
je 0x14000ee44
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.14000ec10
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000ec7c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ee39
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14061c368]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140003a10
test al, al
je 0x14000ee39
mov dil, 2
jmp 0x14000ec7a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000ec7a
mov dil, 1
xor r8d, r8d
jmp 0x14000edfa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000ec7a
Function at 0x1400122a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140038078]
test ecx, ecx
je 0x14001237f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400122d4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400122d4
add rdi, 0x10
jmp 0x140012375
mov ecx, dword [0x140038078]
test ecx, ecx
je 0x140012392
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140012373
mov rsi, rax
test rax, rax
jne 0x140012343
movzx eax, byte [0x140624040]
mov ecx, 0x20
mov edx, 8
call fcn.140007710
test rax, rax
je 0x1400123b5
mov rsi, rax
lea rax, [0x140038060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140038078]
test ecx, ecx
je 0x1400123a5
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x140012375
test rcx, rcx
je 0x140012375
lock dec qword [rcx]
jne 0x140012375
call fcn.1400123e0
jmp 0x140012375
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140038060]
call fcn.140012600
mov ecx, eax
jmp 0x1400122b6
lea rcx, [0x140038060]
call fcn.140012600
mov ecx, eax
jmp 0x1400122e4
lea rcx, [0x140038060]
call fcn.140012600
mov ecx, eax
jmp 0x14001233b
mov ecx, 8
mov edx, 0x20
call fcn.140002bb0
ud2
Function at 0x140012600
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14001267e
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 0x1400126bf
cmp dword [rsp + 0x2c], 0
je 0x1400126a3
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400126d9
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1406240f8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1406240f8], rsi
jne 0x140012660
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400126b5
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140012725
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400126a8
mov edi, dword [rsp + 0x28]
jmp 0x1400126b5
mov edi, dword [rsi + 0x18]
jmp 0x1400126b3
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.140012760
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, str.called__Option::unwrap____on_a__None__value_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
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.1400030a0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400127d0
ud2
Function at 0x140012ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140012cd6
mov byte [rsp + 0x37], 0
mov rax, qword [0x140624090]
cmp rax, 3
jne 0x140012c82
cmp byte [rsp + 0x37], 0
jne 0x140012c97
mov ecx, dword [0x140038098]
test ecx, ecx
je 0x140012c9d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140012b0d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140012ba9
mov ecx, dword [0x140038098]
test ecx, ecx
je 0x140012cb0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140012b5b
mov rsi, rax
cmp rax, 1
jne 0x140012ba3
lea rax, [0x14061d458]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x14061cc18]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.140004780
ud2
movzx eax, byte [0x140624040]
mov ecx, 0x10
mov edx, 8
call fcn.140007710
test rax, rax
je 0x140012d1b
mov rsi, rax
lea rax, [0x140038080]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140038098]
test ecx, ecx
je 0x140012cc3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140624058]
cmp rax, rsi
jne 0x140012bdd
mov eax, dword [0x140624088]
inc eax
jne 0x140012bfd
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14061d790]
mov edx, 0x26
call fcn.140004a00
ud2
lea rcx, [0x140624050]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140012c97
mov qword [0x140624058], rsi
mov eax, 1
mov dword [0x140624088], eax
mov qword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x56], 0
cmp qword [0x140624060], 0
jne 0x140012cf0
mov qword [0x140624060], 0xffffffffffffffff
lea rcx, [0x140624068]
call fcn.140012e10
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x140624078], xmm1
movups xmmword [0x140624068], xmm0
inc qword [0x140624060]
dec dword [0x140624088]
jne 0x140012c97
mov qword [0x140624058], 0
lea rcx, [0x140624050]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x140012c97
lea rcx, [rsp + 0x37]
call fcn.140012d80
cmp byte [rsp + 0x37], 0
je 0x140012ae5
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140038080]
call fcn.140012600
mov ecx, eax
jmp 0x140012af5
lea rcx, [0x140038080]
call fcn.140012600
mov ecx, eax
jmp 0x140012b1d
lea rcx, [0x140038080]
call fcn.140012600
mov ecx, eax
jmp 0x140012b9b
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140003d50
ud2
lea rax, [0x14061d3d8]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x14061cbf8]
lea r8, [rsp + 0x38]
mov edx, 0x10
call fcn.140004780
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140002bb0
ud2
Function at 0x140014230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140038058]
test ecx, ecx
je 0x1400142ed
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140014260
cmp qword [rax + 8], 0
je 0x140014260
add rax, 0x10
jmp 0x1400142e7
mov ecx, dword [0x140038058]
test ecx, ecx
je 0x140014300
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400142e5
mov rsi, rax
test rax, rax
jne 0x1400142cb
movzx eax, byte [0x140624040]
mov ecx, 0x20
mov edx, 8
call fcn.140007710
test rax, rax
je 0x140014323
mov rsi, rax
lea rax, [0x140038040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140038058]
test ecx, ecx
je 0x140014313
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
jmp 0x1400142e7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140038040]
call fcn.140012600
mov ecx, eax
jmp 0x140014245
lea rcx, [0x140038040]
call fcn.140012600
mov ecx, eax
jmp 0x140014270
lea rcx, [0x140038040]
call fcn.140012600
mov ecx, eax
jmp 0x1400142c3
mov ecx, 8
mov edx, 0x20
call fcn.140002bb0
ud2
Function at 0x1400170e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140017110
test ecx, ecx
jne 0x140017160
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001711c
test ecx, ecx
jne 0x140017160
mov rcx, rdi
call fcn.140016fc0
movzx eax, al
test bpl, bpl
jne 0x140017167
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140017153.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400172d8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140017153.2
xor eax, eax
test bpl, bpl
je 0x14001712c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400172b9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001719a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140017219
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400171e0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400171fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400171c0
jmp 0x140017219
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400171fb
cmp ebx, 0x5c
je 0x1400171fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400171e0
jmp 0x140017219
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400172c7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140017243
mov al, 9
cmp rdx, 2
je 0x140017247
cmp rdx, 1
jne 0x140017257
cmp byte [r8], 0x2e
jne 0x140017257
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140017257
mov al, 0xa
jmp 0x140017257
cmp byte [r8], 0x2e
jne 0x140017257
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140017153.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140017153.2
mov ecx, 2
jmp case.0x140017153.2
lea r8, [0x14061d5b8]
call fcn.140003910
ud2
lea r8, [0x14061d5d0]
call fcn.140003910
ud2