joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400488a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140113018]
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]
test eax, eax
jne 0x140048927
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140048911
cmp dword [rsp + 0x38], 4
jne 0x140048911
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140081fe0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140048911

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140081f70
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
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 0x1400489e3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400489e7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140028a80
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140081fe0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400489c4
cmp eax, 2
jne 0x140048a2f
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140084d10
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140048a36
lea rdx, [rsp + 0x40]
jmp 0x1400489ba
mov edi, 0x3f4
jmp 0x1400489c4
mov edi, 0xea
jmp 0x1400489c4

Function at 0x140048be0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14011c6c0]
cmp ecx, 0xffffffff
je 0x140048c05
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 0x140048c00
Function at 0x140048c10
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x14011c6c0]
cmp ecx, 0xffffffff
je 0x140048cee
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140048cee
mov eax, dword [0x1401267a8]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140048cf8
mov rbx, qword [0x1401267a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140048d3e
mov rax, qword [0x140124f90]
inc rax
xor ecx, ecx
lea rdx, [0x140124fa0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140048d4b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140124f90], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140048d60
cmp eax, 0x100
jge 0x140048d63
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140048d70
jmp 0x140048c3e
lea rcx, [0x1401267a8]
call fcn.140081790
cmp dword [0x1401267a8], 0xffffffff
jne 0x140048c63
mov ecx, 8
call fcn.140081638
mov rbx, rax
mov rcx, rax
call fcn.140065490
mov qword [0x1401267a0], rbx
lea rcx, [0x1401267a8]
call fcn.140081828
jmp 0x140048c63
mov rcx, rbx
call fcn.1400654a0
jmp 0x140048c7b
inc rcx
cmp rcx, 0x100
jne 0x140048c8e
jmp 0x140048cc2
int3
int3

Function at 0x140048d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140081f70
sub rsp, rax
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14011c6c0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140048e24
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140048e62
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140084d10
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400816ac
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140084900
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.140081fe0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14004fbf0
test al, al
je 0x140048e65
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140048e68
mov eax, 0xffffffff
lock cmpxchg dword [0x14011c6c0], ecx
je 0x140048da8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14011c6c0]
mov dword [rsp + 0x2c], ecx
jmp 0x140048da8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14004fbf0
test al, al
je 0x140048e8d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140048e8d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140048e3b
int3
Function at 0x14004a180
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1401267d0]
cmp rdi, 1
jbe 0x14004a1a9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140072ce0
lea rcx, [0x1401267d0]
call fcn.140048b00
test al, al
je 0x14004a1ef
mov qword [0x1401267d8], 0
lea rbx, [0x1401267d0]
lea rdi, [0x1401267d8]
mov rcx, rdi
xor edx, edx
call fcn.140048f80
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140048ba0
jmp 0x14004a197
mov rdi, qword [0x1401267d0]
jmp 0x14004a197

Function at 0x14004e7c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovae r8d, eax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004e825
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004e82e
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081fe0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004e80e
int3
mov rcx, qword [rcx + 8]
jmp 0x14004e7c0

Function at 0x14004e840
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov ecx, 0xffffffff
cmp r8, rcx
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14004e8e8
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004e8d7
cmp eax, 0xffffffff
je 0x14004e8fc
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081fe0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14004e886
mov eax, dword [rsp + 0x2c]
jmp 0x14004e8b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004e8b9
int3

Function at 0x14004ed80
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14004eca0
test rax, rax
jne 0x14004edbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14004eddb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140081fe0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006a7a0
test al, al
je 0x14004ee31
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400cee70
lea rcx, [rsp + 0x40]
lea rdx, [0x140102bb1]
mov r8d, 0xc
call fcn.1400596c0
mov rcx, rsi
call fcn.1400ceef0
xor esi, esi
jmp 0x14004edbf
Function at 0x14004f2c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovae r8d, eax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004e825
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004e82e
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081fe0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004e80e
int3
mov rcx, qword [rcx + 8]
jmp 0x14004e7c0

Function at 0x14004f520
Capabilities:
Allocate thread local storage

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

Function at 0x14004fbf0
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 0x14004fc05
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140050de0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140126ae0]
cmp rdi, 1
jbe 0x140050e09
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140072ce0
lea rcx, [0x140126ae0]
call fcn.140048b00
test al, al
je 0x140050e4f
mov qword [0x140126ae8], 0
lea rbx, [0x140126ae0]
lea rdi, [0x140126ae8]
mov rcx, rdi
xor edx, edx
call fcn.140048f80
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140048ba0
jmp 0x140050df7
mov rdi, qword [0x140126ae0]
jmp 0x140050df7
Function at 0x1400644c0
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 0x140064507
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140064521
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400644ff
mov qword [rsi], rdi
call fcn.14006bde0
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 0x140064537
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14006bde0
mov rcx, qword [rsi]
call fcn.14006c1a0
mov qword [rsi], 0
jmp 0x1400644ed
int3

Function at 0x140064590
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 ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140064627
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140064611
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400645ee
mov qword [rsi], rdi
call fcn.14006bde0
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 0x14006462b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14006bde0
mov rcx, qword [rsi]
call fcn.14006c1a0
mov qword [rsi], 0
jmp 0x1400645dc
mov byte [rsi + 8], 1
int3
Function at 0x14006ba40
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 [0x140113018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14006c5e0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140122290]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14006ba9d
jnp 0x14006bb02
ucomisd xmm0, xmm6
jne 0x14006baa9
jnp 0x14006bc2c
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f69d0]
subpd xmm1, xmmword [0x1400f69e0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400fd420]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140081fe0
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 [0x1401222a0]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006bc33
mov eax, dword [0x1401222b0]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006bc6d
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 [0x1401222a8]
movq xmm1, rbp
punpckldq xmm1, xmmword [0x1400f69d0]
subpd xmm1, xmmword [0x1400f69e0]
haddpd xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400fd418]
ucomisd xmm2, xmm1
ja 0x14006ba9d
shl r15, 0x20
or r14, r15
sub r14, qword [0x140122298]
movq xmm0, r14
punpckldq xmm0, xmmword [0x1400f69d0]
subpd xmm0, xmmword [0x1400f69e0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140122290], xmm0
jmp 0x14006ba9d
xor eax, eax
jmp 0x14006badb
lea rcx, [0x1401222a0]
call fcn.140081790
cmp dword [0x1401222a0], 0xffffffff
jne 0x14006bb4c
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140122298], rdx
lea rcx, [0x1401222a0]
call fcn.140081828
jmp 0x14006bb4c
lea rcx, [0x1401222b0]
call fcn.140081790
cmp dword [0x1401222b0], 0xffffffff
jne 0x14006bb71
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401222a8], rax
lea rcx, [0x1401222b0]
call fcn.140081828
jmp 0x14006bb71
Function at 0x140072570
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140124f30]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400725d1
mov rax, qword [0x140124f28]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140081fe0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140124f30]
call fcn.140081790
cmp dword [0x140124f30], 0xffffffff
jne 0x1400725ac
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140084d10
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.140081638
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140124f78]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140072691
lea r8, [0x140124f48]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400480d0
mov qword [0x140124f28], rsi
lea rcx, [0x140124f30]
call fcn.140081828
jmp 0x1400725ac
lea rcx, [0x140124f78]
call fcn.140081790
cmp dword [0x140124f78], 0xffffffff
jne 0x140072662
xorps xmm0, xmm0
movups xmmword [0x140124f68], xmm0
movups xmmword [0x140124f58], xmm0
movups xmmword [0x140124f48], xmm0
lea rcx, [0x140124f48]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140124f78]
call fcn.140081828
jmp 0x140072662

Function at 0x140072ca0
Capabilities:
Get thread local storage value

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

Function at 0x140072ce0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011c6c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140072d1e
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 0x140072d17
call fcn.140048d70
jmp 0x140072cfe

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

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400731fc
xor ecx, ecx
lea r9, [0x140102020]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
add rcx, 1
cmp r8, rcx
jne 0x1400731e0
ret
Function at 0x1400743e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140074418
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov rbx, rsi
cmp rsi, r14
jae 0x140074422
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140074429
add rdi, rbx
sub rsi, rbx
jne 0x1400743fa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ebx, 0xffffffff
jmp 0x140074402
int3

Function at 0x140074d90
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 0x140074e70
test rax, rax
jne 0x140074e5f
cmp dword [rsi + 0x50], 0
jne 0x140074e5f
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x140074ea6
lea rdi, [rsi + 0x20]
movabs r14, 0x100003600
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14005df50
cmp rax, 0xffffffffffffffff
jne 0x140074e94
cmp dword [rsi + 0x58], 1
je 0x140074e79
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x140074eac
nop word cs:[rax + rax]
nop
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.14005df50
cmp rax, 0xffffffffffffffff
jne 0x140074eac
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x140074e4e
add rax, 1
mov qword [rsi + 0x10], rax
cmp rax, qword [rsi + 0x18]
jne 0x140074e20
jmp 0x140074eac
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x140074e3e
bt r14, rcx
jae 0x140074e3e
jmp 0x140074eac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400da690
mov rax, qword [rsi + 0x40]
jmp 0x140074da8
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x140074e05
bt r14, rax
jae 0x140074e05
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x140074ddf
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140078e60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140126ab8]
cmp rsi, 1
jbe 0x140078e83
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140072ce0
lea rcx, [0x140126ab8]
call fcn.140048b00
test al, al
je 0x140078ec9
mov qword [0x140126ac0], 0
lea rdi, [0x140126ab8]
lea rsi, [0x140126ac0]
mov rcx, rsi
xor edx, edx
call fcn.140048f80
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140048ba0
jmp 0x140078e73
mov rsi, qword [0x140126ab8]
jmp 0x140078e73

Function at 0x14007d6c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140127710]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007d6f5
lea rcx, [0x140127708]
add rsp, 0x28
jmp fcn.140072ca0
lea rcx, [0x140127710]
call fcn.140081790
cmp dword [0x140127710], 0xffffffff
jne 0x14007d6e5
mov qword [0x140127708], 0
lea rcx, [0x140127708]
xor edx, edx
call fcn.140048f80
lea rcx, [0x140127710]
call fcn.140081828
jmp 0x14007d6e5
Function at 0x140080d10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140127800]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080d76
lea rcx, [0x1401277f8]
xor edx, edx
call fcn.140072ce0
mov eax, dword [0x140127810]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080db2
lea rcx, [0x140127808]
xor edx, edx
add rsp, 0x28
jmp fcn.140072ce0
lea rcx, [0x140127800]
call fcn.140081790
cmp dword [0x140127800], 0xffffffff
jne 0x140080d35
mov qword [0x1401277f8], 0
lea rcx, [0x1401277f8]
xor edx, edx
call fcn.140048f80
lea rcx, [0x140127800]
call fcn.140081828
jmp 0x140080d35
lea rcx, [0x140127810]
call fcn.140081790
cmp dword [0x140127810], 0xffffffff
jne 0x140080d64
mov qword [0x140127808], 0
lea rcx, [0x140127808]
xor edx, edx
call fcn.140048f80
lea rcx, [0x140127810]
call fcn.140081828
jmp 0x140080d64

Function at 0x140080f10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140127818]
cmp rsi, 1
jbe 0x140080f33
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140072ce0
lea rcx, [0x140127818]
call fcn.140048b00
test al, al
je 0x140080f79
mov qword [0x140127820], 0
lea rdi, [0x140127818]
lea rsi, [0x140127820]
mov rcx, rsi
xor edx, edx
call fcn.140048f80
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140048ba0
jmp 0x140080f23
mov rsi, qword [0x140127818]
jmp 0x140080f23

Function at 0x140080f90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140127830]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080fcd
lea rcx, [0x140127828]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140072ce0
lea rcx, [0x140127830]
call fcn.140081790
cmp dword [0x140127830], 0xffffffff
jne 0x140080fb9
mov qword [0x140127828], 0
lea rcx, [0x140127828]
xor edx, edx
call fcn.140048f80
lea rcx, [0x140127830]
call fcn.140081828
jmp 0x140080fb9

Function at 0x14008f744
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008f874