joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036750
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14010a028]
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.14003dd60
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400368e4
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1400f6c48]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14003691b
lea rdx, [0x1400f6c98]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140036909
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140130008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x140036911
test r12d, r12d
js 0x140036986
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14007c4b4
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x14003692e
mov rdx, qword [r14 + r15]
call fcn.14002fad0
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x140036852
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140036350
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400368a6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400368e4
cmp r15, rbx
je 0x1400368dc
add r15, 0xffffffffffffffe8
jmp 0x1400368ca
mov rcx, qword [r15]
call fcn.14007c4f0
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x1400368dc
test r15, r15
je 0x14003695a
cmp byte [r15 + 0x17], 0
jns 0x1400368be
jmp 0x1400368b6
mov rcx, rbx
call fcn.14007c4f0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007d7b0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140036804
xor r15d, r15d
xor ebx, ebx
jmp 0x14003687f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140036801
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400b03a0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x41
call fcn.1400b03a0
lea rcx, [rsp + 0x30]
call fcn.1400b0310
int3
Function at 0x140038d40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140124318]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038d7b
movzx eax, word [0x1401242e8]
cmp eax, 9
jne 0x140038dc3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140124318]
call fcn.14007c53c
cmp dword [0x140124318], 0xffffffff
jne 0x140038d65
xorps xmm0, xmm0
movups xmmword [0x140124308], xmm0
movups xmmword [0x1401242f8], xmm0
movups xmmword [0x1401242e8], xmm0
lea rcx, [0x1401242e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140124318]
call fcn.14007c5f0
jmp 0x140038d65
test eax, eax
je 0x140038d76
cmp eax, 6
jne 0x140038dd3
mov eax, 2
jmp 0x140038d76
cmp eax, 0xc
jne 0x140038ddf
mov eax, 3
jmp 0x140038d76
mov eax, 4
jmp 0x140038d76
Function at 0x140039750
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14007c4b4
mov rsi, rax
mov rax, qword [0x14010aea0]
and rax, r15
cmp rax, qword [0x14010ae88]
je 0x140039814
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140039c80]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140039829
test r14, r14
je 0x14003981e
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007d7b0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.140052a00
jmp 0x1400397ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400397f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140039842
mov ebp, eax
cmp eax, 0x5af
je 0x140039842
cmp ebp, 0xe
jne 0x140039877
mov rcx, rbx
call fcn.1400b1950
test rsi, rsi
je 0x1400397f0
mov rcx, qword [rsi]
mov rax, qword [0x14010aea0]
and rax, rcx
cmp rax, qword [0x14010ae88]
jne 0x14003986a
call fcn.140052b50
mov rcx, rsi
call fcn.14007c4f0
jmp 0x1400397f0
mov eax, dword [0x140124370]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400398fa
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.140040450
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x1400398b7
and r8d, 0x7f
jmp 0x1400398c1
mov r8, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
lea r14, [rsp + 0x48]
mov rcx, r14
mov rdx, rbx
call fcn.14004f4f0
mov rcx, qword [0x140124368]
mov rdx, r14
call fcn.14003dd00
cmp byte [rsp + 0x47], 0
jns 0x14003984a
mov rcx, qword [rsp + 0x30]
call fcn.14007c4f0
jmp 0x14003984a
lea rcx, [0x140124370]
call fcn.14007c53c
cmp dword [0x140124370], 0xffffffff
jne 0x140039898
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14003dcd0
mov qword [0x140124368], rax
lea rcx, [0x140124370]
call fcn.14007c5f0
jmp 0x140039898
Function at 0x14003a1a0
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, [0x1400f10e8]
mov qword [rcx], rax
add rcx, 8
call fcn.14005fb50
lea rcx, [rsi + 0x10]
call fcn.14005fb50
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.14005fb50
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
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x1400f93a4]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.140040ce0
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.1400189d0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x1400f93a8], edx
je 0x14003a39b
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.140065d60
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14003a3bf
call fcn.140040840
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400408f0
mov qword [0x1401246f0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x1400f93ac], edx
jne 0x14003a3d2
test dword [0x1400f93b0], edx
jne 0x14003a3e0
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.140040a80
jmp 0x14003a35c
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140130008]
jmp 0x14003a369
cmp rax, 0x40
mov eax, 0x100
jmp 0x14003a353
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x14003a3b4
Function at 0x14003bf10
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x14003bf40
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14003bf77
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140059520
lea rax, [rdx - 1]
test rdx, rax
jne 0x14003bf4e
mov rdi, rdx
jmp 0x14003bf25
mov rcx, rdx
call fcn.1400553c0
mov rdi, rax
jmp 0x14003bf25
mov rcx, rdx
call fcn.1400553c0
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14003bf2e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jae 0x14003bf6f
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x14003bf99
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14003bf9e
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400ad400
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1400f4154]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x14003bf5b
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x14003bf5b
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x14003bf63

Function at 0x14003cb00
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003cbf5
cmp qword [rsi], 0
jne 0x14003cbf5
cmp dword [rsi + 0x14], 0
jne 0x14003cbf5
cmp qword [rsi + 8], 0
jne 0x14003cbf5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14003cb74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003cbdc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003cb6c
mov qword [rsi], r14
call fcn.14005eb20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003cbae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14003cbc4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003cba6
mov qword [rsi + 8], r14
call fcn.14005eb20
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 rdi
pop rsi
pop r14
ret
call fcn.14005eb20
mov rcx, qword [rsi + 8]
call fcn.14005eb30
mov qword [rsi + 8], 0
jmp 0x14003cb93
call fcn.14005eb20
mov rcx, qword [rsi]
call fcn.14005eb30
mov qword [rsi], 0
jmp 0x14003cb5a
mov rcx, rsi
call fcn.1400d2d00
mov rax, qword [rsi]
jmp 0x14003cb3a
Function at 0x14003ce00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1400f1bb0]
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, 0x210
call fcn.14005eb00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14005f5f0
cmp byte [rdi + 0x17], 0
jns 0x14003ce80
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14005f860
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007d7b0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003cec0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14007f900
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14003cf5f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140099aa8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400596f0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140035cb0
mov rcx, rsi
mov rdx, r14
call fcn.1400598c0
mov rcx, r14
call fcn.140059840
mov rcx, rbx
call fcn.140059840
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14007d7b0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003cf90
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007f900
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 0x14003d03e
cmp word [rsp + 0x70], 0
je 0x14003d03e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140099aa8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400596f0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14007d7b0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400596d0
lea rcx, [rsp + 0x40]
call fcn.140059840
jmp 0x14003d007
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f1bb0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400596b0
mov rcx, rdi
call fcn.14003cec0
test al, al
jne 0x14003d025
lea rax, [0x1400f879e]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400596f0
jmp 0x14003d032
Function at 0x14003e650
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14007d750
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14007f900
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], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003e7a3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003e7a7
lea rcx, [rsp + 0x840]
call fcn.140099aa8
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140032800
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007d7b0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003e784
cmp eax, 2
jne 0x14003e7fc
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14007f900
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14003e803
lea rcx, [rsp + 0x40]
call fcn.140099aa8
lea rdx, [rsp + 0x40]
jmp 0x14003e777
mov edi, 0x3f4
jmp 0x14003e784
mov edi, 0xea
jmp 0x14003e784
Function at 0x1400494e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401196a0]
cmp ecx, 0xffffffff
je 0x1400495ba
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400495ba
mov eax, dword [0x140126360]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400495c4
mov rbx, qword [0x140126358]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004960a
mov rax, qword [0x140124b40]
inc rax
xor ecx, ecx
lea rdx, [0x140124b50]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140049617
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140126350]
inc ecx
mov dword [0x140126350], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140124b40], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14004962c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140049630
jmp 0x14004950a
lea rcx, [0x140126360]
call fcn.14007c53c
cmp dword [0x140126360], 0xffffffff
jne 0x14004952f
mov ecx, 8
call fcn.14007c4b4
mov rbx, rax
mov rcx, rax
call fcn.14005fb50
mov qword [0x140126358], rbx
lea rcx, [0x140126360]
call fcn.14007c5f0
jmp 0x14004952f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140049547
inc rcx
cmp rcx, 0x100
jne 0x14004955a
jmp 0x1400495a0
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14007d750
sub rsp, rax
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401196a0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400496e4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140049747
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14007f900
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007c52c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14007f260
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.14007d7b0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14004c180
test al, al
je 0x14004974a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140049722
mov eax, 0xffffffff
lock cmpxchg dword [0x1401196a0], ecx
je 0x140049668
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401196a0]
mov dword [rsp + 0x2c], ecx
jmp 0x140049668
lea rcx, [rsp + 0x2c]
call fcn.14004c180
test al, al
je 0x14004974d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004974d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400496fb
int3
int3
int3
Function at 0x140049760
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401196a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004979e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140049797
call fcn.140049630
jmp 0x14004977e

Function at 0x14004c180
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 0x14004c195
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14005cce0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14005d600
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140124298]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005cd3e
jnp 0x14005cda4
ucomisd xmm0, xmm6
jne 0x14005cd46
jnp 0x14005cda0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f3310]
subpd xmm1, xmmword [0x1400f3320]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400f6d38]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007d7b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14005cd78
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401242a8]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005ceb9
mov eax, dword [0x1401242b8]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005cef3
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x1401242b0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400f6d30]
ucomisd xmm2, xmm1
ja 0x14005cd3e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1401242a0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f3310]
subpd xmm0, xmmword [0x1400f3320]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140124298], xmm0
jmp 0x14005cd3e
lea rcx, [0x1401242a8]
call fcn.14007c53c
cmp dword [0x1401242a8], 0xffffffff
jne 0x14005cded
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401242a0], rdx
lea rcx, [0x1401242a8]
call fcn.14007c5f0
jmp 0x14005cded
lea rcx, [0x1401242b8]
call fcn.14007c53c
cmp dword [0x1401242b8], 0xffffffff
jne 0x14005ce12
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401242b0], rax
lea rcx, [0x1401242b8]
call fcn.14007c5f0
jmp 0x14005ce12