joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc0a0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14007f940
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400bc13f
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14007adcc
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14006d500
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14005df90
mov rcx, r14
mov rdx, rsi
call fcn.14006d4c0
mov rcx, rsi
call fcn.14004f070
mov rcx, rbx
call fcn.14004f070
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14007d5a0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400bc730
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
je 0x1400bc772
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x1400bc757
mov rcx, rdi
call fcn.14005e844
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400bc779
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400bc880
mov edi, 2
jmp 0x1400bc757
jb 0x1400bc783
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400bc793
cvtsi2ss xmm0, rax
jmp 0x1400bc7a8
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400a60b0
cvttss2si rcx, xmm0
movss xmm1, dword [0x14014b2c8]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rbx, 3
jb 0x1400bc85a
mov rcx, rbx
shr rcx, 1
movabs r8, 0x5555555555555555
and r8, rcx
mov rdx, rbx
sub rdx, r8
movabs r8, 0x3333333333333333
mov rcx, rdx
shr rcx, 2
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x1400bc85a
cmp rax, 2
jb 0x1400bc862
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400bc862
mov rcx, rax
call fcn.14005e844
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jae 0x1400bc77b
jmp 0x1400bc760
Function at 0x1400bf590
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400bf667
mov rax, qword [rsi + 0x28]
cmp rax, 0x60
mov edi, 0x60
cmova rdi, rax
mov rcx, rdi
call qword [rsi + 0x48]
mov rdx, rax
xor r8d, r8d
mov qword [rax], r8
mov qword [rax + 8], 0x18
mov qword [rax + 0x10], rdi
lock add qword [rsi + 0x10], rdi
lea rcx, [rax + 0x18]
mov qword [rax + 8], 0x60
mov qword [rax + 0x18], rsi
mov edi, dword [0x1401719a0]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdi*8]
lea rax, [rax + 0x120]
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rdx
lea rax, [rdx + 0x60]
mov qword [rdx + 0x40], rax
mov rax, qword [rdx + 0x10]
add rax, rdx
mov qword [rdx + 0x48], rax
mov qword [rdx + 0x30], r8
xorps xmm0, xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rsi]
mov qword [rdx + 0x38], rax
lock cmpxchg qword [rsi], rcx
jne 0x1400bf629
mov eax, dword [0x1401719a0]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov qword [rax + 0x128], rcx
mov rdx, qword [rsi + 0x20]
mov qword [rax + 0x120], rdx
mov qword [rsi + 8], rcx
mov rax, rcx
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [0x1401719a0]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
lea rax, [rax + 0x120]
cmp qword [rcx + 8], rax
je 0x1400bf634
mov rcx, qword [rcx + 0x20]
jmp 0x1400bf59c

Function at 0x1400d85d2
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14007a994
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400f5370]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14007bb10
mov qword [rbx], rax
test rax, rax
je 0x1400d8629
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400f5ae0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp fcn.14004e080
Function at 0x1400f73c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rdi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
call fcn.140046d60
cmp eax, 8
jg 0x1400f7400
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400f7514
mov r15d, eax
movaps xmm0, xmmword [0x140147b90]
lea rsi, [rsp + 0x60]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DeleteFileEvenIfInUse
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x1d9
call fcn.140038cd0
xor ebx, ebx
mov rcx, rsi
mov rdx, rbp
xor r8d, r8d
call fcn.140043760
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400f745f
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f750a
test al, 0x10
jne 0x1400f74fd
cmp byte [rdi + 0x17], 0
jns 0x1400f747f
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, 0x10100
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x1400f74dc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400f75d6
call fcn.14003af20
mov r14, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [r14 + 1]
cmp rdi, 2
jae 0x1400f7536
xor ebx, ebx
cmp rdi, 2
jb 0x1400f750a
call fcn.14003af20
mov rcx, r14
call fcn.1400337d0
jmp 0x1400f750a
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x60]
call fcn.14003cd60
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007d5a0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtSetInformationFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f74e6
mov rbx, rax
movups xmm0, xmmword [0x14014e400]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
xor eax, eax
cmp r15d, 0xc
setg al
shl eax, 4
or eax, 3
lea r8, [rsp + 0x38]
mov dword [r8], eax
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r9d, 4
call rbx
test eax, eax
sete bl
je 0x1400f74e8
mov esi, eax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f75c9
mov ecx, esi
call rax
mov esi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400f74e8
xor r14d, r14d
jmp 0x1400f74d4
Function at 0x1400f75e0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x140147b90]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x1c9
call fcn.140038cd0
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140043760
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x1400f765f
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x1400f7686
test al, al
jns 0x1400f766f
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bpl
lea rcx, [rsp + 0x40]
call fcn.14003cd60
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14007d5a0
mov eax, ebp
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400f77b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movsxd rbx, edx
movsxd rax, ecx
sub rbx, rax
inc rbx
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
mov r15, rdx
lea rcx, [rsp + 0x20]
mov qword [rcx], r14
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f783d
mov rdi, 0xfffffffffffffffe
sub rdi, r15
mov rax, qword [rsp + 0x20]
cmp rax, rdi
ja 0x1400f7840
xor edx, edx
div rbx
add esi, edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d5a0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
lea r15, [rsp + 0x20]
mov qword [rsp + 0x20], r14
mov rcx, r15
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f7867
mov rax, qword [rsp + 0x20]
cmp rax, rdi
jbe 0x1400f781b
jmp 0x1400f7845
int3
Function at 0x1400f79d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movaps xmm6, xmmword [0x140147b90]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x57
call fcn.140038cd0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
movabs rbx, 0xaaaaaaaaaaaaaaaa
test esi, esi
js 0x1400f7b7a
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], 0
mov rcx, qword [0x140175b18]
test rcx, rcx
je 0x1400f7a89
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
jne 0x1400f7bbf
lea r9, [rsp + 0xb0]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f7b84
mov esi, dword [rsp + 0xb0]
cmp qword [rsp + 0x40], 0
jne 0x1400f7b9a
test byte [0x140170030], 0x19
jne 0x1400f7b07
lea rcx, [rsp + 0x60]
call fcn.14003ce50
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14007d5a0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rbx
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140170030]
lea r9, [0x140152245]
mov rcx, rdi
mov dl, 0x45
call fcn.14003ce30
mov rax, qword [rdi]
test rax, rax
je 0x1400f7b61
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xb0]
mov qword [rcx], 0
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
call fcn.14003d09e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400f7ad4
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400f7ad4
mov esi, 0xffffffff
jmp 0x1400f7acb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1400f7abf
mov rcx, qword [0x140175b18]
test rcx, rcx
je 0x1400f7acb
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400f7acb
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x40]
mov r8, r15
call fcn.1400f59d0
jmp 0x1400f7a89
Function at 0x1400f7be0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x140147b90]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x9c
call fcn.140038cd0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
mov qword [rbx + 8], r14
mov qword [rbx], 0
mov rcx, qword [0x140175b18]
test rcx, rcx
je 0x1400f7c86
mov rax, qword [rcx]
call qword [rax + 8]
test al, al
jne 0x1400f7d8c
lea rdi, [rsp + 0xb0]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
mov rbx, qword [rdi]
cmp qword [rsp + 0x40], 0
jne 0x1400f7d67
test byte [0x140170030], 0x19
jne 0x1400f7cf4
xor edi, edi
cmp esi, 1
sbb rdi, rdi
or rdi, rbx
lea rcx, [rsp + 0x60]
call fcn.14003ce50
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14007d5a0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140170030]
lea r9, [0x140152245]
mov rcx, rdi
mov dl, 0x45
call fcn.14003ce30
mov rax, qword [rdi]
test rax, rax
je 0x1400f7d4e
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xb0]
mov qword [rcx], 0
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
call fcn.14003d09e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400f7cb7
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400f7cb7
mov rcx, qword [0x140175b18]
test rcx, rcx
je 0x1400f7cae
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x1400f7cae
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x40]
mov r8, rsi
xor r9d, r9d
call fcn.1400f59d0
jmp 0x1400f7c86

Function at 0x1400fb2e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140171588]
cmp ecx, 0xffffffff
je 0x1400fb305
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1400fb300
Function at 0x140103930
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1401796d0]
cmp rdi, 1
jbe 0x14010397a
mov ecx, dword [0x140171588]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401039c0
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
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401796d0]
call fcn.14004bff0
test al, al
je 0x1401039cc
mov qword [0x1401796d8], 0
lea rbx, [0x1401796d0]
lea rdi, [0x1401796d8]
mov rcx, rdi
xor edx, edx
call fcn.140050d20
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004be50
jmp 0x140103947
test rsi, rsi
je 0x140103972
call fcn.140008040
jmp 0x140103959
mov rdi, qword [0x1401796d0]
jmp 0x140103947
Function at 0x14012ae10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140139000]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14017a578]
lea rdx, [0x140138ff0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14012af88
cmp dword [0x14017a580], 0
jne 0x14012af44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14017a584]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14012af44
mov rdi, qword [rdi]
test rdi, rdi
je 0x14012af44
mov eax, dword [rdi + 0x200]
cmp eax, dword [rdi + 0x204]
jne 0x14012aeef
test rsi, rsi
je 0x14012af06
mov r8, qword [rsi - 8]
add rsi, 0xfffffffffffffff8
add r8, 8
mov rcx, rsi
xor edx, edx
call fcn.14007f940
mov rdi, qword [0x1401715e8]
mov rbx, qword [rdi + 0x28]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d5a0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp rax
shl rax, 5
lea rbx, [rdi + rax]
add rbx, 8
mov rdi, qword [rbx]
test rdi, rdi
jne 0x14012af1c
mov qword [rbx], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d5a0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
add r8, 8
mov rcx, rdi
xor edx, edx
call fcn.14007f940
mov rcx, qword [0x1401715e8]
mov rdx, rdi
xor r8d, r8d
call qword [rcx + 0x28]
jmp 0x14012af03
mov ecx, 0x210
call fcn.140067600
test rax, rax
je 0x14012aea6
mov rdi, rax
mov r8d, 0x210
mov rcx, rax
xor edx, edx
call fcn.14007f940
lea r8, [0x140138ac0]
xor ecx, ecx
mov rdx, rdi
call fcn.1400ae9a0
test eax, eax
jne 0x14012ae98
jmp 0x14012aea6
call fcn.14007bcd0
int3
Function at 0x140133370
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
call fcn.140133a80
mov byte [rsp + 0x2f], 0
cmp byte [0x140172d92], 0
je 0x140133432
mov edi, dword [0x1401797f8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x140133428
cmp rdi, 1
jbe 0x1401334a4
inc qword [rdi + 0x298]
mov rsi, qword [rdi + 0x140]
test rsi, rsi
je 0x1401334d6
inc qword [rdi + 0x2a0]
mov rax, qword [rsi]
test rax, rax
je 0x140133424
mov rcx, rax
not rcx
cmp qword [rsi + 8], rcx
jne 0x140133552
bswap rax
dec byte [rdi + 0x148]
mov qword [rdi + 0x140], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d5a0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1401333fb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401333bb
mov edi, 1
xor ebp, ebp
lea rsi, [0x140172d98]
mov rbx, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call rbx
test al, al
je 0x14013355e
mov rax, qword [0x1401730c0]
mov rsi, qword [rax]
test rsi, rsi
je 0x140133596
mov byte [rsp + 0x2f], 0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140133557
mov rdx, rcx
not rdx
cmp qword [rsi + 8], rdx
jne 0x140133552
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
lea rcx, [0x140172d98]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14013340b
je 0x14013350b
mov byte [0x140172d92], 0
lea rcx, [0x140172d90]
call fcn.140008e70
mov rdi, rax
mov byte [0x140172d92], 1
inc qword [rax + 0x298]
mov rsi, qword [rax + 0x140]
jmp 0x1401333d3
movdqu xmm0, xmmword [rdi + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [rdi + 0x2a8], xmm0
mov edx, 0x14
mov rcx, rdi
call fcn.14003aca0
mov rsi, qword [rdi + 0x140]
test rsi, rsi
jne 0x1401333e3
mov edi, 1
xor ebx, ebx
lea rsi, [0x140172d98]
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call rbp
test al, al
jne 0x140133454
mov eax, edi
test edi, edi
jle 0x14013353b
pause
dec eax
jne 0x140133533
add ebx, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebx, 0x3e8
jl 0x140133520
jmp 0x140133585
call fcn.1400a8470
xor ecx, ecx
jmp 0x140133488
mov eax, edi
test edi, edi
jle 0x14013356c
pause
dec eax
jne 0x140133564
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x140133447
lea rcx, [0x140172d98]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140133454
lea rax, [rsp + 0x2f]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401730c0]
lea rdx, [0x140172d90]
mov r9d, 0x58
xor r8d, r8d
call fcn.140002610
mov rsi, rax
jmp 0x140133492
Function at 0x1401339c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x1401742b0]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rsi]
mov qword [rsi], 0
mov rdi, qword [0x1401742c0]
mov qword [0x1401742c0], rax
test rdi, rdi
je 0x140133a1e
mov rcx, qword [rdi + 0x48]
call fcn.140028300
lea rcx, [rdi + 0x28]
call fcn.140028640
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140133a16
mov qword [rdi + 0x18], rcx
call fcn.140028970
mov rcx, rdi
call fcn.140028970
lea rcx, [0x1401742b0]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
lea rcx, [0x1401742b8]
call sub.KERNEL32.dll_WakeAllConditionVariable
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x140133a77
mov rcx, qword [rdi + 0x48]
call fcn.140028300
lea rcx, [rdi + 0x28]
call fcn.140028640
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140133a69
mov qword [rdi + 0x18], rcx
call fcn.140028970
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140028970
nop
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140134190
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
movaps xmmword [rsp + 0x220], xmm6
mov qword [rsp + 0x70], rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x218], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x140170640]
mov byte [rsp + 0x5f], al
test al, 0x19
jne 0x14013470a
xor esi, esi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x88], rsi
cmp byte [0x140172d88], 0
je 0x1401345fa
mov al, byte [0x140172d89]
mov byte [rsp + 0x5e], al
mov qword [rsp + 0x80], rbx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x40]
add rax, 0x48
mov qword [rsp + 0x90], rax
cmp rcx, rax
je 0x14013468c
xorps xmm6, xmm6
xor ebx, ebx
lea rdi, [rsp + 0xf4]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.14007f940
mov dword [rdi - 4], 0x11c
mov rsi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rsi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rsi
movabs rcx, 0x300000006
mov qword [rdi], rcx
mov word [rdi + 0x110], 0
lea rcx, [rsp + 0xf0]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne byte [rsp + 0x5e]
setne byte [0x140172d89]
mov byte [0x140172d88], 1
jmp 0x140134204
xor ebx, ebx
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, eax
lea rdi, [rsp + 0xf0]
mov qword [rdi], rbx
mov rcx, rdi
call fcn.14003c7a0
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rsi, [0x140170640]
lea rbx, str.PCScan.Sweep
mov cl, 0x58
mov rdx, rsi
mov r8, rbx
xor r9d, r9d
call fcn.140034c00
mov qword [rsp + 0x68], rax
jmp 0x1401341e5