joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004f884
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, qword [rcx + 0x18]
mov rbx, rcx
test rdi, rdi
jne 0x10004f8a1
xor eax, eax
jmp 0x10004f8f1
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x20]
and dword [rsp + 0x24], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret

Function at 0x10004fb94
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp dword [0x100088fd8], 0
mov ebx, ecx
jne 0x10004fc21
lea rax, [rsp + 0x30]
mov dword [0x100088fd8], 1
test rax, rax
je 0x10004fbdf
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.1000529a4
jmp 0x10004fbe1
xor eax, eax
test eax, eax
je 0x10004fc21
lea rcx, [rsp + 0x30]
call fcn.100053454
test eax, eax
je 0x10004fc21
xor ecx, ecx
mov dword [rsp + 0x28], 0xa
xor edx, edx
and qword [rsp + 0x20], rcx
lea r8, [rsp + 0x30]
lea r9, [0x100028b80]
test ebx, ebx
jne 0x10004fc1b
lea r9, [0x100028bb0]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x250
pop rbx
ret
Function at 0x100051d60
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rcx, qword [0x1000888e8]
and qword [rsp + 0x48], 0
test rcx, rcx
je 0x100051d9e
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100051d9e
mov r9d, dword [rsp + 0x40]
mov rcx, qword [0x1000888e8]
xor r8d, r8d
mov edx, 0x5c6
call qword [sym.imp.USER32.dll_PostMessageW]
lea rax, [rsp + 0x48]
lea rdx, [0x100025840]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100051e0e
mov eax, dword [rsp + 0x40]
mov ecx, 1
lea rdx, [0x100025c28]
test eax, eax
lea r9d, [rcx + 3]
cmove eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x100051e1c
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rcx, qword [0x1000888e8]
and qword [rsp + 0x48], 0
test rcx, rcx
je 0x100051e5a
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100051e5a
mov r9d, dword [rsp + 0x40]
mov rcx, qword [0x1000888e8]
xor r8d, r8d
mov edx, 0x5c7
call qword [sym.imp.USER32.dll_PostMessageW]
lea rax, [rsp + 0x48]
lea rdx, [0x100025840]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100051eb8
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, [0x100025bf8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x100051fe0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x30]
mov edx, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x10005206a
lea r8, [0x100029478]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.100039ee4
cmp eax, ebx
jl 0x10005206a
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x24], ebx
mov eax, ebx
mov dword [rsp + 0x20], ebx
cmp rcx, rbx
je 0x10005205c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.100054598
mov r11d, eax
mov eax, dword [rsp + 0x20]
jmp 0x100052062
mov r11d, 0x80004005
cmp r11d, ebx
jl 0x10005206a
movzx ebx, ax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x250
pop rbx
ret
Function at 0x100052680
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x1000526d3
push rdi
sub rsp, 0x30
mov r10, qword [0x1000861e8]
or rcx, 0xffffffffffffffff
mov r11, r8
cmp r10, rcx
je 0x1000526ce
cmp edx, dword [0x1000888e0]
jg 0x1000526ce
and dword [rsp + 0x50], 0
xor eax, eax
mov rdi, r8
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
lea r9, [rsp + 0x50]
not rcx
mov rdx, r11
lea r8, [rcx - 1]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rdi
ret

Function at 0x1000527a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1000861e8]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1000527d8
lea r8, str.wmsetup.log
lea rcx, [0x1000861e8]
mov edx, ebx
call fcn.10005208c
mov rcx, qword [0x1000861e8]
mov r8, rdi
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.100052680

Function at 0x1000529a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rsi, rcx
xor ebx, ebx
call fcn.1000537e4
mov edx, edi
mov rcx, rsi
cmp eax, 6
jne 0x1000529f0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x100052a16
lea r8, [0x100029638]
mov rdx, rdi
mov rcx, rsi
call fcn.100039ee4
cmp eax, ebx
jl 0x100052a16
mov ebx, 1
jmp 0x100052a16
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, ebx
je 0x100052a16
lea r8, [0x100029658]
mov rdx, rdi
mov rcx, rsi
call fcn.100039ee4
mov ecx, 1
cmp eax, ebx
cmovge ebx, ecx
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000531ac
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x40]
mov r8d, 0x103
lea rdx, [rsp + 0x40]
sub rcx, rax
xor esi, esi
lea rax, [r8 + 0x7ffffefb]
cmp rax, rsi
je 0x100053207
movzx eax, word [rcx + rdx]
cmp ax, si
je 0x100053207
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x1000531e5
cmp r8, rsi
jne 0x100053210
sub rdx, 2
mov word [rdx], si
lea rcx, [rsp + 0x40]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
cmp rax, rsi
jne 0x100053232
xor eax, eax
jmp 0x1000532ba
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov word [rax + 2], si
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, esi
jne 0x100053288
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x57
mov ecx, 2
cmp eax, esi
cmove eax, edx
lea rdx, [0x100029778]
movzx r8d, ax
or r8d, 0x80070000
cmp eax, esi
cmovle r8d, eax
call fcn.1000527f4
jmp 0x10005322b
mov rbx, qword [rsp + 0x20]
cmp rbx, rsi
jne 0x1000532b7
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov word [rdi], si
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, esi
cmovne rbx, qword [rsp + 0x20]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1000532e8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x100053330
lea rax, [rsp + 0x20]
cmp rax, rbx
je 0x100053330
lea rcx, [rsp + 0x20]
call fcn.1000531ac
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x240
pop rbx
ret
Function at 0x100053354
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8, rcx
xor ebx, ebx
lea rax, [rsp + 0x20]
mov ecx, 0x104
lea rdx, [rsp + 0x20]
sub r8, rax
mov edi, ebx
lea rax, [rcx + 0x7ffffefa]
cmp rax, rbx
je 0x1000533af
movzx eax, word [r8 + rdx]
cmp ax, bx
je 0x1000533af
mov word [rdx], ax
add rdx, 2
sub rcx, 1
jne 0x10005338c
cmp rcx, rbx
jne 0x1000533bd
sub rdx, 2
mov edi, 0x8007007a
cmp edi, ebx
mov word [rdx], bx
jl 0x10005342b
or rdx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
cmp rax, rbx
je 0x100053412
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x100053412
cmp word [rsp + rcx*2 + 0x1e], 0x5c
sete al
cmp eax, ebx
je 0x100053412
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x100053412
mov word [rsp + rcx*2 + 0x1e], bx
jmp 0x1000533c8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005342b
test al, 0x10
je 0x10005342b
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x100053473
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100053473
test al, 0x10
jne 0x100053473
mov eax, 1
jmp 0x100053475
xor eax, eax
add rsp, 0x28
ret
Function at 0x1000535ec
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x1f0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10005363b
xor eax, eax
jmp 0x100053758
mov eax, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x44]
xor r8d, r8d
shl rbx, 0x10
mov r9d, 1
mov rcx, 0xffffffff80000002
or rbx, rax
lea rax, [rsp + 0x38]
shl rbx, 0x20
cmp dword [rsp + 0x50], 2
mov qword [rsp + 0x20], rax
jne 0x1000536e5
lea rdx, [0x100029800]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100053755
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
lea rdx, [0x100029860]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005374a
cmp dword [rsp + 0x34], 1
jne 0x10005374a
lea rcx, [rsp + 0x160]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [rsp + 0x30], eax
shl rcx, 0x10
add rbx, rcx
jmp 0x10005374a
lea rdx, [0x100029890]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100053755
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
lea rdx, [0x1000298e8]
xor r8d, r8d
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005374a
cmp dword [rsp + 0x34], 1
jne 0x10005374a
lea rcx, [rsp + 0x160]
call fcn.100052d68
mov rbx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x1f0
pop rbx
ret
Function at 0x100053900
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, 0x380
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov esi, ecx
lea rcx, [rsp + 0x40]
mov ebp, r8d
mov edi, edx
xor ebx, ebx
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10005395f
cmp dword [rsp + 0x50], 2
jne 0x10005395d
cmp dword [rsp + 0x44], esi
je 0x100053988
jbe 0x10005395d
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp dword [rsp + 0x48], edi
jne 0x100053956
test ebp, ebp
je 0x100053958
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov ebx, 1
lea rdx, [0x100029800]
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x34], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005395d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
lea rdx, [0x100029860]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100053a24
cmp dword [rsp + 0x30], ebx
jne 0x100053a24
lea rcx, [rsp + 0x160]
call qword [sym.imp.msvcrt.dll__wtol]
xor ebx, ebx
cmp eax, ebp
mov dword [rsp + 0x34], eax
setae bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10005395d

Function at 0x100053a3c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, [0x100029908]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100053ad6
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x100029938]
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100053acb
cmp dword [rsp + 0x40], 4
jne 0x100053acb
lea eax, [rbx + 1]
cmp dword [rsp + 0x48], eax
cmove ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x100053ae4
Capabilities:
Compare security identifiers

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, 0x90
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x80], rax
or qword [r11 - 0x30], 0xffffffffffffffff
xor r12d, r12d
mov ebp, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov rcx, rax
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, r12d
je 0x100053c5a
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea edi, [r12 + 2]
mov edx, edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0x60]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
cmp rax, r12
je 0x100053c4a
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov r8, rbx
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
je 0x100053c42
lea rax, [rsp + 0x70]
lea r8d, [r12 + 0x20]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov r9d, 0x220
mov dl, dil
mov dword [rsp + 0x28], r12d
mov byte [rsp + 0x78], r12b
mov dword [rsp + 0x20], r12d
mov byte [rsp + 0x79], r12b
mov byte [rsp + 0x7a], r12b
mov byte [rsp + 0x7b], r12b
mov byte [rsp + 0x7c], r12b
mov byte [rsp + 0x7d], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, r12d
je 0x100053c42
mov edi, r12d
cmp dword [rbx], r12d
jbe 0x100053c37
lea rsi, [rbx + 8]
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r12d
jne 0x100053c32
inc edi
add rsi, 0x10
cmp edi, dword [rbx]
jb 0x100053c13
jmp 0x100053c37
mov ebp, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
je 0x100053c5a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x100053c90
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
lea rdx, [0x100029950]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100053cfd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [0x100029988]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x1000541d4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
mov rdi, rdx
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10005423b
lea r8, [0x1000256e8]
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.100039ee4
test eax, eax
js 0x10005423b
lea rcx, [rsp + 0x20]
call fcn.100053454
mov ebx, eax
test eax, eax
jne 0x100054274
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10005428e
lea r8, [0x100029b90]
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.100039ee4
test eax, eax
js 0x10005428e
lea rcx, [rsp + 0x20]
call fcn.100053454
mov ebx, eax
test eax, eax
je 0x10005428e
shr rdi, 1
lea r8, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.100039df8
xor ebx, ebx
test eax, eax
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x1000542bc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
lea rdx, [0x100029bb0]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100054356
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x100029c68]
xor r8d, r8d
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10005434b
cmp dword [rsp + 0x40], 4
jne 0x10005434b
lea eax, [rbx + 1]
cmp dword [rsp + 0x48], eax
cmove ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x100054458
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x40]
mov rdi, rcx
lea rdx, [0x100029bb0]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10005456b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
lea esi, [rbx + 4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
lea rdx, [0x100029c68]
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100054560
cmp dword [rsp + 0x30], esi
jne 0x100054560
lea esi, [rbx + 1]
cmp dword [rsp + 0x38], esi
jne 0x100054560
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x100025bc0]
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100054560
cmp dword [rsp + 0x30], esi
jne 0x100054560
lea r8, [rsp + 0x50]
mov edx, 0x104
mov rcx, rdi
call fcn.100039df8
cmp eax, ebx
cmovge ebx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000548bc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x50
and qword [r11 - 0x18], 0
mov edi, dword [0x1000888d0]
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
lea rdx, [0x100029c90]
xor r9d, r9d
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100054961
test edi, edi
lea rax, [0x100027ce8]
lea rdx, [0x100029cf4]
cmovne rdx, rax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov r9d, 1
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x100028660]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rdi
ret

Function at 0x100054970
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebx, 1
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x34], 0x28
mov dword [rsp + 0x30], ebx
test rdx, rdx
jne 0x1000549b4
mov eax, 0x80070057
jmp 0x100054a50
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100054a4e
cmp dword [rsp + 0x30], ebx
jne 0x1000549fd
lea rdx, [rsp + 0x40]
lea rcx, [0x100027ce8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rdi], ecx
jmp 0x100054a4c
cmp dword [rsp + 0x30], 4
jne 0x100054a4e
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100054a4e
cmp dword [rsp + 0x30], 4
jne 0x100054a4e
cmp dword [rsp + 0x38], ebx
sete al
mov dword [rdi], eax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000550dc
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100055153
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x57
test eax, eax
mov ebx, eax
cmove ebx, esi
cmp ebx, 5
jne 0x100055153
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100055153
test al, 1
je 0x100055153
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100055153
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x100055146
xor ebx, ebx
jmp 0x100055153
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
cmove ebx, esi
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret