joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029da0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1400e4640]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140029dfc
movzx eax, word [0x1400e4610]
cmp ax, 9
jne 0x140029e5e
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005b820
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400e4640]
call fcn.14005ac00
cmp dword [0x1400e4640], 0xffffffff
jne 0x140029dd5
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x1400e4630], xmm2
movups xmmword [0x1400e4620], xmm1
movups xmmword [0x1400e4610], xmm0
lea rcx, [0x1400e4640]
call fcn.14005ac98
jmp 0x140029dd5
xor esi, esi
test ax, ax
je 0x140029de7
cmp ax, 6
jne 0x140029e75
mov esi, 2
jmp 0x140029de7
cmp ax, 0xc
jne 0x140029e85
mov esi, 3
jmp 0x140029de7
mov esi, 4
jmp 0x140029de7

Function at 0x140029e90
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov al, 1
test al, al
je 0x140029f9e
mov rax, qword [rsi]
test rax, rax
jne 0x140029fa5
cmp dword [rsi + 0x14], 0
jne 0x140029fa3
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
jne 0x140029fa5
mov rdi, qword [r14]
cmp rdx, rdi
je 0x140029f19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140029f6d
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140029f0d
mov qword [rsi], rdi
call fcn.1400474a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov rdi, qword [r14 + 8]
cmp rax, rdi
je 0x140029f52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140029f86
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140029f4a
mov qword [rsi + 8], rdi
call fcn.1400474a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [r14 + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [r14 + 0x14]
mov dword [rsi + 0x14], eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400474a0
mov rcx, qword [rsi]
call fcn.140049d90
mov qword [rsi], 0
jmp 0x140029efb
call fcn.1400474a0
mov rcx, qword [rsi + 8]
call fcn.140049d90
mov qword [rsi + 8], 0
jmp 0x140029f37
mov rax, qword [rsi]
jmp 0x140029fa5
xor eax, eax
lea rcx, [rax + 1]
cmp rcx, 2
jae 0x140029fed
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jae 0x140029fd0
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
jmp 0x140029edf
call fcn.1400474a0
mov rcx, qword [rsi + 8]
call fcn.140049d90
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
jmp 0x140029fbd
call fcn.1400474a0
mov rcx, qword [rsi]
call fcn.140049d90
mov qword [rsi], 0
xor eax, eax
jmp 0x140029faf
Function at 0x14002b980
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14005b7b0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14005e0e0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002bac3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14002bac7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.1400409c0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005b820
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14002baa4
cmp eax, 2
jne 0x14002bb0c
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14005e0e0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x14002bb13
lea rdx, [rsp + 0x40]
jmp 0x14002ba9a
mov edi, 0x3f4
jmp 0x14002baa4
mov edi, 0xea
jmp 0x14002baa4

Function at 0x14002ca10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400e02a8]
cmp ecx, 0xffffffff
je 0x14002ca35
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x14002ca30
Function at 0x14002ca40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14005b7b0
sub rsp, rax
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1400e02a8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14002caf4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14002cb23
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14005e0e0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14005ab1c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14005dcd0
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.14005b820
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140030700
test al, al
je 0x14002cb26
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14002cb29
mov eax, 0xffffffff
lock cmpxchg dword [0x1400e02a8], ecx
jne 0x14002cb4e
mov ecx, dword [rsp + 0x2c]
jmp 0x14002ca78
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140030700
test al, al
je 0x14002cb66
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14002cb66
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14002cb0b
mov ecx, dword [rsp + 0x2c]
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400e02a8]
mov dword [rsp + 0x2c], ecx
jmp 0x14002ca78
int3

Function at 0x14002cb70
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rdx
mov rsi, rcx
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x1400e02a8]
cmp ecx, 0xffffffff
je 0x14002cc52
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14002cc52
mov eax, dword [0x1400e77f8]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002cc5c
mov rbx, qword [0x1400e77f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002cca2
mov rax, qword [0x1400e5fe8]
inc rax
xor ecx, ecx
lea r8, [0x1400e5ff0]
lea edx, [rax + rcx]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [r8 + rdx*8], 0
jne 0x14002ccaf
lea rax, [r8 + rdx*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1400e5fe8], rdi
mov dword [rsi], edi
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
cmp eax, 0xffffffff
je 0x14002ccc4
cmp eax, 0x100
jge 0x14002ccc7
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14002ca40
jmp 0x14002cba4
lea rcx, [0x1400e77f8]
call fcn.14005ac00
cmp dword [0x1400e77f8], 0xffffffff
jne 0x14002cbc9
mov ecx, 8
call fcn.14005aaac
mov rbx, rax
mov rcx, rax
call fcn.1400473c0
mov qword [0x1400e77f0], rbx
lea rcx, [0x1400e77f8]
call fcn.14005ac98
jmp 0x14002cbc9
mov rcx, rbx
call fcn.1400473d0
jmp 0x14002cbe1
inc rcx
cmp rcx, 0x100
jne 0x14002cbf4
jmp 0x14002cc26
int3
int3
Function at 0x140030700
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 0x140030715
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140030810
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400e7938]
cmp rdi, 1
jbe 0x140030839
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004c6d0
lea rcx, [0x1400e7938]
call fcn.140030750
test al, al
je 0x14003087f
mov qword [0x1400e7940], 0
lea rbx, [0x1400e7938]
lea rdi, [0x1400e7940]
mov rcx, rdi
xor edx, edx
call fcn.14002cb70
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400307f0
jmp 0x140030827
mov rdi, qword [0x1400e7938]
jmp 0x140030827

Function at 0x140032a50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400e7a40], 0
jne 0x140032a8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140032a80
mov dword [rdi], eax
mov dword [0x1400e7a48], eax
mov qword [0x1400e7a40], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140033aa0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov r13, rcx
lea r15, [rcx + 0x18]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033c81
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x140033c1f
mov rax, r12
shr rax, 0x20
lea edx, [r12*8]
add rdx, 8
xor rdx, rax
movabs rbx, 0x9ddfea08eb382d69
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rdx, rax
xor rdx, rcx
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rbx
mov rax, r8
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r8
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
ja 0x140033c8e
lea rbx, [r8 - 1]
and rbx, rcx
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + rbx*8]
test rax, rax
je 0x140033c1f
mov rsi, qword [rax]
test rsi, rsi
je 0x140033c1f
lea r9, [r8 - 1]
mov rax, qword [rsi + 8]
cmp rax, rcx
jne 0x140033c06
cmp qword [rsi + 0x10], r12
jne 0x140033c17
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [0x1400e82e8]
cmp rdi, 1
jbe 0x140033c38
mov rcx, rdi
call fcn.14004c690
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call fcn.14004c6d0
mov rcx, qword [r14 + 0x28]
mov rdx, r12
call qword [rcx + 8]
mov rcx, rdi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14004c6d0
cmp edi, 1
ja 0x140033caa
and rax, r9
cmp rax, rbx
jne 0x140033c1f
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140033ba7
mov rcx, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rcx, [0x1400e82e8]
call fcn.140030750
test al, al
je 0x140033cc0
mov qword [0x1400e82f0], 0
lea rbx, [0x1400e82e8]
lea rdi, [0x1400e82f0]
mov rcx, rdi
xor edx, edx
call fcn.14002cb70
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400307f0
jmp 0x140033bcc
mov rcx, r15
call fcn.1400473d0
jmp 0x140033acd
mov rbx, rcx
cmp rcx, r8
jb 0x140033b8a
mov rax, rcx
xor edx, edx
div r8
mov rbx, rdx
jmp 0x140033b8a
cmp rax, r8
jb 0x140033c12
xor edx, edx
div r8
mov rax, rdx
jmp 0x140033c12
mov rdi, qword [0x1400e82e8]
jmp 0x140033bcc

Function at 0x140033fd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1400e82d0]
cmp rdi, 1
jbe 0x140033ff9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14004c6d0
lea rcx, [0x1400e82d0]
call fcn.140030750
test al, al
je 0x14003403f
mov qword [0x1400e82d8], 0
lea rbx, [0x1400e82d0]
lea rdi, [0x1400e82d8]
mov rcx, rdi
xor edx, edx
call fcn.14002cb70
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400307f0
jmp 0x140033fe7
mov rdi, qword [0x1400e82d0]
jmp 0x140033fe7
Function at 0x140044800
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140044847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140044861
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004483f
mov qword [rsi], rdi
call fcn.1400474a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140044877
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400474a0
mov rcx, qword [rsi]
call fcn.140049d90
mov qword [rsi], 0
jmp 0x14004482d
int3
Function at 0x140047f80
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140046c50
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1400e4660]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140047fdd
jnp 0x140048042
ucomisd xmm0, xmm6
jne 0x140047fe9
jnp 0x14004816c
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400c48f0]
subpd xmm1, xmmword [0x1400c4900]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400cb080]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005b820
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
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 r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1400e4670]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140048173
mov eax, dword [0x1400e4680]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400481ad
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x1400e4678]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1400c48f0]
subpd xmm1, xmmword [0x1400c4900]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400cb078]
ucomisd xmm2, xmm1
ja 0x140047fdd
shl r15, 0x20
or r14, r15
sub r14, qword [0x1400e4668]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1400c48f0]
subpd xmm0, xmmword [0x1400c4900]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1400e4660], xmm0
jmp 0x140047fdd
xor eax, eax
jmp 0x14004801b
lea rcx, [0x1400e4670]
call fcn.14005ac00
cmp dword [0x1400e4670], 0xffffffff
jne 0x14004808c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400e4668], rdx
lea rcx, [0x1400e4670]
call fcn.14005ac98
jmp 0x14004808c
lea rcx, [0x1400e4680]
call fcn.14005ac00
cmp dword [0x1400e4680], 0xffffffff
jne 0x1400480b1
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1400e4678], rax
lea rcx, [0x1400e4680]
call fcn.14005ac98
jmp 0x1400480b1
Function at 0x14004c690
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400e02a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004c6c4
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14004c6c4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14004c6be

Function at 0x14004c6d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400e02a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004c70e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14004c707
call fcn.14002ca40
jmp 0x14004c6ee
Function at 0x14004d740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x14004d7c0
test rax, rax
jne 0x14004d7af
cmp dword [rsi + 0x50], 0
jne 0x14004d7af
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x14004d7a7
lea rdi, [rsi + 0x20]
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14003fae0
cmp rax, 0xffffffffffffffff
jne 0x14004d799
cmp dword [rsi + 0x58], 1
jne 0x14004d7e3
jmp 0x14004d7c6
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x14004d775
mov byte [rsi + 0x54], 1
xor ebx, ebx
jmp 0x14004d82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400b1030
mov rax, qword [rsi + 0x40]
jmp 0x14004d754
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x14004d7e3
movabs rcx, 0x100003600
bt rcx, rax
jb 0x14004d799
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x14004d82c
movabs r14, 0x100003600
nop dword [rax]
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14003fae0
cmp rax, 0xffffffffffffffff
jne 0x14004d82c
cmp dword [rsi + 0x58], 1
je 0x14004d838
mov rax, qword [rsi + 0x10]
add rax, 1
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x14004d800
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsi + 0x10]
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x14004d81e
bt r14, rcx
jae 0x14004d81e
jmp 0x14004d82c
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], 0
mov byte [rsp + 0x22], 0
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
cmp rax, rcx
je 0x1400b1092
mov edx, dword [rsi + 0x58]
movabs rdi, 0x100003600
cmp edx, 1
jne 0x1400b1092
movzx ebx, byte [rax]
cmp rbx, 0x20
ja 0x1400b1092
bt rdi, rbx
jae 0x1400b1092
inc rax
mov qword [rsi + 0x10], rax
cmp rcx, rax
jne 0x1400b106f
mov rax, rcx
cmp byte [rsi + 0x54], 0
sete dil
lea rbx, [rsp + 0x20]
test dil, 1
je 0x1400b10cf
mov rdx, rcx
mov rcx, rax
mov byte [rsi + 0x54], 1
mov qword [rsi + 8], rcx
cmp rcx, rdx
je 0x1400b1134
mov rax, rcx
inc rax
mov qword [rsi + 0x10], rax
xor edi, edi
test byte [rsi + 0x50], 1
mov rcx, rdx
je 0x1400b109f
jmp 0x1400b111a
mov byte [rsi + 0x54], 0
mov qword [rsi + 8], rax
cmp rax, rcx
je 0x1400b1108
mov r8b, byte [rax]
mov rcx, rsi
mov rdx, rbx
call fcn.1400b1140
test al, al
je 0x1400b1114
mov rax, qword [rsi + 0x10]
inc rax
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x1400b10dc
mov rcx, rax
cmp qword [rsi + 8], rax
jne 0x1400b111a
test byte [rsi + 0x50], 2
jne 0x1400b111a
mov rdx, qword [rsi + 0x18]
jmp 0x1400b10ab
mov rax, qword [rsi + 0x10]
jmp 0x1400b10ff
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005b820
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400b111d
Function at 0x14004e290
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x14004e502
mov rsi, rcx
mov byte [rsp + 0x37], 0xaa
lea r14, [rcx + 0x718]
lea rbx, [rcx + 8]
mov edi, 1
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r12d, 0x40
mov rcx, rbx
call r15
test al, al
jne 0x14004e312
jmp 0x14004e4e1
pause
dec eax
jne 0x14004e2f1
add ebp, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r12d
cmp ebp, 0x3e8
jl 0x14004e2e2
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rdi, qword [rax]
test rdi, rdi
je 0x14004e4b8
mov byte [rsp + 0x37], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004e33e
mov rdx, rcx
not rdx
cmp qword [rdi + 8], rdx
jne 0x14004e505
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm6, xmm6
movups xmmword [rdi + 0x2d8], xmm6
movups xmmword [rdi + 0x2c8], xmm6
movups xmmword [rdi + 0x2b8], xmm6
movups xmmword [rdi + 0x2a8], xmm6
movups xmmword [rdi + 0x298], xmm6
mov qword [rdi + 0x2e8], 0
xor r14d, r14d
mov r8d, 0x291
mov rcx, rdi
xor edx, edx
call fcn.14005e0e0
mov qword [rdi + 0x2f0], rsi
movups xmmword [rdi + 0x2f8], xmm6
mov ebp, 1
lea rbx, [0x1400e02b0]
mov r12d, 0x40
mov rcx, rbx
call r15
test al, al
jne 0x14004e3eb
jmp 0x14004e4f0
pause
dec eax
jne 0x14004e3c4
add r14d, ebp
add ebp, ebp
cmp ebp, 0x40
cmovge ebp, r12d
cmp r14d, 0x3e8
jl 0x14004e3b5
lea rcx, [0x1400e02b0]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov qword [rdi + 0x300], 0
mov rax, qword [0x1400e02b8]
mov qword [0x1400e02b8], rdi
mov qword [rdi + 0x2f8], rax
test rax, rax
je 0x14004e417
mov qword [rax + 0x300], rdi
lea rcx, [0x1400e02b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add rsi, 0x10
mov eax, 0xa
jmp 0x14004e447
mov dword [rdi + rax - 2], 0
add rax, 0x10
add rsi, 0x28
cmp rax, 0x29a
je 0x14004e485
cmp qword [rsi], 0
je 0x14004e42f
mov ecx, dword [rsi + 0x18]
cmp ecx, 0x10000
jae 0x14004e4ff
mov word [rdi + rax], cx
cmp ecx, 0x80
jbe 0x14004e477
cmp ecx, 0x100
ja 0x14004e47e
mov byte [rdi + rax - 1], 0x40
jmp 0x14004e437
mov byte [rdi + rax - 1], 0x80
jmp 0x14004e437
mov byte [rdi + rax - 1], 0x20
jmp 0x14004e437
mov ecx, dword [0x1400e78f0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005b820
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, 0x308
mov rcx, r14
mov rdx, rsi
mov r8d, 2
call fcn.140038f30
mov rdi, rax
jmp 0x14004e348
mov eax, edi
test edi, edi
jg 0x14004e2f1
jmp 0x14004e2f9
mov eax, ebp
test ebp, ebp
jg 0x14004e3c4
jmp 0x14004e3cd
int3
int3
call 0x140084730
int3