joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b4f70
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 [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400b4f40]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140204858]
lea rdx, [0x1400b4de0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b5080
cmp dword [0x140204860], 0
jne 0x1400b5070
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140204864]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400b501c
mov ecx, 1
mov edx, 0x28
call fcn.1400cf090
test rax, rax
je 0x1400b5070
mov r14, rax
mov ecx, dword [0x140204864]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400b5068
lea r15, [0x140204868]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140204870]
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.140126950
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.1400ceff0
mov rcx, rsi
mov rax, rdi
call qword [0x140215008]
xor esi, esi
jmp 0x1400b504c
call fcn.140140230
int3

Function at 0x1400b5560
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 [0x1401f77d8]
cmp ecx, 0xffffffff
je 0x1400b563a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400b563a
mov eax, dword [0x1402060d0]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b5644
mov rbx, qword [0x1402060c8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400b568a
mov rax, qword [0x1402048b0]
inc rax
xor ecx, ecx
lea rdx, [0x1402048c0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400b5697
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1402060c0]
inc ecx
mov dword [0x1402060c0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1402048b0], 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 0x1400b56ac
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b56b0
jmp 0x1400b558a
lea rcx, [0x1402060d0]
call fcn.140125f00
cmp dword [0x1402060d0], 0xffffffff
jne 0x1400b55af
mov ecx, 8
call fcn.140125da0
mov rbx, rax
mov rcx, rax
call fcn.1400dccd0
mov qword [0x1402060c8], rbx
lea rcx, [0x1402060d0]
call fcn.140125f98
jmp 0x1400b55af
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400b55c7
inc rcx
cmp rcx, 0x100
jne 0x1400b55da
jmp 0x1400b5620
int3
Function at 0x1400b56b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1401268f0
sub rsp, rax
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401f77d8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400b5764
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400b57c7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1401298e0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140125e1c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140129230
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.140126950
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400c5ad0
test al, al
je 0x1400b57ca
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400b57a2
mov eax, 0xffffffff
lock cmpxchg dword [0x1401f77d8], ecx
je 0x1400b56e8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401f77d8]
mov dword [rsp + 0x2c], ecx
jmp 0x1400b56e8
lea rcx, [rsp + 0x2c]
call fcn.1400c5ad0
test al, al
je 0x1400b57cd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400b57cd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400b577b
int3
int3
int3

Function at 0x1400b57e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401f77d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x1400b5829
and rax, 0xfffffffffffffffc
je 0x1400b585c
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400b585c
mov rsi, qword [rax + rcx]
jmp 0x1400b585e
lea rdx, [0x1401d4645]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400f2140
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.140192b50
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140126950
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400b5880
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401f77d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b58be
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 0x1400b58b7
call fcn.1400b56b0
jmp 0x1400b589e
Function at 0x1400b6270
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400b6280
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 0x1400b62a1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400b62c1
cmp byte [r14 + 0x68], 0
jne 0x1400b6343
or edi, 0x20000000
test dil, 8
jne 0x1400b6377
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400b62df
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400b62f0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400b6358
cmp byte [r14], 0
jne 0x1400b6366
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400b6397
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 0x1400b634e
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 0x1400b62c1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400b632e
lea rcx, [r14 + 0x30]
call fcn.14008a0e0
mov r15, rax
jmp 0x1400b62f7
add r14, 8
mov rcx, r14
call fcn.14008a0e0
mov r9, rax
jmp 0x1400b6300
cmp byte [r14 + 0x88], 0
je 0x1400b638c
or edi, 0x40000000
jmp 0x1400b62cb
or edi, 0x10000000
jmp 0x1400b62cb
cmp ebx, 4
jne 0x1400b63a6
mov edx, 6
jmp 0x1400b630d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400b63b8
mov edx, 7
jmp 0x1400b630d
cmp ebx, 1
jne 0x1400b63c7
mov edx, 4
jmp 0x1400b630d
xor edx, edx
jmp 0x1400b630d
Function at 0x1400b6280
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400b6280
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 0x1400b62a1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400b62c1
cmp byte [r14 + 0x68], 0
jne 0x1400b6343
or edi, 0x20000000
test dil, 8
jne 0x1400b6377
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400b62df
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400b62f0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400b6358
cmp byte [r14], 0
jne 0x1400b6366
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400b6397
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 0x1400b634e
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 0x1400b62c1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400b632e
lea rcx, [r14 + 0x30]
call fcn.14008a0e0
mov r15, rax
jmp 0x1400b62f7
add r14, 8
mov rcx, r14
call fcn.14008a0e0
mov r9, rax
jmp 0x1400b6300
cmp byte [r14 + 0x88], 0
je 0x1400b638c
or edi, 0x40000000
jmp 0x1400b62cb
or edi, 0x10000000
jmp 0x1400b62cb
cmp ebx, 4
jne 0x1400b63a6
mov edx, 6
jmp 0x1400b630d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400b63b8
mov edx, 7
jmp 0x1400b630d
cmp ebx, 1
jne 0x1400b63c7
mov edx, 4
jmp 0x1400b630d
xor edx, edx
jmp 0x1400b630d

Function at 0x1400b63d0
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 0x1400b6408
cmp byte [r15 + 0x68], 0
jne 0x1400b6496
or edi, 0x20000000
test dil, 8
jne 0x1400b64cd
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x1400b6426
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x1400b6437
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x1400b64ab
cmp byte [r15], 0
jne 0x1400b64b9
xor r9d, r9d
cmp ebx, 4
jne 0x1400b6487
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 0x1400b64a1
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 0x1400b64ed
mov edx, 7
jmp 0x1400b6451
or edi, 0x80000000
jmp 0x1400b6408
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400b6472
lea rcx, [r15 + 0x30]
call fcn.14008a0e0
mov r14, rax
jmp 0x1400b643e
add r15, 8
mov rcx, r15
call fcn.14008a0e0
mov r9, rax
jmp 0x1400b6447
cmp byte [r15 + 0x88], 0
je 0x1400b64e2
or edi, 0x40000000
jmp 0x1400b6412
or edi, 0x10000000
jmp 0x1400b6412
mov edx, 1
test ebx, ebx
je 0x1400b6451
cmp ebx, 1
jne 0x1400b6509
mov edx, 4
jmp 0x1400b6451
xor edx, edx
jmp 0x1400b6451
Function at 0x1400c4460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x1401e8038]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400c44e3
cmp byte [rax + 0x90], 0
jne 0x1400c44e3
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x1400c44ce
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 0x1400c44e3
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140126950
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x1400c44ce

Function at 0x1400c44f0
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 [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, SysAllocStringByteLen
mov rcx, rbx
mov dl, 0xaa
call fcn.1401298e0
mov rcx, rbx
call fcn.1400c3540
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 0x1400c458a
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.14009fdd0
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140126950
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.1400c3600
mov esi, eax
jmp 0x1400c456d

Function at 0x1400c5ad0
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 0x1400c5ae5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400c6dc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x1402061d8]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c6e41
lea rcx, [0x1402061c8]
call fcn.1400b57e0
test rax, rax
jne 0x1400c6e2e
mov ecx, 4
call fcn.140125da0
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x1402061c8]
mov rcx, rbx
call fcn.1400b57e0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400b5880
test rsi, rsi
jne 0x1400c6e84
lea rcx, [0x1402061c8]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400b57e0
lea rcx, [0x1402061d8]
call fcn.140125f00
cmp dword [0x1402061d8], 0xffffffff
jne 0x1400c6de8
xorps xmm0, xmm0
movups xmmword [0x1402061c8], xmm0
lea rcx, [0x1402061c8]
lea rdx, [0x14002ac00]
call fcn.1400b58d0
lea rcx, [0x1402061d8]
call fcn.140125f98
jmp 0x1400c6de8
mov rcx, rsi
call fcn.140125ddc
jmp 0x1400c6e2e
Function at 0x1400d64f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400d6538
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 0x1400d6541
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400d6528
mov qword [rdi], rsi
call fcn.1400f2160
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.1400f2160
mov rcx, qword [rdi]
call fcn.1400db920
mov qword [rdi], 0
jmp 0x1400d6516

Function at 0x1400db7b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140203eb0]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400db810
mov rsi, qword [0x140203ea8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140126950
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140203eb0]
call fcn.140125f00
cmp dword [0x140203eb0], 0xffffffff
jne 0x1400db7ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401298e0
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.140125da0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140203ef8]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400db8d0
lea r8, [0x140203ec8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140082e50
mov qword [0x140203ea8], rsi
lea rcx, [0x140203eb0]
call fcn.140125f98
jmp 0x1400db7ec
lea rcx, [0x140203ef8]
call fcn.140125f00
cmp dword [0x140203ef8], 0xffffffff
jne 0x1400db8a1
xorps xmm0, xmm0
movups xmmword [0x140203ee8], xmm0
movups xmmword [0x140203ed8], xmm0
movups xmmword [0x140203ec8], xmm0
lea rcx, [0x140203ec8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140203ef8]
call fcn.140125f98
jmp 0x1400db8a1
Function at 0x1400dc130
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 [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140203f78]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dc31c
mov rsi, qword [0x140203f70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400dc362
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x140203f20], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x140203f24]
mov dword [0x140203f24], ebx
cmovne ebp, ecx
mov eax, dword [0x140203f28]
cmp ebp, eax
je 0x1400dc2fb
test eax, eax
je 0x1400dc28c
mov rax, qword [str.P_b_]
lea rcx, [0x1400dc410]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400dc36f
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 0x1400dc3da
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140203f90]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140203f80]
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 [0x140203f30]
cmp r8, 2
jb 0x1400dc391
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x140203f30], rax
mov ecx, dword [0x140203f28]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x140203f28], ebp
test ebx, ebx
je 0x1400dc2fb
mov rax, qword [str.P_b_]
lea rcx, [0x1400dc410]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400dc380
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 0x1400dc3a9
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140203f90]
mov qword [0x140203f80], rax
mov ecx, dword [0x140203f28]
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.140126950
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140203f78]
call fcn.140125f00
cmp dword [0x140203f78], 0xffffffff
jne 0x1400dc16e
mov ecx, 8
call fcn.140125da0
mov rsi, rax
mov rcx, rax
call fcn.1400dccd0
mov qword [0x140203f70], rsi
lea rcx, [0x140203f78]
call fcn.140125f98
jmp 0x1400dc16e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400dc186
mov rcx, rdi
call qword [0x140215008]
mov rax, qword [rdi]
jmp 0x1400dc220
mov rcx, rdi
call qword [0x140215008]
mov rax, qword [rdi]
jmp 0x1400dc2e8
cmp rcx, rax
je 0x1400dc279
add rcx, rdx
cmp rcx, 1
ja 0x1400dc279
jmp 0x1400dc40b
mov r8, qword [0x140203f90]
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 0x1400dc2e8
mov r8, qword [0x140203f90]
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 0x1400dc21b
int3
Function at 0x1400dc4b0
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 [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400dc800
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140203f40]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400dc50e
jnp 0x1400dc574
ucomisd xmm0, xmm6
jne 0x1400dc516
jnp 0x1400dc570
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401c1290]
subpd xmm1, xmmword [0x1401c12a0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401c07f0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140126950
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 0x1400dc548
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 [0x140203f50]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dc689
mov eax, dword [0x140203f60]
mov ecx, dword [0x1401f78b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dc6c3
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 [0x140203f58]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401ce4e8]
ucomisd xmm2, xmm1
ja 0x1400dc50e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140203f48]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1401c1290]
subpd xmm0, xmmword [0x1401c12a0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140203f40], xmm0
jmp 0x1400dc50e
lea rcx, [0x140203f50]
call fcn.140125f00
cmp dword [0x140203f50], 0xffffffff
jne 0x1400dc5bd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140203f48], rdx
lea rcx, [0x140203f50]
call fcn.140125f98
jmp 0x1400dc5bd
lea rcx, [0x140203f60]
call fcn.140125f00
cmp dword [0x140203f60], 0xffffffff
jne 0x1400dc5e2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140203f58], rax
lea rcx, [0x140203f60]
call fcn.140125f98
jmp 0x1400dc5e2
Function at 0x1400dca90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400dcb2a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400dcb14
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400dcaf1
mov qword [rsi], rdi
call fcn.1400f2160
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1400dcb2e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f2160
mov rcx, qword [rsi]
call fcn.1400db920
mov qword [rsi], 0
jmp 0x1400dcadf
mov byte [rsi + 8], 0
int3
Function at 0x1400f96e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401e8038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x1400f97b6
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
jne 0x1400f97ba
xor eax, eax
lea rcx, [0x1401d2d50]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x1400f972e
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.1400f8d40
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400f97d2
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x1400f977d
lea rcx, section..text
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140126950
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400f97a0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x1400f9725
jmp 0x1400f97bc
bt eax, 9
jae 0x1400f97f2
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x1400f977d
lea rcx, [0x140004520]
jmp 0x1400f977a
call fcn.140199770
lea rax, [0x140199f70]
test rdi, rdi
je 0x1400f977d
lea rcx, [0x140199650]
jmp 0x1400f977a