joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400260f0
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x14004d2c0]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov rsi, r9
mov rbx, r8
mov rcx, rdx
call fcn.14002fb20
test rax, rax
jne 0x140026139
mov eax, 0x80004005
jmp 0x140026316
mov rcx, rbx
call fcn.14002ad60
mov r14, rax
lea rcx, [rbp + 8]
call fcn.14002fef0
mov r8, rsi
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.140030d30
test al, al
jne 0x14002616a
mov ebx, 1
jmp 0x14002630b
movabs r15, 0xffffffffffffff0
test rsi, rsi
jne 0x140026182
xor ebx, ebx
mov edi, ebx
jmp 0x140026211
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140026190
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x1400261ab
xor ebx, ebx
mov edi, ebx
jmp 0x140026211
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400261c1
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039e40
sub rsp, rcx
lea rdi, [rsp + 0x50]
xor ebx, ebx
test rdi, rdi
je 0x14002620e
mov byte [rdi], bl
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9d, [rbx - 1]
mov r8, rsi
xor edx, edx
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140026211
mov rdi, rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp]
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
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14002630b
mov r8, qword [rbp + 0x70]
test r8, r8
jne 0x14002625b
mov rdi, rbx
jmp 0x1400262da
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140026262
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140026253
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002628e
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039e40
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x1400262d7
mov byte [rdi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x1400262da
mov rdi, rbx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 8]
call fcn.1400300f0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140039850
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x140026340
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x14004d2c0]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, r9
mov rbx, r8
mov rcx, rdx
call fcn.14002fb20
test rax, rax
jne 0x140026389
mov eax, 0x80004005
jmp 0x1400264dd
mov rcx, rbx
call fcn.14002ad60
mov r15, rax
lea rcx, [rbp + 8]
call fcn.14002fef0
mov r8, r14
mov rdx, r15
lea rcx, [rbp + 8]
call fcn.140030d30
test al, al
jne 0x1400263ba
mov ebx, 1
jmp 0x1400264d2
mov rbx, 0xffffffffffffffff
test r14, r14
jne 0x1400263cf
xor edi, edi
mov esi, edi
jmp 0x14002645b
mov rax, rbx
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400263d2
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x1400263ee
xor edi, edi
mov esi, edi
jmp 0x14002645b
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002640b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039e40
sub rsp, rcx
lea rsi, [rsp + 0x50]
xor edi, edi
test rsi, rsi
je 0x140026458
mov byte [rsi], dil
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rdi
jmp 0x14002645b
mov rsi, rdi
mov qword [rsp + 0x40], rdi
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400264d0
mov rcx, qword [rbp + 0x78]
lea rbx, [rbx + 1]
cmp word [rcx + rbx*2], 0
jne 0x140026494
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, edi
lea rcx, [rbp + 8]
call fcn.1400300f0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140039850
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x1400282d0
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x88
mov rcx, rdx
mov ebp, r9d
mov rdi, r8
call fcn.14002fb20
test rax, rax
jne 0x140028300
mov eax, 0x80004005
add rsp, 0x88
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
mov dword [rax], ebx
call fcn.14002fef0
lea esi, [rbx + 1]
test bpl, 6
je 0x140028364
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov r8d, esi
mov rdx, rdi
call fcn.140030f40
test al, al
je 0x140028528
test rdi, rdi
je 0x140028524
cmp word [rdi], bx
je 0x140028524
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140028380
cmp word [rdi + rax*2 - 2], 0x2e
je 0x140028524
test bpl, 4
je 0x1400283ac
xor r13d, r13d
mov r15d, 0xc0000000
lea r14d, [r13 + 2]
jmp 0x140028400
test bpl, 2
je 0x1400283e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and ebx, esi
jne 0x1400283d0
mov r15d, 0xc0000000
lea r14d, [rbx + 3]
xor r13d, r13d
jmp 0x1400283df
mov r15d, dword [rsp + 0x44]
mov r13d, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x44]
test ebx, ebx
je 0x140028400
jmp 0x140028526
test sil, bpl
je 0x140028524
mov r15d, 0x80000000
mov r13d, esi
mov r14d, 3
mov eax, ebp
and eax, 0x28
cmp al, 0x28
je 0x140028524
mov eax, ebp
mov qword [rsp + 0x30], 0
and eax, 0x20
mov ecx, 0x4000100
mov r12d, ebp
mov r8d, r13d
and r12d, 8
mov edx, r15d
add r12d, r12d
or r12d, eax
mov eax, 0x80
shl r12d, 0x17
test bpl, 0x40
cmovne eax, ecx
xor r9d, r9d
or r12d, eax
mov rcx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140028472
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140028526
bt r12d, 0x1c
jae 0x1400284f4
lea rdx, [rsp + 0x44]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x14002849e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400284f4
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
shl rcx, 0x20
mov eax, eax
or rcx, rax
cmp rcx, 0xee6b280
jbe 0x1400284f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
btr r12d, 0x1c
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], r14d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140028465
test rbp, rbp
je 0x140028526
mov rcx, qword [rsp + 0xa0]
mov rdx, rbp
mov r8, qword [rsp + 0xc0]
add rcx, 0x10
call fcn.14002bb00
test al, al
jne 0x140028526
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140028528
mov ebx, esi
mov esi, ebx
lea rcx, [rsp + 0x48]
call fcn.1400300f0
mov r15, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x88
pop rdi
pop rbp
ret
Function at 0x140028660
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ebp, r9d
mov rcx, rdx
mov ebx, r8d
call fcn.14002fb20
test rax, rax
je 0x14002873b
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x38]
mov edx, ebx
call fcn.14002bbf0
test al, al
je 0x140028734
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140028734
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140028734
mov ecx, 0x11
mov r8d, ebp
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov qword [rbx], rax
test rax, rax
je 0x14002873b
lea rdx, [rsp + 0x30]
mov rcx, rax
xor edi, edi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140028730
mov rdx, qword [rsp + 0x30]
mov r9, rsi
mov rcx, qword [rsp + 0x38]
mov r8d, ebp
mov dword [rsi], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140028713
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x140028730
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx], 0
mov eax, edi
jmp 0x140028740
mov eax, 0x57
jmp 0x140028740
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140028760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rbx, r9
mov rcx, rdx
mov edi, r8d
call fcn.14002fb20
test rax, rax
je 0x14002882e
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x38]
mov edx, edi
call fcn.14002bbf0
test al, al
je 0x140028819
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140028819
test rbx, rbx
je 0x140028819
cmp word [rbx], 1
jne 0x14002882e
cmp dword [rbx + 4], 1
jne 0x14002882e
cmp dword [rbx + 0x1c], 0
jne 0x14002882e
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test eax, eax
jne 0x140028833
mov rdx, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
mov r9, rsi
mov dword [rsi], eax
mov r8d, dword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400287fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140028850
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ebp, r9d
mov rcx, rdx
mov edi, r8d
mov rsi, rdx
call fcn.14002fb20
test rax, rax
jne 0x140028884
mov eax, 0x80004005
jmp 0x1400288db
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
mov edx, edi
call fcn.14002bbf0
test al, al
jne 0x14002889f
mov eax, 0x57
jmp 0x1400288db
mov rax, qword [rbx]
mov r9d, ebp
mov ecx, dword [rsp + 0x70]
mov r8d, edi
mov dword [rsp + 0x20], ecx
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [0x14003c8b8]
test eax, eax
jne 0x1400288db
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400288f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x20], 0
mov rcx, rdx
mov rbx, r9
mov edi, r8d
call fcn.14002fb20
test rax, rax
jne 0x140028932
mov eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x28]
mov edx, edi
call fcn.14002bbf0
test al, al
jne 0x14002895b
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp eax, 0xffffffff
jne 0x140028988
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x68], 0
jne 0x1400289ae
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
xor eax, eax
mov dword [rbx], edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x20], 0
jne 0x1400289d1
cmp edx, 0x7fffffff
ja 0x1400289d1
mov dword [rbx], edx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400289f0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rdi, r8
call fcn.14002fb20
test rax, rax
jne 0x140028a11
mov eax, 0x80004005
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
test rdi, rdi
je 0x140028a83
lea rcx, [rsp + 0x20]
call fcn.14002fef0
xor r9d, r9d
lea r8d, [rbx + 1]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140030f40
test al, al
jne 0x140028a57
lea rcx, [rsp + 0x20]
call fcn.1400300f0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140028a6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.1400300f0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140028aa0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x50
mov rdi, rcx
mov rbp, r9
mov rcx, rdx
mov r15, r8
mov rsi, rdx
call fcn.14002fb20
test rax, rax
jne 0x140028ad8
mov eax, 0x80004005
jmp 0x140028b9e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
call fcn.14002fef0
xor r9d, r9d
lea rcx, [rsp + 0x30]
mov rdx, rbp
lea r8d, [r9 + 1]
call fcn.140030f40
test al, al
je 0x140028b88
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x30]
xor r9d, r9d
lea r8d, [r9 + 1]
call fcn.140030f40
test al, al
je 0x140028b88
mov rax, qword [rdi]
mov rdx, rsi
mov r8d, dword [r15]
mov rcx, rdi
mov rax, qword [rax + 0x60]
call qword [0x14003c8b8]
mov ebx, eax
test eax, eax
jne 0x140028b8d
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
mov qword [rsp + 0x20], r15
mov r9d, 1
mov ebx, eax
mov rdx, rsi
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x58]
test ebx, ebx
jne 0x140028b7d
mov r8, qword [rsp + 0x80]
call qword [0x14003c8b8]
mov ebx, eax
jmp 0x140028b8d
mov r8, rbp
call qword [0x14003c8b8]
jmp 0x140028b8d
mov ebx, 1
lea rcx, [rsp + 0x30]
call fcn.1400300f0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret

Function at 0x140028c80
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, rdx
mov rbx, r8
call fcn.14002fb20
test rax, rax
jne 0x140028ca1
mov eax, 0x80004005
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x50], rdi
xor edi, edi
test rbx, rbx
je 0x140028d69
lea rcx, [rsp + 0x20]
call fcn.14002fef0
lea r9d, [rdi + 1]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140030f40
test al, al
jne 0x140028ceb
lea rcx, [rsp + 0x20]
call fcn.1400300f0
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140028cf2
test rax, rax
je 0x140028d4d
movzx ecx, word [rbx + rax*2 - 2]
cmp cx, 0x2e
je 0x140028d4d
cmp rax, 1
jbe 0x140028d1f
cmp word [rbx + rax*2 - 4], 0x2e
jne 0x140028d1f
cmp cx, 0x5c
je 0x140028d4d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140028d52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.1400300f0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov edi, 1
lea rcx, [rsp + 0x20]
call fcn.1400300f0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov edi, 1
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140028d80
Capabilities:
Delete directory

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rdi, r8
call fcn.14002fb20
test rax, rax
jne 0x140028da1
mov eax, 0x80004005
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
test rdi, rdi
je 0x140028e12
lea rcx, [rsp + 0x20]
call fcn.14002fef0
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
call fcn.140030f40
test al, al
jne 0x140028de6
lea rcx, [rsp + 0x20]
call fcn.1400300f0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140028dfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.1400300f0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400298d0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov rbx, r8
lea r8, [rsp + 0x40]
call fcn.14002bc20
test al, al
jne 0x1400298fa
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140029940
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov rsi, r8
lea r8, [rsp + 0x50]
mov rdi, r9
call fcn.14002bc20
test al, al
je 0x140029a73
mov ebx, dword [rsp + 0x60]
test ebx, ebx
je 0x140029a73
test rdi, rdi
je 0x140029a73
cmp word [rdi], 1
jne 0x140029a5e
cmp dword [rdi + 4], 1
jne 0x140029a5e
cmp dword [rdi + 0x1c], 0
jne 0x140029a5e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140029a78
cmp ebx, 2
jb 0x140029a5e
test bl, 1
jne 0x140029a5e
cmp dword [rdi + 0x18], ebx
jne 0x140029a5e
mov rdx, qword [rsp + 0x40]
lea eax, [rbx - 2]
cmp byte [rax + rdx], 0
jne 0x140029a5e
lea eax, [rbx - 1]
cmp byte [rax + rdx], 0
jne 0x140029a5e
mov rcx, 0xffffffffffffffff
cmp word [rdx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400299f1
lea rcx, [rcx*2 + 2]
cmp rcx, rbx
jne 0x140029a5e
mov rcx, qword [rsp + 0x50]
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140029a43
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x57
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140029a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rcx, qword [rcx + 0x10]
mov rdi, r8
lea r8, [rsp + 0x38]
mov rbx, r9
call fcn.14002bc20
test al, al
jne 0x140029ac2
mov eax, 0x57
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029b12
cmp dword [rsp + 0x60], 4
jne 0x140029b12
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140029b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx + 0x10]
mov rsi, r8
lea r8, [rsp + 0x60]
mov rdi, r9
call fcn.14002bc20
test al, al
je 0x140029c39
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140029c39
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov dword [rsp + 0x50], ecx
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029c24
mov r8d, dword [rsp + 0x50]
mov dword [rbx], r8d
test rdi, rdi
je 0x140029c12
lea ecx, [rax + 0x11]
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov qword [rdi], rax
test rax, rax
jne 0x140029bcf
mov eax, 0x80004005
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140029c12
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rax, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0x57
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140029c50
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 0x10]
mov rbx, r8
lea r8, [rsp + 0x30]
call fcn.14002bc20
test al, al
jne 0x140029c76
mov eax, 0x57
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
add rsp, 0x20
pop rbx
ret