joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400558f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb78], 0x8000
jne 0x1400559fa
mov rsi, rcx
cmp dword [rcx + 0x3f8], 0x200
jne 0x1400559fd
lea rcx, [0x14012f5a8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140055a00
cmp byte [0x14013e778], 0
je 0x1400559bb
lea rcx, [0x14012f5a8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x14013e780], rsi
jne 0x140055a11
lea rax, [0x140055a20]
mov qword [0x1401446c8], rax
add rsi, 0x48
xor eax, eax
lea rcx, [0x14013e730]
cmp qword [rsi], 0
je 0x1400559f6
mov edx, dword [rsi + 0x18]
cmp edx, 0x81
jb 0x1400559b1
cmp edx, 0x101
jb 0x1400559ad
cmp edx, 0x201
setb dl
shl dl, 4
add dl, 0x10
mov byte [rax + rcx], dl
inc rax
add rsi, 0x28
cmp rax, 0x48
jne 0x140055973
jmp 0x1400559b5
mov dl, 0x40
jmp 0x14005599b
mov dl, 0x80
jmp 0x14005599b
add rsp, 0x20
pop rsi
ret
cmp qword [0x1401446b8], 0
jne 0x140055a14
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140055a17
mov dword [0x14013e720], eax
mov dword [0x1401446c0], eax
lea rax, [0x140090720]
mov qword [0x1401446b8], rax
mov byte [0x14013e778], 1
jmp 0x14005593a
xor edx, edx
jmp 0x14005599b
int3
int3
lea rcx, [0x14012f5a8]
call fcn.140062f20
jmp 0x14005592d
int3
int3
int3

Function at 0x140058480
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14013b660]
cmp ecx, 0xffffffff
je 0x1400584a5
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 0x1400584a0

Function at 0x1400584b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x14005850d
lea rdx, [0x14011a2a2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1db
call fcn.140061ec0
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1400c7be0
jmp 0x140058529
and rax, 0xfffffffffffffffc
je 0x140058529
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140058529
mov rsi, qword [rax + rcx]
jmp 0x14005852b
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400587e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140058817
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140058817
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140058817
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x140058816
Function at 0x14006c950
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006c98e
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 0x14006c987
call fcn.1400051d0
jmp 0x14006c96e

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
movapd xmmword [rsp + 0x50], xmm8
movdqa xmmword [rsp + 0x40], xmm7
movapd xmmword [rsp + 0x30], xmm6
mov rsi, r8
mov edi, ecx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cvtsi2sd xmm0, edx
call fcn.1400b2fa0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rax
cmp rcx, 4
jbe 0x14006f32f
mov dword [rax + 4], edi
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov r14, rax
sub r14, rcx
sar r14, 2
lea rdx, [r14 - 1]
cmp rdx, 3
jb 0x14006f25c
movapd xmm6, xmm0
mov r15d, 3
sub r15, r14
add r14, 0xfffffffffffffffd
mov r12d, 2
lea rbx, [rsp + 0x20]
movdqa xmm7, xmmword [0x140119080]
movapd xmm8, xmmword [0x140119090]
nop word cs:[rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, edi
call fcn.1400b2fa0
movsd qword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.140061fc0
movsd xmm1, qword [rsp + 0x20]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, r14
punpckldq xmm2, xmm7
subpd xmm2, xmm8
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1400b1ff0
mov r13, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, r13
sar rax, 2
cmp rax, r12
jbe 0x14006f32c
call fcn.1400c7b38
cvttsd2si eax, xmm0
cmp edi, eax
lea ecx, [rdi + 1]
cmovl ecx, eax
mov dword [r13 + r12*4], ecx
lea rax, [r15 + r12]
inc rax
inc r12
dec r14
mov edi, ecx
cmp rax, 2
jne 0x14006f1c0
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x14006f332
mov dword [rax - 4], 0x7fffffff
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
mov rdx, r8
sub rdx, rcx
je 0x14006f335
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
jne 0x14006f296
xor r8d, r8d
jmp 0x14006f2e0
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x14011ef40]
nop word [rax + rax]
movzx r11d, al
movzx edi, byte [rcx + r8]
xor edi, r11d
shr eax, 8
xor eax, dword [r10 + rdi*4]
movzx r11d, al
movzx edi, byte [rcx + r8 + 1]
xor edi, r11d
shr eax, 8
xor eax, dword [r10 + rdi*4]
add r8, 2
cmp r9, r8
jne 0x14006f2b0
test dl, 1
je 0x14006f2fc
movzx edx, al
movzx ecx, byte [rcx + r8]
xor ecx, edx
lea rdx, [0x14011ef40]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [rsi + 0x18], eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400985e0
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
int3
int3
xor eax, eax
jmp 0x14006f2fc
Function at 0x14006f340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movapd xmmword [rsp + 0x20], xmm8
movapd xmmword [rsp + 0x10], xmm7
movapd xmmword [rsp], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x14006f443
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x140119080]
subpd xmm2, xmmword [0x140119090]
haddpd xmm2, xmm2
mov ecx, 1
movdqa xmm3, xmmword [0x140119080]
movapd xmm4, xmmword [0x140119090]
movsd xmm5, qword [0x1401092c0]
nop dword [rax]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x14006f4f2
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
mulsd xmm7, xmm0
lea r10, [rcx - 1]
movq xmm6, r10
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm8, xmm6
unpckhpd xmm8, xmm6
addsd xmm8, xmm6
mulsd xmm8, xmm1
addsd xmm8, xmm7
divsd xmm8, xmm2
addsd xmm8, xmm5
cvttsd2si r10d, xmm8
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x14006f3c0
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x14006f4f5
mov dword [r10 - 4], 0x7fffffff
mov rcx, qword [r8]
mov r9, qword [r8 + 8]
mov rdx, r9
sub rdx, rcx
je 0x14006f4f8
mov rax, rdx
shr rax, 2
mov r10, rcx
not r10
add r10, r9
jne 0x14006f47e
xor r9d, r9d
jmp 0x14006f4bc
mov r10, rdx
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x14011ef40]
nop
movzx esi, al
movzx edi, byte [rcx + r9]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [rcx + r9 + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add r9, 2
cmp r10, r9
jne 0x14006f490
test dl, 1
je 0x14006f4d8
movzx edx, al
movzx ecx, byte [rcx + r9]
xor ecx, edx
lea rdx, [0x14011ef40]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [r8 + 0x18], eax
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
int3
int3
xor eax, eax
jmp 0x14006f4d8
Function at 0x140071cc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013e640]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071d20
lea rsi, [0x14013e638]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013e640]
call fcn.140096578
cmp dword [0x14013e640], 0xffffffff
jne 0x140071cfc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14009a700
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.14009633c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013e688]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140071de0
lea r8, [0x14013e658]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400102f0
mov qword [0x14013e638], rsi
lea rcx, [0x14013e640]
call fcn.1400966f0
jmp 0x140071cfc
lea rcx, [0x14013e688]
call fcn.140096578
cmp dword [0x14013e688], 0xffffffff
jne 0x140071db1
xorps xmm0, xmm0
movups xmmword [0x14013e678], xmm0
movups xmmword [0x14013e668], xmm0
movups xmmword [0x14013e658], xmm0
lea rcx, [0x14013e658]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013e688]
call fcn.1400966f0
jmp 0x140071db1
Function at 0x14007a940
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
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 0x14007aa42
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007a9d0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007a9a7
mov qword [rsi], rdi
call fcn.140061fd0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14007aa46
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140061fd0
mov r14, qword [rsi]
cmp qword [0x140142d48], 0
je 0x14007aa01
mov rcx, qword [0x140142d48]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140150008]
mov qword [rsi], 0
jmp 0x14007a995
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14011a090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14007aa49
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14007aa3c
call qword [0x140150008]
mov rcx, rax
xor edx, edx
call fcn.140021bd0
jmp 0x14007a9e2
xor ecx, ecx
mov dl, 1
jmp 0x14007aa35
mov byte [rsi + 8], 1
int3
xor ecx, ecx
jmp 0x14007aa33
Function at 0x14007d240
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x1401462f0]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007d2f4
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x14007d2d1
lea rdx, [0x14011a2a2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1db
call fcn.140061ec0
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1400c7be0
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0x50
pop rsi
ret
and rax, 0xfffffffffffffffc
je 0x14007d2b9
mov rcx, qword [0x1401462e0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401462e8]
jne 0x14007d2b9
mov rsi, qword [rax + rcx]
jmp 0x14007d2bb
lea rcx, [0x1401462f0]
call fcn.140096578
cmp dword [0x1401462f0], 0xffffffff
jne 0x14007d275
mov qword [0x1401462e8], 0
lea rcx, [0x1401462e0]
mov qword [0x1401462e0], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x1401462f0]
call fcn.1400966f0
jmp 0x14007d275
Function at 0x1400811e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x140146308]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140081277
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x1400812c1
and rax, 0xfffffffffffffffc
je 0x1400812ef
mov rcx, qword [0x1401462f8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140146300]
jne 0x1400812ef
mov rsi, qword [rax + rcx]
test rsi, rsi
je 0x1400812ef
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0x50
pop rsi
ret
lea rcx, [0x140146308]
call fcn.140096578
cmp dword [0x140146308], 0xffffffff
jne 0x140081215
mov qword [0x140146300], 0
lea rcx, [0x1401462f8]
mov qword [0x1401462f8], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x140146308]
call fcn.1400966f0
jmp 0x140081215
lea rdx, [0x14011a2a2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1db
call fcn.140061ec0
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1400c7be0
int3

Function at 0x140081300
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1401462f0]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400813dd
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x1400813b0
lea rdx, [0x14011a2a2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x1db
call fcn.140061ec0
mov edx, 0x11e1a300
mov rcx, rdi
call fcn.1400c7be0
xor edi, edi
mov rax, qword [0x14012dfa0]
and rax, rdi
cmp rax, qword [0x14012df88]
je 0x1400813d3
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
and rax, 0xfffffffffffffffc
je 0x140081381
mov rcx, qword [0x1401462e0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401462e8]
jne 0x140081381
mov rdi, qword [rax + rcx]
jmp 0x140081383
mov rcx, rdi
call fcn.140062440
jmp 0x140081396
lea rcx, [0x1401462f0]
call fcn.140096578
cmp dword [0x1401462f0], 0xffffffff
jne 0x14008133d
mov qword [0x1401462e8], 0
lea rcx, [0x1401462e0]
mov qword [0x1401462e0], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x1401462f0]
call fcn.1400966f0
jmp 0x14008133d
Function at 0x140083ce0
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14013e798]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140083d38
jnp 0x140083d9e
ucomisd xmm0, xmm6
jne 0x140083d44
jnp 0x140083eb3
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140119080]
subpd xmm1, xmmword [0x140119090]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140119c00]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400985e0
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 [0x14013e7a8]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140083eba
mov eax, dword [0x14013e7b8]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140083ef4
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 [0x14013e7b0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140119bf8]
ucomisd xmm2, xmm1
ja 0x140083d38
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14013e7a0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140119080]
subpd xmm0, xmmword [0x140119090]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14013e798], xmm0
jmp 0x140083d38
xor eax, eax
jmp 0x140083d76
lea rcx, [0x14013e7a8]
call fcn.140096578
cmp dword [0x14013e7a8], 0xffffffff
jne 0x140083de7
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14013e7a0], rdx
lea rcx, [0x14013e7a8]
call fcn.1400966f0
jmp 0x140083de7
lea rcx, [0x14013e7b8]
call fcn.140096578
cmp dword [0x14013e7b8], 0xffffffff
jne 0x140083e0c
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14013e7b0], rax
lea rcx, [0x14013e7b8]
call fcn.1400966f0
jmp 0x140083e0c
Function at 0x140085b40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013e640]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140085ba0
mov rsi, qword [0x14013e638]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400985e0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013e640]
call fcn.140096578
cmp dword [0x14013e640], 0xffffffff
jne 0x140085b7c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14009a700
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.14009633c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013e688]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140085c60
lea r8, [0x14013e658]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400102f0
mov qword [0x14013e638], rsi
lea rcx, [0x14013e640]
call fcn.1400966f0
jmp 0x140085b7c
lea rcx, [0x14013e688]
call fcn.140096578
cmp dword [0x14013e688], 0xffffffff
jne 0x140085c31
xorps xmm0, xmm0
movups xmmword [0x14013e678], xmm0
movups xmmword [0x14013e668], xmm0
movups xmmword [0x14013e658], xmm0
lea rcx, [0x14013e658]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013e688]
call fcn.1400966f0
jmp 0x140085c31
Function at 0x140088940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x140088a37
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x140088a37
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x140088a5c
add r9, 0x88
je 0x140088a5c
mov eax, dword [r9]
test rax, rax
je 0x140088a37
add rax, rcx
je 0x140088a37
cmp rdx, 0xffff
jbe 0x140088a56
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x140088a37
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x140088a10
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x140088a12
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x1400889fd
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x140088a3b
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
jne 0x1400889cb
xor eax, eax
jmp 0x140088a5c
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140089680
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rcx + 0x18]
mov eax, dword [0x140146558]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089760
mov ecx, dword [0x14013b660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x14008972f
lea rdx, [0x14011a2a2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1db
call fcn.140061ec0
mov edx, 0x11e1a300
mov rcx, rsi
call fcn.1400c7be0
mov ecx, 0xffffffff
mov eax, dword [rdi + 0x48]
cmp eax, ecx
sete cl
cmp eax, 0xffffffff
setne bl
and bl, cl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400985e0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0xffffffff
and rax, 0xfffffffffffffffc
je 0x140089708
mov rdx, qword [0x140146548]
shl rdx, 4
mov r8d, dword [rax + rdx + 8]
cmp r8d, dword [0x140146550]
jne 0x140089708
mov rax, qword [rax + rdx]
test rax, rax
je 0x140089708
mov ecx, dword [rax]
jmp 0x140089708
lea rcx, [0x140146558]
call fcn.140096578
cmp dword [0x140146558], 0xffffffff
jne 0x1400896bf
mov qword [0x140146550], 0
lea rcx, [0x140146548]
mov qword [0x140146548], 0xffffffffffffffff
xor edx, edx
call fcn.140005670
lea rcx, [0x140146558]
call fcn.1400966f0
jmp 0x1400896bf