joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800122d0
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, rdx
mov r12, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180024d20
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
call fcn.180024d20
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov ecx, dword [0x1800dfe34]
mov edx, dword [0x1800dfe30]
test edx, edx
je 0x180012349
cmp eax, edx
jne 0x180012349
test ecx, ecx
je 0x180012349
cmp edi, ecx
jb 0x180012349
lea eax, [rcx + 0x493e0]
cmp eax, edi
jae 0x18001234e
mov ebx, 1
cmp dword [0x1800dde20], 0
je 0x180012394
mov eax, dword [0x1800dfe38]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edx
lea r9, str.CProcMgr::EnumVolumesW___08x______08x____d______d____enum_:__d___loop_:__d_
lea r8, str.EnumVolumes
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800ddd68]
call fcn.180017680
test ebx, ebx
jne 0x1800123d5
inc dword [0x1800dfe38]
lea r8d, [rbx + 1]
lea rdx, [0x1800dfe70]
lea rcx, [rsp + 0x58]
call fcn.1800266d0
nop
lea rdx, [0x1800dfe40]
mov rcx, r12
call fcn.180024e90
lea rdx, [0x1800dfe58]
mov rcx, rbp
call fcn.180024e90
nop
jmp 0x180012451
mov dword [0x1800dfe38], 0
mov rdx, rbp
mov rcx, r12
call fcn.180012480
mov r8d, 1
lea rdx, [0x1800dfe70]
lea rcx, [rsp + 0x58]
call fcn.1800266d0
nop
mov dword [0x1800dfe30], esi
mov dword [0x1800dfe34], edi
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1800dfe40]
call fcn.180024d20
mov rdx, r12
lea rcx, [0x1800dfe40]
call fcn.180024e90
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x1800dfe58]
call fcn.180024d20
mov rdx, rbp
lea rcx, [0x1800dfe58]
call fcn.180024e90
nop
lea rcx, [rsp + 0x58]
call fcn.180026710
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x180012480
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x1800c4650]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180024d20
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.180024d20
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x1800125a8
mov eax, dword [0x1800a1454]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1800a1458]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.180024700
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180024f30
mov r11, qword [0x180081bb8]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.180034650
mov r8d, 0x103
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.180023410
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.180024f30
nop
lea rcx, [rsp + 0x20]
call fcn.180023290
nop
lea rcx, [rsp + 0x28]
call fcn.180023290
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x1800124e4
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800327a0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800126f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x1800c4650]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov ebp, ecx
mov rsi, rdx
lea rcx, [rsp + 0x44]
xor ebx, ebx
xor edx, edx
mov r8d, 0x434
mov dword [rsp + 0x40], ebx
call fcn.180034650
lea ecx, [rbx + 0x18]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800127ba
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x438
call fcn.180034650
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov dword [rsp + 0x40], 0x438
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1800127b1
nop
movsxd rbx, dword [rsi + 8]
mov rcx, rsi
lea edx, [rbx + 1]
call fcn.180012bd0
mov rcx, rbx
lea rdx, [rsp + 0x40]
imul rcx, rcx, 0x438
add rcx, qword [rsi]
mov r8d, 0x438
call fcn.180033f50
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180012770
lea ebx, [rax + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1800dde20], 0
je 0x1800127f1
mov ecx, dword [rsi + 8]
lea r9, str.CProcMgr::GetProcessModuleByToolHelp_Process___d__ret___d__Moudles_num___d_
lea r8, str.ProcMgr
mov dword [rsp + 0x30], ecx
lea rcx, [0x1800ddd68]
mov edx, reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebp
call fcn.180017680
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800327a0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x180013540
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 0x1800136e0
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 0x180015880
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x28], 0xfffffffffffffffe
cmp dword [0x1800de8bc], 0
jne 0x1800158b9
mov dword [0x1800de8bc], 1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800de8c0]
call fcn.180030d10
call fcn.18000e400
mov rbx, rax
mov r8d, 1
lea rdx, [0x1800d8dc0]
lea rcx, [rbp - 0x20]
call fcn.1800266d0
nop
mov rcx, qword [0x180081bb8]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rcx
lea rcx, [rbp + 0x30]
call fcn.180024870
mov r9, qword [str.baksda64.sys]
mov r8, rbx
lea rdx, [0x180096e60]
lea rcx, [rbp + 0x30]
call fcn.180023e40
lea rcx, [rbp + 0x28]
call fcn.180024870
mov r9, qword [str.sdagent64.dll]
lea r8, [0x1800de8c0]
lea rdx, [0x180096e60]
lea rcx, [rbp + 0x28]
call fcn.180023e40
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.180010e00
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp + 0x28]
call fcn.180010e00
mov r11d, dword [rbp + 0x18]
cmp dword [rbp + 0x20], r11d
jne 0x18001597a
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp - 0x30]
je 0x18001598c
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.180023290
nop
lea rcx, [rbp + 0x30]
call fcn.180023290
nop
lea rcx, [rbp - 0x20]
call fcn.180026710
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x180016df0
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.1800266d0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x180016e7f
test rsi, rsi
je 0x180016e7f
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.180026710
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180019d10
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 [0x1800c4650]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
test rcx, rcx
je 0x180019f44
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x180019f44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x180019f44
test al, 1
je 0x180019d79
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dil, 0x10
je 0x180019f39
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.180034650
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 0x180019dc0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x480]
repne scasw ax, word [rdi]
mov eax, dword [0x1800a1078]
lea rcx, [rsp + 0x24]
mov dword [rdi - 2], eax
movzx eax, word [0x1800a107c]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], ebp
mov word [rdi + 2], ax
call fcn.180034650
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180019f1e
nop dword [rax]
lea rdx, [0x1800a10ac]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180019eff
lea rdx, [0x1800a10b4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180019eff
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], bp
call fcn.180034650
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 0x180019e90
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
mov eax, dword [0x18009b1f8]
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 0x180019ee0
lea rcx, [rsp + 0x270]
call fcn.180019d10
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180019e30
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 0x180019f46
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180019f46
xor eax, eax
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1800327a0
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x180023fc0
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 0x18002402b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x18002402b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180024042
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x180024015
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.180033f50
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x18002402d

Function at 0x1800267c0
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 0x1800267ee
or r9d, 0x20019
mov r8d, r9d
call fcn.180026720
mov rbx, rax
jmp 0x1800267f1
mov rbx, rcx
test rbx, rbx
je 0x180026897
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 0x18002688a
cmp dword [rsp + 0x30], 4
jne 0x18002688a
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 0x18002688a
cmp rbx, rdi
je 0x180026875
mov rcx, rbx
call fcn.1800267a0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180026897
mov rcx, rbx
call fcn.1800267a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800268b0
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 0x1800268de
or r9d, 0x20019
mov r8d, r9d
call fcn.180026720
mov rbx, rax
jmp 0x1800268e1
mov rbx, rcx
test rbx, rbx
je 0x18002697f
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 0x180026972
cmp dword [rsp + 0x30], 3
jne 0x180026972
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180026972
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 0x180026972
cmp rbx, rdi
je 0x18002695d
mov rcx, rbx
call fcn.1800267a0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18002697f
mov rcx, rbx
call fcn.1800267a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800269a0
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 0x1800269ce
or r9d, 0x20019
mov r8d, r9d
call fcn.180026720
mov rbx, rax
jmp 0x1800269d1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180026a83
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 0x180026a76
cmp dword [rsp + 0x30], 3
jne 0x180026a76
mov ecx, dword [rsp + 0x58]
call fcn.180032838
mov rdi, rax
test rax, rax
je 0x180026a76
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 0x180026a6e
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 0x180026a67
mov rcx, rbx
call fcn.1800267a0
mov eax, 1
jmp 0x180026a85
mov rcx, rdi
call fcn.1800327c0
cmp rbx, rsi
je 0x180026a83
mov rcx, rbx
call fcn.1800267a0
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 0x180026aa0
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 0x180026ace
or r9d, 0x20019
mov r8d, r9d
call fcn.180026720
mov rbx, rax
jmp 0x180026ad1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180026bc0
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 0x180026bb3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180026b2a
cmp eax, 2
je 0x180026b2a
cmp eax, 6
je 0x180026b2a
cmp eax, 7
jne 0x180026bb3
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180032838
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180034650
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 0x180026b9a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180023410
cmp rbx, rdi
je 0x180026b8b
mov rcx, rbx
call fcn.1800267a0
mov rcx, rsi
call fcn.1800327c0
mov eax, 1
jmp 0x180026bc2
mov rcx, rsi
call fcn.1800327c0
mov rcx, qword [rsp + 0x70]
lea rdx, [0x180096c10]
call fcn.180023410
cmp rbx, rdi
je 0x180026bc0
mov rcx, rbx
call fcn.1800267a0
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 0x180026e80
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 0x180026eae
or r9d, 0x20006
mov r8d, r9d
call fcn.180026750
mov rbx, rax
jmp 0x180026eb1
mov rbx, rcx
test rbx, rbx
je 0x180026f10
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 0x180026f03
cmp rbx, rdi
je 0x180026eee
mov rcx, rbx
call fcn.1800267a0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180026f10
mov rcx, rbx
call fcn.1800267a0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180026f30
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 0x180026f5e
or r9d, 0x20006
mov r8d, r9d
call fcn.180026750
mov rbx, rax
jmp 0x180026f61
mov rbx, rcx
test rbx, rbx
je 0x180026fd8
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 0x180026fcb
cmp rbx, rsi
je 0x180026fb6
mov rcx, rbx
call fcn.1800267a0
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180026fd8
mov rcx, rbx
call fcn.1800267a0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret