joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031d70
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140052b80
test al, al
je 0x140031dc9
call fcn.140052b70
mov rdi, rax
lea rbx, [0x1400d3cce]
mov rcx, rax
mov rdx, rbx
call fcn.140052c20
test al, al
jne 0x140031df8
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140052c20
test al, al
jne 0x140031df8
mov eax, dword [rsi]
mov dword [0x1400ec068], eax
mov bl, 1
test al, 1
jne 0x140031eb9
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14006ac50
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp qword [0x1400f17c0], 0
jne 0x140031f4e
mov rax, qword [0x1400f17c8]
mov qword [0x1400f17c0], rax
mov ecx, 0x20
call fcn.14006986c
mov r14, rax
lea rcx, str.vmodule
lea r15, [rsp + 0x48]
mov qword [r15], rcx
call fcn.1400832a0
mov qword [r15 + 8], rax
lea r12, [rsp + 0x58]
mov rcx, rdi
mov rdx, r12
mov r8, r15
call fcn.140052d30
lea r15, [rsp + 0x20]
mov qword [r15], rbx
mov rcx, rbx
call fcn.1400832a0
mov qword [r15 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.140052d30
lea r9, [0x1400f17d0]
mov rcx, r14
mov rdx, rbx
mov r8, r12
call fcn.1400b5400
mov qword [0x1400f17c8], r14
cmp byte [rbx + 0x17], 0
jns 0x140031e9f
mov rcx, qword [rsp + 0x30]
call fcn.1400698a8
cmp byte [rsp + 0x6f], 0
jns 0x140031dc9
mov rcx, qword [rsp + 0x58]
call fcn.1400698a8
jmp 0x140031dc9
mov rcx, qword [0x1400f17f8]
test rcx, rcx
je 0x140031efd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f17f8], 0
mov rcx, qword [0x1400f17d8]
test rcx, rcx
je 0x140031f23
mov rdx, qword [rsi + 8]
call fcn.14002e640
cmp dword [rsi + 0x14], 0
je 0x140031f0b
call fcn.140031f60
mov ebx, eax
jmp 0x140031ddb
mov rcx, qword [0x1400f17d8]
test rcx, rcx
jne 0x140031ee2
jmp 0x140031f2a
mov rcx, qword [0x1400f17d8]
cmp byte [rcx + 0x17], 0
jns 0x140031f1b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140031ef1
and byte [0x1400ec068], 0xfe
mov ecx, 0x18
call fcn.14006986c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f17d8], rax
jmp 0x140031ee2
int3
Function at 0x1400346d0
Capabilities:
Create thread

Disassembly:
jmp 0x1400346d0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r13, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffe00000000
shl ebx, 0x10
mov ecx, 0x10
call fcn.14006986c
mov r15, rax
mov rax, rsi
and rax, r12
cmp rax, qword [0x1400e4e88]
jne 0x140034734
mov rcx, rsi
call fcn.14005a760
mov qword [r15], rsi
test rdi, rdi
setne byte [r15 + 8]
mov dword [r15 + 0xc], ebp
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x140034ab0]
xor ecx, ecx
mov rdx, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x14003479b
test rdi, rdi
je 0x1400347df
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006ac50
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400347b4
mov edi, eax
cmp eax, 0x5af
je 0x1400347b4
cmp edi, 0xe
jne 0x1400347ea
mov rcx, r13
call fcn.1400b48e0
test r15, r15
je 0x140034775
mov rcx, qword [r15]
and r12, rcx
cmp r12, qword [0x1400e4e88]
jne 0x1400347d5
call fcn.14005a8a0
mov rcx, r15
call fcn.1400698a8
jmp 0x140034775
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140034775
mov eax, dword [0x1400f1860]
mov ecx, dword [0x1400ed470]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003485d
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, edi
call fcn.14003cf10
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1400f1858]
call fcn.14005d040
cmp byte [rsi + 0x17], 0
jns 0x1400347bc
mov rcx, qword [rsp + 0x38]
call fcn.1400698a8
jmp 0x1400347bc
lea rcx, [0x1400f1860]
call fcn.1400699c0
cmp dword [0x1400f1860], 0xffffffff
jne 0x14003480b
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14003cee0
mov qword [0x1400f1858], rax
lea rcx, [0x1400f1860]
call fcn.140069a58
jmp 0x14003480b
Function at 0x140036ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400d09d0]
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.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ad
call fcn.14005b2e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14005b5f0
cmp byte [rdi + 0x17], 0
jns 0x140036c24
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14005b650
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14006ac50
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140036c60
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14006cd70
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x140036d03
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.140083a98
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400536a0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400319d0
mov rcx, r14
mov rdx, rsi
call fcn.1400537f0
mov rcx, rsi
call fcn.140053780
mov rcx, rbx
call fcn.140053780
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14006ac50
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140036d30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006cd70
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140036dc5
cmp word [rsp + 0x70], 0
je 0x140036dc5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140083a98
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400536a0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14006ac50
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400d09d0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140053660
mov rcx, rdi
call fcn.140036c60
test al, al
je 0x140036e05
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140053680
jmp 0x140036e24
lea rax, [0x1400d504a]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400536a0
lea rcx, [rsp + 0x40]
call fcn.140053780
jmp 0x140036da7
Function at 0x140037ef0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f38c8]
mov ecx, dword [0x1400ed470]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037f2b
movzx eax, word [0x1400f3898]
cmp eax, 9
jne 0x140037f73
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400f38c8]
call fcn.1400699c0
cmp dword [0x1400f38c8], 0xffffffff
jne 0x140037f15
xorps xmm0, xmm0
movups xmmword [0x1400f38b8], xmm0
movups xmmword [0x1400f38a8], xmm0
movups xmmword [0x1400f3898], xmm0
lea rcx, [0x1400f3898]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f38c8]
call fcn.140069a58
jmp 0x140037f15
test eax, eax
je 0x140037f26
cmp eax, 6
jne 0x140037f83
mov eax, 2
jmp 0x140037f26
cmp eax, 0xc
jne 0x140037f8f
mov eax, 3
jmp 0x140037f26
mov eax, 4
jmp 0x140037f26

Function at 0x1400386b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003879c
cmp qword [rsi], 0
jne 0x14003879c
cmp dword [rsi + 0x14], 0
jne 0x14003879c
cmp qword [rsi + 8], 0
jne 0x14003879c
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x14003871f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003876e
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140038717
mov qword [rsi], rbx
call fcn.14005b300
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x140038759
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140038784
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140038751
mov qword [rsi + 8], rbp
call fcn.14005b300
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14005b300
mov rcx, qword [rsi]
call fcn.14005cf30
mov qword [rsi], 0
jmp 0x140038705
call fcn.14005b300
mov rcx, qword [rsi + 8]
call fcn.14005cf30
mov qword [rsi + 8], 0
jmp 0x14003873e
mov rcx, rsi
call fcn.1400b8860
mov rax, qword [rsi]
jmp 0x1400386e9
Function at 0x140038bc0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1400d0938]
mov qword [rcx], rax
add rcx, 8
call fcn.14005a6e0
lea rcx, [rsi + 0x10]
call fcn.14005a6e0
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.14005a6e0
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
movups xmmword [rsi + 0xd0], xmm6
mov qword [rsi + 0xe0], rbx
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x1400d5b5c]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.14003f670
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.14003e2b0
lea rcx, [rsi + 0x318]
xor edx, edx
call fcn.14003e2b0
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.14003e2b0
movups xmmword [rsi + 0x328], xmm6
movups xmmword [rsi + 0x338], xmm6
mov dword [rsi + 0x348], ebp
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x360], xmm6
movups xmmword [rsi + 0x370], xmm6
mov byte [rsi + 0x380], bl
mov dword [rsi + 0x384], edi
mov byte [rsi + 0x388], bl
movups xmmword [rsi + 0x390], xmm6
movups xmmword [rsi + 0x3a0], xmm6
call fcn.140019e90
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.140038df0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140038ddb
call fcn.14003edb0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14003ee60
mov qword [0x1400f3c88], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1400fd008]
jmp 0x140038da9
Function at 0x14003d2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003d327
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14003d311
cmp dword [rsp + 0x38], 4
jne 0x14003d311
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006ac50
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14003d311

Function at 0x14003d330
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14006abf0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14006cd70
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003d3e3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003d3e7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.14002e640
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006ac50
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003d3c4
cmp eax, 2
jne 0x14003d42f
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14006cd70
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14003d436
lea rdx, [rsp + 0x40]
jmp 0x14003d3ba
mov edi, 0x3f4
jmp 0x14003d3c4
mov edi, 0xea
jmp 0x14003d3c4

Function at 0x14003df10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400ed39c]
cmp ecx, 0xffffffff
je 0x14003df35
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 0x14003df30
Function at 0x14003df40
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1400ed39c]
cmp ecx, 0xffffffff
je 0x14003e01e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14003e01e
mov eax, dword [0x1400f5548]
mov ecx, dword [0x1400ed470]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003e028
mov rbx, qword [0x1400f5540]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003e06e
mov rax, qword [0x1400f3d38]
inc rax
xor ecx, ecx
lea rdx, [0x1400f3d40]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14003e07b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1400f3d38], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14003e090
cmp eax, 0x100
jge 0x14003e093
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003e0a0
jmp 0x14003df6e
lea rcx, [0x1400f5548]
call fcn.1400699c0
cmp dword [0x1400f5548], 0xffffffff
jne 0x14003df93
mov ecx, 8
call fcn.14006986c
mov rbx, rax
mov rcx, rax
call fcn.14005a6e0
mov qword [0x1400f5540], rbx
lea rcx, [0x1400f5548]
call fcn.140069a58
jmp 0x14003df93
mov rcx, rbx
call fcn.14005a6f0
jmp 0x14003dfab
inc rcx
cmp rcx, 0x100
jne 0x14003dfbe
jmp 0x14003dff2
int3
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14006abf0
sub rsp, rax
mov rax, qword [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400ed39c]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14003e154
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14003e192
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14006cd70
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400698dc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14006c6c0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14006ac50
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140040d50
test al, al
je 0x14003e195
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14003e198
mov eax, 0xffffffff
lock cmpxchg dword [0x1400ed39c], ecx
je 0x14003e0d8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400ed39c]
mov dword [rsp + 0x2c], ecx
jmp 0x14003e0d8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140040d50
test al, al
je 0x14003e1bd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14003e1bd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14003e16b
int3
Function at 0x14003e8f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400f5550]
cmp rdi, 1
jbe 0x14003e919
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005dbe0
lea rcx, [0x1400f5550]
call fcn.140031cb0
test al, al
je 0x14003e95f
mov qword [0x1400f5558], 0
lea rbx, [0x1400f5550]
lea rdi, [0x1400f5558]
mov rcx, rdi
xor edx, edx
call fcn.14003e2b0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140031d50
jmp 0x14003e907
mov rdi, qword [0x1400f5550]
jmp 0x14003e907

Function at 0x140040d50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140040d65
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140042e30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400f56c0]
cmp rdi, 1
jbe 0x140042e59
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14005dbe0
lea rcx, [0x1400f56c0]
call fcn.140031cb0
test al, al
je 0x140042e9f
mov qword [0x1400f56c8], 0
lea rbx, [0x1400f56c0]
lea rdi, [0x1400f56c8]
mov rcx, rdi
xor edx, edx
call fcn.14003e2b0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140031d50
jmp 0x140042e47
mov rdi, qword [0x1400f56c0]
jmp 0x140042e47
Function at 0x140055ce0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140055d27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140055d41
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140055d1f
mov qword [rsi], rdi
call fcn.14005b300
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140055d57
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005b300
mov rcx, qword [rsi]
call fcn.14005cf30
mov qword [rsi], 0
jmp 0x140055d0d
int3
Function at 0x14005af60
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 [0x1400e4028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140055dc0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1400f3838]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005afbd
jnp 0x14005b022
ucomisd xmm0, xmm6
jne 0x14005afc9
jnp 0x14005b14c
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400d0c60]
subpd xmm1, xmmword [0x1400d0c70]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400d5138]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14006ac50
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 [0x1400f3848]
mov ecx, dword [0x1400ed470]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005b153
mov eax, dword [0x1400f3858]
mov ecx, dword [0x1400ed470]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005b18d
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 [0x1400f3850]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1400d0c60]
subpd xmm1, xmmword [0x1400d0c70]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400d5130]
ucomisd xmm2, xmm1
ja 0x14005afbd
shl r15, 0x20
or r14, r15
sub r14, qword [0x1400f3840]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1400d0c60]
subpd xmm0, xmmword [0x1400d0c70]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1400f3838], xmm0
jmp 0x14005afbd
xor eax, eax
jmp 0x14005affb
lea rcx, [0x1400f3848]
call fcn.1400699c0
cmp dword [0x1400f3848], 0xffffffff
jne 0x14005b06c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400f3840], rdx
lea rcx, [0x1400f3848]
call fcn.140069a58
jmp 0x14005b06c
lea rcx, [0x1400f3858]
call fcn.1400699c0
cmp dword [0x1400f3858], 0xffffffff
jne 0x14005b091
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1400f3850], rax
lea rcx, [0x1400f3858]
call fcn.140069a58
jmp 0x14005b091