joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c0400
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0xf8], 0
je 0x1800c0645
cmp dword [rsp + 0x100], 0
jbe 0x1800c0645
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call fcn.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bf7f0
test eax, eax
jne 0x1800c0497
lea rcx, [rsp + 0x60]
call fcn.180137390
jmp 0x1800c068b
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.180137200
mov edx, 0x1b3
lea rcx, str.CTSandboxInstance::SetInstancePolicyLib
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180137250
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1800c04f9
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0xc]
and eax, 2
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.180137230
mov dword [rsp + 0xb4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb0], eax
mov r9d, 0x1c4
lea r8, str.CTSandboxInstance::SetInstancePolicyLib
mov edx, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0xb4]
call fcn.1800bf420
lea rcx, [rsp + 0x60]
call fcn.1801371f0
nop
lea rcx, [rsp + 0x60]
call fcn.180137390
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
call fcn.1800c0160
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
call fcn.1800f8ec0
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x100]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 4
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800c05c3
lea rcx, [rsp + 0x48]
call fcn.1800e8250
jmp 0x1800c068b
mov dword [rsp + 0x54], 6
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800c0608
lea rcx, [rsp + 0x48]
call fcn.1800e8250
jmp 0x1800c068b
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x100]
mov r8d, eax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x38]
call fcn.1800fcc50
nop
lea rcx, [rsp + 0x48]
call fcn.1800e8250
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800c0220
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800c0681
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
xor eax, eax
test eax, eax
jne 0x1800c043c
cmp qword [rsp + 0x38], 0
je 0x1800c06a7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x1800c06c3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x40]
add rsp, 0xe8
ret
Function at 0x1800c06d0
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x30]
call fcn.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bf7f0
test eax, eax
je 0x1800c07ef
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180137200
mov edx, 0x200
lea rcx, str.CTSandboxInstance::GetInstancePolicyLib
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180137250
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1800c07a7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0x30]
call fcn.180137230
mov dword [rsp + 0x8c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov r9d, 0x212
lea r8, str.CTSandboxInstance::GetInstancePolicyLib
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
call fcn.1800bf420
lea rcx, [rsp + 0x30]
call fcn.1801371f0
cmp dword [rsp + 0x80], 0
jbe 0x1800c093b
cmp qword [rsp + 0xf8], 0
je 0x1800c093b
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x100], eax
jb 0x1800c093b
mov eax, dword [rsp + 0x84]
and eax, 2
mov dword [rsp + 0xa8], eax
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0xf0]
call fcn.1800c0160
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800c092e
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x1800c0914
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
call fcn.1800fcc50
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa0]
call fcn.1800e8250
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x30]
call fcn.180137390
mov eax, dword [rsp + 0xb8]
add rsp, 0xe8
ret
Function at 0x1800c0970
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
lea rcx, [rsp + 0x40]
call fcn.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.1800bf7f0
test eax, eax
je 0x1800c0a93
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.180137200
mov edx, 0x23d
lea rcx, str.CTSandboxInstance::GetInstancePolicyLib2
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180137250
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800c0a4b
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x94], eax
lea rcx, [rsp + 0x40]
call fcn.180137230
mov dword [rsp + 0x9c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov r9d, 0x24f
lea r8, str.CTSandboxInstance::GetInstancePolicyLib2
mov edx, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x9c]
call fcn.1800bf420
lea rcx, [rsp + 0x40]
call fcn.1801371f0
cmp dword [rsp + 0x90], 0
jbe 0x1800c0be2
mov eax, dword [rsp + 0x94]
and eax, 2
mov dword [rsp + 0xb8], eax
mov r8d, dword [rsp + 0xb8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x100]
call fcn.1800c0160
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x1800c0bd5
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1800c0bbb
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800fb374
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800c0ba1
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
call fcn.1800fcc50
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xb0]
call fcn.1800e8250
cmp qword [rsp + 0x108], 0
je 0x1800c0bfe
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x90]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x40]
call fcn.180137390
mov rax, qword [rsp + 0xd0]
add rsp, 0xf8
ret
Function at 0x1800c5bd0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov dword [rsp + 0x58], 0
lea rdx, [0x1801a9e70]
lea rcx, [rsp + 0x50]
call fcn.1800ebc90
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1800c5cef
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x400000
ja 0x1800c5ce4
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x5c]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1800e8600
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x5c]
add rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1800fb1e0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x58], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.1800e8670
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
jne 0x1800c5d11
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x50]
call fcn.1800e8250
mov eax, dword [rsp + 0x6c]
jmp 0x1800c5dbe
lea rdx, [0x1801cc358]
lea rcx, [rsp + 0x50]
call fcn.1800ec090
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1800c5d45
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x50]
call fcn.1800e8250
mov eax, dword [rsp + 0x70]
jmp 0x1800c5dbe
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.1800edbb0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x88]
call fcn.1800c5dd0
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x78]
call fcn.1800e8250
nop
lea rcx, [rsp + 0x50]
call fcn.1800e8250
mov eax, dword [rsp + 0x74]
add rsp, 0xa8
ret
Function at 0x1800c8ac0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov r9d, dword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.1800c8c40
nop
mov rax, qword [rsp + 0x40]
cmp dword [rax - 8], 0
jne 0x1800c8b1d
mov dword [rsp + 0x80], 1
jmp 0x1800c8b28
mov dword [rsp + 0x80], 0
cmp dword [rsp + 0x80], 0
je 0x1800c8b4d
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x40]
call fcn.1800e8250
mov eax, dword [rsp + 0x60]
jmp 0x1800c8c38
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1800c8c22
mov eax, 0xfeff
mov word [rsp + 0x54], ax
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, 2
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax - 8]
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x68]
shl rax, 1
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x40]
call fcn.1800e8250
mov eax, dword [rsp + 0x64]
add rsp, 0x98
ret

Function at 0x1800ca280
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x6760]
cmp dword [rax - 8], 0
jne 0x1800ca2a5
mov dword [rsp + 0x50], 1
jmp 0x1800ca2ad
mov dword [rsp + 0x50], 0
cmp dword [rsp + 0x50], 0
je 0x1800ca2bb
xor eax, eax
jmp 0x1800ca35b
mov edx, 0x3e8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800ca34a
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x6760]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x6720
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
lea rcx, [0x18023d770]
call fcn.1800c3f20
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1800ca32c
jmp 0x1800ca2bb
cmp dword [rsp + 0x40], 0
jbe 0x1800ca345
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1800ca360]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1800ca2bb
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800cb170
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1800cb1b4
mov eax, 1
jmp 0x1800cb2a5
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x7e
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x1800cb1f6
lea r8, str.TSandboxDrvCDOSL
lea rdx, str..Global_s
lea rcx, [rsp + 0x50]
call fcn.1800fc264
jmp 0x1800cb20e
lea r8, str.TSandboxDrvCDOSL
lea rdx, str.._s
lea rcx, [rsp + 0x50]
call fcn.1800fc264
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.1800e7740
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x100]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x1800cb289
mov dword [rsp + 0xd0], 0
lea rcx, [rsp + 0x40]
call fcn.1800e7780
mov eax, dword [rsp + 0xd0]
jmp 0x1800cb2a5
mov dword [rsp + 0xd4], 1
lea rcx, [rsp + 0x40]
call fcn.1800e7780
mov eax, dword [rsp + 0xd4]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0xf0
pop rdi
ret

Function at 0x1800d4480
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d44d7
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d453f
cmp qword [rsp + 0x78], 0
je 0x1800d44f8
mov rcx, qword [rsp + 0x78]
call fcn.1800fbc94
inc rax
mov eax, eax
shl rax, 1
mov qword [rsp + 0x40], rax
jmp 0x1800d4501
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x1800d4550
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d45a7
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d45dd
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x48
ret

Function at 0x1800d45f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d464f
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d4733
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x44]
cmp rax, 2
jb 0x1800d4728
mov eax, dword [rsp + 0x44]
add rax, 2
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov eax, 2
mov rcx, qword [rsp + 0x58]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800fb374
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d4728
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x1800d4740
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d479f
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d4856
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x44]
cmp rax, 1
jb 0x1800d484b
mov eax, dword [rsp + 0x44]
inc rax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.1800fb374
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d484b
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x1800d4860
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d48ba
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d4901
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret