joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025fc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.140023820
or rdi, 0xffffffffffffffff
test al, al
jne 0x140026033
mov r8d, dword [0x1401cbd80]
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, 0x7b
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400d0cc8
mov rcx, rax
call fcn.1400d272c
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov r8d, dword [0x1401cbd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0xb21642c9
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, 5
jne 0x14002611a
nop dword [rax]
mov ecx, ebx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, ebx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc ebx
cmp ebx, 0x100
jl 0x140026080
mov dword [0x1401cbd80], r8d
lea rcx, [rsp + 0x60]
call fcn.140051320
nop
mov r8, qword [rsp + 0x60]
lea rdx, str.chromever_s
lea rcx, [rsp + 0x58]
call fcn.140012850
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140026163
cmp rax, qword [rbx - 0x18]
jne 0x140026163
lea rsi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x1400261a0
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x14002617f
call fcn.1400024a0
int3
mov eax, dword [rbx - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.1400d2064
lea rax, [rsi + 0x18]
mov qword [r14], rax
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400261c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock add dword [rbx - 8], 0xffffffff
jg 0x1400261de
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 + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140028cc0
Capabilities:
Check for software breakpoints

Disassembly:
push rdi
sub rsp, 0x380
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rsp + 0x370], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x1401cc530]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x28]
call fcn.140028b70
nop
mov r10d, dword [0x1401cbd80]
lea ecx, [r10 + 2]
lea eax, [r10 + 1]
imul ecx, eax
imul ecx, r10d
mov eax, 0x88888889
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 0x140028d71
lea r8, [rsp + 0x40]
mov r9d, r10d
nop word [rax + rax]
lea ecx, [r10 + rbx]
mov eax, r9d
cdq
idiv ecx
mov dword [r8], edx
inc ebx
dec r9d
lea r8, [r8 + 4]
movsxd rax, ebx
cmp rax, 0xcc
jb 0x140028d50
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax - 0x10]
add r8d, 0xfffffffc
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14001c890
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140028dad
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rdi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400d1680
mov rbx, qword [rsp + 0x390]
add rsp, 0x380
pop rdi
ret
Function at 0x14002ac60
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 [0x1401c3e90]
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, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x19]
test rax, 0xffffffffffff0000
jne 0x14002ad5f
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14002ad8a
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.1400025b0
jmp 0x14002ad8a
lea rax, [rbp - 0x19]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14002ad70
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.1400d1680
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 0x14002c110
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rdi, rdx
xor ebp, ebp
mov qword [rax - 0x38], rbp
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 0x14002c1d5
mov r8d, dword [0x1401cbd80]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
mov eax, 0x88888889
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, 9
jne 0x14002c1b2
test r8d, r8d
je 0x14002c1a8
dec r8d
je 0x14002c1a0
mov dword [0x1401cbd80], r9d
jmp 0x14002c1b2
mov dword [0x1401cbd80], ebp
jmp 0x14002c1b2
mov dword [0x1401cbd80], 2
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002c1ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14002c266
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x70], ebp
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 0x14002c209
xor edx, edx
mov rcx, rdi
call fcn.1400023b0
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x70]
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 0x14002c263
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002c280
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002c39c
mov qword [rsp + 0x70], r15
mov r15d, dword [0x1401cbd80]
lea eax, [r15 + 1]
lea ecx, [r15 + 2]
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx, r15d
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, 0x13
jne 0x14002c38d
mov qword [rsp + 0x60], rbp
mov eax, r15d
mov qword [rsp + 0x68], r14
cdq
mov r10d, 0xb5
mov ebp, ebx
sub eax, edx
sar eax, 1
mov r14d, eax
test r14d, r14d
jle 0x14002c37c
mov eax, r15d
mov r11d, ebx
mov rsi, r14
cdq
and edx, 3
lea edi, [rdx + rax]
sar edi, 2
nop
mov r8d, ebx
mov r9d, ebx
mov edx, ebx
cmp edi, 2
jl 0x14002c361
lea edx, [rdi - 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 0x14002c350
cmp edx, edi
jge 0x14002c36d
mov eax, r11d
sub eax, edx
add r10d, eax
lea eax, [r9 + r8]
add r11d, ebp
add r10d, eax
dec rsi
jne 0x14002c330
inc ebp
cmp ebp, r10d
jl 0x14002c316
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
xor eax, eax
mov r15, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rdi], rax
mov eax, dword [0x1401cbd80]
lea ecx, [rax + 1]
imul ecx, eax
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, 9
jne 0x14002c409
mov ecx, 0x28
call fcn.1400d0cc8
mov rdi, rax
call fcn.1400d2038
inc rbx
add eax, dword [0x1401cbd80]
mov dword [rdi + rbx*4 - 4], eax
cmp rbx, 0xa
jl 0x14002c3e0
mov ecx, dword [rdi + 0x24]
mov dword [0x1401cbd80], ecx
mov rcx, rdi
call fcn.1400d272c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401cbd80]
mov eax, 0x30c30c31
lea ecx, [r8 + 1]
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, 3
jne 0x14002c484
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.1400d0cc8
mov rcx, rax
call fcn.1400d272c
mov eax, 1
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140049830
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [0x1401cbd80]
mov eax, 0x78787879
mov ebx, 1
lea ecx, [r8 + 1]
imul ecx, r8d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 0xf
jne 0x140049873
test r8d, r8d
cmove r8d, ebx
mov dword [0x1401cbd80], r8d
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
cmp ecx, 6
ja 0x140049896
jne 0x14004988e
cmp edx, ebx
ja 0x140049896
xor al, al
add rsp, 0x20
pop rbx
ret
movzx eax, bl
add rsp, 0x20
pop rbx
ret
Function at 0x14004bc40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rdx, qword [rcx]
mov rcx, qword [0x1401c6d48]
lea rax, [rsp + 0x40]
mov rbx, r8
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004bce6
mov eax, dword [0x1401cbd80]
lea ecx, [rax + 1]
imul ecx, eax
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, 0xf
jne 0x14004bcd9
mov ecx, 0x28
call fcn.1400d0cc8
xor ebx, ebx
mov rdi, rax
call fcn.1400d2038
inc rbx
add eax, dword [0x1401cbd80]
mov dword [rdi + rbx*4 - 4], eax
cmp rbx, 0xa
jl 0x14004bcb0
mov eax, dword [rdi + 0x24]
mov rcx, rdi
mov dword [0x1401cbd80], eax
call fcn.1400d272c
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx]
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x14004bd01
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x14004bd3b
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 0x14004bd3b
mov rdx, qword [rbx]
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]
mov rbx, qword [rsp + 0x48]
test edi, edi
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x14004cad0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc790]
mov eax, 0xc890
call fcn.1400d6730
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rbp + 0xc780], rax
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x70], r12
mov ecx, dword [0x1401cbd80]
imul ecx, ecx
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, 0xc
jne 0x14004cbcd
mov word [rbp - 0x80], r12w
xor edx, edx
mov r8d, 0xc7fe
lea rcx, [rbp - 0x7e]
call fcn.1400d6ac0
mov r10d, r12d
or r9, 0xffffffffffffffff
nop
mov rax, r12
test r10, r10
je 0x14004cba2
test rax, rax
je 0x14004cba2
lea rdx, [r9 + rax]
lea rcx, [r9 + rax]
movzx r8d, word [rbp + rdx*2 - 0x1be]
inc r8w
add r8w, word [rbp + rcx*2 - 0x80]
lea rcx, [r9 + rax]
mov word [rbp + rcx*2 - 0x7e], r8w
inc rax
cmp rax, 0xa0
jl 0x14004cb73
inc r10
add r9, 0xa0
cmp r9, 0x63ff
jl 0x14004cb70
movsx eax, word [rbp + 0xc77e]
mov dword [0x1401cbd80], eax
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14004cc52
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004ccb4
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r12d
mov eax, dword [r15]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
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 0x14004cca7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r12d
test edi, edi
sete dil
jmp 0x14004ccb7
xor dil, dil
test rbx, rbx
je 0x14004ccca
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r12
movzx eax, dil
mov dword [rsp + 0x68], r12d
mov rcx, qword [rbp + 0xc780]
xor rcx, rsp
call fcn.1400d1680
add rsp, 0xc890
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14004cfc0
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 0x14004d096
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 0x14004d074
mov edi, ebp
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne edi, eax
test rbx, rbx
je 0x14004d08a
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 0x14004d099
xor dil, dil
test rbx, rbx
je 0x14004d0ac
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 0x14004d0d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
call fcn.1400493c0
xor edi, edi
test al, al
jne 0x14004d121
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rdx, qword [rsi]
lea rax, [rsp + 0x70]
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 0x14004d196
mov eax, dword [0x1401cbd80]
lea ecx, [rax + 1]
imul ecx, eax
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, 0xf
jne 0x14004d192
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor al, al
jmp 0x14004d1db
mov r8, qword [r14]
mov rdx, qword [r15]
mov r9d, 1
mov ecx, dword [r8 - 0x10]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
call fcn.140049570
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14004dc10
Capabilities:
Check for time delay via gettickcount
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov r10d, dword [0x1401cbd80]
mov rsi, r9
mov dword [rsp + 0x30], edx
lea r9d, [r10 + 1]
mov eax, 0x2aaaaaab
mov rbx, r8
mov r14, rcx
imul r9d, r10d
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r9d, eax
cmp r9d, 0xa
jne 0x14004dc7e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r10d, eax
mov eax, 0xcccccccd
mul r10d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r10d, ecx
inc r10d
mov dword [0x1401cbd80], r10d
mov ecx, r10d
mov eax, 0x2aaaaaab
xor edi, edi
imul ecx, r10d
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, 8
jne 0x14004dccf
mov ecx, r10d
test r10d, r10d
je 0x14004dcc5
dec ecx
je 0x14004dcbd
inc r10d
mov dword [0x1401cbd80], r10d
jmp 0x14004dccf
mov dword [0x1401cbd80], edi
jmp 0x14004dccf
mov dword [0x1401cbd80], 2
mov rdx, qword [rbx]
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 0x14004dd42
mov ecx, dword [0x1401cbd80]
imul ecx, ecx
and ecx, 0x80000007
jge 0x14004dd0a
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 5
jne 0x14004dd36
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r8d, ecx
inc r8d
mov dword [0x1401cbd80], r8d
xor al, al
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
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 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 0x140052820
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx ebp, al
shr ax, 8
movzx r14d, al
cmp ecx, 0x80000000
jae 0x140052881
mov esi, ecx
shr esi, 0x10
call fcn.14004e6b0
cmp ebp, 6
jb 0x1400528f6
cmp r14d, 2
jb 0x1400528f6
mov eax, dword [0x1401cbd80]
lea ecx, [rax + 1]
imul ecx, eax
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, 0x15
jne 0x1400528e0
lea eax, [rcx + 0x2f]
mov ecx, 0x35
test ecx, ecx
je 0x1400528d7
mov r8d, ecx
cdq
idiv ecx
mov ecx, edx
mov eax, r8d
test r8d, r8d
jne 0x1400528c3
lea edx, [rcx + rax]
mov dword [0x1401cbd80], edx
mov rcx, rdi
call fcn.140052db0
nop
mov dword [rsp + 0x30], 1
jmp 0x1400529b2
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8d, ebp
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x38]
call fcn.140012850
mov r8d, dword [0x1401cbd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0x13
jne 0x140052980
lea rcx, [rsp + 0x50]
nop dword [rax]
mov eax, dword [rcx]
imul eax, eax, 0x2f
add r8d, eax
inc ebx
lea rcx, [rcx + 4]
movsxd rax, ebx
cmp rax, 0xfc
jb 0x140052960
mov dword [0x1401cbd80], r8d
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0x18]
call fcn.140002410
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x1400529b2
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400d1680
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret