joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c590
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001c604
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c626
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001c626
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x14001c626
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001c740
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 [0x1401bee90]
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 0x14001c7c4
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r9d
mov r8, rsi
mov rdx, rax
call fcn.14001c390
jmp 0x14001c7da
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 0x14001c8e3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001c7ff
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 0x14001c8e3
mov dword [rsp + 0x40], pe_nt_image_headers64
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 0x14001c8a6
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14001c740
mov ebx, eax
test eax, eax
jne 0x14001c8e3
mov dword [rsp + 0x40], pe_nt_image_headers64
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 0x14001c851
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001c8bb
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 0x14001c8d5
mov r8, rsi
mov rdx, qword [rdi]
call fcn.14001c590
jmp 0x14001c8e1
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 0x14001c900
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
jmp 0x14001c908
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400cc8b0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022040
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rbp, r9
mov rsi, r8
mov rbx, rdx
call fcn.140021f60
mov r11, rax
test rdi, rdi
je 0x14002219b
test rsi, rsi
je 0x14002219b
cmp rax, rbp
ja 0x14002219b
xor r8d, r8d
mov qword [rsp + 0x30], r14
lea r14, [0x140000000]
mov ecx, r8d
test rbx, rbx
je 0x140022142
mov r10, rsi
cmp rcx, rbx
jae 0x1400220b2
movzx eax, byte [rcx + rdi]
inc rcx
jmp 0x1400220b5
mov eax, r8d
cmp rcx, rbx
jae 0x1400220c4
movzx r9d, byte [rcx + rdi]
inc rcx
jmp 0x1400220c7
mov r9d, r8d
cmp rcx, rbx
jae 0x1400220d5
movzx edx, byte [rcx + rdi]
inc rcx
jmp 0x1400220d8
mov edx, r8d
shl eax, 8
add r10, 4
add eax, r9d
shl eax, 8
add eax, edx
mov edx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r14 + 0x1c1d60]
mov byte [r10 - 4], al
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r14 + 0x1c1d60]
mov byte [r10 - 3], al
mov eax, edx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r14 + 0x1c1d60]
mov byte [r10 - 2], al
movzx eax, byte [rdx + r14 + 0x1c1d60]
mov byte [r10 - 1], al
cmp rcx, rbx
jb 0x1400220a9
lea rcx, [r14 + 0x153090]
mov r14, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
cmp dword [rcx + rbx*4], r8d
lea rcx, [rcx + rbx*4]
jle 0x14002218f
lea rax, [rsi - 1]
add rax, r11
nop word [rax + rax]
mov byte [rax], 0x3d
inc r8d
lea rax, [rax - 1]
cmp r8d, dword [rcx]
jl 0x140022180
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov al, 1
jmp 0x14002219d
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a920
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 [0x1401bee90]
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, [0x1401be9a8]
mov rax, qword [0x1401be9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x19]
test rax, 0xffffffffffff0000
jne 0x14002aa1f
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14002aa4a
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.1400026e0
jmp 0x14002aa4a
lea rax, [rbp - 0x19]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14002aa30
mov r8d, ecx
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.1400023f0
nop
mov dword [rbp - 0x39], 1
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400cc8b0
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 0x14002be10
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 0x14002be84
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002be7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14002bf1d
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 0x14002bebc
xor edx, edx
mov rcx, rdi
call fcn.1400024e0
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 0x14002bf1a
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 0x14002bf30
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 0x14002bf77
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 ecx, dword [0x1401c6d80]
mov rbx, qword [rsp + 0x50]
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x88888889
imul r8d, ecx
mov ecx, 0xe25f5af8
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x1401c760c]
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 4
cmove eax, ecx
mov dword [0x1401c760c], eax
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x14002c4b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov r9d, dword [0x1401c6d80]
mov rsi, rdx
mov eax, 0x92492493
mov r8d, r9d
xor dil, dil
xor ebp, ebp
mov r10, rcx
imul r8d, r9d
imul r8d, r9d
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub r8d, edx
cmp r8d, 4
jne 0x14002c52c
mov ecx, r9d
test r9d, r9d
je 0x14002c522
dec ecx
je 0x14002c51a
inc r9d
mov dword [0x1401c6d80], r9d
jmp 0x14002c52c
mov dword [0x1401c6d80], ebp
jmp 0x14002c52c
mov dword [0x1401c6d80], 2
mov rcx, qword [r10]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
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 0x14002c5b0
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], ebp
mov r8d, dword [rdx - 0x10]
lea r9, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002c5a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, dil
add rsp, 0x40
pop rdi
ret
Function at 0x1400485b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov r10d, dword [0x1401c6d80]
mov r9d, eax
movzx r11d, al
mov r8d, r10d
mov eax, 0x4ec4ec4f
imul r8d, r10d
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0xd
sub r8d, edx
cmp r8d, 2
jne 0x140048652
movsd xmm3, qword [0x140153e78]
movsd xmm5, qword [0x140153ea0]
movd xmm4, r10d
xorps xmm2, xmm2
movaps xmmword [rsp + 0x20], xmm6
movsd xmm6, qword [0x140153e70]
cvtdq2pd xmm4, xmm4
nop word [rax + rax]
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x140048639
subsd xmm2, xmm3
divsd xmm3, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm0, xmm1
comisd xmm0, xmm6
ja 0x140048620
movaps xmm6, xmmword [rsp + 0x20]
cmp r11d, 6
ja 0x14004866c
jne 0x140048665
shr r9w, 8
cmp r9b, 1
ja 0x14004866c
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret
Function at 0x14004af70
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], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004aff6
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x14004b020
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001c670
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x14004b020
xor dil, dil
jmp 0x14004b092
mov rcx, qword [rsi]
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x14004b034
lea edi, [rax + 0xd]
jmp 0x14004b072
or rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14004b040
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 0x14004b088
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 0x14004b0a5
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 0x14004b0d0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6f8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401bee90]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov rbp, r9
mov r14, r8
mov r12, rdx
mov r15, rcx
mov r9d, dword [0x1401c6d80]
lea r10d, [r9 + 1]
imul r10d, r9d
mov eax, 0x2aaaaaab
imul r10d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r10d, eax
xor r13d, r13d
cmp r10d, 3
jne 0x14004b1a8
mov edi, r13d
lea rsi, [rsp + 0x80]
nop dword [rax + rax]
mov r8d, r13d
lea ebx, [r8 + 1]
lea ecx, [rdi + 1]
mov eax, r9d
cdq
idiv ecx
mov ecx, edx
mov eax, r9d
sub eax, edi
imul ecx, eax
mov eax, r9d
cdq
idiv ebx
add ecx, eax
sub ecx, r8d
mov edx, ecx
lea rcx, [0x14014dc6c]
call fcn.1400cd1bc
mov r8d, ebx
add rsi, 4
cmp ebx, 0x1d
jge 0x14004b198
mov r9d, dword [0x1401c6d80]
jmp 0x14004b153
inc edi
cmp edi, 0xe
jge 0x14004b1a8
mov r9d, dword [0x1401c6d80]
jmp 0x14004b150
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r13d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14004b23f
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004b2a2
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r13d
mov eax, dword [r12]
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 [r15]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14004b295
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r13d
test edi, edi
sete dil
jmp 0x14004b2a5
xor dil, dil
test rbx, rbx
je 0x14004b2b8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r13
movzx eax, dil
mov dword [rsp + 0x68], r13d
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400cc8b0
add rsp, 0x6f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004b2f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x40], 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 r14, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [r11 - 0x38], rbx
mov dword [r11 - 0x30], r15d
mov qword [r11 - 0x28], r15
mov qword [r11 + 0x18], r15
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x58], 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 0x14004b49b
mov dword [rsp + 0x48], r15d
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rbx
mov rax, qword [r14]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x800
or eax, ecx
jge 0x14004b38d
mov edx, 0x800
mov rcx, r14
call fcn.1400024e0
mov rsi, qword [r14]
cmp dword [rsi - 0xc], 0x800
jge 0x14004b3a4
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rsi - 0x10], 0x800
mov rax, qword [r14]
mov word [rax + 0x1000], r15w
mov dword [rsp + 0x90], 0x1000
mov ebp, r15d
lea rax, [rsp + 0x90]
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 0x14004b435
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x14004b402
mov edi, 0xd
jmp 0x14004b435
mov ecx, dword [rsp + 0x90]
test rsi, rsi
je 0x14004b42e
test ecx, ecx
je 0x14004b42a
test cl, 1
jne 0x14004b423
mov eax, ecx
shr rax, 1
cmp word [rsi + rax*2 - 2], bp
je 0x14004b42e
mov edi, 0xd
jmp 0x14004b435
mov word [rsi], r15w
mov ebp, ecx
shr ebp, 1
mov edi, r15d
lea eax, [rbp - 1]
cmp eax, 0xffffffff
jne 0x14004b453
mov rcx, qword [r14]
test rcx, rcx
jne 0x14004b44a
mov eax, r15d
jmp 0x14004b457
movsxd rdx, dword [rcx - 0xc]
call fcn.1400cd52c
test eax, eax
js 0x14004b490
mov rcx, qword [r14]
cmp eax, dword [rcx - 0xc]
jg 0x14004b490
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r14]
mov word [rax + rcx*2], r15w
test rbx, rbx
je 0x14004b483
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
jmp 0x14004b49e
mov ecx, 0x80070057
call fcn.140001920
int3
xor dil, dil
test rbx, rbx
je 0x14004b4b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
movzx eax, dil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004b4e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
mov edi, r15d
mov qword [rax - 0x38], r15
mov dword [rax - 0x30], r15d
mov qword [rax - 0x28], r15
mov r10d, dword [0x1401c6d80]
lea r11d, [r10 + 2]
lea eax, [r10 + 1]
imul r11d, eax
imul r11d, r10d
mov eax, 0x2e8ba2e9
imul r11d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r11d, edx
cmp r11d, 0xd
jne 0x14004b5d2
test r10d, r10d
je 0x14004b5d2
nop dword [rax + rax]
mov eax, r10d
and eax, 0x80000001
jge 0x14004b571
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14004b588
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
mov r10d, eax
mov dword [0x1401c6d80], eax
jmp 0x14004b597
lea r10d, [r10*2 + 1]
mov dword [0x1401c6d80], 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 0x14004b5bb
sub ecx, 2
je 0x14004b5bf
dec ecx
je 0x14004b5c2
jmp 0x14004b5cd
add r10d, 2
inc r10d
add r10d, 2
mov dword [0x1401c6d80], r10d
test r10d, r10d
jne 0x14004b560
mov qword [rsp + 0x90], r15
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004b67b
mov dword [rsp + 0x48], r15d
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x90], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14004b659
mov ebx, r15d
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne ebx, eax
test rdi, rdi
je 0x14004b66f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
test ebx, ebx
sete bl
jmp 0x14004b67d
xor bl, bl
test rdi, rdi
je 0x14004b690
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
movzx eax, bl
mov dword [rsp + 0x48], r15d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004bf50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov edx, dword [0x1401c6d80]
mov rbx, r9
mov rdi, r8
lea eax, [rdx + 1]
lea r10d, [rdx + 2]
mov rsi, rcx
imul r10d, eax
mov eax, 0x2e8ba2e9
imul r10d, edx
imul r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r10d, edx
cmp r10d, 0x13
jne 0x14004bfc6
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 [0x1401c6d80], r8d
mov rdx, qword [rdi]
lea rax, [rsp + 0x50]
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 0x14004bffb
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
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 + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
xor eax, eax
test ebx, ebx
mov rbx, qword [rsp + 0x40]
sete al
add rsp, 0x30
pop rdi
ret