joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b5d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov r9d, dword [rdi + 8]
or r9d, 0x2001f
mov rax, qword [rdi]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001b654
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r9d
mov r8, rsi
mov rdx, rax
call fcn.14001b220
jmp 0x14001b66a
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14001b773
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001b68f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14001b773
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001b736
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14001b5d0
mov ebx, eax
test eax, eax
jne 0x14001b773
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001b6e1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001b74b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001b765
mov r8, rsi
mov rdx, qword [rdi]
call fcn.14001b420
jmp 0x14001b771
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001b790
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
jmp 0x14001b798
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400cdac0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001fa30
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, qword [rsp + 0x60]
xorps xmm0, xmm0
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
cvtsi2sd xmm0, rdx
test rdx, rdx
jns 0x14001fa68
addsd xmm0, qword [0x1401532c8]
divsd xmm0, qword [0x140153290]
call fcn.1400edc40
movsd xmm1, qword [0x1401532c0]
xor eax, eax
mulsd xmm0, qword [0x140153298]
comisd xmm0, xmm1
jb 0x14001faa4
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14001faa4
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si r11, xmm0
add r11, rax
test rdi, rdi
je 0x14001fbbc
test rbp, rbp
je 0x14001fbbc
cmp r11, rsi
ja 0x14001fbbc
xor r8d, r8d
lea rsi, [0x140000000]
mov edx, r8d
test rbx, rbx
je 0x14001fb7a
mov r10, rbp
cmp rdx, rbx
jae 0x14001faee
movzx eax, byte [rdx + rdi]
inc rdx
jmp 0x14001faf1
mov eax, r8d
cmp rdx, rbx
jae 0x14001fb00
movzx r9d, byte [rdx + rdi]
inc rdx
jmp 0x14001fb03
mov r9d, r8d
cmp rdx, rbx
jae 0x14001fb11
movzx ecx, byte [rdx + rdi]
inc rdx
jmp 0x14001fb14
mov ecx, r8d
shl eax, 8
add r10, 4
add eax, r9d
shl eax, 8
add eax, ecx
mov ecx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rsi + 0x1bed50]
mov byte [r10 - 4], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rsi + 0x1bed50]
mov byte [r10 - 3], al
mov eax, ecx
and ecx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rsi + 0x1bed50]
mov byte [r10 - 2], al
movzx eax, byte [rcx + rsi + 0x1bed50]
mov byte [r10 - 1], al
cmp rdx, rbx
jb 0x14001fae5
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
cmp dword [rsi + rbx*4 + 0x14f378], r8d
jle 0x14001fbb5
lea rax, [rbp - 1]
add rax, r11
mov byte [rax], 0x3d
inc r8d
dec rax
cmp r8d, dword [rsi + rbx*4 + 0x14f378]
jl 0x14001fba2
mov qword [r14], r11
mov al, 1
jmp 0x14001fbbe
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140027830
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401bbe90]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov dword [rbp - 0x19], 0x5f005f
mov dword [rbp - 0x15], 0x520043
mov dword [rbp - 0x11], 0x40005f
mov dword [rbp - 0xd], 0x410046
mov dword [rbp - 9], 0x4c0049
mov dword [rbp - 5], 0x440045
mov dword [rbp - 1], 0x44005f
mov dword [rbp + 3], 0x57004f
mov dword [rbp + 7], 0x4c004e
mov dword [rbp + 0xb], 0x41004f
mov dword [rbp + 0xf], 0x5f0044
mov dword [rbp + 0x13], 0x450052
mov dword [rbp + 0x17], 0x440041
mov dword [rbp + 0x1b], 0x5f0040
mov dword [rbp + 0x1f], 0x520043
mov dword [rbp + 0x23], 0x5f005f
mov word [rbp + 0x27], r15w
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x19]
test rax, 0xffffffffffff0000
jne 0x14002792f
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14002795a
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.1400025b0
jmp 0x14002795a
lea rax, [rbp - 0x19]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140027940
mov r8d, ecx
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.1400022c0
nop
mov dword [rbp - 0x39], 1
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400cdac0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029010
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140029057
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140029d30
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x1401c3d80]
mov eax, 0x66666667
mov r8d, ecx
imul r8d, ecx
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, 0xe
jne 0x140029e37
lea r8d, [rcx + 1]
mov eax, 0x2aaaaaab
imul r8d, ecx
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 4
jne 0x140029e34
xor r8d, r8d
nop word [rax + rax]
mov edx, r8d
mov eax, r8d
inc r8d
sar eax, 1
and edx, 1
dec edx
not edx
and edx, ecx
xor edx, eax
mov eax, edx
sar edx, 1
and eax, 1
dec eax
not eax
and eax, ecx
xor eax, edx
mov edx, eax
sar eax, 1
and edx, 1
dec edx
not edx
and edx, ecx
xor edx, eax
mov eax, edx
sar edx, 1
and eax, 1
dec eax
not eax
and eax, ecx
xor eax, edx
mov edx, eax
sar eax, 1
and edx, 1
dec edx
not edx
and edx, ecx
xor edx, eax
mov eax, edx
sar edx, 1
and eax, 1
dec eax
not eax
and eax, ecx
xor eax, edx
mov edx, eax
sar eax, 1
and edx, 1
dec edx
not edx
and edx, ecx
xor edx, eax
mov eax, edx
sar edx, 1
and eax, 1
dec eax
not eax
and eax, ecx
xor eax, edx
add ecx, eax
cmp r8d, 0x100
jl 0x140029da0
mov dword [0x1401c3d80], ecx
xor al, al
ret
mov al, 1
ret
Function at 0x140047310
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401c3d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 9
jne 0x140047345
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov r8d, dword [0x1401c3d80]
movzx r9d, al
shr ax, 8
lea ecx, [r8 + 1]
movzx r10d, al
mov eax, 0x6bca1af3
imul ecx, r8d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 3
jne 0x14004738b
dec r8d
mov dword [0x1401c3d80], r8d
cmp r9d, 6
ja 0x1400473a0
jne 0x140047399
cmp r10d, 1
ja 0x1400473a0
xor al, al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x1400473b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401c3d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x1401c4e78]
imul edx, edx, 0xd
sub ecx, edx
mov edx, 0x8b9f9e61
cmp ecx, 2
cmove eax, edx
mov dword [0x1401c4e78], eax
call fcn.140046d80
test al, al
jne 0x14004740d
mov edx, 0x82
lea rcx, str._d__d_n
lea r8d, [rdx + 1]
call fcn.1400ce3cc
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setb al
add rsp, 0x28
ret
Function at 0x1400487b0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdx, qword [rcx]
lea rax, [rsp + 0x78]
mov rdi, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400487f9
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rsi
call fcn.140046f80
xor esi, esi
test al, al
jne 0x14004881e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rdx, qword [rdi]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rsi, qword [rsp + 0x60]
test eax, eax
jne 0x140048864
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [0x1401c3d80]
mov eax, 0x88888889
lea ecx, [r8 + 1]
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, 4
jne 0x1400488d2
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, 0x7b
movsxd rcx, r8d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400cd108
mov rcx, rax
call fcn.1400cebfc
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140049050
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [rcx]
mov rcx, qword [0x1401bed48]
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 0x140049094
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 0x1400490af
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400490e9
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 0x1400490e9
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]
xor eax, eax
test ebx, ebx
mov rbx, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x140049af0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov qword [r11 - 0x58], rbp
mov dword [rsp + 0x58], ebp
mov qword [r11 - 0x48], rbp
mov qword [r11 - 0x40], rbp
lea rax, [r11 - 0x38]
mov qword [r11 - 0x68], rax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x78], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140049b70
mov dword [rsp + 0x58], ebp
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rbx
jmp 0x140049ba4
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14001b500
test eax, eax
je 0x140049b9f
call fcn.140046ce0
xor dil, dil
mov rbx, qword [rsp + 0x50]
jmp 0x140049c12
mov rbx, qword [rsp + 0x50]
mov rcx, qword [r14]
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x140049bb8
lea edi, [rax + 0xd]
jmp 0x140049bf2
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140049bc0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x140049c08
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x140049c25
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbp
movzx eax, dil
mov dword [rsp + 0x58], ebp
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140049c40
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov dword [rsp + 0x68], ebp
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x48], rbp
lea rax, [r11 + 0x18]
mov qword [r11 - 0x58], rax
lea rax, [r11 - 0x48]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], 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 0x140049cc6
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x140049cf0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001b500
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x140049cf0
xor dil, dil
jmp 0x140049d45
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 0x140049d3b
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 0x140049d58
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 0x140049fe0
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 0x14004a0b6
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 0x14004a094
mov edi, ebp
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne edi, eax
test rbx, rbx
je 0x14004a0aa
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 0x14004a0b9
xor dil, dil
test rbx, rbx
je 0x14004a0cc
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 0x14004a0f0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r13
mov r13, r9
mov qword [rsp + 0x48], r15
mov r15d, dword [0x1401c3d80]
mov eax, 0xb21642c9
xor edi, edi
lea r9d, [r15 + 1]
mov r12, r8
mov rbx, rcx
mov qword [rsp + 0x30], rcx
imul r9d, r15d
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, 0x16
jne 0x14004a1f7
mov qword [rsp + 0x68], rbp
mov eax, r15d
mov qword [rsp + 0x50], r14
cdq
lea r10d, [rdi + 0x44]
mov ebp, edi
sub eax, edx
sar eax, 1
mov r14d, eax
nop
test r14d, r14d
jle 0x14004a1dc
mov eax, r15d
mov r11d, edi
mov rsi, r14
cdq
and edx, 3
lea ebx, [rdx + rax]
sar ebx, 2
nop dword [rax + rax]
mov r8d, edi
mov r9d, edi
mov edx, edi
cmp ebx, 2
jl 0x14004a1c1
lea edx, [rbx - 2]
mov ecx, r11d
shr edx, 1
inc edx
mov eax, edx
add edx, edx
nop dword [rax + rax]
dec r9d
add r8d, ecx
add r9d, ecx
sub ecx, 2
dec rax
jne 0x14004a1b0
cmp edx, ebx
jge 0x14004a1cd
mov eax, r11d
sub eax, edx
add r10d, eax
lea eax, [r8 + r9]
add r11d, ebp
add r10d, eax
dec rsi
jne 0x14004a190
inc ebp
cmp ebp, r10d
jl 0x14004a170
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
mov rdx, qword [r12]
lea rax, [rsp + 0x30]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
test eax, eax
je 0x14004a234
xor al, al
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rsi]
mov rdx, qword [rbx]
mov r9d, 1
mov ecx, dword [r8 - 0x10]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004ab20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x40
mov r10d, dword [0x1401c3d80]
mov eax, 0x4ec4ec4f
mov rbx, r9
mov rdi, r8
mov rsi, rcx
imul r10d, r10d
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub r10d, edx
cmp r10d, 2
jne 0x14004abb8
mov rax, qword [str.ml0Tj6Ymoc4CO]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov eax, dword [0x140151458]
mov rcx, r8
mov dword [rsp + 0x38], eax
movzx eax, word [0x14015145c]
mov word [rsp + 0x3c], ax
lea rax, [rsp + 0x30]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004ab93
mov eax, 4
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400cd108
mov rcx, rax
call fcn.1400cebfc
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004abed
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
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 + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
xor eax, eax
test ebx, ebx
mov rbx, qword [rsp + 0x50]
sete al
add rsp, 0x40
pop rdi
ret
Function at 0x14004f9a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov r14, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov r9d, dword [0x1401c3d80]
mov r8d, r9d
imul r8d, r9d
mov eax, 0xb21642c9
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, 7
jne 0x14004fa13
call fcn.1400ce478
mov r9d, dword [0x1401c3d80]
cmp r9d, eax
jne 0x14004fa13
dec r9d
mov dword [0x1401c3d80], r9d
mov ecx, r9d
imul ecx, r9d
imul ecx, r9d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 6
jne 0x14004fa60
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401c3d80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401c3d80], ecx
call fcn.14004b700
test al, al
jne 0x14004fa96
mov r8d, ebp
mov eax, dword [0x1401c3d80]
test eax, eax
je 0x14004fa8f
nop word [rax + rax]
mov ecx, eax
and ecx, 1
add r8d, ecx
cdq
sub eax, edx
sar eax, 1
jne 0x14004fa80
mov dword [0x1401c3d80], r8d
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, eax
mov r9d, dword [0x1401c3d80]
lea r8d, [r9 + 1]
imul r8d, r9d
mov eax, 0xb21642c9
imul r8d
add edx, r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x17
sub r8d, edx
cmp r8d, 0xf
jne 0x14004fb0f
lea ecx, [r8 + 0x19]
call fcn.1400cd108
mov rdi, rax
mov rbx, rbp
nop dword [rax]
call fcn.1400ce478
add eax, dword [0x1401c3d80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14004fae0
mov ecx, dword [rdi + 0x24]
mov dword [0x1401c3d80], ecx
mov rcx, rdi
call fcn.1400cebfc
mov r9d, dword [0x1401c3d80]
movzx ebx, sil
movzx eax, si
shr ax, 8
movzx edi, al
lea ecx, [r9 + 1]
imul ecx, r9d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
cmp ecx, 5
jne 0x14004fb59
call fcn.1400ce478
mov ecx, dword [0x1401c3d80]
cmp ecx, eax
jne 0x14004fb59
dec ecx
mov dword [0x1401c3d80], ecx
cmp esi, 0x80000000
jae 0x14004fb66
shr esi, 0x10
mov ebp, esi
cmp ebx, 6
jb 0x14004fb83
cmp edi, 2
jb 0x14004fb83
mov rcx, r14
call fcn.14004fef0
nop
mov dword [rsp + 0x30], 1
jmp 0x14004fbea
lea rcx, [0x1401bb9a8]
mov rax, qword [0x1401bb9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], ebp
mov r9d, edi
mov r8d, ebx
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x68]
call fcn.140011fd0
mov rbx, qword [rsp + 0x68]
lea rcx, [rbx - 0x18]
call fcn.140002410
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14004fbea
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret