joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013680
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x28], 0xfffffffffffffffe
cmp dword [0x1800d658c], 0
jne 0x1800136b9
mov dword [0x1800d658c], 1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800d6590]
call fcn.18002dc70
call fcn.18000e010
mov rbx, rax
mov r8d, 1
lea rdx, [0x1800d0be0]
lea rcx, [rbp - 0x20]
call fcn.1800237b0
nop
mov rcx, qword [0x18007cb48]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rcx
lea rcx, [rbp + 0x30]
call fcn.180021950
mov r9, qword [str.baksda64.sys]
mov r8, rbx
lea rdx, [0x180091940]
lea rcx, [rbp + 0x30]
call fcn.180021070
lea rcx, [rbp + 0x28]
call fcn.180021950
mov r9, qword [str.sdagent64.dll]
lea r8, [0x1800d6590]
lea rdx, [0x180091940]
lea rcx, [rbp + 0x28]
call fcn.180021070
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.180010590
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp + 0x28]
call fcn.180010590
mov r11d, dword [rbp + 0x18]
cmp dword [rbp + 0x20], r11d
jne 0x18001377a
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp - 0x30]
je 0x18001378c
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.1800204c0
nop
lea rcx, [rbp + 0x30]
call fcn.1800204c0
nop
lea rcx, [rbp - 0x20]
call fcn.1800237f0
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x180014bd0
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.1800237b0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x180014c5f
test rsi, rsi
je 0x180014c5f
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.1800237f0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180017900
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 [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
test rcx, rcx
je 0x180017b34
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x180017b34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x180017b34
test al, 1
je 0x180017969
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dil, 0x10
je 0x180017b29
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.180031540
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 0x1800179b0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x480]
repne scasw ax, word [rdi]
mov eax, dword [0x18009b698]
lea rcx, [rsp + 0x24]
mov dword [rdi - 2], eax
movzx eax, word [0x18009b69c]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], ebp
mov word [rdi + 2], ax
call fcn.180031540
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180017b0e
nop dword [rax]
lea rdx, [0x18009b6cc]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180017aef
lea rdx, [0x18009b6d4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180017aef
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], bp
call fcn.180031540
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 0x180017a80
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
mov eax, dword [0x1800959e0]
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 0x180017ad0
lea rcx, [rsp + 0x270]
call fcn.180017900
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180017a20
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 0x180017b36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180017b36
xor eax, eax
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x18001bf10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.18000c9a0
mov r12d, 1
cmp dword [rdi + 0x50], 0
jbe 0x18001bff2
mov dword [rdi + 0x50], 0
call fcn.180010370
test eax, eax
jne 0x18001bf67
call fcn.1800459b0
test eax, eax
jne 0x18001bfd4
cmp qword [rdi + 0x40], 0
jne 0x18001bf9c
call fcn.18000c3a0
test eax, eax
je 0x18001bf9c
mov ecx, 0xa8
call fcn.18002f788
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001bf96
xor edx, edx
mov rcx, rax
call fcn.180011750
nop
mov qword [rdi + 0x40], rax
jmp 0x18001bfc7
cmp qword [rdi + 0x48], 0
jne 0x18001bfd4
mov ecx, 0xa8
call fcn.18002f788
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001bfc3
mov edx, r12d
mov rcx, rax
call fcn.180011750
nop
mov qword [rdi + 0x48], rax
test rax, rax
je 0x18001bfd4
mov rcx, rax
call fcn.1800251b0
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x18001bfe3
inc dword [rax + 0xa0]
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x18001bff2
inc dword [rax + 0xa0]
mov eax, dword [0x1800d7a88]
test eax, eax
je 0x18001c009
cmp esi, eax
jb 0x18001c009
add eax, 0x7530
cmp eax, esi
jae 0x18001c07a
call fcn.180011580
xor ecx, ecx
test eax, eax
cmovne ecx, r12d
call fcn.1800042b0
mov ebx, dword [rdi + 0x18]
call fcn.180011580
xor ecx, ecx
test eax, eax
cmovne ecx, r12d
xor r8d, r8d
mov edx, ebx
call fcn.180004bf0
mov dword [rdi + 0x18], 0
call fcn.18001c180
cmp dword [0x1800d7a84], 0
jne 0x18001c069
call fcn.180001100
test eax, eax
je 0x18001c069
call fcn.180013680
call fcn.180013350
call fcn.180013490
mov dword [0x1800d7a84], r12d
call fcn.18001c900
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1800d7a88], eax
mov eax, dword [0x1800d7a8c]
test eax, eax
je 0x18001c091
cmp esi, eax
jb 0x18001c091
add eax, 0x1d4c0
cmp eax, esi
jae 0x18001c0e7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x1800d6384]
cmp ecx, 0x1d4c0
jb 0x18001c0db
mov dword [0x1800d6384], eax
lea r8, str.TICKCOUNT
lea rdx, [0x1800d5b68]
lea rcx, vtable.CDbgCfgMgr.0
call fcn.18000eb80
cmp eax, dword [0x1800d5d7c]
je 0x18001c0db
lea rcx, [0x1800d5a90]
call fcn.18000fa90
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1800d7a8c], eax
mov eax, dword [0x1800d7a90]
test eax, eax
je 0x18001c0fe
cmp esi, eax
jb 0x18001c0fe
add eax, 0x493e0
cmp eax, esi
jae 0x18001c15f
cmp dword [0x1800d5b50], 0
je 0x18001c126
lea r9, str.CAgentU64::DoMonitor__M5________
lea r8, str.CheckApp
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015330
call fcn.1800018b0
cmp dword [0x1800d5b50], 0
je 0x18001c153
lea r9, str.CAgentU64::DoMonitor__M5____
lea r8, str.CheckApp
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d5a98]
call fcn.180015330
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1800d7a90], eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1800211f0
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 0x18002125b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x18002125b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180021272
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x180021245
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.180030e40
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x18002125d

Function at 0x1800238a0
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 0x1800238ce
or r9d, 0x20019
mov r8d, r9d
call fcn.180023800
mov rbx, rax
jmp 0x1800238d1
mov rbx, rcx
test rbx, rbx
je 0x180023977
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 0x18002396a
cmp dword [rsp + 0x30], 4
jne 0x18002396a
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 0x18002396a
cmp rbx, rdi
je 0x180023955
mov rcx, rbx
call fcn.180023880
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180023977
mov rcx, rbx
call fcn.180023880
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x180023990
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 0x1800239be
or r9d, 0x20019
mov r8d, r9d
call fcn.180023800
mov rbx, rax
jmp 0x1800239c1
mov rbx, rcx
test rbx, rbx
je 0x180023a5f
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 0x180023a52
cmp dword [rsp + 0x30], 3
jne 0x180023a52
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180023a52
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 0x180023a52
cmp rbx, rdi
je 0x180023a3d
mov rcx, rbx
call fcn.180023880
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180023a5f
mov rcx, rbx
call fcn.180023880
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180023a80
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 0x180023aae
or r9d, 0x20019
mov r8d, r9d
call fcn.180023800
mov rbx, rax
jmp 0x180023ab1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180023b63
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 0x180023b56
cmp dword [rsp + 0x30], 3
jne 0x180023b56
mov ecx, dword [rsp + 0x58]
call fcn.18002f788
mov rdi, rax
test rax, rax
je 0x180023b56
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 0x180023b4e
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 0x180023b47
mov rcx, rbx
call fcn.180023880
mov eax, 1
jmp 0x180023b65
mov rcx, rdi
call fcn.18002f710
cmp rbx, rsi
je 0x180023b63
mov rcx, rbx
call fcn.180023880
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 0x180023b80
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 0x180023bae
or r9d, 0x20019
mov r8d, r9d
call fcn.180023800
mov rbx, rax
jmp 0x180023bb1
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180023ca0
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 0x180023c93
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180023c0a
cmp eax, 2
je 0x180023c0a
cmp eax, 6
je 0x180023c0a
cmp eax, 7
jne 0x180023c93
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.18002f788
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180031540
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 0x180023c7a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180020640
cmp rbx, rdi
je 0x180023c6b
mov rcx, rbx
call fcn.180023880
mov rcx, rsi
call fcn.18002f710
mov eax, 1
jmp 0x180023ca2
mov rcx, rsi
call fcn.18002f710
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800916f0]
call fcn.180020640
cmp rbx, rdi
je 0x180023ca0
mov rcx, rbx
call fcn.180023880
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 0x180023f60
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 0x180023f8e
or r9d, 0x20006
mov r8d, r9d
call fcn.180023830
mov rbx, rax
jmp 0x180023f91
mov rbx, rcx
test rbx, rbx
je 0x180023ff0
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 0x180023fe3
cmp rbx, rdi
je 0x180023fce
mov rcx, rbx
call fcn.180023880
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180023ff0
mov rcx, rbx
call fcn.180023880
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180024010
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 0x18002403e
or r9d, 0x20006
mov r8d, r9d
call fcn.180023830
mov rbx, rax
jmp 0x180024041
mov rbx, rcx
test rbx, rbx
je 0x1800240b8
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 0x1800240ab
cmp rbx, rsi
je 0x180024096
mov rcx, rbx
call fcn.180023880
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x1800240b8
mov rcx, rbx
call fcn.180023880
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x1800240d0
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 0x18002425c
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x180024232
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.18002f788
mov rbx, rax
test rax, rax
je 0x180024258
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
add r8, r8
call fcn.180031540
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 0x180024250
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.180023800
mov rdi, rax
test rax, rax
je 0x180024250
mov edx, esi
mov rcx, rax
call fcn.1800240d0
mov rcx, rdi
test eax, eax
je 0x18002424b
call fcn.180023880
mov r11, qword [0x1800d1618]
test r11, r11
je 0x18002420d
test esi, esi
je 0x18002420d
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180024219
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180024250
dec dword [rsp + 0x98]
jne 0x180024180
mov rcx, rbx
call fcn.18002f710
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.180023880
mov rcx, rbx
call fcn.18002f710
xor eax, eax
jmp 0x180024237
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x180024270
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800242af
mov r8d, r9d
or r8d, 0x2001f
call fcn.180023800
mov rbx, rax
jmp 0x1800242b2
mov rbx, rcx
test rbx, rbx
je 0x180024349
mov rcx, rbx
test rbp, rbp
je 0x1800242e4
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x18002433c
cmp rbx, rdi
je 0x1800242dd
mov rcx, rbx
call fcn.180023880
mov eax, 1
jmp 0x18002434b
mov edx, esi
call fcn.1800240d0
test eax, eax
je 0x18002433c
cmp rbx, rdi
je 0x1800242fc
mov rcx, rbx
call fcn.180023880
mov rax, qword [0x1800d1618]
test rax, rax
je 0x180024325
test esi, esi
je 0x180024325
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x18002434b
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x18002434b
cmp rbx, rdi
je 0x180024349
mov rcx, rbx
call fcn.180023880
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180024270

Function at 0x180024530
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800242af
mov r8d, r9d
or r8d, 0x2001f
call fcn.180023800
mov rbx, rax
jmp 0x1800242b2
mov rbx, rcx
test rbx, rbx
je 0x180024349
mov rcx, rbx
test rbp, rbp
je 0x1800242e4
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x18002433c
cmp rbx, rdi
je 0x1800242dd
mov rcx, rbx
call fcn.180023880
mov eax, 1
jmp 0x18002434b
mov edx, esi
call fcn.1800240d0
test eax, eax
je 0x18002433c
cmp rbx, rdi
je 0x1800242fc
mov rcx, rbx
call fcn.180023880
mov rax, qword [0x1800d1618]
test rax, rax
je 0x180024325
test esi, esi
je 0x180024325
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x18002434b
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x18002434b
cmp rbx, rdi
je 0x180024349
mov rcx, rbx
call fcn.180023880
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180024270

Function at 0x180024540
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.180024530