joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14012cef0
sub rsp, rax
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401fea30]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400b9d54
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400b9d92
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14012fee0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14012c41c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14012f830
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.14012cf50
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400ca080
test al, al
je 0x1400b9d95
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400b9d98
mov eax, 0xffffffff
lock cmpxchg dword [0x1401fea30], ecx
je 0x1400b9cd8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401fea30]
mov dword [rsp + 0x2c], ecx
jmp 0x1400b9cd8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400ca080
test al, al
je 0x1400b9dbd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400b9dbd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400b9d6b
int3

Function at 0x1400b9dd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401fea30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x1400b9e19
and rax, 0xfffffffffffffffc
je 0x1400b9e4c
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400b9e4c
mov rsi, qword [rax + rcx]
jmp 0x1400b9e4e
lea rdx, [0x1401dafbd]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400f15e0
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.14018da40
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012cf50
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400b9e70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401fea30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b9eae
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 0x1400b9ea7
call fcn.1400b9ca0
jmp 0x1400b9e8e
Function at 0x1400ba7f0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400ba800
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 0x1400ba821
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400ba841
cmp byte [r14 + 0x50], 0
jne 0x1400ba8cc
or edi, 0x20000000
test dil, 8
jne 0x1400ba8d7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1400ba85f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x1400ba870
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x1400ba8fe
cmp byte [r14 + 0x18], 0
jne 0x1400ba90f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400ba91f
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 0x1400ba8f4
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 0x1400ba841
cmp byte [r14 + 0x68], 0
je 0x1400ba8e9
or edi, 0x40000000
jmp 0x1400ba84b
or edi, 0x10000000
jmp 0x1400ba84b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400ba8b7
lea rcx, [r14 + 0x20]
call fcn.140087900
mov r15, rax
jmp 0x1400ba87b
mov rcx, r14
call fcn.140087900
mov r9, rax
jmp 0x1400ba889
cmp ebx, 4
jne 0x1400ba92e
mov edx, 6
jmp 0x1400ba896
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400ba940
mov edx, 7
jmp 0x1400ba896
cmp ebx, 1
jne 0x1400ba94f
mov edx, 4
jmp 0x1400ba896
xor edx, edx
jmp 0x1400ba896
Function at 0x1400ba800
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400ba800
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 0x1400ba821
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400ba841
cmp byte [r14 + 0x50], 0
jne 0x1400ba8cc
or edi, 0x20000000
test dil, 8
jne 0x1400ba8d7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1400ba85f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x1400ba870
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x1400ba8fe
cmp byte [r14 + 0x18], 0
jne 0x1400ba90f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400ba91f
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 0x1400ba8f4
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 0x1400ba841
cmp byte [r14 + 0x68], 0
je 0x1400ba8e9
or edi, 0x40000000
jmp 0x1400ba84b
or edi, 0x10000000
jmp 0x1400ba84b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400ba8b7
lea rcx, [r14 + 0x20]
call fcn.140087900
mov r15, rax
jmp 0x1400ba87b
mov rcx, r14
call fcn.140087900
mov r9, rax
jmp 0x1400ba889
cmp ebx, 4
jne 0x1400ba92e
mov edx, 6
jmp 0x1400ba896
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400ba940
mov edx, 7
jmp 0x1400ba896
cmp ebx, 1
jne 0x1400ba94f
mov edx, 4
jmp 0x1400ba896
xor edx, edx
jmp 0x1400ba896

Function at 0x1400ba960
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 0x1400ba998
cmp byte [r15 + 0x50], 0
jne 0x1400baa2f
or edi, 0x20000000
test dil, 8
jne 0x1400baa3a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x1400ba9b6
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x1400ba9c7
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x1400baa61
cmp byte [r15 + 0x18], 0
jne 0x1400baa72
xor r9d, r9d
cmp ebx, 4
jne 0x1400baa20
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 0x1400baa57
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 0x1400baa82
mov edx, 7
jmp 0x1400ba9ea
or edi, 0x80000000
jmp 0x1400ba998
cmp byte [r15 + 0x68], 0
je 0x1400baa4c
or edi, 0x40000000
jmp 0x1400ba9a2
or edi, 0x10000000
jmp 0x1400ba9a2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400baa0b
lea rcx, [r15 + 0x20]
call fcn.140087900
mov r14, rax
jmp 0x1400ba9d2
mov rcx, r15
call fcn.140087900
mov r9, rax
jmp 0x1400ba9e0
mov edx, 1
test ebx, ebx
je 0x1400ba9ea
cmp ebx, 1
jne 0x1400baa9e
mov edx, 4
jmp 0x1400ba9ea
xor edx, edx
jmp 0x1400ba9ea
Function at 0x1400c7970
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140213670], 0
jne 0x1400c79ad
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400c79a0
mov dword [rdi], eax
mov dword [0x140213678], eax
mov qword [0x140213670], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1400c8990
Capabilities:
Receive data
Receive data on socket

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

Function at 0x1400c8a20
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 [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, SysAllocStringByteLen
mov rcx, rbx
mov dl, 0xaa
call fcn.14012fee0
mov rcx, rbx
call fcn.1400c7a90
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 0x1400c8aba
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.1400a06c0
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14012cf50
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.1400c7b50
mov esi, eax
jmp 0x1400c8a9d
Function at 0x1400c8cd0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400c8df1
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 0x1400c8e2d
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
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 0x1400c8e35
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
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400c8e27
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400c8e39
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x1400c8e20
xor r10d, r10d
jmp 0x1400c8d2f
xor eax, eax
jmp 0x1400c8dc4
cmp byte [r8 + 0x1a], 0
je 0x1400c8e24
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400c8e24
cmp ecx, 0x666f736f
jne 0x1400c8e24
cmp edx, 0x76482074
jne 0x1400c8e24
mov byte [r8 + 0x19], 1
jmp 0x1400c8e24

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x140213728]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400cb021
lea rcx, [0x140213718]
call fcn.1400b9dd0
test rax, rax
jne 0x1400cb00e
mov ecx, 4
call fcn.14012c3a0
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x140213718]
mov rcx, rbx
call fcn.1400b9dd0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400b9e70
test rsi, rsi
jne 0x1400cb064
lea rcx, [0x140213718]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400b9dd0
lea rcx, [0x140213728]
call fcn.14012c500
cmp dword [0x140213728], 0xffffffff
jne 0x1400cafc8
xorps xmm0, xmm0
movups xmmword [0x140213718], xmm0
lea rcx, [0x140213718]
lea rdx, [0x14002afe0]
call fcn.1400b9ec0
lea rcx, [0x140213728]
call fcn.14012c598
jmp 0x1400cafc8
mov rcx, rsi
call fcn.14012c3dc
jmp 0x1400cb00e
Function at 0x1400d8620
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400d8668
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 0x1400d8671
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400d8658
mov qword [rdi], rsi
call fcn.1400f1600
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.1400f1600
mov rcx, qword [rdi]
call fcn.1400dc360
mov qword [rdi], 0
jmp 0x1400d8646

Function at 0x1400dc1f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402057e8]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dc250
mov rsi, qword [0x1402057e0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012cf50
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402057e8]
call fcn.14012c500
cmp dword [0x1402057e8], 0xffffffff
jne 0x1400dc22c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14012fee0
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.14012c3a0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140205830]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dc310
lea r8, [0x140205800]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14007fa10
mov qword [0x1402057e0], rsi
lea rcx, [0x1402057e8]
call fcn.14012c598
jmp 0x1400dc22c
lea rcx, [0x140205830]
call fcn.14012c500
cmp dword [0x140205830], 0xffffffff
jne 0x1400dc2e1
xorps xmm0, xmm0
movups xmmword [0x140205820], xmm0
movups xmmword [0x140205810], xmm0
movups xmmword [0x140205800], xmm0
lea rcx, [0x140205800]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140205830]
call fcn.14012c598
jmp 0x1400dc2e1
Function at 0x1400dcb70
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 [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1402058b0]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dcd77
mov rsi, qword [0x1402058a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400dcdbd
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x140205858], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x14020585c]
mov dword [0x14020585c], ebx
cmovne ebp, ecx
mov eax, dword [0x140205860]
cmp ebp, eax
je 0x1400dcd37
test eax, eax
je 0x1400dcccc
mov rax, qword [str.___b_]
lea rcx, [0x1400dce50]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400dcd66
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 0x1400dce14
imul rax, rcx, 0xf4240
cqo
idiv qword [0x1402058c8]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1402058b8]
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 [0x140205868]
cmp r8, 2
jb 0x1400dcdca
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x140205868], rax
mov ecx, dword [0x140205860]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x140205860], ebp
test ebx, ebx
je 0x1400dcd37
mov rax, qword [str.___b_]
lea rcx, [0x1400dce50]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400dcd58
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 0x1400dcde3
imul rax, rcx, 0xf4240
cqo
idiv qword [0x1402058c8]
mov qword [0x1402058b8], rax
mov ecx, dword [0x140205860]
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.14012cf50
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, rdi
call qword [0x140224008]
mov rax, qword [rdi]
jmp 0x1400dcd24
mov rcx, rdi
call qword [0x140224008]
mov rax, qword [rdi]
jmp 0x1400dcc60
lea rcx, [0x1402058b0]
call fcn.14012c500
cmp dword [0x1402058b0], 0xffffffff
jne 0x1400dcbae
mov ecx, 8
call fcn.14012c3a0
mov rsi, rax
mov rcx, rax
call fcn.1400dd3e0
mov qword [0x1402058a8], rsi
lea rcx, [0x1402058b0]
call fcn.14012c598
jmp 0x1400dcbae
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400dcbc6
cmp rcx, rax
je 0x1400dccb9
add rcx, rdx
cmp rcx, 1
ja 0x1400dccb9
int3
mov r8, qword [0x1402058c8]
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 0x1400dcd24
mov r8, qword [0x1402058c8]
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 0x1400dcc5b
Function at 0x1400dd1a0
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 0x1400dd23a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400dd224
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400dd201
mov qword [rsi], rdi
call fcn.1400f1600
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 0x1400dd23e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f1600
mov rcx, qword [rsi]
call fcn.1400dc360
mov qword [rsi], 0
jmp 0x1400dd1ef
mov byte [rsi + 8], 0
int3
Function at 0x1400f95b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x1400f9686
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 0x1400f968a
xor eax, eax
lea rcx, [0x1401da810]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x1400f95fe
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.1400f8bd0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400f96a2
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x1400f964d
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.14012cf50
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400f9670
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x1400f95f5
jmp 0x1400f968c
bt eax, 9
jae 0x1400f96c2
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x1400f964d
lea rcx, [0x140004520]
jmp 0x1400f964a
call fcn.140192bf0
lea rax, [0x1401933f0]
test rdi, rdi
je 0x1400f964d
lea rcx, [0x140192ad0]
jmp 0x1400f964a

Function at 0x1401056b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1401056db
xor ecx, ecx
lea r9, [0x1401db2e0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x1401056c0
ret
Function at 0x14010de40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400b9520]
mov qword [rsp + 0x20], rax
lea rcx, [0x140211d48]
lea rdx, [0x1400b93c0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14010ded4
cmp dword [0x140211d50], 0
jne 0x14010ded0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140211d54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14010ded0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012cf50
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14010deb8
call fcn.140146830
int3
Function at 0x1401289d0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 0
mov eax, dword [0x1401feb28]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1d0]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1d0]
mov qword [rax + 0x1d0], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
mov rax, qword [str.pV__]
movzx eax, byte [rax + 0x7f]
test al, al
setne byte [rsi + 0x30]
jne 0x140128a6d
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012cf50
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsi + 0x20]
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x20]
mov rcx, rdx
mov rdx, rdi
call qword [0x140224008]
mov rax, qword [rdi]
mov qword [rbx], rax
jmp 0x140128a55

Function at 0x14012d1b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012d1fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012d1fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012d1fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012d1fe
cmp dword [rcx + 0x84], 0xe
jbe 0x14012d1fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14012d200
xor al, al
add rsp, 0x28
ret

Function at 0x14012d63c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14012d6b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14012d6b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14012d6b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14012d6a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14012d6c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14012d696
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14012d6b6