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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400bf3e3
mov rsi, rbx
cmp word [rax], bp
je 0x1400bf3a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bf38c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bf388
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b48c8
mov rdi, rax
test rax, rax
je 0x1400bf3d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009dbd0
mov rbp, rdi
xor ecx, ecx
call fcn.1400b4688
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c3650
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b9488
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b9488
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c37a0
cmp rax, 0xffffffffffffffff
je 0x1400c37a0
xor edi, edi
test rbp, rbp
jle 0x1400c374b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b60cc
mov rbx, rax
test rax, rax
jne 0x1400c36d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c3741
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b3788
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b7bd8
cmp eax, 0xffffffff
je 0x1400c3721
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c36e8
mov edx, r15d
mov ecx, r14d
call fcn.1400b3788
jmp 0x1400c3741
cmp byte [rsi + 0x38], dil
je 0x1400c3738
cmp dword [rsi + 0x34], 5
jne 0x1400c3738
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400c3741
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b4688
jmp 0x1400c37b4
jns 0x1400c37b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b9488
cmp rax, 0xffffffffffffffff
jne 0x1400c376c
cmp byte [rsi + 0x30], dil
je 0x1400c37b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400c37b4
mov ecx, r14d
call fcn.1400bf9a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c37b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400c37b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c37ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400c37b2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b9488
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400c3cd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c3cf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c3cf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400044d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14014d448]
jmp 0x14000f2b0
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14000f3cb
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14000f409
je 0x14000f2fa
test rdi, rdi
je 0x14000f301
lea rcx, [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
lea rax, [0x14014f1a0]
cmovne rax, rcx
jmp 0x14000f308
xor eax, eax
jmp 0x14000f409
lea rax, [0x14014f1a0]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x68], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x50
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14000f411
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14000f406
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x14000f3f3
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x14000f3e5
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14000f3f3
call fcn.140005990
jmp 0x14000f3f3
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14000f2d8
jmp 0x14000f409
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14000f3f3
call fcn.140005190
mov edx, 0x50
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.140126690
ud2

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

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14014d448]
jmp 0x14000f2b0

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

Disassembly:
mov rcx, qword [0x14014d448]
xor edx, edx
jmp 0x14000f2b0
Function at 0x14000f2b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x14014d448]
jmp 0x14000f2b0
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14000f3cb
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14000f409
je 0x14000f2fa
test rdi, rdi
je 0x14000f301
lea rcx, [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
lea rax, [0x14014f1a0]
cmovne rax, rcx
jmp 0x14000f308
xor eax, eax
jmp 0x14000f409
lea rax, [0x14014f1a0]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x68], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x50
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14000f411
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14000f406
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x14000f3f3
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x14000f3e5
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14000f3f3
call fcn.140005990
jmp 0x14000f3f3
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14000f2d8
jmp 0x14000f409
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x14000f3f3
call fcn.140005190
mov edx, 0x50
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.140126690
ud2
Function at 0x1400404a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
test byte [rcx], 1
je 0x1400404df
lea rdx, [rcx + 8]
cmp qword [rcx + 0x38], 0xffffffffffffffff
mov r8, qword [rcx + 0x48]
mov r9, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov rcx, qword [rcx + 0x60]
je 0x140040609
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x140040618
cmp byte [rcx + 0x1a], 0
je 0x1400404fc
xor eax, eax
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
jne 0x14004064b
jmp 0x140040669
mov r8, qword [rcx + 8]
mov rax, qword [rcx + 0x48]
mov rdx, qword [rcx + 0x50]
movzx r9d, byte [rcx + 0x18]
jmp 0x140040517
add r8, r10
mov qword [rcx + 8], r8
mov r10d, r9d
xor r9b, 1
test r8, r8
je 0x140040546
cmp r8, rdx
jae 0x140040540
cmp byte [rax + r8], 0xbf
jg 0x140040546
jmp 0x140040673
jne 0x140040673
cmp r8, rdx
je 0x14004062b
movzx r11d, byte [rax + r8]
test r11b, r11b
jns 0x1400405b0
mov esi, r11d
and esi, 0x1f
movzx ebx, byte [rax + r8 + 1]
and ebx, 0x3f
cmp r11b, 0xdf
jbe 0x1400405a3
movzx edi, byte [rax + r8 + 2]
shl ebx, 6
and edi, 0x3f
or edi, ebx
cmp r11b, 0xf0
jb 0x1400405f2
movzx r11d, byte [rax + r8 + 3]
and esi, 7
shl esi, 0x12
shl edi, 6
and r11d, 0x3f
or r11d, edi
or r11d, esi
test r10b, 1
je 0x1400405b6
jmp 0x140040600
shl esi, 6
or esi, ebx
mov r11d, esi
nop dword [rax + rax]
test r10b, 1
jne 0x140040600
mov r10d, 1
cmp r11d, 0x80
jb 0x140040510
mov r10d, 2
cmp r11d, 0x800
jb 0x140040510
cmp r11d, 0x10000
mov r10d, 4
sbb r10, 0
jmp 0x140040510
shl esi, 0xc
or edi, esi
mov r11d, edi
test r10b, 1
je 0x1400405b6
mov byte [rcx + 0x18], r9b
mov rdx, r8
jmp 0x140040635
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
call fcn.140040690
test byte [rsp + 0x38], 1
jne 0x14004064b
jmp 0x140040669
mov byte [rcx + 0x18], r9b
test r10b, 1
je 0x140040657
mov qword [rsp + 0x40], rdx
mov eax, 1
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
je 0x140040669
mov rdx, qword [rsp + 0x40]
mov eax, 1
jmp 0x14004066b
mov byte [rcx + 0x1a], 1
xor eax, eax
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
jne 0x14004064b
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rcx + 0x18], r9b
lea rcx, [0x1401544a8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r9, rdx
call fcn.14013b960
int3
Function at 0x14005c580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x140185818]
jmp 0x1400601f0
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14006030b
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140060349
je 0x14006023a
test rdi, rdi
je 0x140060241
lea rcx, [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
lea rax, [0x140159128]
cmovne rax, rcx
jmp 0x140060248
xor eax, eax
jmp 0x140060349
lea rax, [0x140159128]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x68], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x50
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x140060351
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140060346
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x140060333
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x140060325
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140060333
call fcn.140042ed0
jmp 0x140060333
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140060218
jmp 0x140060349
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140060333
call fcn.140043390
mov edx, 0x50
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.140126690
ud2

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

Disassembly:
mov rdx, rcx
mov rcx, qword [0x140185818]
jmp 0x1400601f0
Function at 0x14005fdf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005febe
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005feb1
je 0x14005feaf
test rdi, rdi
je 0x14005fe38
movups xmm6, xmmword [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
jne 0x14005fe54
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14005fed8
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005feaa
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
jmp 0x14005feb1
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005fe1d
jmp 0x14005feb1
mov ecx, 8
mov edx, 0x18
call fcn.140126690
int3
mov rdx, rcx
mov rcx, qword [0x14014d608]
jmp 0x14005fdf0
Function at 0x14005fef0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005fff0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005ffe8
je 0x14005ffe6
test rbx, rbx
je 0x14005ff32
mov rdi, qword [rbx]
mov qword [rbx], 0
test rdi, rdi
jne 0x14005ff71
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x28
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14006001b
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14006000a
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005ffe1
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x14005ffce
mov rcx, rdi
call fcn.140043690
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
jmp 0x14005ffe8
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005ff18
jmp 0x14005ffe8
mov ecx, 8
mov edx, 0x10
call fcn.140126690
ud2
mov ecx, 8
mov edx, 0x28
call fcn.140126690
mov rsi, rax
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rcx, rsi
call fcn.14014a710
mov rsi, rax
lock dec qword [rdi]
jne 0x14006005b
lea rcx, [rsp + 0x20]
call fcn.140043690
mov rcx, rsi
call fcn.14014a710
call fcn.1401335c0
int3
mov rdx, rcx
lea rcx, [0x14014d280]
jmp 0x14005fef0
Function at 0x140060070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x140060182
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140060178
je 0x1400600c1
xor eax, eax
test rdi, rdi
je 0x1400600c8
test byte [rdi], 1
mov qword [rdi], 0
mov ecx, dword [rdi + 0x10]
cmove ecx, eax
mov ebx, 0
cmovne rbx, qword [rdi + 8]
mov eax, ecx
jmp 0x1400600ca
xor eax, eax
jmp 0x140060178
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], al
mov dword [rsp + 0x30], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14006019c
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov r14, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140060175
mov rsi, qword [rdi]
test rsi, rsi
je 0x140060162
dec qword [rsi]
jne 0x140060162
mov rax, qword [rsi + 0x10]
lock dec qword [rax]
jne 0x140060149
lea rcx, [rsi + 0x10]
call fcn.140042c90
dec qword [rsi + 8]
jne 0x140060162
mov edx, 0x20
mov r8d, 8
mov rcx, rsi
call fcn.140014000
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, r14
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14006009a
jmp 0x140060178
mov ecx, 8
mov edx, 0x18
call fcn.140126690
ud2
lea rcx, [0x14014d2a0]
xor edx, edx
jmp 0x140060070
Function at 0x1400601f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rdx, rcx
mov rcx, qword [0x140185818]
jmp 0x1400601f0
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14006030b
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140060349
je 0x14006023a
test rdi, rdi
je 0x140060241
lea rcx, [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
lea rax, [0x140159128]
cmovne rax, rcx
jmp 0x140060248
xor eax, eax
jmp 0x140060349
lea rax, [0x140159128]
mov rcx, qword [rax + 0x40]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x68], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x50
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x140060351
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140060346
mov rax, qword [rdi + 8]
cmp rax, 2
je 0x140060333
mov rcx, rdi
add rcx, 0x10
test rax, rax
je 0x140060325
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140060333
call fcn.140042ed0
jmp 0x140060333
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140060218
jmp 0x140060349
mov rax, qword [rcx]
lock dec qword [rax]
jne 0x140060333
call fcn.140043390
mov edx, 0x50
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x50
call fcn.140126690
ud2
Function at 0x1400637d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rdi, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005febe
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005feb1
je 0x14005feaf
test rdi, rdi
je 0x14005fe38
movups xmm6, xmmword [rdi + 8]
test byte [rdi], 1
mov qword [rdi], 0
jne 0x14005fe54
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14005fed8
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005feaa
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
jmp 0x14005feb1
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005fe1d
jmp 0x14005feb1
mov ecx, 8
mov edx, 0x18
call fcn.140126690
int3
mov rdx, rcx
mov rcx, qword [0x14014d608]
jmp 0x14005fdf0

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

Disassembly:
mov rdx, rcx
mov rcx, qword [0x140185818]
jmp 0x1400601f0
Function at 0x14006ae30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x14005fff0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005ffe8
je 0x14005ffe6
test rbx, rbx
je 0x14005ff32
mov rdi, qword [rbx]
mov qword [rbx], 0
test rdi, rdi
jne 0x14005ff71
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x28
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14006001b
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
mov rax, qword [str.10e_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140013ff0
test rax, rax
je 0x14006000a
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14005ffe1
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x14005ffce
mov rcx, rdi
call fcn.140043690
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rax, rsi
jmp 0x14005ffe8
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.140102790
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005ff18
jmp 0x14005ffe8
mov ecx, 8
mov edx, 0x10
call fcn.140126690
ud2
mov ecx, 8
mov edx, 0x28
call fcn.140126690
mov rsi, rax
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140014000
mov rcx, rsi
call fcn.14014a710
mov rsi, rax
lock dec qword [rdi]
jne 0x14006005b
lea rcx, [rsp + 0x20]
call fcn.140043690
mov rcx, rsi
call fcn.14014a710
call fcn.1401335c0
int3
mov rdx, rcx
lea rcx, [0x14014d280]
jmp 0x14005fef0