joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019ea4
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x01047b88]
cmp rdx, qword [rbx + 0x130]
jne 0x101a07e
lea rcx, [0x0100c150]
call fcn.01012d38
cmp dword [rbx + 0x144], 0
je 0x1019f91
inc dword [rbx + 0x14c]
mov edx, dword [rbx + 0x14c]
lea rcx, [0x0100c180]
call fcn.01012d38
cmp dword [rbx + 0x14c], 3
jl 0x1019f91
lea rcx, [0x0100c1f0]
call fcn.01012d38
mov rcx, qword [rbx + 0x150]
and dword [rbx + 0x144], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1019f48
test al, 1
je 0x1019f37
mov rcx, qword [rbx + 0x150]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1019f91
lea rcx, [0x0100c250]
call fcn.01012d38
inc dword [rbx + 0x148]
cmp dword [rbx + 0x148], 5
jl 0x1019f80
and dword [0x01047db4], 0
mov dword [0x01047b80], 4
mov dword [0x01047b84], 8
jmp 0x1019f91
and dword [rbx + 0x14c], 0
mov dword [rbx + 0x144], 1
cmp dword [rbx + 0x15c], 0
je 0x101a058
inc dword [rbx + 0x164]
mov edx, dword [rbx + 0x164]
lea rcx, [0x0100c2b0]
call fcn.01012d38
cmp dword [rbx + 0x164], 3
jl 0x101a058
lea rcx, [0x0100c320]
call fcn.01012d38
mov rcx, qword [rbx + 0x168]
and dword [rbx + 0x15c], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101a00f
test al, 1
je 0x1019ffe
mov rcx, qword [rbx + 0x168]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + 0x168]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101a058
lea rcx, [0x0100c380]
call fcn.01012d38
inc dword [rbx + 0x160]
cmp dword [rbx + 0x160], 5
jl 0x101a047
and dword [0x01047db4], 0
mov dword [0x01047b80], 4
mov dword [0x01047b84], 0xe
jmp 0x101a058
and dword [rbx + 0x164], 0
mov dword [rbx + 0x15c], 1
cmp dword [rbx + 0x144], 0
jne 0x101a07e
cmp dword [rbx + 0x15c], 0
jne 0x101a07e
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret
Function at 0x101a08c
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, r9
mov rbx, r8
lea rcx, [0x0100c3e8]
call fcn.01012d38
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.01010990
nop
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.01010990
nop
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0100c410]
call fcn.01012d38
mov rdx, qword [rsp + 0x38]
lea rcx, [0x0100c430]
call fcn.01012d38
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rdx, 0xffffffff80000003
lea rcx, [rsp + 0x50]
call fcn.01021df8
nop
cmp dword [rsp + 0x60], 0
jne 0x101a16c
lea rax, [0x0100e8d8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.01021f9c
nop
lea rcx, [rsp + 0x38]
call fcn.01010940
nop
lea rcx, [rsp + 0x40]
call fcn.01010940
jmp 0x101a300
lea rdx, [0x010063c0]
lea rcx, [rsp + 0x30]
call fcn.01010990
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.01022270
nop
lea rcx, [rsp + 0x30]
call fcn.01010940
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
lea rcx, [0x0100c448]
call fcn.01012d38
lea rdx, [0x0100c464]
mov rcx, rbx
call fcn.0102a7a4
test rax, rax
jne 0x101a1d7
or eax, 0xffffffff
jmp 0x101a1dd
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x101a201
lea rdx, [0x0100c470]
mov rcx, rbx
call fcn.0102a7a4
test rax, rax
jne 0x101a1fb
or eax, 0xffffffff
jmp 0x101a201
sub rax, rbx
sar rax, 1
test eax, eax
js 0x101a2c9
lea rdx, [0x0100b670]
mov rcx, rbx
call fcn.0102a7a4
mov rdi, rax
test rax, rax
je 0x101a2c9
sub rdi, rbx
sar rdi, 1
test edi, edi
js 0x101a2c9
lea ecx, [rdi + 1]
movsxd rsi, ecx
cmp rsi, qword [rbx - 0x10]
ja 0x101a2c9
lea rcx, [rbx + rsi*2]
lea rdx, [0x0100b670]
call fcn.0102a7a4
test rax, rax
je 0x101a2c9
sub rax, rbx
sar rax, 1
test eax, eax
js 0x101a2c9
sub eax, edi
dec eax
movsxd r9, eax
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.01011024
mov rdx, qword [rsp + 0x30]
lea rcx, [0x0100c478]
call fcn.01012d38
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.01010e90
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x101a2bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x30]
call fcn.01010940
lea rcx, [rsp + 0x48]
call fcn.01010940
nop
lea rax, [0x0100e8d8]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.01021f9c
nop
lea rcx, [rsp + 0x38]
call fcn.01010940
nop
lea rcx, [rsp + 0x40]
call fcn.01010940
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.01029cb0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x101a32c
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x40
mov rax, qword [0x01046880]
lea rcx, [r11 - 0x18]
mov rbp, r9
mov r12, r8
mov rbx, rdx
mov qword [r11 - 0x18], rax
call fcn.010108bc
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x101a3bf
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x101a3bf
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.01010e90
lea r8, [0x010063c0]
mov rdx, rbp
mov rcx, r12
mov r9, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x30]
or edx, 0xffffffff
call fcn.01010f00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.0101074c
lea rcx, [rsp + 0x30]
call fcn.01010940
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x101a9bc
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r13, rdx
xor r15d, r15d
lea rdx, [rsp + 0x40]
mov rcx, r13
mov r14d, r15d
mov ebp, r15d
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x101ac05
lea rcx, [rsp + 0x28]
mov rdx, r13
call fcn.01010990
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov r8d, 3
call fcn.0101109c
xor edx, edx
lea rdi, [0x0100cbe0]
mov rsi, qword [rax]
lea ecx, [rdx + 5]
repe cmpsw word [rsi], word [rdi]
je 0x101aa52
sbb edx, edx
sbb edx, 0xffffffff
cmp edx, r15d
lea rcx, [rsp + 0x20]
movzx edi, r15b
mov esi, 1
cmove edi, esi
call fcn.01010940
lea rcx, [rsp + 0x28]
cmp dil, r15b
jne 0x101aa9f
test byte [rsp + 0x40], 0x10
cmovne ebx, esi
call fcn.01010940
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r15d
je 0x101aaa4
cmp ebx, r15d
jne 0x101aaa4
jmp 0x101aa17
call fcn.01010940
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, r15d
je 0x101ac05
lea rdx, [0x010063c0]
lea rcx, [rsp + 0x28]
call fcn.01010990
lea rcx, [rsp + 0x28]
mov rdx, r13
call fcn.01010b60
lea r8, [0x0100cbe0]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.01010cd0
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.01010aec
lea rcx, [rsp + 0x20]
call fcn.01010940
lea rcx, [rsp + 0x28]
xor edx, edx
call fcn.01010e90
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x101abfb
lea rdx, [0x010063c0]
lea rcx, [rsp + 0x20]
call fcn.01010990
test byte [rsp + 0x40], 0x10
jne 0x101abc5
lea rcx, [rsp + 0x20]
mov rdx, r13
call fcn.01010b60
lea r8, [0x0100a3a8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.01010cd0
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.01010aec
lea rcx, [rsp + 0x30]
call fcn.01010940
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.01010cd0
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.01010aec
lea rcx, [rsp + 0x38]
call fcn.01010940
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.01010e90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r15d
je 0x101abc5
add ebp, esi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r15d
jne 0x101ab39
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rsp + 0x20]
mov r14d, esi
call fcn.01010940
lea rcx, [rsp + 0x28]
call fcn.01010940
mov eax, 0xffffff9d
cmp r14d, r15d
cmovne eax, ebp
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.01029cb0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x101ba08
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [0x0100d110]
xor edx, edx
call fcn.01012d38
mov rax, qword [0x01046880]
lea r9, [0x0100d198]
lea r8, [0x0100d1c8]
lea rdx, [0x0100adb8]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
xor ebx, ebx
call fcn.01011648
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call fcn.01021df8
cmp dword [rsp + 0x40], ebx
je 0x101ba9c
mov rdx, qword [rdi + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rcx, [rsp + 0x30]
call fcn.01021f9c
mov ebx, 1
lea rax, [0x0100e8d8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.01021f9c
lea rcx, [rsp + 0x68]
call fcn.01010940
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x101bad0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [0x0100d110]
mov edx, 0x200
call fcn.01012d38
mov rax, qword [0x01046880]
lea r9, [0x0100d198]
lea r8, [0x0100d1c8]
lea rdx, [0x0100adb8]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
xor ebx, ebx
call fcn.01011648
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebx
call fcn.01021df8
cmp dword [rsp + 0x40], ebx
je 0x101bb67
mov rdx, qword [rdi + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rcx, [rsp + 0x30]
call fcn.01021f9c
mov ebx, 1
lea rax, [0x0100e8d8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.01021f9c
lea rcx, [rsp + 0x68]
call fcn.01010940
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x101bd28
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [0x0100d258]
call fcn.01012d38
lea rdx, [0x01006540]
lea rcx, [rsp + 0xb8]
call fcn.010109f8
nop
mov rax, qword [0x01046880]
mov qword [rsp + 0xb0], rax
mov r9, qword [rsi + 0x108]
lea r8, [0x0100b860]
lea rdx, [0x0100adb8]
lea rcx, [rsp + 0xb0]
call fcn.01011648
mov dword [rsp + 0x28], 0x20019
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov r13, 0xffffffff80000002
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.01021df8
nop
cmp dword [rsp + 0x78], edi
je 0x101be3b
lea rdx, [0x01006540]
lea rcx, [rsp + 0xc0]
call fcn.010109f8
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0xc0]
lea r8, [0x0100a718]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x68]
call fcn.01022270
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.01010aec
lea rcx, [rsp + 0xc8]
call fcn.01010940
nop
lea rcx, [rsp + 0xc0]
call fcn.01010940
lea rcx, [rsp + 0x68]
call fcn.01021f9c
lea rbp, [0x0100e8d8]
mov rbx, qword [rsp + 0xb8]
cmp qword [rbx - 0x10], rdi
je 0x101bea0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x0100d298]
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.01021df8
cmp dword [rsp + 0x60], edi
je 0x101be91
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rcx, [rsp + 0x50]
call fcn.01021f9c
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x50]
call fcn.01021f9c
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x0100b860]
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.01021df8
nop
cmp dword [rsp + 0x48], edi
je 0x101bf66
mov rdx, qword [rsi + 0x108]
lea rcx, [rsp + 0x38]
call fcn.01022110
lea rdx, [0x01006540]
lea rcx, [rsp + 0xc0]
call fcn.010109f8
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x38]
call fcn.01021fcc
mov r8, qword [rax]
mov rax, qword [rsp + 0xc0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x101bf2d
add rax, 2
test ecx, ecx
jne 0x101bf19
movzx ebx, dil
mov esi, 1
cmp edx, edi
cmove ebx, esi
lea rcx, [rsp + 0xc8]
call fcn.01010940
lea rcx, [rsp + 0xc0]
call fcn.01010940
cmp bl, dil
cmovne edi, esi
lea rcx, [rsp + 0x38]
call fcn.01021f9c
nop
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x38]
call fcn.01021f9c
nop
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x68]
call fcn.01021f9c
nop
lea rcx, [rsp + 0xb0]
call fcn.01010940
nop
lea rcx, [rsp + 0xb8]
call fcn.01010940
mov eax, edi
add rsp, 0x80
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x101bfb8
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [0x0100d258]
call fcn.01012d38
lea rdx, [0x01006540]
lea rcx, [rsp + 0xb8]
call fcn.010109f8
nop
mov rax, qword [0x01046880]
mov qword [rsp + 0xb0], rax
mov r9, qword [rsi + 0x108]
lea r8, [0x0100b860]
lea rdx, [0x0100adb8]
lea rcx, [rsp + 0xb0]
call fcn.01011648
mov dword [rsp + 0x28], 0x20219
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov r13, 0xffffffff80000002
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.01021df8
nop
cmp dword [rsp + 0x78], edi
je 0x101c0cb
lea rdx, [0x01006540]
lea rcx, [rsp + 0xc0]
call fcn.010109f8
nop
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0xc0]
lea r8, [0x0100a718]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x68]
call fcn.01022270
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.01010aec
lea rcx, [rsp + 0xc8]
call fcn.01010940
nop
lea rcx, [rsp + 0xc0]
call fcn.01010940
lea rcx, [rsp + 0x68]
call fcn.01021f9c
lea rbp, [0x0100e8d8]
mov rbx, qword [rsp + 0xb8]
cmp qword [rbx - 0x10], rdi
je 0x101c130
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x0100d298]
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.01021df8
cmp dword [rsp + 0x60], edi
je 0x101c121
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rcx, [rsp + 0x50]
call fcn.01021f9c
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x50]
call fcn.01021f9c
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x0100b860]
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.01021df8
nop
cmp dword [rsp + 0x48], edi
je 0x101c1f6
mov rdx, qword [rsi + 0x108]
lea rcx, [rsp + 0x38]
call fcn.01022110
lea rdx, [0x01006540]
lea rcx, [rsp + 0xc0]
call fcn.010109f8
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x38]
call fcn.01021fcc
mov r8, qword [rax]
mov rax, qword [rsp + 0xc0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x101c1bd
add rax, 2
test ecx, ecx
jne 0x101c1a9
movzx ebx, dil
mov esi, 1
cmp edx, edi
cmove ebx, esi
lea rcx, [rsp + 0xc8]
call fcn.01010940
lea rcx, [rsp + 0xc0]
call fcn.01010940
cmp bl, dil
cmovne edi, esi
lea rcx, [rsp + 0x38]
call fcn.01021f9c
nop
mov qword [rsp + 0x38], rbp
lea rcx, [rsp + 0x38]
call fcn.01021f9c
nop
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x68]
call fcn.01021f9c
nop
lea rcx, [rsp + 0xb0]
call fcn.01010940
nop
lea rcx, [rsp + 0xb8]
call fcn.01010940
mov eax, edi
add rsp, 0x80
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1021550
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x01045480]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
lea rcx, [0x0100e6e8]
mov edi, r8d
mov rbx, rdx
call fcn.01012d38
mov r11, qword [0x01046880]
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
mov qword [rsi], r11
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10215c3
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10215c3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.01010b60
jmp 0x10215cb
mov rcx, rsi
call fcn.010108bc
mov rdx, qword [rsi]
lea rcx, [0x0100e720]
call fcn.01012d38
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.01029cb0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret

Function at 0x1021fcc
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rax, qword [0x01046880]
mov rsi, rcx
lea rcx, [r11 - 0x30]
mov r12d, r8d
mov rbx, rdx
mov qword [r11 - 0x30], rax
call fcn.010108bc
cmp dword [rsi + 0x10], 0
je 0x10220d8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebp, 0x200
mov edx, 8
mov rcx, rax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x10220d8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x1022058
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
jmp 0x10220cd
mov rcx, qword [rsi + 8]
mov eax, 0x100
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, r12d
mov qword [rsp + 0x28], rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10220b0
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.01010b60
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.0101074c
lea rcx, [rsp + 0x48]
call fcn.01010940
lea r11, [rsp + 0x60]
mov rax, rbx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1022110
Capabilities:
Delete registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbp, rdx
mov rsi, rcx
mov eax, dword [rcx + 0x14]
mov dword [rsp + 0x28], eax
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rdx
mov rdx, qword [rcx + 8]
lea rcx, [rsp + 0x38]
call fcn.01021df8
nop
mov rax, qword [0x01046880]
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.01021fcc
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.01010aec
lea rdx, [0x01006540]
lea rcx, [rsp + 0x80]
call fcn.010109f8
mov rax, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x10221b7
add rax, 2
test ecx, ecx
jne 0x10221a3
movzx ebx, dil
mov eax, 1
cmp edx, edi
cmovne ebx, eax
lea rcx, [rsp + 0x80]
call fcn.01010940
lea rcx, [rsp + 0x88]
call fcn.01010940
cmp bl, dil
je 0x1022226
cmp dword [rsp + 0x48], edi
je 0x1022201
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.01022110
cmp eax, edi
jne 0x102215a
lea rcx, [rsp + 0x70]
call fcn.01010940
nop
lea rax, [0x0100e8d8]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.01021f9c
xor eax, eax
jmp 0x102225c
lea rcx, [rsp + 0x70]
call fcn.01010940
nop
lea rax, [0x0100e8d8]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.01021f9c
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1022270
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
and dword [rsp + 0x50], 0
mov dword [rax + 0x28], 0x100
cmp dword [rcx + 0x10], 0
jne 0x10222bb
mov rdx, r9
mov rcx, rbx
call fcn.0101074c
mov rax, rbx
jmp 0x102234d
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.0101074c
nop
mov ecx, dword [rsp + 0x70]
call fcn.01029e1c
mov rdi, rax
test rax, rax
jne 0x10222f7
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.0101074c
nop
lea rcx, [rsp + 0x50]
call fcn.01010940
mov rax, rbx
jmp 0x102234d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102232a
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.01010b60
mov rcx, rdi
call fcn.01029de4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.0101074c
nop
lea rcx, [rsp + 0x50]
call fcn.01010940
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1022368
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, rdx
lea rcx, [rsp + 0x40]
mov rdx, r8
mov rbx, r8
call fcn.01010990
mov rcx, qword [rsi + 8]
xor r8d, r8d
mov r9, qword [rax]
mov rdx, rdi
mov rax, qword [r9 - 0x10]
lea r9d, [rax + rax + 2]
mov dword [rsp + 0x28], r9d
mov r9d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
lea rcx, [rsp + 0x40]
cmp eax, ebx
sete bl
call fcn.01010940
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x10223e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
and dword [rsp + 0x40], 0
lea rax, [r11 + 0x18]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x1022428
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 0x18]
mov r9d, 4
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x10227ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rcx
lea rax, [0x0100ec58]
mov qword [rcx], rax
mov rax, qword [0x01046880]
mov qword [rcx + 8], rax
add rcx, 8
call fcn.010108bc
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.01022920
xor edi, edi
mov rax, qword [rsp + 0x48]
cmp qword [rax - 0x10], rdi
je 0x102285a
lea rdx, [0x0100cf50]
lea rcx, [rsp + 0x48]
call fcn.01010e4c
mov rax, qword [rsp + 0x48]
cmp qword [rax - 0x10], rdi
je 0x102289f
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 8]
call fcn.01010aec
mov r11, qword [rsi + 8]
mov rax, qword [r11 - 0x10]
cmp word [r11 + rax*2 - 2], 0x5c
je 0x102288f
lea rdx, [0x0100a3a8]
lea rcx, [rsi + 8]
call fcn.01010e4c
lea rdx, [0x0100eb60]
lea rcx, [rsi + 8]
call fcn.01010e4c
lea rcx, [rsp + 0x48]
call fcn.01010940
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 1
cmp eax, 0xffffffff
cmovne edi, ecx
mov dword [rsi + 0x10], edi
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret