joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140007274
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400072b7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400072b7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400073c2
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400072fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140007309
movsx ecx, dil
jmp 0x140007363
lea r8, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x98]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x1400073c2
cmp eax, 1
jle 0x14000737d
cmp eax, 3
jne 0x1400073c2
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.140175428
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400073c7
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400073ad
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call fcn.140175d14
cmp rsi, rax
jne 0x1400073c2
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov eax, edi
jne 0x1400073c7
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140007d10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140007d41
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140007dbb
mov rdi, r14
mov rcx, rbx
call fcn.140006a10
test rax, rax
jle 0x140007d93
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1401660b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140007dab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140007db3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140007d55
sub r14, rdi
jmp 0x140007ea8
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140007dd2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007dd4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007e09
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1401660b0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140007ea5
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140007e44
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140007e80
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1401757ac
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140007ec6
cmp rbp, rax
ja 0x140007e50
mov r8, rdi
test rdi, rdi
je 0x140007ea5
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1401757ac
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x140007ea8

Function at 0x140008e10
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
mov rbx, rcx
mov dword [rax + 0x10], 0x101
lea rcx, [rsp + 0x20]
lea rdx, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, rbx
lea rdx, [rsp + 0x20]
test eax, eax
jne 0x140008e47
lea rdx, [0x1401bdc7c]
call fcn.1400230c0
mov rax, rbx
add rsp, 0x130
pop rbx
ret

Function at 0x140026ec0
Capabilities:
Create thread

Disassembly:
mov edx, dword [rcx + 0x180]
jmp fcn.140026b80
Function at 0x14002b4c0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x60]
call fcn.1401666a0
mov edx, 0x105
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14002b530
lea rcx, [rsp + 0x20]
call fcn.140010740
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400156a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010a30
nop
lea rcx, [rsp + 0x20]
call fcn.140010a90
mov rax, rbx
add rsp, 0x270
pop rbx
ret
call fcn.140023440
lea rdx, [rax + 0x18]
mov rcx, rbx
call fcn.1400108f0
mov rax, rbx
add rsp, 0x270
pop rbx
ret

Function at 0x14002b590
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002b5fe
lea rcx, [rsp + 0x20]
call fcn.140010740
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400156a0
mov edx, dword [rsp + 0x38]
dec edx
lea rcx, [rsp + 0x20]
call fcn.140012860
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010a30
nop
lea rcx, [rsp + 0x20]
call fcn.140010a90
mov rax, rbx
add rsp, 0x270
pop rbx
ret
call fcn.140023440
lea rdx, [rax + 0x18]
mov rcx, rbx
call fcn.1400108f0
mov rax, rbx
add rsp, 0x270
pop rbx
ret

Function at 0x14002b710
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x280
mov ebx, edx
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1401666a0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002b786
lea rcx, [rsp + 0x30]
call fcn.140010740
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400156a0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140010a30
nop
lea rcx, [rsp + 0x30]
call fcn.140010a90
jmp 0x14002b797
call fcn.140023440
lea rdx, [rax + 0x18]
mov rcx, rdi
call fcn.1400108f0
mov rax, rdi
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret

Function at 0x14002b8a0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.140015800
mov rcx, rax
call fcn.14017efb0
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x14002c0e0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, rdx
mov rdi, rcx
call fcn.140023440
mov rcx, rdi
lea rdx, [rax + 0x18]
call qword [rbx + 0x10]
test al, al
jne 0x14002c15e
mov rcx, rdi
call fcn.140015800
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14002c15e
mov rcx, rdi
call fcn.140015800
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
jne 0x14002c14b
test rsi, rsi
je 0x14002c14b
mov r8, qword [rsi]
mov rdx, rdi
mov rcx, rsi
call qword [r8 + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c280
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rdi, rdx
mov rsi, rcx
call fcn.140023440
mov rcx, rsi
lea rdx, [rax + 0x18]
call qword [rbx + 0x10]
test al, al
je 0x14002c2bd
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor bl, bl
test rdi, rdi
je 0x14002c2c6
mov byte [rdi], bl
xor eax, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov dword [rsp + 0x30], eax
call fcn.1400158e0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002c322
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setg bl
test eax, eax
jle 0x14002c313
test rdi, rdi
je 0x14002c313
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setg cl
mov byte [rdi], cl
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.140145620
mov rsi, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002cd90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rsi, r8
movzx r15d, dl
mov r12, rcx
xor edi, edi
mov dword [rbp + 0x5c8], 0x2a005c
mov word [rbp + 0x5cc], di
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400230c0
nop
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.1400230c0
nop
lea rcx, [rbp - 0x28]
call fcn.140015800
mov rcx, rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14002ce00
mov ebx, 0x102
sub rbx, rax
lea rcx, [rsp + 0x38]
call fcn.140015800
mov rdx, rax
mov r8, rbx
lea rcx, [rbp + 0x370]
call fcn.14017e4e4
mov word [rbp + 0x576], di
lea rcx, [rbp + 0x370]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x14002ce40
lea r8, [rbp + 0x5c8]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14002ce60
test r15b, r15b
jne 0x14002ceb2
test rsi, rsi
je 0x14002ceb2
lea rcx, [rbp - 0x28]
call fcn.140015800
mov r8, rax
lea rcx, [rbp + 0x370]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x14002ce93
xor edx, edx
nop
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14002cea0
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14002cf64
cmp word [rbp + 0x3c], 0x2e
jne 0x14002ceed
movzx eax, word [rbp + 0x3e]
test ax, ax
je 0x14002cf45
cmp ax, 0x2e
jne 0x14002ceed
cmp word [rbp + 0x40], 0
je 0x14002cf45
mov ebx, dword [rbp + 0x10]
and ebx, 0x10
lea rcx, [rsp + 0x70]
call fcn.140022db0
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x3c]
call fcn.1400156a0
test rsi, rsi
je 0x14002cf97
mov r8b, 1
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.140014c80
test al, al
je 0x14002cf3b
test ebx, ebx
jne 0x14002cf3b
mov ecx, dword [rbp + 0x2c]
shl rcx, 0x20
mov eax, dword [rbp + 0x30]
add rcx, rax
add rdi, rcx
lea rcx, [rsp + 0x70]
call fcn.140023130
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002ced0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x40]
call fcn.140023130
nop
lea rcx, [rsp + 0x20]
call fcn.140023130
mov rax, rdi
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test ebx, ebx
je 0x14002cf2b
test r15b, r15b
je 0x14002cf2b
mov r8d, 0x104
mov rdx, r12
lea rcx, [rbp + 0x260]
call fcn.140176c60
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x3c]
call fcn.1400156a0
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r8, qword [rsp + 0x40]
mov edx, 0x104
lea rcx, [rbp + 0x260]
call fcn.14003e360
mov r8, rsi
movzx edx, r15b
lea rcx, [rbp + 0x260]
call fcn.14002cd90
add rdi, rax
jmp 0x14002cf3b
Function at 0x140033ed0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
cmp qword [r8 + 0x20], 0x10
lea rax, [r8 + 8]
movzx ebx, r9b
mov rdi, r8
mov rsi, rdx
jb 0x140033ef7
mov rax, qword [rax]
test rax, rax
je 0x140034011
cmp qword [rdx + 0x20], 0x10
lea rax, [rdx + 8]
jb 0x140033f0e
mov rax, qword [rax]
test rax, rax
je 0x140034011
mov dword [rsp + 0x80], 0
call fcn.140015800
mov rdx, rax
mov rcx, rbx
lea rax, [rsp + 0x80]
xor rcx, 1
mov qword [rsp + 0x40], rax
sub rcx, 0x7fffffff
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140034011
cmp dword [rdi + 0x18], eax
je 0x140033fd5
mov rbx, qword [rdi]
call fcn.140023440
mov rcx, rdi
lea rdx, [rax + 0x18]
call qword [rbx + 0x10]
test al, al
jne 0x140033fd5
mov rcx, rdi
call fcn.1400159c0
mov ebx, eax
mov rcx, rdi
add ebx, ebx
call fcn.140015800
mov rdi, rax
test rax, rax
jne 0x140033fbc
lea rdi, [0x1401bf844]
jmp 0x140033fdc
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0
je 0x140033fde
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rdi, [0x1401bf840]
xor ebx, ebx
mov rcx, rsi
call fcn.140015800
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140034030
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x60
cmp qword [rdx + 0x20], 0x10
lea rax, [rdx + 8]
movzx edi, r9b
mov rbx, rdx
jb 0x140034054
mov rax, qword [rax]
test rax, rax
je 0x1400340f7
mov dword [rsp + 0x78], 0
call fcn.140015800
mov rdx, rax
mov rcx, rdi
lea rax, [rsp + 0x78]
xor rcx, 1
mov qword [rsp + 0x40], rax
sub rcx, 0x7fffffff
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400340f7
mov rcx, rbx
call fcn.140015800
mov rcx, qword [rsp + 0x50]
mov rdx, rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140034110
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov rdx, r9
mov rcx, rdi
call fcn.1400108f0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x270], 1
mov rcx, rbx
call fcn.140015800
mov rdx, rax
movzx ecx, byte [rsp + 0x290]
xor rcx, 1
sub rcx, 0x7fffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400341f0
mov word [rsp + 0x40], bp
mov dword [rsp + 0x290], 0x208
mov rcx, rsi
call fcn.140015800
mov rdx, rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x270]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400341e5
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400156a0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x140034210
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x20], 0x10
lea rax, [rdx + 8]
movzx esi, r9b
mov ebx, r8d
mov rdi, rdx
jb 0x140034237
mov rax, qword [rax]
test rax, rax
jne 0x14003424e
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x34], 1
call fcn.140015800
mov rdx, rax
mov rcx, rsi
xor rcx, 1
lea rax, [rsp + 0x38]
sub rcx, 0x7fffffff
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400342df
mov rcx, rdi
mov dword [rsp + 0x30], 4
call fcn.140015800
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov rdx, rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x58]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400343a0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
movzx ebx, r8b
mov rdi, rdx
call fcn.140015800
mov rdx, rax
mov ecx, ebx
xor rcx, 1
lea rax, [rsp + 0x40]
sub rcx, 0x7fffffff
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034417
mov rcx, rdi
call fcn.140015800
mov rcx, qword [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140034860
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x17a0]
mov eax, 0x18a0
call fcn.140145640
sub rsp, rax
movzx esi, r8b
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x68]
call fcn.140010740
nop
lea rcx, [rsp + 0x30]
call fcn.140010740
nop
lea rdx, str.Software
lea rcx, [rbp - 0x60]
call fcn.140035150
add rbx, 8
cmp qword [rbx + 0x18], 0x10
jb 0x1400348bb
mov rbx, qword [rbx]
lea rcx, [rbp + 0x7a0]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400348d0
lea r8, [rbp + 0x7a0]
nop word [rax + rax]
mov rbx, r8
mov edx, 0x2f
mov rcx, r8
call fcn.140166568
mov r8, rax
test rax, rax
je 0x140034961
mov byte [rax], 0
add r8, 1
je 0x140034961
lea rcx, [rbp - 0x60]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140034920
movzx eax, word [0x1401bf854]
mov word [rcx], ax
lea rax, [rbp - 0x60]
dec rax
nop word [rax + rax]
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x140034940
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140034950
jmp 0x1400348f0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x68]
call fcn.140013950
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140013950
mov qword [rbp + 0x17d8], 0
lea rcx, [rsp + 0x68]
call fcn.140015800
mov rdx, rax
mov rcx, rsi
xor rcx, 1
sub rcx, 0x7fffffff
lea rax, [rbp + 0x17d8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034a82
cmp qword [rbp + 0x17d8], 0
je 0x140034a82
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x7a0]
call fcn.1401666a0
mov dword [rbp + 0x17c0], 0x1000
mov dword [rbp + 0x17d0], 1
lea rcx, [rsp + 0x30]
call fcn.140015800
mov rdx, rax
lea rax, [rbp + 0x17c0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7a0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x17d0]
xor r8d, r8d
mov rcx, qword [rbp + 0x17d8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rbp + 0x17d0], 1
jne 0x140034a67
cmp dword [rbp + 0x17c0], 0
jbe 0x140034a67
mov rdx, rdi
lea rcx, [rbp + 0x7a0]
call fcn.1400156a0
mov rcx, qword [rbp + 0x17d8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140034a8f
lea rcx, str.VRegistry::ReadStringForKeyAbsolute:_Registry_read_error__value_not_found.
call fcn.14003a610
mov rcx, qword [rbp + 0x17d8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140034a8f
lea rcx, str.VRegistry::ReadStringForKeyAbsolute:_Registry_read_error__key_not_found.
call fcn.14003a610
nop
lea rcx, [rsp + 0x30]
call fcn.140010a90
nop
lea rcx, [rsp + 0x68]
call fcn.140010a90
mov rbx, qword [rsp + 0x18c8]
add rsp, 0x18a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034ac0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x17c0]
mov eax, 0x18c0
call fcn.140145640
sub rsp, rax
movzx esi, r8b
mov rdi, rdx
mov rbx, rcx
lea rcx, [rbp - 0x78]
call fcn.140010740
nop
lea rcx, [rsp + 0x50]
call fcn.140010740
nop
lea rdx, str.Software
lea rcx, [rbp - 0x40]
call fcn.140035150
add rbx, 8
cmp qword [rbx + 0x18], 0x10
jb 0x140034b1a
mov rbx, qword [rbx]
lea rcx, [rbp + 0x7c0]
sub rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140034b30
lea r8, [rbp + 0x7c0]
nop word [rax + rax]
mov rbx, r8
mov edx, 0x2f
mov rcx, r8
call fcn.140166568
mov r8, rax
test rax, rax
je 0x140034bc1
mov byte [rax], 0
add r8, 1
je 0x140034bc1
lea rcx, [rbp - 0x40]
dec rcx
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140034b80
movzx eax, word [0x1401bf854]
mov word [rcx], ax
lea rax, [rbp - 0x40]
dec rax
nop word [rax + rax]
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x140034ba0
xor edx, edx
nop dword [rax + rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140034bb0
jmp 0x140034b50
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x78]
call fcn.140013950
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140013950
xor ebx, ebx
mov qword [rbp + 0x17e0], rbx
lea rcx, [rbp - 0x78]
call fcn.140015800
mov rdx, rax
mov rcx, rsi
xor rcx, 1
sub rcx, 0x7fffffff
lea rax, [rbp + 0x17f0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x17e0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140034ce3
cmp qword [rbp + 0x17e0], rbx
je 0x140034ce3
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x7c0]
call fcn.1401666a0
mov rcx, rdi
call fcn.140015800
lea rdx, [rbp + 0x7c0]
sub rdx, rax
nop
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140034c70
lea rcx, [rbp + 0x7c0]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x140034c90
lea ebx, [rax*2 + 1]
lea rcx, [rsp + 0x50]
call fcn.140015800
mov rdx, rax
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x7c0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x17e0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x17e0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140034cf0
lea rcx, str.VRegistry::WriteStringForKeyAbsolute:_Registry_read_error__key_not_found.
call fcn.14003a610
nop
lea rcx, [rsp + 0x50]
call fcn.140010a90
nop
lea rcx, [rbp - 0x78]
call fcn.140010a90
mov rbx, qword [rsp + 0x18e8]
add rsp, 0x18c0
pop rdi
pop rsi
pop rbp
ret