joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c418
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004c448
xor eax, eax
jmp 0x14004c50b
mov rbp, rbx
cmp word [rax], si
je 0x14004c46d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004c454
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004c450
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004c338
movsxd r14, eax
test eax, eax
jne 0x14004c4ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004c441
mov rcx, r14
call fcn.140048bcc
mov rdi, rax
test rax, rax
jne 0x14004c4c4
xor ecx, ecx
call fcn.140047f54
jmp 0x14004c4a0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004c338
test eax, eax
jne 0x14004c4f5
mov rcx, rdi
call fcn.140047f54
jmp 0x14004c4ff
xor ecx, ecx
call fcn.140047f54
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14005082c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140050842
mov al, 1
jmp 0x1400508a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140050853
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400508a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004cd38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400508a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400508a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400508a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400508a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400518e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14004b408
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005196a
cmp byte [rbp - 0x21], r15b
je 0x140051965
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400519a0
call fcn.1400481a4
test eax, eax
jne 0x14005198c
cmp byte [rbp - 0x21], r15b
je 0x140051984
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400519a0
cmp byte [rbp - 0x21], r15b
je 0x14005199d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14004a9e8
test eax, eax
jne 0x140051a40
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004b408
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400519df
cmp byte [rbp - 0x21], r15b
je 0x140051a14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140051a14
call fcn.1400481a4
test eax, eax
jne 0x140051a00
cmp byte [rbp - 0x21], r15b
je 0x1400519f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140051a14
cmp byte [rbp - 0x21], r15b
je 0x140051a11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14004a9e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140051a40
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140051a43
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140051a51
mov rcx, rdi
call fcn.140047f54
cmp byte [rbp + 0x3f], r15b
je 0x140051a60
mov rcx, qword [rbp + 0x27]
call fcn.140047f54
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140053fd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053ff8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140053ff8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400014b0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
ret

Function at 0x1400014d0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
call fcn.140001600
xor ebx, ebx
mov rdx, rax
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax + 0x8c], ebx
je 0x1400015b6
mov eax, dword [rcx + rax + 0x88]
test eax, eax
je 0x1400015b6
add rax, rdx
mov qword [rsp + 0x50], rdi
mov ecx, ebx
mov r10d, dword [rax + 0x20]
mov r11d, dword [rax + 0x24]
add r10, rdx
mov edi, dword [rax + 0x1c]
add r11, rdx
mov r9d, dword [rax + 0x18]
add rdi, rdx
dec r9d
nop dword [rax]
nop dword [rax + rax]
mov r8d, ecx
mov eax, dword [r10 + r8*4]
add rax, rdx
cmp byte [rax], 0x47
jne 0x14000159d
cmp byte [rax + 1], 0x65
jne 0x14000159d
cmp byte [rax + 2], 0x74
jne 0x14000159d
cmp byte [rax + 3], 0x50
jne 0x14000159d
cmp byte [rax + 4], 0x72
jne 0x14000159d
cmp byte [rax + 5], 0x6f
jne 0x14000159d
cmp byte [rax + 6], 0x63
jne 0x14000159d
cmp byte [rax + 7], 0x41
jne 0x14000159d
cmp byte [rax + 8], 0x64
jne 0x14000159d
cmp byte [rax + 9], 0x64
jne 0x14000159d
cmp byte [rax + 0xa], 0x72
jne 0x14000159d
cmp byte [rax + 0xb], 0x65
jne 0x14000159d
cmp byte [rax + 0xc], 0x73
jne 0x14000159d
cmp byte [rax + 0xd], 0x73
je 0x1400015a6
inc ecx
cmp ecx, r9d
jbe 0x140001540
jmp 0x1400015b1
movzx eax, word [r11 + r8*2]
mov ebx, dword [rdi + rax*4]
add rbx, rdx
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0x64616f4c
mov dword [rsp + 0x24], 0x7262694c
mov dword [rsp + 0x28], 0x57797261
mov byte [rsp + 0x2c], 0
call fcn.140001600
mov rcx, rax
lea rdx, [rsp + 0x20]
call rbx
lea rax, section..text
call rax
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001630
add rsp, 0x40
pop rbx
ret

Function at 0x140001600
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
ret

Function at 0x140001ef8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f42
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f44
xor al, al
add rsp, 0x28
ret
Function at 0x140036fd0
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 0x140037060
cmp r11, r10
ja 0x1400370d6
cmp r10, rdx
ja 0x1400370ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140037062
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140037040
jmp 0x1400370c4
ja 0x14003706a
mov r11, r10
cmp rax, r8
jne 0x140037004
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 0x1400370a0
mov rdi, r8
sub ecx, edx
jns 0x1400370bb
jmp 0x1400370c6
cmp r8, rsi
je 0x1400370fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400370c6
xor al, 1
cmp rdi, rsi
jne 0x140037080
jmp 0x1400370c6
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.140032a70
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140032050
ud2
lea rcx, [0x140113f6f]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400323f0
ud2

Function at 0x140039266
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400e9860]
test ecx, ecx
je 0x14003927f
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
lea rcx, [0x1400e9848]
call fcn.14006d9c0
mov ecx, eax
jmp 0x140039276

Function at 0x14003928f
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400392b0
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.kernel32.dll_TlsSetValue
mov rcx, rax
call fcn.14006d9c0
mov ecx, eax
jmp 0x1400392a3

Function at 0x1400516a5
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400eb5a8]
test ecx, ecx
je 0x1400516be
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
lea rcx, [0x1400eb590]
call fcn.14006d9c0
mov ecx, eax
jmp 0x1400516b5
Function at 0x1400549d5
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140054a66
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1400549f5
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x1400549f5
xor ebx, 0x80000000
je 0x140054a64
mov al, byte [0x140123410]
mov ecx, 4
mov edx, 4
call fcn.140007180
test rax, rax
je 0x140054a79
mov rsi, rax
mov dword [rax], ebx
jmp 0x140054a66
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.140007760
ud2

Function at 0x1400563d3
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400563ec
dec ecx
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue
mov rcx, rax
call fcn.14006d9c0
mov ecx, eax
jmp 0x1400563e3
Function at 0x140067c50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140031be0
cmp rax, rcx
je 0x140067c75
cmp rdx, 4
jae 0x140067c78
xor eax, eax
xor r8d, r8d
jmp 0x140067d10
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400fbde0]
movdqa xmm3, xmmword [0x1400fbdf0]
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 0x140067ca0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140067d27
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140067d10
ret
Function at 0x140068cc0
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 0x140068d1b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140068d1b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140068d36
cmp eax, 0x42
jne 0x140068d1b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140068de6
cmp byte [r8 + r11], 0x5f
jne 0x140068de6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140068e4e
mov rcx, rsi
xor edx, edx
call fcn.140064650
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.140064650
test al, al
jne 0x140068ee1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140068d72
lea rdx, [0x14010edab]
mov r8d, 1
call fcn.1400320d0
test al, al
jne 0x140068ee1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140068d2a
xor r14d, r14d
lea rbx, [0x14010f118]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140068da4
cmp byte [rax + rcx], 0x45
je 0x140068f03
sub r14, 1
jb 0x140068dc9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140068dc9
mov r8d, 2
mov rdx, rbx
call fcn.1400320d0
test al, al
jne 0x140068ee1
mov rcx, rsi
call fcn.140065eb0
test al, al
jne 0x140068ee1
mov rax, qword [rsi]
test rax, rax
jne 0x140068d90
jmp 0x140068d2a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140068ea8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140068e42
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140068e2c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140068e1b
add dl, 0xa9
jmp 0x140068e2a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140068ea8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140068ea8
movzx edx, bl
add rax, rdx
jae 0x140068df0
jmp 0x140068ea8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140068ea8
cmp rax, rcx
jae 0x140068ea5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140068efb
cmp qword [rsi + 0x20], 0
je 0x140068ef4
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.140068cc0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140068d2c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140068ee9
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, [0x14010f0f8]
test r9b, r9b
cmovne rdx, rax
call fcn.1400320d0
test al, al
je 0x140068ee9
mov dil, 2
jmp 0x140068d2a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140068d2a
mov dil, 1
xor r9d, r9d
jmp 0x140068eaa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140068d2a
Function at 0x14006d9c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14006da45
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 0x14006da86
cmp dword [rsp + 0x2c], 0
je 0x14006da6a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14006daae
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401233b0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401233b0], rsi
jne 0x14006da20
mov byte [0x1401233a8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14006da7c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14006dafa
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14006da6f
mov edi, dword [rsp + 0x28]
jmp 0x14006da7c
mov edi, dword [rsi + 0x18]
jmp 0x14006da7a
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 rdx, [0x140112c98]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14006e0e0
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.combase.dll
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.1400316b0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14006e120
ud2
Function at 0x14006dfb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400ee4a8]
test ecx, ecx
je 0x14006e090
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14006dfe4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14006dfe4
add rdi, 0x10
jmp 0x14006e086
mov ecx, dword [0x1400ee4a8]
test ecx, ecx
je 0x14006e0a3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14006e084
mov rsi, rax
test rax, rax
jne 0x14006e053
movzx eax, byte [0x140123410]
mov ecx, 0x18
mov edx, 8
call fcn.140007180
test rax, rax
je 0x14006e0c6
mov rsi, rax
lea rax, [0x1400ee490]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ee4a8]
test ecx, ecx
je 0x14006e0b6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14006e086
test rcx, rcx
je 0x14006e086
lock dec qword [rcx]
jne 0x14006e086
call fcn.14006d960
jmp 0x14006e086
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ee490]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006dfc6
lea rcx, [0x1400ee490]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006dff4
lea rcx, [0x1400ee490]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006e04b
mov ecx, 8
mov edx, 0x18
call fcn.140007760
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400ee4c8]
test ecx, ecx
je 0x14006e74f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14006e6d9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14006e73e
mov ecx, dword [0x1400ee4c8]
test ecx, ecx
je 0x14006e762
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14006e744
mov rsi, rax
test rax, rax
jne 0x14006e738
movzx eax, byte [0x140123410]
mov ecx, 0x10
mov edx, 8
call fcn.140007180
test rax, rax
je 0x14006e785
mov rsi, rax
lea rax, [0x1400ee4b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400ee4c8]
test ecx, ecx
je 0x14006e775
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14006e746
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400ee4b0]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006e6c5
lea rcx, [0x1400ee4b0]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006e6e5
lea rcx, [0x1400ee4b0]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006e730
mov ecx, 8
mov edx, 0x10
call fcn.140007760
ud2
Function at 0x14006ecf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140112278]
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 0x14006ed61
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14006ed97
test eax, eax
js 0x14006ed72
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006ed8a
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, [0x1401122d8]
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 fcn.14006ddd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14006d260
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400ee488]
test ecx, ecx
je 0x14006f39d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14006f310
cmp qword [rax + 8], 0
je 0x14006f310
add rax, 0x10
jmp 0x14006f397
mov ecx, dword [0x1400ee488]
test ecx, ecx
je 0x14006f3b0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14006f395
mov rsi, rax
test rax, rax
jne 0x14006f37b
movzx eax, byte [0x140123410]
mov ecx, 0x20
mov edx, 8
call fcn.140007180
test rax, rax
je 0x14006f3d3
mov rsi, rax
lea rax, [0x1400ee470]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400ee488]
test ecx, ecx
je 0x14006f3c3
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 0x14006f397
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400ee470]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006f2f5
lea rcx, [0x1400ee470]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006f320
lea rcx, [0x1400ee470]
call fcn.14006d9c0
mov ecx, eax
jmp 0x14006f373
mov ecx, 8
mov edx, 0x20
call fcn.140007760
ud2