joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029dc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x104
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ebx, dil
test eax, eax
mov ecx, 1
lea rax, [0x1400ad318]
cmovne ebx, ecx
lea rdx, [rsp + 0x20]
test bl, bl
cmove rdx, rax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.140001870
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140029e60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x104
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
movzx ebx, dil
test eax, eax
mov ecx, 1
lea rax, [0x1400ad318]
cmovne ebx, ecx
lea rdx, [rsp + 0x20]
test bl, bl
cmove rdx, rax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.140001870
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002dcb0
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x28], 7
xor esi, esi
mov qword [r11 - 0x30], rsi
mov word [rsp + 0x58], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [r11 - 0x48]
call fcn.140001500
lea rcx, [rsp + 0x50]
call fcn.14002dbd0
test al, al
je 0x14002dd21
mov dil, 1
jmp 0x14002de5a
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001500
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140003d00
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140001500
nop
cmp qword [rsp + 0x40], 8
jb 0x14002dd7d
mov rcx, qword [rsp + 0x28]
call fcn.140065920
mov r9d, 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400ad338]
mov rcx, rbx
call fcn.14000a520
cmp rax, 0xffffffffffffffff
je 0x14002de3b
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002130
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001500
nop
cmp qword [rsp + 0x40], 8
jb 0x14002ddee
mov rcx, qword [rsp + 0x28]
call fcn.140065920
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140001500
lea rcx, [rsp + 0x20]
call fcn.14002dcb0
movzx edi, al
cmp qword [rsp + 0x70], 8
jb 0x14002de36
mov rcx, qword [rsp + 0x58]
call fcn.140065920
test dil, dil
je 0x14002de5a
cmp qword [rbx + 0x20], 8
jb 0x14002de48
mov rcx, qword [rbx + 8]
jmp 0x14002de4c
lea rcx, [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne dil
cmp qword [rbx + 0x20], 8
jb 0x14002de6a
mov rcx, qword [rbx + 8]
call fcn.140065920
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rsi
mov word [rbx + 8], si
mov al, dil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140031b00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x240
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov bl, 1
mov edi, 0x8000ffff
call fcn.140065de0
mov ebp, 0x5c
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.140066df0
xor r12d, r12d
mov rsi, rax
test rax, rax
je 0x140031ba9
nop dword [rax]
test bl, bl
je 0x140031bd6
lea rcx, [rsp + 0x20]
xor edx, edx
mov word [rsi], r12w
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
xor edx, edx
mov edi, eax
call fcn.140067f44
lea rcx, [rsi + 2]
mov edx, ebp
cmp eax, 0xffffffff
mov word [rsi], bp
setne bl
call fcn.140066df0
mov rsi, rax
test rax, rax
jne 0x140031b60
test bl, bl
je 0x140031bd6
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
xor edx, edx
mov edi, eax
call fcn.140067f44
cmp eax, 0xffffffff
setne bl
test bl, bl
cmovne edi, r12d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140032710
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1040
call fcn.14009a1c0
sub rsp, rax
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, rcx
lea rax, [rsp + 0x1060]
mov r9, rdx
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x7ff
mov qword [rsp + 0x20], rax
call fcn.140065d54
cmp eax, 0x1000
setb al
test al, al
jne 0x14003278e
mov eax, 0x2e
mov word [rsp + 0x1028], ax
mov word [rsp + 0x102a], ax
mov word [rsp + 0x102c], ax
test byte [rbx], 1
jne 0x14003279c
cmp byte [rbx + 0x470], 0
je 0x1400327a9
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140032aa0
test byte [rbx], 2
je 0x1400327c5
lea r8, str.Log_Message
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
test byte [rbx], 4
je 0x1400327d5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, 1
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140064b70
add rsp, 0x1040
pop rbx
ret

Function at 0x140032aa0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov rbx, rcx
xor dil, dil
mov qword [r11 - 0x30], 7
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov word [rsp + 0x60], bp
xor r8d, r8d
lea rdx, [0x1400ad318]
lea rcx, [r11 - 0x50]
call fcn.140001870
nop
test rsi, rsi
je 0x140032b50
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400080f0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140001500
nop
cmp qword [rsp + 0x50], 8
jb 0x140032b36
mov rcx, qword [rsp + 0x38]
call fcn.140065920
mov r8d, 1
lea rdx, [0x1400b1310]
lea rcx, [rsp + 0x58]
call fcn.14000a130
mov dil, 1
mov qword [rsp + 0x20], rbp
cmp byte [rbx + 6], 0
jne 0x140032b6d
cmp byte [rbx + 0x470], 0
jne 0x140032b6d
lea r8, str.wt__ccsUTF_8
jmp 0x140032b74
lea r8, str.at__ccsUTF_8
cmp byte [rbx + 0x470], 0
je 0x140032b99
cmp qword [rbx + 0x468], 8
jb 0x140032b90
mov rdx, qword [rbx + 0x450]
jmp 0x140032b9d
lea rdx, [rbx + 0x450]
jmp 0x140032b9d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.1400682f4
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140032bf4
test dil, dil
je 0x140032bf4
test eax, eax
jne 0x140032bf4
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea edx, [rax + 2]
call fcn.140069068
mov rcx, qword [rsp + 0x20]
call fcn.140068e7c
mov rcx, qword [rsp + 0x20]
call fcn.140068ad0
mov byte [rbx + 6], 1
mov bl, 1
jmp 0x140032bf6
xor bl, bl
cmp qword [rsp + 0x78], 8
jb 0x140032c0c
mov rcx, qword [rsp + 0x60]
call fcn.140065920
mov al, bl
jmp 0x140032c0e
mov al, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140064b70
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033230
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rsp + 0x70]
mov rbx, r9
mov rdi, r8
test rsi, rsi
je 0x140033358
cmp byte [rsp + 0x78], 0
mov eax, 0x20219
mov r9d, 0x20019
cmovne r9d, eax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003335d
mov eax, dword [rsi]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov edi, eax
mov eax, dword [rsp + 0x30]
test edi, edi
jne 0x1400332e7
cmp ecx, dword [rsi]
mov edx, 0xea
mov dword [rsi], ecx
cmova edi, edx
test edi, edi
jne 0x1400332e7
cmp eax, 1
je 0x1400332e7
cmp eax, 2
je 0x1400332e7
cmp eax, 7
je 0x1400332f0
mov edi, 0x545
cmp eax, 7
jne 0x14003333b
test edi, edi
jne 0x14003333b
test ecx, ecx
je 0x14003333b
shr ecx, 1
xor edx, edx
mov edi, 0x545
mov dword [rsp + 0x70], ecx
dec ecx
mov eax, edx
je 0x14003333b
cmp dx, word [rbx]
jne 0x140033312
cmp dx, word [rbx + 2]
je 0x140033339
inc eax
add rbx, 2
cmp eax, ecx
jb 0x140033307
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov edi, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0xd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140033370
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
mov edi, 0x20019
mov eax, 0x20219
cmp byte [rsp + 0xb0], 0
cmovne edi, eax
mov qword [r11 - 0x20], 7
xor r14d, r14d
mov qword [r11 - 0x28], r14
mov word [r11 - 0x38], r14w
lea r8, [r11 - 0x40]
xor edx, edx
mov rcx, r9
call fcn.140038cb0
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, edi
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140033590
mov dword [rsp + 0x30], 7
mov dword [rsp + 0xb0], r14d
mov rsi, r14
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x1400334a5
cmp dword [rsp + 0x30], 7
je 0x14003344c
mov ebp, 0x545
jmp 0x1400334a5
mov eax, dword [rsp + 0xb0]
test eax, eax
je 0x1400334a5
mov rcx, rax
mov edx, 1
call fcn.1400672d4
mov rsi, rax
test rax, rax
jne 0x140033471
lea ebp, [rax + 8]
jmp 0x1400334a5
cmp dword [rsp + 0xb0], r14d
je 0x1400334a5
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
mov edi, dword [rsp + 0xb0]
shr edi, 1
test ebp, ebp
jne 0x140033576
test edi, edi
je 0x140033576
mov ecx, r14d
lea edx, [rdi - 1]
test edx, edx
je 0x1400334ee
mov rax, rsi
nop dword [rax + rax]
cmp r14w, word [rax]
jne 0x1400334dd
cmp r14w, word [rax + 2]
je 0x1400334e9
inc ecx
add rax, 2
cmp ecx, edx
jae 0x1400334ee
jmp 0x1400334d0
mov ebp, r14d
jmp 0x1400334f6
mov word [rsi + rdx*2], r14w
mov ebp, r14d
mov rbx, rsi
cmp word [rsi], r14w
je 0x140033576
lea r12, [rsi + rdi*2 - 2]
cmp rbx, r12
jae 0x140033576
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140001870
nop
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.140009190
nop
cmp qword [rsp + 0x68], 8
jb 0x14003355e
mov rcx, qword [rsp + 0x50]
call fcn.140065920
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
cmp word [rbx], ax
jne 0x140033504
test rsi, rsi
je 0x140033583
mov rcx, rsi
call fcn.14006664c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400340d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x40
mov rbx, r9
mov eax, 0x20206
mov r9d, 0x20006
mov rsi, r8
xor bpl, bpl
cmp byte [rsp + 0x78], bpl
cmovne r9d, eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003417a
mov r9d, dword [rsp + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x50], rdi
mov rdi, rbx
xor r8d, r8d
repne scasw ax, word [rdi]
mov rdx, rsi
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
movzx edi, bpl
cmove edi, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rbx, qword [rsp + 0x58]
mov al, bpl
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret

Function at 0x1400342d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov eax, 0x20219
mov r9d, 0x20019
mov rdi, r8
xor sil, sil
cmp byte [rsp + 0x70], sil
cmovne r9d, eax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034373
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
movzx ebx, sil
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov al, sil
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400343c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rbx, r8
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor dil, dil
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034448
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
movzx ebx, dil
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov al, dil
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140034490
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov eax, 0x20206
mov r9d, 0x20006
mov rbx, r8
xor dil, dil
mov rcx, 0xffffffff80000002
cmp byte [rsp + 0x70], dil
cmovne r9d, eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034526
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 0xb
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
movzx ebx, dil
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov al, dil
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140034570
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov eax, 0x20206
mov r9d, 0x20006
mov rdi, r8
xor sil, sil
mov rcx, 0xffffffff80000002
cmp byte [rsp + 0x80], sil
cmovne r9d, eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003460b
mov eax, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
movzx ebx, sil
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov al, sil
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400347c0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
test r8b, r8b
mov eax, 0x2021f
mov r9d, 0x2001f
cmovne r9d, eax
lea rax, [rsp + 0x58]
mov rbx, rdx
mov rdx, rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14003481d
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp edi, 2
cmove edi, ebx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
test edi, edi
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x140034840
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rbp, rcx
lea r13d, [r9 + 1]
mov r12, rdx
mov r10d, r13d
mov rcx, 0xffffffffffffffff
mov eax, 2
mov edi, r8d
mul r10
cmovo rax, rcx
mov rcx, rax
call fcn.140067ea4
test rax, rax
mov rsi, rax
setne bl
test bl, bl
je 0x140034963
dec edi
js 0x14003495b
mov qword [rsp + 0x90], r14
xor r14d, r14d
nop
test bl, bl
je 0x140034953
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0xa8]
mov r8, rsi
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov dword [rsp + 0xa8], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400348e2
xor bl, bl
jmp 0x14003494a
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov rcx, r12
mov dword [rsp + 0x28], 0x20006
xor bl, bl
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003492d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
test bl, bl
je 0x14003494a
mov r9, rsi
mov r8, r12
mov rdx, rsi
mov rcx, rbp
mov byte [rsp + 0x20], r14b
call fcn.140034c00
movzx ebx, al
sub edi, 1
jns 0x1400348a0
mov r14, qword [rsp + 0x90]
mov rcx, rsi
call fcn.140067eac
mov al, bl
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140034980
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
lea rax, [r11 + 0x20]
mov rbp, rdx
xor edi, edi
mov qword [r11 - 0x20], rax
lea r9, [r11 - 0x18]
xor r8d, r8d
mov rdx, rsi
mov rbx, rcx
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x68], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x68]
cmp eax, 0xea
je 0x1400349da
test eax, eax
jne 0x140034a10
test ecx, ecx
je 0x140034a0e
call fcn.140067ea4
mov rdi, rax
test rax, rax
je 0x140034a4a
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x68]
test eax, eax
sete bl
test bl, bl
je 0x140034a39
mov r9d, dword [rsp + 0x30]
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test rdi, rdi
je 0x140034a46
mov rcx, rdi
call fcn.140067eac
mov al, bl
jmp 0x140034a4c
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140034a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbp, rcx
lea r13d, [r9 + 1]
mov r12, rdx
mov r10d, r13d
mov rcx, 0xffffffffffffffff
mov eax, 2
mov edi, r8d
mul r10
cmovo rax, rcx
mov rcx, rax
call fcn.140067ea4
mov rsi, rax
test rax, rax
je 0x140034b3a
dec edi
mov qword [rsp + 0x70], rbx
mov bl, 1
js 0x140034b1f
mov qword [rsp + 0x78], r14
xor r14d, r14d
test bl, bl
je 0x140034b1a
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x88]
mov r8, rsi
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x88], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140034b04
xor bl, bl
jmp 0x140034b15
mov r8, rsi
mov rdx, r12
mov rcx, rbp
call fcn.140034980
movzx ebx, al
sub edi, 1
jns 0x140034ac6
mov r14, qword [rsp + 0x78]
mov rcx, rsi
call fcn.140067eac
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140035600
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x2a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbp, r8
mov qword [rsp + 0x70], 7
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbp
call fcn.140038cb0
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035746
mov ebx, r12d
nop word [rax + rax]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov edx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jne 0x140035731
cmp dword [rsp + 0x40], eax
je 0x140035731
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140001870
nop
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140009190
nop
cmp qword [rsp + 0x70], 8
jb 0x140035731
mov rcx, qword [rsp + 0x58]
call fcn.140065920
inc ebx
test esi, esi
je 0x140035690
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x20]
sub rcx, qword [rbp + 0x18]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rax, rdx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret