joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
or rbp, 0xffffffffffffffff
xor eax, eax
lea rbx, [0x1800d19a8]
mov rdi, rbx
mov rcx, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
jne 0x18000f668
lea r8, [rsp + 0x60]
lea rdx, [0x1800d1798]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000f5e7
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x50]
cmp edx, 2
jb 0x18000f5dc
add edx, 2
mov eax, 2
mov dword [rsp + 0x50], edx
shr edx, 1
mov ecx, edx
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.1800303a8
mov rbx, rax
test rax, rax
je 0x18000f5dc
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.PATH
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x18000f607
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
jne 0x18000f65d
mov rcx, rbx
call fcn.180030330
mov ecx, 3
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.1800303a8
mov rdi, rax
test rax, rax
je 0x18000f6b9
xor eax, eax
lea rcx, [0x18009c324]
mov rdx, rdi
mov dword [rdi], eax
sub rdx, rcx
mov word [rdi + 4], ax
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x18000f641
mov rax, rdi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov rax, rbx
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
lea esi, [rcx + 1]
mov eax, 2
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.1800303a8
mov rdi, rax
test rax, rax
je 0x18000f6b4
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rax
call fcn.180032160
mov rcx, rdi
sub rcx, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x18000f6a0
mov rax, rdi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x180010c10
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x1800bd650]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180010c47
xor eax, eax
jmp 0x180010d28
mov rcx, rdi
mov qword [rsp + 0x450], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180010d11
test al, 1
je 0x180010c75
and ebx, 0xfffffffe
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x180010d11
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x20], bx
call fcn.180032160
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x18009c818]
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rdi
call fcn.180031004
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180010d03
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x18009c818]
lea rcx, [rsp + 0x20]
mov r9d, eax
mov r8, rdi
call fcn.180031004
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc ebx
cmp ebx, 0xa
jge 0x180010d49
cmp eax, 0xffffffff
jne 0x180010cc4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rbx, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.180030310
mov rsi, qword [rsp + 0x458]
add rsp, 0x430
pop rdi
ret
xor eax, eax
jmp 0x180010d20
Function at 0x180011750
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x48]
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftNon_Driver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r11, [rbx + 1]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r11, [rbx + 2]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Policy
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
lea rax, [rbx + 3]
lea r9, [rsp + 0x48]
lea rdx, str.PrivateHash
xor r8d, r8d
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x1800118f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftNon_Driver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 1]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftDriver_Signing
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 2]
lea rdx, str.Policy
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
lea r11, [rbx + 3]
lea rdx, str.PrivateHash
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x180013a90
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x28], 0xfffffffffffffffe
cmp dword [0x1800d758c], 0
jne 0x180013ac9
mov dword [0x1800d758c], 1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800d7590]
call fcn.18002e880
call fcn.18000e1a0
mov rbx, rax
mov r8d, 1
lea rdx, [0x1800d1be0]
lea rcx, [rbp - 0x20]
call fcn.1800242f0
nop
mov rcx, qword [0x18007db48]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rcx
lea rcx, [rbp + 0x30]
call fcn.180022480
mov r9, qword [str.baksda64.sys]
mov r8, rbx
lea rdx, [0x180092930]
lea rcx, [rbp + 0x30]
call fcn.180021bb0
lea rcx, [rbp + 0x28]
call fcn.180022480
mov r9, qword [str.sdagent64.dll]
lea r8, [0x1800d7590]
lea rdx, [0x180092930]
lea rcx, [rbp + 0x28]
call fcn.180021bb0
xor r11d, r11d
mov qword [rbp - 0x38], r11
mov qword [rbp - 0x30], r11
mov dword [rbp + 0x20], r11d
mov dword [rbp + 0x18], r11d
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp + 0x30]
call fcn.180010a80
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp + 0x28]
call fcn.180010a80
mov r11d, dword [rbp + 0x18]
cmp dword [rbp + 0x20], r11d
jne 0x180013b8a
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp - 0x30]
je 0x180013b9c
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rbp + 0x28]
call fcn.180021000
nop
lea rcx, [rbp + 0x30]
call fcn.180021000
nop
lea rcx, [rbp - 0x20]
call fcn.180024330
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x180014f60
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.1800242f0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x180014fef
test rsi, rsi
je 0x180014fef
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.180024330
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180017d40
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1800bd650]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
test rcx, rcx
je 0x180017f74
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x180017f74
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x180017f74
test al, 1
je 0x180017da9
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dil, 0x10
je 0x180017f69
mov qword [rsp + 0x6b8], rbp
lea rcx, [rsp + 0x482]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x6c0], rsi
mov word [rsp + 0x480], bp
call fcn.180032160
lea rcx, [rsp + 0x480]
sub rcx, rbx
mov rdx, rbx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x180017df0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x480]
repne scasw ax, word [rdi]
mov eax, dword [0x18009c7d8]
lea rcx, [rsp + 0x24]
mov dword [rdi - 2], eax
movzx eax, word [0x18009c7dc]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], ebp
mov word [rdi + 2], ax
call fcn.180032160
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180017f4e
nop dword [rax]
lea rdx, [0x18009c80c]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180017f2f
lea rdx, [0x18009c814]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180017f2f
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], bp
call fcn.180032160
lea rcx, [rsp + 0x270]
sub rcx, rbx
mov rdx, rbx
nop
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x180017ec0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
mov eax, dword [0x1800969d0]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180017f10
lea rcx, [rsp + 0x270]
call fcn.180017d40
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180017e60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rsi, qword [rsp + 0x6c0]
mov rbp, qword [rsp + 0x6b8]
jmp 0x180017f76
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180017f76
xor eax, eax
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.180030310
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x180021d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x180021d9b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x180021d9b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180021db2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x180021d85
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.180031a60
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x180021d9d

Function at 0x1800243e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18002440e
or r9d, 0x20019
mov r8d, r9d
call fcn.180024340
mov rbx, rax
jmp 0x180024411
mov rbx, rcx
test rbx, rbx
je 0x1800244b7
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800244aa
cmp dword [rsp + 0x30], 4
jne 0x1800244aa
mov eax, dword [rsp + 0x58]
mov ecx, 4
mov rdx, rsi
cmp eax, ecx
cmova eax, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800244aa
cmp rbx, rdi
je 0x180024495
mov rcx, rbx
call fcn.1800243c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800244b7
mov rcx, rbx
call fcn.1800243c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800244d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800244fe
or r9d, 0x20019
mov r8d, r9d
call fcn.180024340
mov rbx, rax
jmp 0x180024501
mov rbx, rcx
test rbx, rbx
je 0x18002459f
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180024592
cmp dword [rsp + 0x30], 3
jne 0x180024592
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180024592
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180024592
cmp rbx, rdi
je 0x18002457d
mov rcx, rbx
call fcn.1800243c0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18002459f
mov rcx, rbx
call fcn.1800243c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800245c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x1800245ee
or r9d, 0x20019
mov r8d, r9d
call fcn.180024340
mov rbx, rax
jmp 0x1800245f1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x1800246a3
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180024696
cmp dword [rsp + 0x30], 3
jne 0x180024696
mov ecx, dword [rsp + 0x58]
call fcn.1800303a8
mov rdi, rax
test rax, rax
je 0x180024696
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002468e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x180024687
mov rcx, rbx
call fcn.1800243c0
mov eax, 1
jmp 0x1800246a5
mov rcx, rdi
call fcn.180030330
cmp rbx, rsi
je 0x1800246a3
mov rcx, rbx
call fcn.1800243c0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x1800246c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x1800246ee
or r9d, 0x20019
mov r8d, r9d
call fcn.180024340
mov rbx, rax
jmp 0x1800246f1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x1800247e0
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800247d3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18002474a
cmp eax, 2
je 0x18002474a
cmp eax, 6
je 0x18002474a
cmp eax, 7
jne 0x1800247d3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.1800303a8
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180032160
lea r11, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800247ba
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180021180
cmp rbx, rdi
je 0x1800247ab
mov rcx, rbx
call fcn.1800243c0
mov rcx, rsi
call fcn.180030330
mov eax, 1
jmp 0x1800247e2
mov rcx, rsi
call fcn.180030330
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800926e0]
call fcn.180021180
cmp rbx, rdi
je 0x1800247e0
mov rcx, rbx
call fcn.1800243c0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180024aa0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180024ace
or r9d, 0x20006
mov r8d, r9d
call fcn.180024370
mov rbx, rax
jmp 0x180024ad1
mov rbx, rcx
test rbx, rbx
je 0x180024b30
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180024b23
cmp rbx, rdi
je 0x180024b0e
mov rcx, rbx
call fcn.1800243c0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180024b30
mov rcx, rbx
call fcn.1800243c0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180024b50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x180024b7e
or r9d, 0x20006
mov r8d, r9d
call fcn.180024370
mov rbx, rax
jmp 0x180024b81
mov rbx, rcx
test rbx, rbx
je 0x180024bf8
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x180024beb
cmp rbx, rsi
je 0x180024bd6
mov rcx, rbx
call fcn.1800243c0
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180024bf8
mov rcx, rbx
call fcn.1800243c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x180024c10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x68
xor eax, eax
mov esi, edx
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x50], rax
lea rax, [r11 + 0x20]
mov rbp, rcx
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180024d9c
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x180024d72
mov eax, dword [rsp + 0x90]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x90], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800303a8
mov rbx, rax
test rax, rax
je 0x180024d98
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
add r8, r8
call fcn.180032160
mov r9d, dword [rsp + 0x90]
mov r8, rbx
xor edx, edx
mov rcx, rbp
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x180024d90
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.180024340
mov rdi, rax
test rax, rax
je 0x180024d90
mov edx, esi
mov rcx, rax
call fcn.180024c10
mov rcx, rdi
test eax, eax
je 0x180024d8b
call fcn.1800243c0
mov r11, qword [0x1800d2618]
test r11, r11
je 0x180024d4d
test esi, esi
je 0x180024d4d
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180024d59
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180024d90
dec dword [rsp + 0x98]
jne 0x180024cc0
mov rcx, rbx
call fcn.180030330
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.1800243c0
mov rcx, rbx
call fcn.180030330
xor eax, eax
jmp 0x180024d77
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret