joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c770
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rsi, rcx
test rcx, rcx
je 0x14000c916
cmp qword [rcx], 0
jne 0x14000c916
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.1400376d0
lea rax, [rsp + 0x78]
mov dword [rbp + 0x5d8], 0x104
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x5d8]
lea rax, [rbp + 0x5e8]
xor r14d, r14d
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x390]
lea rax, [rsp + 0x60]
mov dword [rbp + 0x5d0], r14d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x64]
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x5d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000c916
mov eax, dword [rbp + 0x5d0]
test eax, eax
je 0x14000c909
mov edi, r14d
nop
lea rax, [rsp + 0x78]
mov dword [rbp + 0x5e0], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x5e0]
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x70]
mov qword [rsp + 0x28], r14
mov edx, edi
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000c8fb
lea r8, [rbp - 0x70]
mov edx, 0xff
lea rcx, [rbp + 0x190]
call fcn.14004126c
lea rcx, [0x1400729a0]
call fcn.140008e10
mov r8, rax
lea rcx, [rbp + 0x190]
mov edx, 0xff
mov rbx, rax
call fcn.1400411ec
mov rcx, rbx
call fcn.140038520
lea rax, [rbp - 0x80]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x190]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c926
inc edi
cmp edi, dword [rbp + 0x5d0]
jb 0x14000c850
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x6a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
cmp word [rax + rbx*2 + 2], r14w
lea rbx, [rbx + 1]
jne 0x14000c931
mov edx, 2
lea rcx, [rbx + 1]
call fcn.14003853c
lea r8, [rbp - 0x70]
mov qword [rsi], rax
lea rdx, [rbx + 1]
mov rcx, rax
call fcn.14004126c
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x6a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000ca70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x70
mov rsi, rcx
mov qword [rcx], 0xffffffffffffffff
lea rax, [rsp + 0x98]
mov rcx, 0xffffffff80000003
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140072b28]
call fcn.14001de10
test eax, eax
je 0x14000cab5
xor al, al
add rsp, 0x70
pop rsi
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rdi
xor dil, dil
call fcn.140009460
mov rbx, rax
test rax, rax
je 0x14000cb87
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x88]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x80], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000cb7f
mov edx, dword [0x140071050]
mov rcx, qword [0x140071058]
mov qword [rsp + 0x90], 0
call fcn.14000ef50
mov edx, dword [rsp + 0x80]
lea r9, [rsp + 0x90]
mov r8, rax
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.14000e240
mov edx, dword [0x140071050]
lea rcx, [rsp + 0x30]
call fcn.14000ae20
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000cb7f
mov rax, qword [rcx]
mov dil, 1
mov qword [rsi], rax
call fcn.140038520
mov rcx, rbx
call fcn.140038520
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
movzx eax, dil
mov rdi, qword [rsp + 0x60]
add rsp, 0x70
pop rsi
ret

Function at 0x14000cc60
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140072b08]
mov rcx, 0xffffffff80000003
call fcn.14001de10
test eax, eax
je 0x14000cc9b
mov eax, 2
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x30], rsi
mov edi, 2
call fcn.140009460
mov rsi, rax
test rax, rax
je 0x14000ccfd
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call fcn.140038520
test ebx, ebx
mov rbx, qword [rsp + 0x38]
cmove edi, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x14000d370
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
lea rcx, [0x140072b28]
call fcn.14001e310
mov rbx, rax
test rax, rax
jne 0x14000d394
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x38], rsi
xor sil, sil
mov qword [rsp + 0x30], rdi
call fcn.140009460
mov rdi, rax
test rax, rax
je 0x14000d44e
mov edx, dword [0x140071050]
mov rcx, qword [0x140071058]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x58], 0
call fcn.14000ef50
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov r8, rax
lea rcx, [rsp + 0x50]
mov edx, 8
call fcn.14000e570
mov edx, dword [0x140071050]
lea rcx, [rsp + 0x60]
mov rbp, rax
call fcn.14000ae20
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000d441
mov dword [rsp + 0x28], ebp
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
movzx esi, sil
test eax, eax
cmove esi, ecx
mov rcx, qword [rsp + 0x58]
call fcn.140038520
mov rcx, rdi
call fcn.140038520
mov rbp, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x30]
movzx eax, sil
mov rsi, qword [rsp + 0x38]
add rsp, 0x40
pop rbx
ret

Function at 0x14000d4b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov rbx, rdx
mov rdi, rcx
call fcn.14001e310
mov r14, rax
test rax, rax
je 0x14000d5fe
mov rdx, rbx
mov rcx, rdi
call fcn.14001ee10
lea ecx, [rax + 1]
call fcn.14001d140
mov rsi, rax
test rax, rax
je 0x14000d5fe
mov rdi, 0xffffffffffffffff
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14000d510
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000d520
add rcx, rax
lea rcx, [rcx*2 + 2]
call fcn.140038534
mov rbp, rax
test rax, rax
je 0x14000d5fe
mov rdx, rax
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rbx]
mov word [rdx + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x14000d550
lea rcx, [rax - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000d564
xor edx, edx
movzx eax, word [rsi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000d571
mov rcx, rsi
call fcn.140038520
mov r8d, dword [0x140071050]
mov rcx, r15
mov rdx, qword [0x140071058]
call fcn.14000f300
mov rbx, rax
test rax, rax
je 0x14000d5e9
nop dword [rax + rax]
cmp word [rax + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x14000d5b0
lea eax, [rdi*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call fcn.140038520
mov rcx, rbp
call fcn.140038520
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14000d600
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000e0a0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r14, rcx
mov rbx, rdx
mov ecx, 0x20
call fcn.140038534
mov rsi, rax
test rax, rax
je 0x14000e214
mov rcx, rax
call fcn.140004b90
test al, al
je 0x14000e214
mov rdx, qword [r14 + 8]
mov r14, qword [r14]
movsxd rbp, dword [rdx]
mov edx, 1
lea rcx, [rbp + 1]
call fcn.14003853c
mov r15, rax
test rax, rax
je 0x14000e214
test ebp, ebp
jle 0x14000e11a
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.1400372c0
mov byte [r15 + rbp], 0
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x50], ebp
nop
cmp word [rbx + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x14000e130
lea rcx, [rdi + 1]
mov edx, 2
call fcn.14003853c
mov r14, rax
test rax, rax
je 0x14000e204
mov rdx, rax
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rbx]
mov word [rdx + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x14000e160
xor ecx, ecx
mov qword [rsp + 0x48], r14
mov word [rax + rdi*2], cx
lea r8, [rsp + 0x40]
lea eax, [rdi*2 + 2]
xor r9d, r9d
mov dword [rsp + 0x40], eax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x14000e204
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rcx]
mov eax, dword [rcx + 8]
mov r8d, dword [rcx + 4]
add eax, r9d
add eax, r8d
cmp dword [rsp + 0x60], eax
jb 0x14000e204
mov edx, dword [rcx + 0x14]
lea rbp, [rcx + r9]
add rbp, r8
lea rbx, [rcx + 0x24]
shr edx, 1
je 0x14000e204
mov edi, edx
mov ecx, dword [rbx]
add rcx, rbp
call fcn.14003fa28
test rax, rax
je 0x14000e1fa
mov rdx, rax
mov rcx, rsi
call fcn.140004950
add rbx, 0x10
sub rdi, 1
jne 0x14000e1e0
mov rcx, r14
call fcn.140038520
mov rcx, r15
call fcn.140038520
lea r11, [rsp + 0x70]
mov rax, rsi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14000ef50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, rcx
test rcx, rcx
jne 0x14000ef72
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
mov edx, 1
call fcn.14003853c
xor r9d, r9d
mov r10, rax
test edi, edi
jle 0x14000efba
mov r8, rax
sub rbx, rax
nop
movzx ecx, byte [rbx + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx - 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, edi
jl 0x14000ef90
mov rbx, qword [rsp + 0x30]
mov rax, r10
add rsp, 0x20
pop rdi
ret
Function at 0x14000f370
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, rcx
test rcx, rcx
jne 0x14000f392
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
mov edx, 1
call fcn.14003853c
xor r9d, r9d
mov r10, rax
test edi, edi
jle 0x14000f3da
mov r8, rax
sub rbx, rax
nop
movzx ecx, byte [rbx + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx + 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, edi
jl 0x14000f3b0
mov rbx, qword [rsp + 0x30]
mov rax, r10
add rsp, 0x20
pop rdi
ret

Function at 0x140014610
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov r15, rcx
mov ebp, r9d
mov ecx, 0x28
mov rsi, r8
mov r14, rdx
call fcn.140038534
mov rbx, rax
test rax, rax
je 0x14001471e
xor r8d, r8d
mov qword [rsp + 0x60], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ecx, ecx
mov qword [rbx], r14
mov rdi, rax
mov qword [rbx + 0x20], rax
lea rax, [rsp + 0x30]
mov qword [rbx + 8], rsi
mov qword [rsp + 0x28], rax
mov r9, rbx
mov r8, r15
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140014711
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400146fa
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov r8d, dword [0x140054020]
mov edx, 1
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
call fcn.140015f90
movzx eax, byte [0x1400711d0]
test al, al
je 0x1400146fa
lea r8, [0x140073858]
xor ecx, ecx
lea rdx, [0x140072028]
call fcn.14000ab30
test rdi, rdi
je 0x140014708
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140038520
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x14001ce70
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14001d0b7
push r14
sub rsp, 0x60
mov qword [rsp + 0x80], rbx
mov r14, rcx
mov rcx, qword [rcx]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x58], rsi
test rcx, rcx
je 0x14001ceac
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14001cea1
jmp 0x14001ceae
xor eax, eax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14001cecb
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x14001cec0
jmp 0x14001cecd
xor ecx, ecx
lea rdx, [rcx + rax]
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x14001ceeb
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001cee0
jmp 0x14001ceed
xor eax, eax
mov rcx, qword [r14 + 0x18]
lea r8, [rdx + rax]
test rcx, rcx
je 0x14001cf0b
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001cf00
jmp 0x14001cf0d
xor eax, eax
mov rcx, qword [r14 + 0x20]
lea rdx, [r8 + rax]
test rcx, rcx
je 0x14001cf2b
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001cf20
jmp 0x14001cf2d
xor eax, eax
mov rcx, qword [r14 + 0x28]
lea r8, [rdx + rax]
test rcx, rcx
je 0x14001cf4b
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001cf40
jmp 0x14001cf4d
xor eax, eax
mov rcx, qword [r14 + 0x30]
lea rdx, [r8 + rax]
test rcx, rcx
je 0x14001cf6b
mov rax, rbx
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14001cf60
jmp 0x14001cf6d
xor eax, eax
lea rcx, [rax + 0x37]
add rcx, rdx
call fcn.140038534
mov rsi, rax
test rax, rax
je 0x14001d0a4
mov rcx, qword [r14 + 0x30]
lea r8, [0x14005e731]
mov rax, qword [r14 + 0x20]
test rcx, rcx
mov r11, r8
mov qword [rsp + 0x50], rdi
mov rdi, r8
mov r10, r8
cmovne rdi, rcx
mov rdx, r8
mov rcx, qword [r14 + 0x28]
mov r9, r8
test rcx, rcx
mov qword [rsp + 0x40], rdi
cmovne r11, rcx
test rax, rax
mov qword [rsp + 0x38], r11
mov rcx, r8
cmovne r10, rax
mov rax, qword [r14 + 0x18]
test rax, rax
mov qword [rsp + 0x30], r10
cmovne rdx, rax
mov rax, qword [r14 + 0x10]
test rax, rax
mov qword [rsp + 0x28], rdx
lea rdx, [0x140074098]
cmovne rcx, rax
mov rax, qword [r14 + 8]
test rax, rax
mov qword [rsp + 0x20], rcx
mov rcx, rsi
cmovne r9, rax
mov rax, qword [r14]
test rax, rax
cmovne r8, rax
call fcn.14000f3f0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], 0
cmp byte [rsi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14001d025
lea rdx, [rbx + 1]
xor r8d, r8d
lea r9, [rsp + 0x70]
mov rcx, rsi
call fcn.14000e570
mov rbx, rax
test rax, rax
je 0x14001d092
cmp qword [rsp + 0x70], 0
je 0x14001d092
mov rdx, qword [0x140071040]
lea r8, [0x1400740d0]
lea rcx, [rsp + 0x78]
call fcn.14003f6cc
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x14001d092
mov rcx, qword [rsp + 0x70]
mov r8, rbx
mov edx, 1
call fcn.14003f4c0
mov rcx, qword [rsp + 0x78]
call fcn.14003ada4
mov rcx, qword [rsp + 0x70]
call fcn.140038520
mov rcx, rsi
call fcn.140038520
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x58]
add rsp, 0x60
pop r14
ret
Function at 0x14001df20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rdi, r9
mov rcx, rdx
mov rsi, r8
call fcn.140008e10
mov rbx, rax
test rax, rax
jne 0x14001df52
lea eax, [rbx + 1]
jmp 0x14001dfa2
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x14001df80
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400376d0
mov rcx, rbx
call fcn.140038520
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001dfc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov r13, r8
mov r14, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
mov rsi, r9
call fcn.1400376d0
mov dword [rsp + 0x70], 0x104
mov dword [rsp + 0x6c], 0
test rbx, rbx
je 0x14001e23e
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x7c]
mov rcx, rbx
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14001e23e
mov ecx, dword [rsp + 0x68]
lea rcx, [rcx*2 + 2]
call fcn.140038534
mov rdi, rax
test rax, rax
je 0x14001e23e
mov ecx, dword [rsp + 0x68]
xor ebx, ebx
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0xaf0], r15
mov r15, qword [rbp + 0xa00]
mov dword [rsp + 0x60], ecx
mov ecx, dword [rsp + 0x6c]
mov dword [rsi], ecx
mov dword [r15], ebx
test eax, eax
je 0x14001e22e
mov qword [rsp + 0xae8], r12
mov esi, ebx
mov r12, qword [rbp + 0xa08]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x9e0]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov r8, rdi
mov qword [rsp + 0x30], rbx
mov edx, esi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], 0x3fff
mov word [rdi], bx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001e12d
mov rdx, r14
mov rcx, rdi
call fcn.140037860
cmp rdi, rax
jne 0x14001e12d
inc dword [r15]
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14001e217
xor r15d, r15d
nop dword [rax]
mov rcx, qword [rbp + 0x9e0]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r15
mov r8, rdi
mov qword [rsp + 0x30], r15
mov edx, ebx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x60], 0x3fff
mov word [rdi], r15w
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001e202
xor edx, edx
mov dword [rsp + 0x78], 1
mov r8d, 0x800
lea rcx, [rbp + 0x1b0]
call fcn.1400376d0
lea rax, [rbp + 0x9e0]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001e202
mov rcx, qword [rbp + 0x9e0]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
lea rax, [rbp + 0x1b0]
mov dword [rsp + 0x74], 0x400
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e202
mov rcx, rdi
call fcn.140038520
mov eax, dword [rsp + 0x64]
inc ebx
cmp ebx, eax
jb 0x14001e140
mov r15, qword [rbp + 0xa00]
inc esi
mov ebx, 0
cmp esi, eax
jb 0x14001e0e0
mov r12, qword [rsp + 0xae8]
mov rcx, rdi
call fcn.140038520
mov r15, qword [rsp + 0xaf0]
mov rbx, qword [rsp + 0xaf8]
xor al, al
add rsp, 0xab0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e470
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x14001e490
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rdi, rcx
mov rbx, rdx
mov ecx, 0x20
call fcn.140038534
mov r15, rax
test rax, rax
je 0x14001e70e
mov rcx, rax
call fcn.140004b90
test al, al
je 0x14001e70e
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1fe
call fcn.1400376d0
lea r8, [rsp + 0x40]
mov dword [rbp + 0x1a0], 0xff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14001e70e
mov rcx, qword [rsp + 0x40]
lea r9, [rbp + 0x1a0]
xor r13d, r13d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
mov r12d, r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001e703
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov dword [rbp + 0x1a0], 0xff
inc r12d
mov dword [rbp + 0x1a8], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e70e
mov ecx, dword [rbp + 0x1a0]
call fcn.140038534
mov rcx, qword [rsp + 0x40]
lea r9, [rbp + 0x1a8]
mov rsi, rax
lea rdx, [rsp + 0x50]
lea rax, [rbp + 0x1a0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e72c
lea ecx, [rax + 0x10]
call fcn.140038534
mov r14, rax
test rax, rax
je 0x14001e6c5
lea rax, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x14001e600
inc rcx
mov edx, 2
call fcn.14003853c
mov qword [r14], rax
test rax, rax
je 0x14001e643
lea rdx, [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 2]
mov word [rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14001e630
mov ecx, dword [rbp + 0x1a0]
mov edx, 1
inc rcx
call fcn.14003853c
mov rbx, rax
test rax, rax
je 0x14001e686
test rsi, rsi
je 0x14001e686
mov ecx, r13d
cmp dword [rbp + 0x1a0], ecx
jbe 0x14001e686
nop
mov r8d, ecx
inc ecx
movzx edx, byte [r8 + rsi]
mov byte [r8 + rax], dl
cmp ecx, dword [rbp + 0x1a0]
jb 0x14001e670
mov ecx, sendto
call fcn.140038534
mov rdi, rax
test rax, rax
je 0x14001e6b6
mov ecx, 4
mov qword [rax], rbx
call fcn.140038534
mov qword [rdi + 8], rax
test rax, rax
je 0x14001e6b6
mov ecx, dword [rbp + 0x1a0]
mov dword [rax], ecx
mov rdx, r14
mov qword [r14 + 8], rdi
mov rcx, r15
call fcn.140004950
mov rcx, rsi
call fcn.140038520
mov rcx, qword [rsp + 0x40]
lea r9, [rbp + 0x1a0]
mov qword [rsp + 0x38], r13
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov edx, r12d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14001e550
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x290]
mov rax, r15
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.140038520
jmp 0x14001e70e