joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d180
Capabilities:
Get disk size
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r15, rcx
mov qword [rax - 0x38], rcx
xor ebp, ebp
mov dword [rax - 0x48], ebp
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
mov dword [rsp + 0x40], 1
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub r8d, eax
cmp r8d, 4
jne 0x14002d267
test ecx, ecx
je 0x14002d267
mov eax, ecx
and eax, 0x80000001
jge 0x14002d211
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14002d226
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [0x1401d6d80], eax
jmp 0x14002d233
lea ecx, [rcx*2 + 1]
mov dword [0x1401d6d80], ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
je 0x14002d255
sub edx, 2
je 0x14002d258
dec edx
je 0x14002d25a
jmp 0x14002d263
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x1401d6d80], ecx
test ecx, ecx
jne 0x14002d201
imul ecx, ecx
and ecx, 0x8000000f
jge 0x14002d279
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 7
jne 0x14002d2a5
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
call fcn.14002c9e0
test al, al
jne 0x14002d2c3
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14015bcf0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002d3b7
lea r12d, [rax + 1]
mov ecx, r12d
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.1400d4448
mov rsi, rax
mov edx, dword [0x1401d6d80]
lea r8d, [rdx + 2]
lea ecx, [rdx + 1]
imul r8d, ecx
imul r8d, edx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [rdx + rdx*2]
shl eax, 2
sub r8d, eax
cmp r8d, 2
jne 0x14002d36f
lea ecx, [rdi + 0x29]
call fcn.1400d4448
mov r14, rax
mov rbx, rbp
call fcn.1400d57c0
add eax, dword [0x1401d6d80]
mov dword [r14 + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14002d345
mov ecx, dword [r14 + 0x24]
mov dword [0x1401d6d80], ecx
mov rcx, r14
call fcn.1400d5528
mov r8d, r12d
mov rdx, rsi
lea rcx, [0x14015bd18]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002d3aa
test rsi, rsi
je 0x14002d39c
nop dword [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14002d390
mov ebp, edi
mov r8d, ebp
mov rdx, rsi
mov rcx, r15
call fcn.140002670
test rsi, rsi
je 0x14002d3b7
mov rcx, rsi
call fcn.1400d5528
mov rax, r15
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14002d4d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov qword [rax - 0x18], rdx
mov qword [rax - 0x38], 0
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002d544
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002d53d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14002d5dd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x40], 0
mov rax, qword [rdi]
mov ebx, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14002d57c
xor edx, edx
mov rcx, rdi
call fcn.140002760
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002d5da
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002d5f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002d68c
mov ecx, dword [0x1401d6d80]
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x66666667
imul r8d, ecx
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 8
jne 0x14002d67a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x1401d6d80]
mov eax, eax
mov qword [rdi], rax
mov eax, 0xb21642c9
imul ecx, ecx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0x14
jne 0x14002d6ca
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, dword [0x1401d6d80]
mov eax, 0x2aaaaaab
lea r9d, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, r9d
imul ecx, r8d
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 2
jne 0x14002d729
test r8d, r8d
je 0x14002d71f
dec r8d
je 0x14002d717
mov dword [0x1401d6d80], r9d
jmp 0x14002d729
mov dword [0x1401d6d80], esi
jmp 0x14002d729
mov dword [0x1401d6d80], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401d6d80]
mov eax, 0x88888889
mov ecx, r8d
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 0xd
jne 0x14002d7a2
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 4
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x2f4
movsxd rcx, r8d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x14002dd00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov r9d, dword [0x1401d6d80]
mov rsi, rdx
mov eax, 0x38e38e39
mov r8d, r9d
xor dil, dil
mov rbx, rcx
imul r8d, r9d
imul r8d, r9d
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 6
jne 0x14002dd65
lea edx, [r8 + 0x3b]
lea rcx, [0x14015b3f4]
lea r8d, [rdx + 1]
call fcn.1400d5714
mov r9d, dword [0x1401d6d80]
imul r9d, r9d
mov eax, 0x66666667
imul r9d
mov ecx, r9d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
cmp ecx, 3
jne 0x14002ddc4
mov eax, 0x30c30c31
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r9d, edx
cmp r9d, 6
jne 0x14002ddc4
mov ecx, 1
mov r8d, 0x17
mov eax, ecx
dec r8d
lea edx, [rax + rcx]
lea ecx, [rax]
mov eax, edx
jns 0x14002ddb2
mov dword [0x1401d6d80], edx
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002deeb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsi]
mov dword [rsp + 0x60], 0
mov r8d, dword [rdx - 0x10]
lea r9, [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002dee2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r8d, dword [0x1401d6d80]
mov dil, 1
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx, r8d
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 2
jne 0x14002dee2
movsd xmm3, qword [0x140164068]
movsd xmm5, qword [0x140164090]
movd xmm4, r8d
xorps xmm2, xmm2
movaps xmmword [rsp + 0x40], xmm6
movsd xmm6, qword [0x140164060]
cvtdq2pd xmm4, xmm4
nop
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x14002dec9
subsd xmm2, xmm3
divsd xmm3, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm0, xmm1
comisd xmm0, xmm6
ja 0x14002deb0
movaps xmm6, xmmword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movzx eax, dil
add rsp, 0x50
pop rdi
ret
Function at 0x14004af50
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1401d6d80]
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0xb21642c9
imul r8d, ecx
imul r8d
add edx, r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub r8d, edx
cmp r8d, 0xd
jne 0x14004af98
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401d6d80], eax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [0x1401d6d80]
movzx ebx, al
mov eax, 0xb21642c9
imul ecx, ecx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xa
jne 0x14004afcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp ebx, 6
setb al
add rsp, 0x20
pop rbx
ret
Function at 0x14004cee0
Capabilities:
Delete registry key
Delete registry value
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [rcx]
mov rcx, qword [0x1401d1d58]
lea rax, [rsp + 0x40]
mov rdi, r8
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004cfe2
mov edx, dword [0x1401d6d80]
lea eax, [rdx + 1]
imul eax, edx
and eax, 0x80000003
jge 0x14004cf35
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 1
jne 0x14004cfd5
xor r8d, r8d
mov ecx, r8d
mov eax, r8d
inc r8d
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, edx
xor eax, ecx
add edx, eax
cmp r8d, 0x100
jl 0x14004cf41
mov dword [0x1401d6d80], edx
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x14004cffd
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x14004d037
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14004d037
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x14004dc00
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov r10d, dword [0x1401d6d80]
mov r11d, r10d
imul r11d, r10d
imul r11d, r10d
mov eax, 0x4ec4ec4f
imul r11d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub r11d, edx
cmp r11d, 7
jne 0x14004dcd2
test r10d, r10d
je 0x14004dcd2
nop
mov eax, r10d
and eax, 0x80000001
jge 0x14004dc71
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14004dc88
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
mov r10d, eax
mov dword [0x1401d6d80], eax
jmp 0x14004dc97
lea r10d, [r10*2 + 1]
mov dword [0x1401d6d80], r10d
mov eax, 0x55555556
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r10d
sub ecx, eax
je 0x14004dcbb
sub ecx, 2
je 0x14004dcbf
dec ecx
je 0x14004dcc2
jmp 0x14004dccd
add r10d, 2
inc r10d
add r10d, 2
mov dword [0x1401d6d80], r10d
test r10d, r10d
jne 0x14004dc60
xor ebp, ebp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004dd39
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x14004dd63
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001c420
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x14004dd63
xor dil, dil
jmp 0x14004ddd2
mov rcx, qword [rsi]
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x14004dd77
lea edi, [rax + 0xd]
jmp 0x14004ddb2
or rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14004dd80
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14004ddc8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x14004dde5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbp
movzx eax, dil
mov dword [rsp + 0x68], ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004de10
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov r10d, dword [0x1401d6d80]
imul r10d, r10d
mov eax, 0x92492493
imul r10d
add edx, r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r10d, edx
cmp r10d, 6
jne 0x14004de8a
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401d6d80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401d6d80], ecx
xor ebp, ebp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004def1
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x14004df1b
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001c420
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x14004df1b
xor dil, dil
jmp 0x14004df70
mov eax, dword [rsi]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14004df66
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x14004df83
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbp
movzx eax, dil
mov dword [rsp + 0x68], ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004e2f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov r10, r9
mov rax, r8
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov ebx, ebp
mov qword [r11 - 0x28], rbx
mov dword [rsp + 0x48], ebp
mov qword [r11 - 0x18], rbp
mov qword [r11 + 0x18], rbp
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x48], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e3c6
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004e3a4
mov edi, ebp
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne edi, eax
test rbx, rbx
je 0x14004e3ba
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebp
test edi, edi
sete dil
jmp 0x14004e3c9
xor dil, dil
test rbx, rbx
je 0x14004e3dc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
movzx eax, dil
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x14004f070
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x418
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov r11d, dword [0x1401d6d80]
mov dword [rsp + 0x30], edx
mov rsi, r9
lea r9d, [r11 + 1]
mov eax, 0xb21642c9
xor ebx, ebx
mov rdi, r8
mov r14, rcx
imul r9d, r11d
imul r9d
add edx, r9d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub r9d, edx
cmp r9d, 9
jne 0x14004f0f5
mov r8d, ebx
lea r9, [rsp + 0x40]
mov r10d, r11d
nop dword [rax]
inc r8d
dec r10d
lea r9, [r9 + 4]
movsxd rax, r8d
cmp rax, 0xed
jb 0x14004f0e0
mov rdx, qword [rdi]
lea rax, [rsp + 0x38]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004f11f
xor al, al
jmp 0x14004f1f4
mov rdx, qword [r14]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 2]
lea edx, [rcx + 1]
imul r8d, edx
imul r8d, ecx
and r8d, 0x80000007
jge 0x14004f17d
dec r8d
or r8d, 0xfffffff8
inc r8d
cmp r8d, 7
jne 0x14004f1ef
mov eax, 0xea0ea0eb
mov r9d, ebx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
imul edx, edx, 0x46
sub eax, edx
cmp eax, 6
je 0x14004f1e8
nop word [rax + rax]
mov eax, ecx
inc r9d
or eax, 0xffffff0f
add ecx, eax
mov eax, ecx
imul eax, ecx
cmp r9d, eax
jg 0x14004f1e8
mov eax, 0xea0ea0eb
mov r8d, ecx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x46
sub r8d, edx
cmp r8d, 6
jne 0x14004f1b0
mov dword [0x1401d6d80], r9d
test edi, edi
sete al
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1400d4e00
add rsp, 0x418
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140054a70
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rdi, rcx
mov qword [rax - 0x20], rcx
xor esi, esi
mov dword [rax - 0x38], esi
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
movzx r14d, al
mov r8d, dword [0x1401d6d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 4
jne 0x140054af1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov r8d, dword [0x1401d6d80]
movzx eax, bx
shr ax, 8
movzx ebp, al
cmp ebx, 0x80000000
jae 0x140054b08
shr ebx, 0x10
mov esi, ebx
cmp r14d, 6
jb 0x140054b9d
cmp ebp, 2
jb 0x140054b9d
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 3
jne 0x140054b87
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d4448
mov rcx, rax
call fcn.1400d5528
mov rcx, rdi
call fcn.140055350
nop
mov dword [rsp + 0x30], 1
jmp 0x140054c1f
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], esi
mov r9d, ebp
mov r8d, r14d
lea rdx, [0x140160070]
lea rcx, [rsp + 0x38]
call fcn.1400124a0
call fcn.140050090
mov ecx, dword [0x1401d8280]
mov edx, 0x3a9b6739
test al, al
cmove ecx, edx
mov dword [0x1401d8280], ecx
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0x18]
call fcn.1400027c0
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140054c1f
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret