joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400065a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.1400650b0
sub rsp, rax
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400fc468]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14000663f
lea rcx, [rsp + 0x2c]
call fcn.14008f580
test al, al
je 0x1400066bc
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x140006620
lea rcx, [rsp + 0x2c]
call fcn.14008f580
test al, al
je 0x1400066bf
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400066bf
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1400fc468], ecx
je 0x14000663f
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x1400fc468]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400066b9
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140067750
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
mov rbx, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rbx
mov ecx, 0x1000
call fcn.140063034
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400670a0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call rbx
mov rcx, qword [rsp + 0x1038]
xor rcx, rsp
call fcn.140065120
mov rax, rdi
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x140006a30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140102690]
cmp rsi, 1
jbe 0x140006a75
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140006ac7
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140006ac7
mov rax, qword [rax + rcx]
test rax, rax
je 0x140006ac7
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140102690]
call fcn.14003b3c0
test al, al
je 0x140006abb
mov qword [0x140102698], 0
lea rdi, [0x140102690]
lea rsi, [0x140102698]
mov rcx, rsi
xor edx, edx
call fcn.140035760
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003b330
jmp 0x140006a43
mov rsi, qword [0x140102690]
jmp 0x140006a43
int3
Function at 0x140027df0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140103c60], 0
jne 0x140027e2d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140027e20
mov dword [rdi], eax
mov dword [0x140103c68], eax
mov qword [0x140103c60], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140033d50
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140100768]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140033da7
jnp 0x140033e0c
ucomisd xmm0, xmm6
jne 0x140033db3
jnp 0x140033f46
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400e0a90]
subpd xmm1, xmmword [0x1400e0aa0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400e7940]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140065120
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140100778]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033f4d
mov eax, dword [0x140100788]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033f87
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x140100780]
movq xmm0, rbp
punpckldq xmm0, xmmword [0x1400e0a90]
subpd xmm0, xmmword [0x1400e0aa0]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400e7938]
ucomisd xmm2, xmm1
ja 0x140033da7
shl r15, 0x20
or r14, r15
sub r14, qword [0x140100770]
movq xmm2, r14
punpckldq xmm2, xmmword [0x1400e0a90]
subpd xmm2, xmmword [0x1400e0aa0]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x140100768], xmm0
jmp 0x140033da7
xor eax, eax
jmp 0x140033de5
lea rcx, [0x140100778]
call fcn.140062c24
cmp dword [0x140100778], 0xffffffff
jne 0x140033e56
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140100770], rdx
lea rcx, [0x140100778]
call fcn.140062bc4
jmp 0x140033e56
lea rcx, [0x140100788]
call fcn.140062c24
cmp dword [0x140100788], 0xffffffff
jne 0x140033e7b
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140100780], rax
lea rcx, [0x140100788]
call fcn.140062bc4
jmp 0x140033e7b
Function at 0x140035540
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140102700]
cmp rdi, 1
jbe 0x14003559d
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140035586
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140035595
lock sub dword [rcx + 8], 1
je 0x1400355f2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102700]
call fcn.14003b3c0
test al, al
je 0x1400355e6
mov qword [0x140102708], 0
lea rbx, [0x140102700]
lea rdi, [0x140102708]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140035557
mov rdi, qword [0x140102700]
jmp 0x140035557
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140035610
Function at 0x140035760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.1400650b0
sub rsp, rax
mov r14, rdx
mov r15, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x1400fc468]
cmp ecx, 0xffffffff
je 0x1400357a9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140035824
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400fc468]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140035911
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400359d3
lea rbx, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.140067750
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
mov rsi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rsi
mov ecx, 0x1000
call fcn.140063034
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call fcn.1400670a0
mov ecx, dword [rsp + 0x2c]
or rdi, 3
mov rdx, rdi
call rsi
mov eax, dword [0x1401025b8]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003597a
mov rbx, qword [0x1401025b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400359c0
mov rcx, qword [0x140100da0]
inc rcx
mov edx, 0x100
lea rax, [0x140100db0]
nop word [rax + rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x1400358aa
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x1400358aa
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140035880
jmp 0x1400358cf
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140100da0], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x1400359cd
cmp eax, 0x100
jge 0x1400359d0
mov rcx, qword [rsp + 0x1038]
xor rcx, rsp
call fcn.140065120
mov rax, r15
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x2c]
call fcn.14008f580
test al, al
je 0x1400359d6
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140035954
mov eax, 0xffffffff
lock cmpxchg dword [0x1400fc468], ecx
je 0x1400357c4
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x1400fc468]
mov dword [rsp + 0x2c], ecx
jmp 0x1400357c4
lea rcx, [rsp + 0x2c]
call fcn.14008f580
test al, al
je 0x1400359d9
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400359d9
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [rsp + 0x2c]
jmp 0x14003592c
lea rcx, [0x1401025b8]
call fcn.140062c24
cmp dword [0x1401025b8], 0xffffffff
jne 0x140035849
mov ecx, 8
call fcn.140062b88
mov rdi, rax
mov rcx, rax
call fcn.140046b10
mov qword [0x1401025b0], rdi
lea rcx, [0x1401025b8]
call fcn.140062bc4
jmp 0x140035849
mov rcx, rbx
call fcn.140034be0
jmp 0x140035861
int3
int3
int3
int3
int3
Function at 0x1400359e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
test rdx, rdx
je 0x1400359f6
lock inc dword [rdx + 8]
mov qword [rsi + 8], rdx
mov rdi, qword [0x140102700]
cmp rdi, 1
jbe 0x140035a85
lea rbx, [rsi + 8]
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140035b1b
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [0x140102690]
cmp rdi, 1
jbe 0x140035ad2
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140035b2e
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140102700]
call fcn.14003b3c0
test al, al
je 0x140035b41
mov qword [0x140102708], 0
lea rbx, [0x140102700]
lea rdi, [0x140102708]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140035a07
lea rcx, [0x140102690]
call fcn.14003b3c0
test al, al
je 0x140035b4d
mov qword [0x140102698], 0
lea rbx, [0x140102690]
lea rdi, [0x140102698]
mov rcx, rdi
xor edx, edx
call fcn.140035760
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14003b330
jmp 0x140035a4b
test rbx, rbx
je 0x140035a3a
call fcn.1400065a0
jmp 0x140035a21
test rsi, rsi
je 0x140035a7a
call fcn.1400065a0
jmp 0x140035a61
mov rdi, qword [0x140102700]
jmp 0x140035a07
mov rdi, qword [0x140102690]
jmp 0x140035a4b

Function at 0x1400367c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1401040d0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036822
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003685e
movsxd rcx, dword [0x1401040c8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401040cc]
jne 0x14003685e
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401040d0]
call fcn.140062c24
cmp dword [0x1401040d0], 0xffffffff
jne 0x1400367e9
mov qword [0x1401040c8], 0
lea rcx, [0x1401040c8]
xor edx, edx
call fcn.140035760
lea rcx, [0x1401040d0]
call fcn.140062bc4
jmp 0x1400367e9
xor eax, eax
jmp 0x140036816
Function at 0x140036c30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1400ff150]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036c92
mov rsi, qword [0x1400ff148]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140065120
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400ff150]
call fcn.140062c24
cmp dword [0x1400ff150], 0xffffffff
jne 0x140036c6d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140067750
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140062b88
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400ff188]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036d4b
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r8d, edi
call fcn.140007b30
mov qword [0x1400ff148], rsi
lea rcx, [0x1400ff150]
call fcn.140062bc4
jmp 0x140036c6d
lea rcx, [0x1400ff188]
call fcn.140062c24
cmp dword [0x1400ff188], 0xffffffff
jne 0x140036d23
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x1400ff178], xmm2
movups xmmword [0x1400ff168], xmm1
movups xmmword [0x1400ff158], xmm0
lea rcx, [0x1400ff188]
call fcn.140062bc4
jmp 0x140036d23
Function at 0x140037c60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140100748]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037d3c
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140037d7f
movsxd rcx, dword [0x140100740]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140100744]
jne 0x140037d7f
mov rdi, qword [rax + rcx]
cmp byte [rsi], 0
jne 0x140037cd1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rdi]
test rax, rax
js 0x140037d86
cmp dword [rdi + 0x14], 1
jne 0x140037d90
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x140037dcf
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov rsi, qword [rsi + 8]
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x140037ded
mov rax, qword [rdi]
movabs rcx, 0x6000000000000000
and rcx, rax
movabs rax, 0xffffffffffffff
and rsi, rax
or rsi, rcx
mov qword [rdi], rsi
add dword [rdi + 0x14], 0xffffffff
jmp 0x140037cc9
lea rcx, [0x140100748]
call fcn.140062c24
cmp dword [0x140100748], 0xffffffff
jne 0x140037c8f
mov qword [0x140100740], 0
lea rcx, [0x140100740]
xor edx, edx
call fcn.140035760
lea rcx, [0x140100748]
call fcn.140062bc4
jmp 0x140037c8f
xor edi, edi
jmp 0x140037cc4
call fcn.1400c0b90
jmp 0x140037cdd
cmp byte [rsi + 0x10], 0
je 0x140037d02
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140037dbc
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
jmp 0x140037d02
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140037cf4
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140037d13
Function at 0x140042b00
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x140042bc1
mov eax, dword [0x1401041d0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042c25
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x1401041d0]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042c68
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140042bb5
movsxd rcx, dword [0x1401041c8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1401041cc]
movsxd rdx, dword [0x1401041c8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
jne 0x140042bdf
cmp qword [rsi], 0
jne 0x140042c13
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140065120
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r14, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
lea rdx, [rbx + 8]
mov r8, r14
call qword [rax]
add rbx, 0x38
cmp rbx, rdi
je 0x140042bc1
jmp 0x140042be4
mov rcx, rsi
call fcn.1400923c0
mov rcx, qword [rsi]
call fcn.140062b78
jmp 0x140042bc7
lea rcx, [0x1401041d0]
call fcn.140062c24
cmp dword [0x1401041d0], 0xffffffff
jne 0x140042b4a
mov qword [0x1401041c8], 0
lea rcx, [0x1401041c8]
xor edx, edx
call fcn.140035760
lea rcx, [0x1401041d0]
call fcn.140062bc4
jmp 0x140042b4a
lea rcx, [0x1401041d0]
call fcn.140062c24
cmp dword [0x1401041d0], 0xffffffff
jne 0x140042b7b
mov qword [0x1401041c8], 0
lea rcx, [0x1401041c8]
xor edx, edx
call fcn.140035760
lea rcx, [0x1401041d0]
call fcn.140062bc4
jmp 0x140042b7b
Function at 0x140046b40
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140048730
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x140046d65
movups xmm0, xmmword [rsi]
mov qword [rsp + 0x28], rbx
movups xmmword [rbx], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400e5258]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
mov qword [rsp + 0x20], rax
je 0x140046d9b
lea rdx, [0x1400e52a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046dae
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
mov r12, rax
movsxd rbp, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test rbp, rbp
je 0x140046db6
test ebp, ebp
js 0x140046dbd
shl rbp, 3
lea rsi, [rbp*2]
add rsi, rbp
mov rcx, rsi
call fcn.140062b88
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
add rax, rsi
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov rsi, qword [r12 + r15]
mov rcx, rsi
call fcn.140062f08
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x140046d8b
cmp rdi, 0xb
jae 0x140046c9d
mov byte [rbx + 0x17], dil
test rdi, rdi
je 0x140046c98
cmp rdi, 3
jne 0x140046d93
movzx eax, word [rsi + 4]
mov word [rbx + 4], ax
mov eax, dword [rsi]
mov dword [rbx], eax
mov r13, rbx
jmp 0x140046cde
lea r14, [rdi + 8]
and r14, 0xfffffffffffffff8
lea rcx, [r14 + r14]
call fcn.140062b88
mov r13, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r14
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
mov r8, rdi
add r8, rdi
mov rcx, r13
mov rdx, rsi
call fcn.1400670a0
mov word [r13 + rdi*2], 0
add rbx, 0x18
add r15, 8
cmp rbp, r15
jne 0x140046c51
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140046dd0
movups xmmword [rsi], xmm6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140046d2a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140046d65
cmp rbx, rsi
je 0x140046d58
lea rdi, [rbx - 0x18]
cmp byte [rbx - 1], 0
js 0x140046d4d
mov rbx, rdi
cmp rsi, rdi
jne 0x140046d39
jmp 0x140046d58
mov rcx, qword [rbx - 0x18]
call fcn.140062b78
jmp 0x140046d43
mov qword [rsp + 0x38], rsi
mov rcx, rsi
call fcn.140062b78
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140065120
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140091a84
mov r13, rbx
jmp 0x140046ccd
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140046bf8
xor r12d, r12d
jmp 0x140046bfb
xor ebx, ebx
jmp 0x140046cfc
lea rcx, [rsp + 0x30]
call fcn.1400a2af4
int3
Function at 0x14004da50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004da8e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14004da87
call fcn.1400065a0
jmp 0x14004da6e
Function at 0x14004fda0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004fdd4
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14004fdd4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14004fdce
Function at 0x140051ac0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140051b11
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065120
mov rax, rsi
add rsp, 0x30
pop rsi
ret
int3