joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400247b8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
xor ebx, ebx
mov rsi, rdx
mov qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x80
lea r8d, [rbx + 2]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rax - 0x28], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002488e
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 + 0x50], ebx
mov r8d, dword [rdx - 0x10]
lea r9, [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140024885
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [0x1401a3d80]
mov eax, 0x88888889
mov bl, 1
imul ecx, ecx
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, 0xe
jne 0x140024885
call fcn.1400bba88
mov ecx, dword [0x1401a3d80]
cmp ecx, eax
jne 0x140024885
dec ecx
mov dword [0x1401a3d80], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov al, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140025b88
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, str.Wininet.dll
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140025c1a
mov r8d, dword [0x1401a3d80]
mov eax, 0x92492493
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 5
jne 0x140025c16
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, 0x141
movsxd rcx, r8d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400ba748
mov rcx, rax
call fcn.1400bc20c
xor eax, eax
jmp 0x140025c83
lea rdx, [0x140135040]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140025c6d
mov ecx, dword [0x1401a3d80]
mov eax, 0x88888889
imul ecx, ecx
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, 0xb
jne 0x140025c16
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x140025c16
and dword [rsp + 0x20], 0
lea rcx, [0x140131658]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call rax
add rsp, 0x30
pop rbx
ret
Function at 0x140038d0c
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov rsi, rcx
and dword [rax - 0x18], 0
xor ebx, ebx
movsxd rax, r8d
lea rbp, [rax + rax*4]
mov r10, qword [rcx + rbp*8 + 0xd0]
mov r8, qword [rcx + rbp*8 + 0xd8]
sub r8, r10
movabs rax, 0x4924924924924925
imul r8
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140038e67
mov ecx, dword [r9]
lea rax, [r10 + 0x30]
cmp dword [rax - 4], ecx
jg 0x140038d83
cmp dword [rax], ecx
jge 0x140038d95
inc rbx
add rax, 0x38
cmp rbx, rdx
jae 0x140038e67
jmp 0x140038d7a
mov r9d, dword [0x1401a3d80]
mov r8d, r9d
imul r8d, r9d
imul r8d, r9d
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
shl ecx, 3
mov eax, r8d
sub eax, ecx
cmp eax, 0xc
jne 0x140038e4d
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r8d, edx
cmp r8d, 4
jne 0x140038e0b
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov r9d, dword [0x1401a3d80]
mov eax, 0x51eb851f
imul r9d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x7b
movsxd rcx, r9d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400ba748
mov rcx, rax
call fcn.1400bc20c
imul rbx, rbx, 0x38
add rbx, qword [rsi + rbp*8 + 0xd0]
lea rdx, [rbx + 0x10]
mov rcx, rdi
call fcn.140002cf8
jmp 0x140038e77
lea rdx, [0x140131658]
mov rcx, rdi
call fcn.1400020f8
nop
mov dword [rsp + 0x30], 1
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14003a30c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, 1
movzx edx, al
cmp edx, 6
ja 0x14003a32f
jne 0x14003a32d
shr ax, 8
cmp al, cl
ja 0x14003a32f
xor ecx, ecx
mov al, cl
add rsp, 0x28
ret

Function at 0x14003a338
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [0x1401a3d80]
movzx edi, al
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x4ec4ec4f
imul r8d, ecx
mov ecx, 4
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub r8d, edx
cmp r8d, ecx
jne 0x14003a39f
call fcn.1400bb888
mov rbx, rax
call fcn.1400bba88
mov rcx, rbx
mov dword [rbx], eax
mov dword [0x1401a3d80], eax
call fcn.1400bb0b4
mov rbx, qword [rsp + 0x30]
cmp edi, 6
setb al
add rsp, 0x20
pop rdi
ret
Function at 0x14003b738
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rdx, qword [rcx]
mov rcx, qword [0x14019ed48]
lea rax, [r11 + 8]
mov rsi, r8
mov r9d, 0xf003f
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
je 0x14003b7b0
mov ecx, dword [0x1401a3d80]
mov eax, 0x2e8ba2e9
imul ecx, ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 0xd
jne 0x14003b7a9
lea ecx, [rbx + 4]
call fcn.1400bb888
mov ecx, dword [0x1401a3d80]
mov dword [rax], ecx
xor al, al
jmp 0x14003b84e
mov rax, qword [rsi]
cmp dword [rax - 0x10], ebx
jne 0x14003b7ca
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14003b83e
mov r8d, dword [0x1401a3d80]
mov eax, 0x38e38e39
mov ecx, r8d
imul ecx, r8d
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
cmp ecx, 6
jne 0x14003b7fc
inc r8d
mov dword [0x1401a3d80], r8d
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14003b83e
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003c144
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], pe_nt_image_headers64
mov r8, qword [r8]
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.1400198e4
test eax, eax
je 0x14003c227
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400198e4
test eax, eax
je 0x14003c227
mov r8d, dword [0x1401a3d80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
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, 0xb
jne 0x14003c21d
mov r9d, r15d
lea r10, [rsp + 0x60]
mov r11d, r8d
inc r9d
dec r11d
lea r10, [r10 + 4]
movsxd rax, r9d
cmp rax, 0x2a
jb 0x14003c20a
mov dil, r15b
mov rbx, qword [rsp + 0x40]
jmp 0x14003c297
mov rcx, qword [r14]
mov eax, r15d
test rcx, rcx
setne al
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x14003c241
lea edi, [rax + 0xd]
jmp 0x14003c276
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14003c245
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 0x14003c28c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r15d
test edi, edi
sete dil
test rbx, rbx
je 0x14003c2aa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov al, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003c2d0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
and qword [rbp - 0x18], 0
and dword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r11d, dword [0x1401a3d80]
mov r10d, r11d
imul r10d, r11d
mov eax, 0x88888889
imul r10d
add edx, r10d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r10d, edx
cmp r10d, 7
jne 0x14003c35c
xor r8d, r8d
test r11d, r11d
je 0x14003c355
mov ecx, r11d
and ecx, 1
add r8d, ecx
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
mov r11d, eax
jne 0x14003c33f
mov dword [0x1401a3d80], r8d
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], pe_nt_image_headers64
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.1400198e4
test eax, eax
je 0x14003c3a8
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.1400198e4
test eax, eax
je 0x14003c3a8
xor dil, dil
mov rbx, qword [rbp - 0x18]
jmp 0x14003c3f4
mov eax, dword [rsi]
mov dword [rbp + 0x30], eax
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [r14]
mov rbx, qword [rbp - 0x18]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14003c3ea
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rbp - 0x18], rbx
and dword [rbp - 0x10], 0
test edi, edi
sete dil
test rbx, rbx
je 0x14003c407
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x18], 0
and dword [rbp - 0x10], 0
mov al, dil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003c5b8
Capabilities:
Get disk size
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov r9d, dword [0x1401a3d80]
imul r9d, r9d
mov eax, 0x92492493
imul r9d
add edx, r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r9d, edx
cmp r9d, 6
jne 0x14003c636
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
and qword [rsp + 0x38], 0
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
mov r9d, 0x2001f
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400199a4
mov rbx, qword [rsp + 0x38]
test eax, eax
je 0x14003c66e
xor dil, dil
jmp 0x14003c758
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003c6ad
mov eax, dword [rsp + 0x30]
sub eax, 4
neg eax
sbb edi, edi
and edi, 0xd
mov ecx, dword [0x1401a3d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub r8d, edx
cmp r8d, 4
jne 0x14003c738
xor esi, esi
lea r14d, [r8 + 0x2b]
call fcn.1400bba88
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + rsi*8 + 0x60], xmm0
inc rsi
cmp rsi, r14
jb 0x14003c6e6
xor ecx, ecx
mov eax, 0x2e
jmp 0x14003c72b
movsd xmm1, qword [rsp + rax*8 + 0x60]
movsd xmm0, qword [rsp + rax*8 + 0x58]
comisd xmm1, xmm0
jbe 0x14003c728
movsd qword [rsp + rax*8 + 0x60], xmm0
movsd qword [rsp + rax*8 + 0x58], xmm1
dec rax
cmp rax, rcx
jg 0x14003c70a
inc rcx
dec r14
jne 0x14003c703
test rbx, rbx
je 0x14003c74d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x40], 0
test edi, edi
sete dil
test rbx, rbx
je 0x14003c76c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
and dword [rsp + 0x40], 0
mov al, dil
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x1f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003c794
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov r10d, dword [0x1401a3d80]
mov rdi, r9
mov r14, rdx
mov r9d, r10d
mov eax, 0x66666667
mov rbx, r8
mov rsi, rcx
imul r9d, r10d
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r9d, eax
cmp r9d, 7
jne 0x14003c7e3
dec r10d
mov dword [0x1401a3d80], r10d
mov r8d, r10d
mov eax, 0x92492493
imul r8d, r10d
imul r8d, r10d
imul r8d
add edx, r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r8d, edx
cmp r8d, 3
jne 0x14003c817
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov rdx, qword [rbx]
lea rax, [rsp + 0x30]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003c83e
xor al, al
jmp 0x14003c87e
mov r8, qword [r14]
mov rdx, qword [rsi]
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, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003cfb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdx, qword [r8]
mov rbx, rcx
mov rax, r9
lea rcx, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003cfeb
xor al, al
jmp 0x14003d023
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14003d030
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x7b8]
sub rsp, 0x890
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov r14, rdx
mov r9, rcx
mov eax, dword [0x1401a3d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov edi, 0x38e38e39
mov eax, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
mov eax, dword [0x1401a4ee0]
mov edx, 0x1d927ee5
cmp ecx, 4
cmove eax, edx
mov dword [0x1401a4ee0], eax
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
xor r8d, r8d
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.14003b200
nop
mov r9d, 0x2001f
mov r8, qword [rax]
mov rdx, qword [0x14019ed48]
lea rcx, [rsp + 0x48]
call fcn.1400199a4
test eax, eax
setne bl
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003d103
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14003d114
mov dil, r15b
mov rbx, qword [rsp + 0x48]
jmp 0x14003d211
mov edx, dword [0x1401a3d80]
lea r8d, [rdx + 2]
lea ecx, [rdx + 1]
imul r8d, ecx
imul r8d, edx
mov eax, edi
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, 2
jne 0x14003d15b
mov edx, 0xed
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400bb9dc
mov esi, r15d
mov edi, 1
mov word [rbp - 0x80], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x7e]
call fcn.1400c0510
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
mov edx, esi
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esi, edi
test eax, eax
jne 0x14003d1f6
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x68]
call fcn.1400020f8
nop
mov rdx, rax
mov rcx, r14
call fcn.14001af6c
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003d163
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14003d163
test rbx, rbx
je 0x14003d20c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], r15d
test rbx, rbx
je 0x14003d224
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov al, dil
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1400bb0d0
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x890
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003ffec
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rcx
and dword [rax - 0x28], 0
mov r8d, dword [0x1401a3d80]
imul r8d, r8d
mov eax, 0x2aaaaaab
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
mov eax, dword [0x1401a5130]
mov ecx, 0xa65aacad
cmp r8d, 5
cmove eax, ecx
mov dword [0x1401a5130], eax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx esi, al
movzx ecx, ax
shr cx, 8
movzx ebp, cl
cmp eax, 0x80000000
jae 0x14004006c
mov edi, eax
shr edi, 0x10
mov r8d, dword [0x1401a3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 4
jne 0x1400400be
xor r9d, r9d
test r8d, r8d
je 0x1400400b7
mov ecx, r8d
and ecx, 1
add r9d, ecx
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jne 0x1400400a1
mov dword [0x1401a3d80], r9d
cmp esi, 6
jb 0x1400400db
cmp ebp, 2
jb 0x1400400db
mov rcx, rbx
call fcn.1400404f8
nop
mov dword [rsp + 0x30], 1
jmp 0x14004013e
lea rcx, [0x14019b9a8]
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], edi
mov r9d, ebp
mov r8d, esi
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x68]
call fcn.14000fe60
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140002cf8
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004013e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004121c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r8d, dword [0x1401a3d80]
mov edi, 4
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
lea ebx, [rdi + 4]
imul ecx, eax
mov eax, 0x30c30c31
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, ebx
jne 0x1400412b7
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edi
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mul rcx
lea rcx, [rdi - 5]
cmovo rax, rcx
mov rcx, rax
call fcn.1400ba748
mov rcx, rax
call fcn.1400bc20c
mov r8d, dword [0x1401a3d80]
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
mov r10d, 1
xor r11d, r11d
imul ecx, eax
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
lea edx, [r10 + 0xa]
cmp ecx, edx
jne 0x1400412fb
test r8d, r8d
cmove r8d, r10d
mov dword [0x1401a3d80], r8d
cmp byte [0x1401a58a4], r11b
je 0x140041310
lea rax, [0x14019f4b0]
jmp 0x1400413cd
mov dword [rbp - 0x40], 0x80005
mov dword [rbp - 0x3c], 0x60007
mov ebx, 0x17
mov dword [rbp - 0x38], 0xb0017
mov dword [rbp - 0x34], 0x12003a
mov dword [rbp - 0x30], 0x2a001b
mov dword [rbp - 0x2c], 0x140013
mov dword [rbp - 0x28], 0x20011
mov dword [rbp - 0x24], 0x10004
mov dword [rbp - 0x20], 0x11003d
mov dword [rbp - 0x1c], 0xb000a
mov dword [rbp - 0x18], 0x1c0009
mov dword [rbp - 0x14], 0x15
mov rcx, r11
lea r9, [0x14019f4b0]
lea rax, [0x14019ed90]
movzx eax, byte [rcx + rax]
xor ax, word [rbp + rcx*2 - 0x40]
mov word [r9 + rcx*2], ax
add rcx, r10
cmp rcx, rbx
jl 0x140041373
lea ecx, [r8 + 1]
mov eax, 0x92492493
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, r10d
jne 0x1400413c3
test r8d, r8d
cmove r8d, r10d
mov dword [0x1401a3d80], r8d
mov byte [0x1401a58a4], r10b
mov rax, r9
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400bb0d0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret