joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d31a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400d31a0
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 0x1400d31c1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400d31e1
cmp byte [r14 + 0x68], 0
jne 0x1400d32a5
or edi, 0x20000000
test dil, 8
jne 0x1400d325b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400d31fb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400d320c
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400d3270
cmp byte [r14], 0
jne 0x1400d327e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400d328f
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 0x1400d329b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x1400d32c2
or edi, 0x40000000
jmp 0x1400d31e7
lea rcx, [r14 + 0x30]
call fcn.1400a4c10
mov r15, rax
jmp 0x1400d3213
add r14, 8
mov rcx, r14
call fcn.1400a4c10
mov r9, rax
jmp 0x1400d321c
cmp ebx, 4
jne 0x1400d32b0
mov edx, 6
jmp 0x1400d3225
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d3246
or edi, 0x80000000
jmp 0x1400d31e1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400d32cd
mov edx, 7
jmp 0x1400d3225
or edi, 0x10000000
jmp 0x1400d31e7
cmp ebx, 1
jne 0x1400d32dc
mov edx, 4
jmp 0x1400d3225
xor edx, edx
jmp 0x1400d3225

Function at 0x1400d32f0
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 0x1400d3328
cmp byte [r15 + 0x68], 0
jne 0x1400d33f7
or edi, 0x20000000
test dil, 8
jne 0x1400d33b6
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x1400d3346
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x1400d3357
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x1400d33cb
cmp byte [r15], 0
jne 0x1400d33d9
xor r9d, r9d
cmp ebx, 4
jne 0x1400d33a7
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 0x1400d33ed
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 0x1400d340d
mov edx, 7
jmp 0x1400d3371
cmp byte [r15 + 0x88], 0
je 0x1400d3402
or edi, 0x40000000
jmp 0x1400d3332
lea rcx, [r15 + 0x30]
call fcn.1400a4c10
mov r14, rax
jmp 0x1400d335e
add r15, 8
mov rcx, r15
call fcn.1400a4c10
mov r9, rax
jmp 0x1400d3367
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d3392
or edi, 0x80000000
jmp 0x1400d3328
or edi, 0x10000000
jmp 0x1400d3332
mov edx, 1
test ebx, ebx
je 0x1400d3371
cmp ebx, 1
jne 0x1400d3429
mov edx, 4
jmp 0x1400d3371
xor edx, edx
jmp 0x1400d3371
Function at 0x1400e03a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x14023e038]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400e0423
cmp byte [rax + 0x90], 0
jne 0x1400e0423
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x1400e040e
lea rdx, [rsp + 0x27]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x1400e0423
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401513b0
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x1400e040e

Function at 0x1400e0430
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, SysAllocStringByteLen
mov rcx, rbx
mov dl, 0xaa
call fcn.140154340
mov rcx, rbx
call fcn.1400df360
lea r8, [rsp + 0xa8]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400e04ca
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.1400ba2a0
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401513b0
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400df420
mov esi, eax
jmp 0x1400e04ad

Function at 0x1400e0860
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 [0x14024e2c8]
cmp ecx, 0xffffffff
je 0x1400e0882
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400e0887
call fcn.1400e09a0
mov eax, dword [0x14025e590]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e0937
mov rbx, qword [0x14025e588]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400e097d
mov rax, qword [0x14025cd70]
inc rax
xor ecx, ecx
lea rdx, [0x14025cd80]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400e098a
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14025e580]
inc ecx
mov dword [0x14025e580], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14025cd70], 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 0x1400e099c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14025e590]
call fcn.140150950
cmp dword [0x14025e590], 0xffffffff
jne 0x1400e08ac
mov ecx, 8
call fcn.1401507f0
mov rbx, rax
mov rcx, rax
call fcn.1400fe280
mov qword [0x14025e588], rbx
lea rcx, [0x14025e590]
call fcn.1401509e8
jmp 0x1400e08ac
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400e08c4
inc rcx
cmp rcx, 0x100
jne 0x1400e08d7
jmp 0x1400e091d
int3
Function at 0x1400e09a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140151350
sub rsp, rax
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14024e2c8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400e0a54
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400e0a92
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140154340
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14015086c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140153c90
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.1401513b0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400e4850
test al, al
je 0x1400e0a95
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400e0a98
mov eax, 0xffffffff
lock cmpxchg dword [0x14024e2c8], ecx
je 0x1400e09d8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14024e2c8]
mov dword [rsp + 0x2c], ecx
jmp 0x1400e09d8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400e4850
test al, al
je 0x1400e0abd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400e0abd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400e0a6b
int3

Function at 0x1400e0ad0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x14024e2c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x1400e0b2d
lea rdx, [0x14022bd30]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.14011b550
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1401c3be0
jmp 0x1400e0b49
and rax, 0xfffffffffffffffc
je 0x1400e0b49
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400e0b49
mov rsi, qword [rax + rcx]
jmp 0x1400e0b4b
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401513b0
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400e0b70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14024e2c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e0bae
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 0x1400e0ba7
call fcn.1400e09a0
jmp 0x1400e0b8e
Function at 0x1400e0cc0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400e0de2
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x1400e0e18
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400e0e20
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400e0e24
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400e0e2a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x1400e0d1c
xor eax, eax
jmp 0x1400e0db1
mov dl, byte [r8 + 0x19]
jmp 0x1400e0e11
cmp byte [r8 + 0x1a], 0
je 0x1400e0e15
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400e0e15
cmp ecx, 0x666f736f
jne 0x1400e0e15
cmp edx, 0x76482074
jne 0x1400e0e15
mov byte [r8 + 0x19], 1
jmp 0x1400e0e15
Function at 0x1400e2de0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14025e620]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e2e61
lea rcx, [0x14025e610]
call fcn.1400e0ad0
test rax, rax
jne 0x1400e2e4e
mov ecx, 4
call fcn.1401507f0
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14025e610]
mov rcx, rbx
call fcn.1400e0ad0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400e0b70
test rsi, rsi
jne 0x1400e2ea4
lea rcx, [0x14025e610]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e0ad0
lea rcx, [0x14025e620]
call fcn.140150950
cmp dword [0x14025e620], 0xffffffff
jne 0x1400e2e08
xorps xmm0, xmm0
movups xmmword [0x14025e610], xmm0
lea rcx, [0x14025e610]
lea rdx, [0x14003e160]
call fcn.1400e0bc0
lea rcx, [0x14025e620]
call fcn.1401509e8
jmp 0x1400e2e08
mov rcx, rsi
call fcn.14015082c
jmp 0x1400e2e4e

Function at 0x1400e4850
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 0x1400e4865
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x1400e48b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400e48ec
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400e48f6
add rdi, rbx
sub rsi, rbx
jne 0x1400e48ca
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400e7700
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], r8
mov rsi, rcx
mov r13, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x30], rax
mov rdi, qword [rcx + 0x18]
lea rax, [rdi + r13]
test rdi, rdi
jle 0x1400e7765
movdqa xmm0, xmmword [0x140217330]
movdqa xmm1, xmmword [0x140217340]
mov rcx, r13
movdqu xmm2, xmmword [rcx]
pxor xmm3, xmm3
pcmpgtb xmm3, xmm2
pand xmm3, xmm0
pxor xmm3, xmm1
movdqu xmmword [rcx], xmm3
add rcx, 0x10
cmp rcx, rax
jb 0x1400e7744
mov rcx, qword [r13]
mov r8, qword [r13 + 7]
mov qword [rax + 8], r8
mov qword [rax + 1], rcx
mov byte [r13 + rdi], 0xff
test rdi, rdi
je 0x1400e78d9
mov rbp, qword [rdx]
mov rbx, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov r15, qword [rsp + 0x30]
cmp byte [r13 + r14], 0xfe
jne 0x1400e7822
mov rcx, rsi
mov rdx, r15
mov rax, rbx
call qword [case.0x1401bb600.0]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x18]
mov r9, rax
shr r9, 7
mov r8, rcx
shr r8, 0xc
xor r8, r9
and r8, rdx
movdqu xmm0, xmmword [rcx + r8]
pcmpeqd xmm1, xmm1
pcmpgtb xmm1, xmm0
pmovmskb r11d, xmm1
mov r10, r8
test r11d, r11d
je 0x1400e7836
tzcnt r9d, r11d
add r9, r10
and r9, rdx
mov r10, r9
sub r10, r8
mov r11, r14
sub r11, r8
xor r11, r10
and r11, rdi
cmp r11, 0xf
ja 0x1400e7863
and al, 0x7f
mov byte [rcx + r14], al
lea r8, [r14 - 0xf]
and r8, rdx
and edx, 0xf
add rdx, r8
mov byte [rcx + rdx], al
inc r14
add r15, rbp
cmp r14, rdi
jne 0x1400e779c
jmp 0x1400e78d9
mov r9d, reloc.WS2_32.dll_recv
mov r10, r8
add r10, r9
and r10, rdx
movdqu xmm0, xmmword [rcx + r10]
pcmpeqd xmm1, xmm1
pcmpgtb xmm1, xmm0
pmovmskb r11d, xmm1
add r9, 0x10
test r11d, r11d
jne 0x1400e77e9
jmp 0x1400e783f
mov r12, r9
imul r12, rbp
add r12, qword [rsp + 0x30]
and al, 0x7f
lea r8, [r9 - 0xf]
and r8, rdx
and edx, 0xf
add rdx, r8
cmp byte [r13 + r9], 0x80
mov byte [rcx + r9], al
mov byte [rcx + rdx], al
mov rcx, rsi
je 0x1400e7900
mov rdx, qword [rsp + 0x28]
mov r8, r12
mov rax, qword [rsp + 0x20]
call qword [case.0x1401bb600.0]
mov rcx, rsi
mov rdx, r12
mov r8, r15
mov r12, qword [rsp + 0x20]
mov rax, r12
call qword [case.0x1401bb600.0]
mov rcx, rsi
mov rdx, r15
mov r8, qword [rsp + 0x28]
mov rax, r12
call qword [case.0x1401bb600.0]
dec r14
sub r15, rbp
jmp 0x1400e7822
mov rax, qword [rsi + 0x18]
mov rcx, rax
shr rcx, 3
add rcx, qword [rsi + 0x10]
sub rax, rcx
mov qword [rsi + 0x20], rax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r12
mov r8, r15
mov rax, qword [rsp + 0x20]
call qword [case.0x1401bb600.0]
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x18]
mov r8b, 0x80
mov byte [rax + r14], r8b
lea rdx, [r14 - 0xf]
and rdx, rcx
and ecx, 0xf
add rcx, rdx
mov byte [rax + rcx], r8b
jmp 0x1400e7822
Function at 0x1400ebca0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400ebce8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400ebcf1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400ebcd8
mov qword [rdi], rsi
call fcn.14011b570
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14011b570
mov rcx, qword [rdi]
call fcn.140104cf0
mov qword [rdi], 0
jmp 0x1400ebcc6
Function at 0x140104b30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140256860]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140104b90
mov rsi, qword [0x140256858]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401513b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140256860]
call fcn.140150950
cmp dword [0x140256860], 0xffffffff
jne 0x140104b6c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140154340
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1401507f0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402568a8]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140104c50
lea r8, [0x140256878]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14009e040
mov qword [0x140256858], rsi
lea rcx, [0x140256860]
call fcn.1401509e8
jmp 0x140104b6c
lea rcx, [0x1402568a8]
call fcn.140150950
cmp dword [0x1402568a8], 0xffffffff
jne 0x140104c21
xorps xmm0, xmm0
movups xmmword [0x140256898], xmm0
movups xmmword [0x140256888], xmm0
movups xmmword [0x140256878], xmm0
lea rcx, [0x140256878]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402568a8]
call fcn.1401509e8
jmp 0x140104c21
Function at 0x1401054a0
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 [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140256928]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010568c
mov rsi, qword [0x140256920]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401056d2
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1402568d0], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x1402568d4]
mov dword [0x1402568d4], ebx
cmovne ebp, ecx
mov eax, dword [0x1402568d8]
cmp ebp, eax
je 0x14010566b
test eax, eax
je 0x1401055fc
mov rax, qword [0x140241fe0]
lea rcx, [0x1401057c0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x14010573a
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 0x14010574b
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140256940]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140256930]
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 [0x1402568e0]
cmp r8, 2
jb 0x140105721
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1402568e0], rax
mov ecx, dword [0x1402568d8]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1402568d8], ebp
test ebx, ebx
je 0x14010566b
mov rax, qword [0x140241fe0]
lea rcx, [0x1401057c0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1401056df
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 0x1401056f0
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140256940]
mov qword [0x140256930], rax
mov ecx, dword [0x1402568d8]
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.1401513b0
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140256928]
call fcn.140150950
cmp dword [0x140256928], 0xffffffff
jne 0x1401054de
mov ecx, 8
call fcn.1401507f0
mov rsi, rax
mov rcx, rax
call fcn.1400fe280
mov qword [0x140256920], rsi
lea rcx, [0x140256928]
call fcn.1401509e8
jmp 0x1401054de
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1401054f6
mov rcx, rdi
call qword [case.0x1401bb600.0]
mov rax, qword [rdi]
jmp 0x140105658
mov r8, qword [0x140256940]
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 0x140105658
add rdx, rcx
cmp rdx, 1
ja 0x1401055e9
cmp rcx, rax
je 0x1401055e9
int3
mov rcx, rdi
call qword [case.0x1401bb600.0]
mov rax, qword [rdi]
jmp 0x140105590
mov r8, qword [0x140256940]
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 0x14010558b
Function at 0x140105860
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 [0x14023e038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140105bc0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1402568f0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1401058be
jnp 0x140105924
ucomisd xmm0, xmm6
jne 0x1401058ca
jnp 0x140105a39
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140217390]
subpd xmm1, xmmword [0x1402173a0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140215a80]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401513b0
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
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 [0x140256900]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140105a40
mov eax, dword [0x140256910]
mov ecx, dword [0x14024e434]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140105a7a
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 [0x140256908]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140224600]
ucomisd xmm2, xmm1
ja 0x1401058be
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1402568f8]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140217390]
subpd xmm0, xmmword [0x1402173a0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1402568f0], xmm0
jmp 0x1401058be
xor eax, eax
jmp 0x1401058fc
lea rcx, [0x140256900]
call fcn.140150950
cmp dword [0x140256900], 0xffffffff
jne 0x14010596d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1402568f8], rdx
lea rcx, [0x140256900]
call fcn.1401509e8
jmp 0x14010596d
lea rcx, [0x140256910]
call fcn.140150950
cmp dword [0x140256910], 0xffffffff
jne 0x140105992
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140256908], rax
lea rcx, [0x140256910]
call fcn.1401509e8
jmp 0x140105992