joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140001f00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140001f00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140021870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402bbba4]
mov rbx, rcx
test esi, esi
jle 0x1400219a0
mov rax, qword [0x1402bbba8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400218bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140021945
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400218a0
mov rcx, rbx
call fcn.1400f1200
mov rdi, rax
test rax, rax
je 0x1400219c2
mov rax, qword [0x1402bbba8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400f1340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402bbba8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400219a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002193e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140021950
add dword [0x1402bbba4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402bbba8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140021800
nop dword [rax]
xor esi, esi
jmp 0x1400218c8
mov rax, qword [0x1402bbba8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140021800
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140021800
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140023820
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
mov rsi, rcx
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
call fcn.1400dd980
lea r10d, [rax*4]
mov edi, eax
test r10d, r10d
jle 0x140023a21
movsxd rax, r10d
mov rdx, rsi
mov ecx, r10d
lea rax, [rsi + rax*4]
nop
mov r8d, dword [rdx]
mov r9d, dword [rax]
sub ecx, 4
add rdx, 0x10
sub rax, 0x10
mov dword [rdx - 0x10], r9d
mov r9d, dword [rax + 0x14]
mov dword [rax + 0x10], r8d
mov r8d, dword [rdx - 0xc]
mov dword [rdx - 0xc], r9d
mov r9d, dword [rax + 0x18]
mov dword [rax + 0x14], r8d
mov r8d, dword [rdx - 8]
mov dword [rdx - 8], r9d
mov r9d, dword [rax + 0x1c]
mov dword [rax + 0x18], r8d
mov r8d, dword [rdx - 4]
mov dword [rdx - 4], r9d
mov dword [rax + 0x1c], r8d
mov r8d, r10d
sub r8d, ecx
cmp ecx, r8d
jg 0x140023860
cmp edi, 1
jle 0x140023a21
lea r13d, [rdi - 1]
lea r12, [0x140171cc0]
shl r13, 4
lea rax, str.ccccwwww
lea r11, [0x140159100]
add r13, rsi
lea r10, [0x140170f00]
lea r9, [0x140164fe0]
nop dword [rax + rax]
mov r14d, dword [rsi + 0x10]
mov ecx, dword [rsi + 0x14]
add rsi, 0x10
mov r8d, dword [rsi + 8]
mov ebx, dword [rsi + 0xc]
mov edx, r14d
movzx r15d, r14b
shr edx, 0x18
movzx r15d, byte [rax + r15*4]
movzx edx, byte [rax + rdx*4]
mov edx, dword [r12 + rdx*4]
xor edx, dword [r11 + r15*4]
mov r15d, r14d
shr r15d, 0x10
movzx r15d, r15b
movzx r15d, byte [rax + r15*4]
xor edx, dword [r10 + r15*4]
mov r15d, edx
mov edx, r14d
movzx edx, dh
mov r14d, edx
movzx r14d, byte [rax + r14*4]
mov edx, dword [r9 + r14*4]
xor edx, r15d
movd xmm0, edx
mov edx, ecx
shr edx, 0x18
movzx r14d, byte [rax + rdx*4]
movzx edx, cl
movzx edx, byte [rax + rdx*4]
mov r14d, dword [r12 + r14*4]
xor r14d, dword [r11 + rdx*4]
mov edx, ecx
movzx ecx, ch
shr edx, 0x10
mov ecx, ecx
movzx edx, dl
movzx edx, byte [rax + rdx*4]
xor r14d, dword [r10 + rdx*4]
movzx edx, byte [rax + rcx*4]
xor r14d, dword [r9 + rdx*4]
mov edx, r8d
shr edx, 0x18
movd xmm3, r14d
movzx ecx, byte [rax + rdx*4]
movzx edx, r8b
punpckldq xmm0, xmm3
movzx edx, byte [rax + rdx*4]
mov ecx, dword [r12 + rcx*4]
xor ecx, dword [r11 + rdx*4]
mov edx, r8d
shr edx, 0x10
movzx edx, dl
movzx edx, byte [rax + rdx*4]
xor ecx, dword [r10 + rdx*4]
mov edx, r8d
movzx edx, dh
mov r8d, edx
movzx edx, byte [rax + r8*4]
movzx r8d, bl
movzx r8d, byte [rax + r8*4]
xor ecx, dword [r9 + rdx*4]
mov edx, ebx
shr edx, 0x18
movd xmm1, ecx
movzx edx, byte [rax + rdx*4]
mov edx, dword [r12 + rdx*4]
xor edx, dword [r11 + r8*4]
mov r8d, ebx
movzx ebx, bh
shr r8d, 0x10
mov ebx, ebx
movzx r8d, r8b
movzx r8d, byte [rax + r8*4]
xor edx, dword [r10 + r8*4]
movzx r8d, byte [rax + rbx*4]
xor edx, dword [r9 + r8*4]
movd xmm2, edx
punpckldq xmm1, xmm2
punpcklqdq xmm0, xmm1
movups xmmword [rsi], xmm0
cmp rsi, r13
jne 0x1400238f0
lea rsp, [rbp - 0x38]
mov eax, edi
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14002b4b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14002b4e0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400386b0
Capabilities:
Parse credit card information

Disassembly:
movabs rax, 0x160000005e
push rbp
xor r10d, r10d
mov rbp, rsp
push rsi
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
mov qword [rcx], rax
mov rsi, qword [rbp + 0x30]
movabs rax, 0x1700000024
mov qword [rcx + 8], rax
movabs rax, 0x140000002a
mov qword [rcx + 0x18], rax
movabs rax, 0x150000002b
mov qword [rcx + 0x20], rax
movabs rax, 0x120000003f
mov qword [rcx + 0x28], rax
movabs rax, 0x130000007c
mov qword [rcx + 0x30], rax
sub rax, 0x72
mov qword [rcx + 0x38], rax
sub rax, 0xa
mov qword [rcx + 0x40], rax
movabs rax, 0xa6e0c6608620030
mov qword [rcx + 0x48], rax
movabs rax, 0xb7609740d72
mov qword [rcx + 0x50], rax
movabs rax, 0x7615c5c2f2f2222
mov qword [rcx + 0x58], rax
movabs rax, 0xd720a6e0c660862
mov qword [rcx + 0x60], rax
lea rax, [0x14016cef8]
mov word [rcx + 0x6c], r10w
movq xmm1, rax
lea r10, [0x14016ceff]
mov qword [rcx + 0x10], 0x2e
mov dword [rcx + 0x68], 0xb760974
lea rcx, [0x14016cee9]
movq xmm0, rcx
mov qword [rbx + 0x80], r10
punpcklqdq xmm0, xmm1
mov dword [rbx + 0x8c], r9d
mov dword [rbx + 0x88], 0
movups xmmword [rbx + 0x70], xmm0
test r9b, 0x10
je 0x140038880
lea rax, [rbx + 0x48]
mov qword [rbx + 0x98], rax
mov rax, rcx
mov qword [rbx + 0xb0], rdx
mov rcx, qword [0x14015d540]
mov qword [rbx + 0xa0], rax
mov byte [rbx + 0xa8], 0
mov qword [rbx + 0xb8], r8
call fcn.140004790
mov rdx, qword [rsi]
mov rcx, qword [rdx + 8]
cmp rax, qword [rdx + 0x10]
jae 0x1400388dc
mov rax, qword [rcx + rax*8]
test rax, rax
je 0x1400388dc
lea rdx, [rbx + 0xd8]
movq xmm0, rax
xor eax, eax
test byte [rbx + 0x8c], 0x10
mov word [rbx + 0xd8], ax
movq xmm2, rdx
lea rax, [0x140045530]
lea rdx, [0x140025fd0]
cmovne rax, rdx
punpcklqdq xmm0, xmm2
mov rcx, rbx
mov qword [rbx + 0xd0], 0
mov qword [rbx + 0xf0], 0
mov qword [rbx + 0xe8], rax
movups xmmword [rbx + 0xc0], xmm0
lea rsp, [rbp - 0x10]
pop rbx
pop rsi
pop rbp
jmp fcn.14002c0e0
lea rcx, [rbx + 0x58]
mov qword [rbx + 0x98], rcx
test r9b, 0x20
jne 0x1400387ce
mov rax, r10
test r9b, 0x40
jne 0x1400387ce
lea rax, [0x14016cf0c]
test r9d, 0x100
jne 0x1400387ce
lea rax, [0x14016cf14]
test r9d, 0x200
jne 0x1400387ce
xor eax, eax
and r9d, 0x80
cmovne rax, r10
jmp 0x1400387ce
call fcn.1400ce140
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, rcx
ret
Function at 0x14004ba70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402b9960]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402b9940]
test rbx, rbx
je 0x14004bacc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14004bac3
test rsi, rsi
je 0x14004bac3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004baa8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140056180
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400561b0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
movsxd rcx, dword [rdx + 4]
lea rcx, [rax + rcx*8]
lea rax, [rdx - 8]
add rax, rcx
ret

Function at 0x1400632a0
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 0x140063330
cmp r11, r10
ja 0x1400633a6
cmp r10, rdx
ja 0x1400633ba
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140063332
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140063310
jmp 0x140063394
ja 0x14006333a
mov r11, r10
cmp rax, r8
jne 0x1400632d4
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 0x140063370
mov rdi, r8
sub ecx, edx
jns 0x14006338b
jmp 0x140063396
cmp r8, rsi
je 0x1400633cb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140063396
xor al, 1
cmp rdi, rsi
jne 0x140063350
jmp 0x140063396
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.140061b20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400610e0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_7adc89b69b941afceadcf8609dd6b2999353e550library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140061480
ud2
Function at 0x1400697a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140060c70
cmp rax, rcx
je 0x1400697c5
cmp rdx, 4
jae 0x1400697c8
xor eax, eax
xor r8d, r8d
jmp 0x140069860
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140166b20]
movdqa xmm3, xmmword [0x140166b30]
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 0x1400697f0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140069877
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140069860
ret
Function at 0x14006add0
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 0x14006ae2b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14006ae2b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14006ae46
cmp eax, 0x42
jne 0x14006ae2b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14006aef6
cmp byte [r8 + r11], 0x5f
jne 0x14006aef6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14006af5e
mov rcx, rsi
xor edx, edx
call fcn.1400661d0
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.1400661d0
test al, al
jne 0x14006aff1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14006ae82
lea rdx, [0x1401694f4]
mov r8d, 1
call fcn.140061160
test al, al
jne 0x14006aff1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14006ae3a
xor r14d, r14d
lea rbx, [0x140169861]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14006aeb4
cmp byte [rax + rcx], 0x45
je 0x14006b013
sub r14, 1
jb 0x14006aed9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14006aed9
mov r8d, 2
mov rdx, rbx
call fcn.140061160
test al, al
jne 0x14006aff1
mov rcx, rsi
call fcn.140067a00
test al, al
jne 0x14006aff1
mov rax, qword [rsi]
test rax, rax
jne 0x14006aea0
jmp 0x14006ae3a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x14006afb8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14006af52
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14006af3c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14006af2b
add dl, 0xa9
jmp 0x14006af3a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14006afb8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14006afb8
movzx edx, bl
add rax, rdx
jae 0x14006af00
jmp 0x14006afb8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14006afb8
cmp rax, rcx
jae 0x14006afb5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14006b00b
cmp qword [rsi + 0x20], 0
je 0x14006b004
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.14006add0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14006ae3c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14006aff9
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, [0x140169840]
test r9b, r9b
cmovne rdx, rax
call fcn.140061160
test al, al
je 0x14006aff9
mov dil, 2
jmp 0x14006ae3a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14006ae3a
mov dil, 1
xor r9d, r9d
jmp 0x14006afba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14006ae3a
Function at 0x14006d9b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14006da35
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 0x14006da76
cmp dword [rsp + 0x2c], 0
je 0x14006da5a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14006da90
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1402b9f10]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1402b9f10], rsi
jne 0x14006da10
mov byte [0x1402b9f08], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14006da6c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14006dadc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14006da5f
mov edi, dword [rsp + 0x28]
jmp 0x14006da6c
mov edi, dword [rsi + 0x18]
jmp 0x14006da6a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call switch.0x140020b60
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.14006dba0
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_7adc89b69b941afceadcf8609dd6b2999353e550library_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.140060720
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_7adc89b69b941afceadcf8609dd6b2999353e550library_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.14006dbf0
ud2
Function at 0x14006e670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1402bbdd0]
test ecx, ecx
je 0x14006e72d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14006e6a0
cmp qword [rax + 8], 0
je 0x14006e6a0
add rax, 0x10
jmp 0x14006e727
mov ecx, dword [0x1402bbdd0]
test ecx, ecx
je 0x14006e740
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14006e725
mov rsi, rax
test rax, rax
jne 0x14006e70b
movzx eax, byte [0x1402b9eb0]
mov ecx, 0x20
mov edx, 8
call fcn.140060030
test rax, rax
je 0x14006e763
mov rsi, rax
lea rax, [0x1402bbdb8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402bbdd0]
test ecx, ecx
je 0x14006e753
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 0x14006e727
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402bbdb8]
call fcn.14006d9b0
mov ecx, eax
jmp 0x14006e685
lea rcx, [0x1402bbdb8]
call fcn.14006d9b0
mov ecx, eax
jmp 0x14006e6b0
lea rcx, [0x1402bbdb8]
call fcn.14006d9b0
mov ecx, eax
jmp 0x14006e703
mov ecx, 8
mov edx, 0x20
call fcn.140060350
ud2
Function at 0x140093300
Capabilities:
Create thread

Disassembly:
push rbp
xor eax, eax
mov rbp, rsp
push r12
push rdi
mov edi, r8d
push rsi
mov esi, r9d
push rbx
mov ebx, ecx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov word [0x1402bc320], ax
mov qword [0x1402bc710], rdx
test rdx, rdx
je 0x140093345
lea r12, [0x1402bc320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov qword [0x1402bc710], r12
mov eax, dword [rbp + 0x30]
pxor xmm0, xmm0
mov dword [0x1402b9710], edi
xor ecx, ecx
movups xmmword [0x1402bad70], xmm0
xor r9d, r9d
lea r8, [0x140053320]
xor edx, edx
mov dword [0x1402bad78], eax
lea rax, [rsp + 0x3c]
mov byte [0x1402b8eb0], sil
mov dword [0x1402bad70], ebx
movups xmmword [0x1402bad7c], xmm0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x1400933b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret

Function at 0x1400abff0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1401659e0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400ac10a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400ac0e2
add rax, 1
cmp rax, 0x6b
je 0x1400ac0ff
cmp byte [rcx + rax], 0
jne 0x1400ac0d8
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400ac0ff
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400ac0f3
Function at 0x1400ac4a0
Capabilities:
Allocate thread local storage

Disassembly:
call sub.msvcrt.dll_abort
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1402b9a90], 1
je 0x1400ac518
lea rdi, [0x1402b9a90]
mov rcx, rdi
call fcn.1400abd70
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400a7620
mov esi, dword [0x1402b9a90]
test esi, esi
jne 0x1400ac528
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402b9348], eax
cmp eax, 0xffffffff
je 0x140020456
mov dword [0x1402b9a90], 1
mov rcx, rbp
call fcn.1400a7910
test rbx, rbx
je 0x1400ac518
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400ac120
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400ac4f8
mov ecx, 2
call qword [fcn.140001f00]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400ac4f8

Function at 0x1400ac550
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400ac230
cmp qword [0x14014cc58], 0
mov rbx, rax
je 0x1400ac668
test rax, rax
je 0x1400ac668
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140044ae0
cmp eax, 1
je 0x1400ac676
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14002045c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1402b9348]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400ac67c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400abff0
nop
jmp fcn.14002045c

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

Disassembly:
sub rsp, 0x28
call fcn.1400ac4a0
mov ecx, dword [0x1402b9348]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ac6b0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400ac550