joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059280
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rcx + 0x10]
cmp r14, qword [rcx + 0x18]
je 0x1400592dc
test r14, r14
je 0x1400593db
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d2660
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140059326
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r15, [rax + rcx]
inc r15
shr r15, 1
shl r15, 3
mov rcx, rbx
sub rcx, r15
mov r8, r14
sub r8, rbx
mov rdx, rbx
call fcn.1400d4120
sub r14, r15
mov qword [rsi + 0x10], r14
sub qword [rsi + 8], r15
jmp 0x1400592ac
mov rax, r14
sub rax, r15
sar rax, 2
cmp r14, r15
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x140059407
lea rcx, [r12*8]
call fcn.1400d0b94
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x1400593a6
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400593db
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14005938e
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], r15
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r14
call fcn.140140fa0
mov r14, qword [rsi + 0x10]
jmp 0x1400592ac
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.14010d520
call fcn.14010b410
int3
Function at 0x140059890
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rcx + 0x10]
cmp r14, qword [rcx + 0x18]
je 0x1400598ec
test r14, r14
je 0x1400599eb
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d2660
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140059936
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r15, [rax + rcx]
inc r15
shr r15, 1
shl r15, 3
mov rcx, rbx
sub rcx, r15
mov r8, r14
sub r8, rbx
mov rdx, rbx
call fcn.1400d4120
sub r14, r15
mov qword [rsi + 0x10], r14
sub qword [rsi + 8], r15
jmp 0x1400598bc
mov rax, r14
sub rax, r15
sar rax, 2
cmp r14, r15
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x140059a17
lea rcx, [r12*8]
call fcn.1400d0b94
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x1400599b6
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400599eb
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14005999e
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], r15
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r14
call fcn.140082fa0
mov r14, qword [rsi + 0x10]
jmp 0x1400598bc
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.14010d520
call fcn.14010b410
int3

Function at 0x14005c310
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140190038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14005c3b3
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14005c3a2
cmp eax, 0xffffffff
je 0x14005c3c7
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d2660
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14005c351
mov eax, dword [rsp + 0x2c]
jmp 0x14005c382
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14005c384
int3
Function at 0x140061b10
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140061b20
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140061b41
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140061b61
cmp byte [r14 + 0x68], 0
jne 0x140061be3
or edi, 0x20000000
test dil, 8
jne 0x140061c17
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140061b7f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140061b90
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140061bf8
cmp byte [r14], 0
jne 0x140061c06
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140061c37
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140061bee
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140061b61
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140061bce
lea rcx, [r14 + 0x30]
call fcn.14003fd80
mov r15, rax
jmp 0x140061b97
add r14, 8
mov rcx, r14
call fcn.14003fd80
mov r9, rax
jmp 0x140061ba0
cmp byte [r14 + 0x88], 0
je 0x140061c2c
or edi, 0x40000000
jmp 0x140061b6b
or edi, 0x10000000
jmp 0x140061b6b
cmp ebx, 4
jne 0x140061c46
mov edx, 6
jmp 0x140061bad
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140061c58
mov edx, 7
jmp 0x140061bad
cmp ebx, 1
jne 0x140061c67
mov edx, 4
jmp 0x140061bad
xor edx, edx
jmp 0x140061bad
Function at 0x140061b20
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140061b20
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140061b41
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140061b61
cmp byte [r14 + 0x68], 0
jne 0x140061be3
or edi, 0x20000000
test dil, 8
jne 0x140061c17
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140061b7f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140061b90
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140061bf8
cmp byte [r14], 0
jne 0x140061c06
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140061c37
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140061bee
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140061b61
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140061bce
lea rcx, [r14 + 0x30]
call fcn.14003fd80
mov r15, rax
jmp 0x140061b97
add r14, 8
mov rcx, r14
call fcn.14003fd80
mov r9, rax
jmp 0x140061ba0
cmp byte [r14 + 0x88], 0
je 0x140061c2c
or edi, 0x40000000
jmp 0x140061b6b
or edi, 0x10000000
jmp 0x140061b6b
cmp ebx, 4
jne 0x140061c46
mov edx, 6
jmp 0x140061bad
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140061c58
mov edx, 7
jmp 0x140061bad
cmp ebx, 1
jne 0x140061c67
mov edx, 4
jmp 0x140061bad
xor edx, edx
jmp 0x140061bad

Function at 0x140061c70
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140061ca8
cmp byte [r15 + 0x68], 0
jne 0x140061d36
or edi, 0x20000000
test dil, 8
jne 0x140061d6d
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140061cc6
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140061cd7
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x140061d4b
cmp byte [r15], 0
jne 0x140061d59
xor r9d, r9d
cmp ebx, 4
jne 0x140061d27
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140061d41
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140061d8d
mov edx, 7
jmp 0x140061cf1
or edi, 0x80000000
jmp 0x140061ca8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140061d12
lea rcx, [r15 + 0x30]
call fcn.14003fd80
mov r14, rax
jmp 0x140061cde
add r15, 8
mov rcx, r15
call fcn.14003fd80
mov r9, rax
jmp 0x140061ce7
cmp byte [r15 + 0x88], 0
je 0x140061d82
or edi, 0x40000000
jmp 0x140061cb2
or edi, 0x10000000
jmp 0x140061cb2
mov edx, 1
test ebx, ebx
je 0x140061cf1
cmp ebx, 1
jne 0x140061da9
mov edx, 4
jmp 0x140061cf1
xor edx, edx
jmp 0x140061cf1
Function at 0x1400624f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400624c0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401acda8]
lea rdx, [0x140062360]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140062600
cmp dword [0x1401acdb0], 0
jne 0x1400625f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401acdb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14006259c
mov ecx, 1
mov edx, 0x28
call fcn.14007fbf0
test rax, rax
je 0x1400625f0
mov r14, rax
mov ecx, dword [0x1401acdb4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400625e8
lea r15, [0x1401acdb8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401acdc0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d2660
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14007fb50
mov rcx, rsi
mov rax, rdi
call qword [0x1401bc008]
xor esi, esi
jmp 0x1400625cc
call fcn.1400eae70
int3

Function at 0x140062bc0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140056c40
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x14016c118]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140062c35
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140062c40
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140062c2d
mov qword [rsi + 0x18], rdi
call fcn.1400904f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400904f0
mov rcx, qword [rsi + 0x18]
call fcn.140089f50
mov qword [rsi + 0x18], 0
jmp 0x140062c1a
Function at 0x140073bc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401ad000]
mov ecx, dword [0x14019f790]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073c41
lea rcx, [0x1401acff0]
call fcn.1400ccce0
test rax, rax
jne 0x140073c2e
mov ecx, 4
call fcn.1400d0b94
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x1401acff0]
mov rcx, rbx
call fcn.1400ccce0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.140074c10
test rsi, rsi
jne 0x140073c84
lea rcx, [0x1401acff0]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400ccce0
lea rcx, [0x1401ad000]
call fcn.1400d0c3c
cmp dword [0x1401ad000], 0xffffffff
jne 0x140073be8
xorps xmm0, xmm0
movups xmmword [0x1401acff0], xmm0
lea rcx, [0x1401acff0]
lea rdx, [0x14005d140]
call fcn.140074c60
lea rcx, [0x1401ad000]
call fcn.1400d0cf0
jmp 0x140073be8
mov rcx, rsi
call fcn.1400d0be4
jmp 0x140073c2e
Function at 0x140074990
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 [0x14019f734]
cmp ecx, 0xffffffff
je 0x140074a6a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140074a6a
mov eax, dword [0x1401af4e0]
mov ecx, dword [0x14019f790]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140074a74
mov rbx, qword [0x1401af4d8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140074aba
mov rax, qword [0x1401adcc8]
inc rax
xor ecx, ecx
lea rdx, [0x1401adcd0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140074ac7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401af4d0]
inc ecx
mov dword [0x1401af4d0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1401adcc8], 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 0x140074adc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140074ae0
jmp 0x1400749ba
lea rcx, [0x1401af4e0]
call fcn.1400d0c3c
cmp dword [0x1401af4e0], 0xffffffff
jne 0x1400749df
mov ecx, 8
call fcn.1400d0b94
mov rbx, rax
mov rcx, rax
call fcn.14008f110
mov qword [0x1401af4d8], rbx
lea rcx, [0x1401af4e0]
call fcn.1400d0cf0
jmp 0x1400749df
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400749f7
inc rcx
cmp rcx, 0x100
jne 0x140074a0a
jmp 0x140074a50
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400d2600
sub rsp, rax
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14019f734]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140074b94
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140074bf7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400d47c0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400d0c2c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400d4120
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.1400d2660
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140077420
test al, al
je 0x140074bfa
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140074bd2
mov eax, 0xffffffff
lock cmpxchg dword [0x14019f734], ecx
je 0x140074b18
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14019f734]
mov dword [rsp + 0x2c], ecx
jmp 0x140074b18
lea rcx, [rsp + 0x2c]
call fcn.140077420
test al, al
je 0x140074bfd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140074bfd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140074bab
int3
int3
int3
Function at 0x140074c10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14019f734]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140074c4e
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 0x140074c47
call fcn.140074ae0
jmp 0x140074c2e

Function at 0x140077420
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 0x140077435
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140085f30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14008602e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1401713a0]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140085fa0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1401713b0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x1400860bd
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140086093
movdqa xmm1, xmmword [0x1401713b0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1401713c0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14008a100
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1401aa540]
mov ecx, dword [0x14019f790]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008a2ec
mov rsi, qword [0x1401aa538]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14008a332
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1401aa4f4], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x1401aa4f8]
mov dword [0x1401aa4f8], ebx
cmovne ebp, ecx
mov eax, dword [0x1401aa4fc]
cmp ebp, eax
je 0x14008a2cb
test eax, eax
je 0x14008a25c
mov rax, qword [0x14019e0a0]
lea rcx, [0x14008a3e0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x14008a350
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x14008a3aa
imul rax, rcx, 0xf4240
cqo
idiv qword [0x1401aa558]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1401aa548]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x1401aa500]
cmp r8, 2
jb 0x14008a361
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1401aa500], rax
mov ecx, dword [0x1401aa4fc]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1401aa4fc], ebp
test ebx, ebx
je 0x14008a2cb
mov rax, qword [0x14019e0a0]
lea rcx, [0x14008a3e0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x14008a33f
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x14008a379
imul rax, rcx, 0xf4240
cqo
idiv qword [0x1401aa558]
mov qword [0x1401aa548], rax
mov ecx, dword [0x1401aa4fc]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d2660
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1401aa540]
call fcn.1400d0c3c
cmp dword [0x1401aa540], 0xffffffff
jne 0x14008a13e
mov ecx, 8
call fcn.1400d0b94
mov rsi, rax
mov rcx, rax
call fcn.14008f110
mov qword [0x1401aa538], rsi
lea rcx, [0x1401aa540]
call fcn.1400d0cf0
jmp 0x14008a13e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14008a156
mov rcx, rdi
call qword [0x1401bc008]
mov rax, qword [rdi]
jmp 0x14008a2b8
mov rcx, rdi
call qword [0x1401bc008]
mov rax, qword [rdi]
jmp 0x14008a1f0
cmp rcx, rax
je 0x14008a249
add rcx, rdx
cmp rcx, 1
ja 0x14008a249
jmp 0x14008a3db
mov r8, qword [0x1401aa558]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x14008a2b8
mov r8, qword [0x1401aa558]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x14008a1eb
int3