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

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400522d0
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 0x1400522f1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140052311
cmp byte [r14 + 0x68], 0
jne 0x140052393
or edi, 0x20000000
test dil, 8
jne 0x1400523c7
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x14005232f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140052340
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400523a8
cmp byte [r14], 0
jne 0x1400523b6
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400523e7
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 0x14005239e
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 0x140052311
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14005237e
lea rcx, [r14 + 0x30]
call fcn.140033870
mov r15, rax
jmp 0x140052347
add r14, 8
mov rcx, r14
call fcn.140033870
mov r9, rax
jmp 0x140052350
cmp byte [r14 + 0x88], 0
je 0x1400523dc
or edi, 0x40000000
jmp 0x14005231b
or edi, 0x10000000
jmp 0x14005231b
cmp ebx, 4
jne 0x1400523f6
mov edx, 6
jmp 0x14005235d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140052408
mov edx, 7
jmp 0x14005235d
cmp ebx, 1
jne 0x140052417
mov edx, 4
jmp 0x14005235d
xor edx, edx
jmp 0x14005235d

Function at 0x140052420
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 0x140052458
cmp byte [r15 + 0x68], 0
jne 0x1400524e6
or edi, 0x20000000
test dil, 8
jne 0x14005251d
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140052476
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140052487
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x1400524fb
cmp byte [r15], 0
jne 0x140052509
xor r9d, r9d
cmp ebx, 4
jne 0x1400524d7
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 0x1400524f1
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 0x14005253d
mov edx, 7
jmp 0x1400524a1
or edi, 0x80000000
jmp 0x140052458
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400524c2
lea rcx, [r15 + 0x30]
call fcn.140033870
mov r14, rax
jmp 0x14005248e
add r15, 8
mov rcx, r15
call fcn.140033870
mov r9, rax
jmp 0x140052497
cmp byte [r15 + 0x88], 0
je 0x140052532
or edi, 0x40000000
jmp 0x140052462
or edi, 0x10000000
jmp 0x140052462
mov edx, 1
test ebx, ebx
je 0x1400524a1
cmp ebx, 1
jne 0x140052559
mov edx, 4
jmp 0x1400524a1
xor edx, edx
jmp 0x1400524a1
Function at 0x14005a5c0
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 [0x140196028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14005a590]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401b1ea0]
lea rdx, [0x14005a3e0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14005a6d0
cmp dword [0x1401b1ea8], 0
jne 0x14005a6c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401b1eac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005a66c
mov ecx, 1
mov edx, 0x28
call fcn.1400774f0
test rax, rax
je 0x14005a6c0
mov r14, rax
mov ecx, dword [0x1401b1eac]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005a6b8
lea r15, [0x1401b1eb0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401b1ec0]
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.1400bdd30
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140077450
mov rcx, rsi
mov rax, rdi
call qword [0x1401c0008]
xor esi, esi
jmp 0x14005a69c
call fcn.1400d2250
int3

Function at 0x140060520
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 [0x1401a56f0]
cmp ecx, 0xffffffff
je 0x1400605fa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400605fa
mov eax, dword [0x1401b3820]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140060604
mov rbx, qword [0x1401b3818]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006064a
mov rax, qword [0x1401b2008]
inc rax
xor ecx, ecx
lea rdx, [0x1401b2010]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140060657
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401b3810]
inc ecx
mov dword [0x1401b3810], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1401b2008], 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 0x14006066c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140060670
jmp 0x14006054a
lea rcx, [0x1401b3820]
call fcn.1400bc930
cmp dword [0x1401b3820], 0xffffffff
jne 0x14006056f
mov ecx, 8
call fcn.1400bc7dc
mov rbx, rax
mov rcx, rax
call fcn.14008e060
mov qword [0x1401b3818], rbx
lea rcx, [0x1401b3820]
call fcn.1400bc9c8
jmp 0x14006056f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140060587
inc rcx
cmp rcx, 0x100
jne 0x14006059a
jmp 0x1400605e0
int3
Function at 0x140060670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400bdcd0
sub rsp, rax
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401a56f0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140060724
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140060787
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400bfe80
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400bc84c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400bf7d0
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.1400bdd30
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14006b8c0
test al, al
je 0x14006078a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140060762
mov eax, 0xffffffff
lock cmpxchg dword [0x1401a56f0], ecx
je 0x1400606a8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401a56f0]
mov dword [rsp + 0x2c], ecx
jmp 0x1400606a8
lea rcx, [rsp + 0x2c]
call fcn.14006b8c0
test al, al
je 0x14006078d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14006078d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14006073b
int3
int3
int3

Function at 0x1400607a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401a56f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400607de
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 0x1400607d7
call fcn.140060670
jmp 0x1400607be
Function at 0x14006b8c0
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 0x14006b8d5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14007ee90
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14007ef8e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140172fe0]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x14007ef00
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140172ff0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x14007f01d
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x14007eff3
movdqa xmm1, xmmword [0x140172ff0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x140173000], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140082340
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 0x1400823da
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400823c4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400823a1
mov qword [rsi], rdi
call fcn.140086390
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 0x1400823de
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140086390
mov rcx, qword [rsi]
call fcn.140082310
mov qword [rsi], 0
jmp 0x14008238f
mov byte [rsi + 8], 0
int3

Function at 0x140082580
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400825c8
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 0x1400825d1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400825b8
mov qword [rdi], rsi
call fcn.140086390
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.140086390
mov rcx, qword [rdi]
call fcn.140082310
mov qword [rdi], 0
jmp 0x1400825a6

Function at 0x140082780
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x14016f5d0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.140086370
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14008af90
test esi, esi
js 0x140082891
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14008d360
test al, al
jne 0x1400828b0
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008289d
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x140082898
lea rcx, [rsp + 0x30]
call fcn.14008d3f0
lea rcx, [rsp + 0x50]
call fcn.14008b1d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400bdd30
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140082864
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14008285a
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14011bfe0
jmp 0x14008282a
Function at 0x1400889f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140082640
mov qword [rsi], 0
test rax, rax
je 0x140088a43
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140088a77
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140088a3b
mov qword [rsi], rbx
call fcn.140086390
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140086550
lea rcx, [rsi + 0x20]
call fcn.14008d380
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140086390
mov rcx, qword [rsi]
call fcn.140082310
mov qword [rsi], 0
jmp 0x140088a29
Function at 0x14008ac70
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 [0x140196028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14008bab0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1401b0598]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14008acce
jnp 0x14008ad34
ucomisd xmm0, xmm6
jne 0x14008acd6
jnp 0x14008ad30
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140171380]
subpd xmm1, xmmword [0x140171390]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401782e0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bdd30
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 0x14008ad08
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 [0x1401b05a8]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008ae49
mov eax, dword [0x1401b05b8]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008ae83
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 [0x1401b05b0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401782d8]
ucomisd xmm2, xmm1
ja 0x14008acce
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1401b05a0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140171380]
subpd xmm0, xmmword [0x140171390]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1401b0598], xmm0
jmp 0x14008acce
lea rcx, [0x1401b05a8]
call fcn.1400bc930
cmp dword [0x1401b05a8], 0xffffffff
jne 0x14008ad7d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401b05a0], rdx
lea rcx, [0x1401b05a8]
call fcn.1400bc9c8
jmp 0x14008ad7d
lea rcx, [0x1401b05b8]
call fcn.1400bc930
cmp dword [0x1401b05b8], 0xffffffff
jne 0x14008ada2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401b05b0], rax
lea rcx, [0x1401b05b8]
call fcn.1400bc9c8
jmp 0x14008ada2
Function at 0x14008b4c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401b05e0]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008b520
mov rsi, qword [0x1401b05d8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400bdd30
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401b05e0]
call fcn.1400bc930
cmp dword [0x1401b05e0], 0xffffffff
jne 0x14008b4fc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bfe80
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.1400bc7dc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401b0628]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008b5e0
lea r8, [0x1401b05f8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400409d0
mov qword [0x1401b05d8], rsi
lea rcx, [0x1401b05e0]
call fcn.1400bc9c8
jmp 0x14008b4fc
lea rcx, [0x1401b0628]
call fcn.1400bc930
cmp dword [0x1401b0628], 0xffffffff
jne 0x14008b5b1
xorps xmm0, xmm0
movups xmmword [0x1401b0618], xmm0
movups xmmword [0x1401b0608], xmm0
movups xmmword [0x1401b05f8], xmm0
lea rcx, [0x1401b05f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401b0628]
call fcn.1400bc9c8
jmp 0x14008b5b1
Function at 0x14008b630
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401b05e0]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008b691
mov rax, qword [0x1401b05d8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400bdd30
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401b05e0]
call fcn.1400bc930
cmp dword [0x1401b05e0], 0xffffffff
jne 0x14008b66c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bfe80
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.1400bc7dc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401b0628]
mov ecx, dword [0x1401a5788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008b751
lea r8, [0x1401b05f8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400409d0
mov qword [0x1401b05d8], rsi
lea rcx, [0x1401b05e0]
call fcn.1400bc9c8
jmp 0x14008b66c
lea rcx, [0x1401b0628]
call fcn.1400bc930
cmp dword [0x1401b0628], 0xffffffff
jne 0x14008b722
xorps xmm0, xmm0
movups xmmword [0x1401b0618], xmm0
movups xmmword [0x1401b0608], xmm0
movups xmmword [0x1401b05f8], xmm0
lea rcx, [0x1401b05f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401b0628]
call fcn.1400bc9c8
jmp 0x14008b722
Function at 0x14008cef0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x14008cf5b
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x14008cf89
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.1400bc7dc
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x14008cf54
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x14008cf30
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x14008cfb5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400bc818
jmp 0x14008cf2b
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x14008cf72
mov rcx, rdi
call fcn.14007f300
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14008cf89
mov rax, rdi
shr rax, 0x3d
je 0x14008cf0f
call fcn.1400f1150
cmp rdi, rbx
jae 0x14008cf4c
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x14008d0b7
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14008d0bc
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x14008d031
cmp rcx, rdi
jb 0x14008d038
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x14008d038
lea rax, [rdi - 1]
and rcx, rax
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x14008cf4c
lea r11, [rdi - 1]
jmp 0x14008d09e
mov qword [rdx + rax*8], r8
jmp 0x14008d08c
and rax, r11
cmp rax, rcx
je 0x14008d089
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
je 0x14008d051
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x14008cf4c
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14008d057
cmp rax, rdi
jb 0x14008d05a
xor edx, edx
div rdi
mov rax, rdx
jmp 0x14008d05a
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400efb60
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140171f20]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x14008d16f
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14008d16f
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x14008d17a
mov rcx, rax
call fcn.14007f300
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x14008cf4c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401167c0