joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030504
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, 1
lea edx, [rbx + 0x7f]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10003058d
mov rcx, qword [rdi]
lea r9, [rsp + 0x20]
lea rdx, [0x10000b5a0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10003057a
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x10003057d
mov rcx, qword [rdi]
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor bl, bl
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10005cbe0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x1000305b8
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x100030662
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.10005cbe0
add rsp, 0x88
ret
Function at 0x1000309d4
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
mov ebx, 0x270f
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100030a9b
cmp dword [rsp + 0x30], 2
jne 0x100030a76
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x100030a34
mov ebx, 2
jmp 0x100030a9b
cmp eax, 5
jne 0x100030a5a
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x100030a46
lea ebx, [rax + 3]
jmp 0x100030a9b
cmp eax, 1
jne 0x100030a50
lea ebx, [rax + 3]
jmp 0x100030a9b
cmp eax, 2
jne 0x100030a9b
lea ebx, [rax + 3]
jmp 0x100030a9b
cmp eax, 6
jne 0x100030a9b
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x100030a6c
lea ebx, [rax + 6]
jmp 0x100030a9b
cmp eax, 1
jne 0x100030a9b
lea ebx, [rax + 6]
jmp 0x100030a9b
cmp dword [rsp + 0x30], 1
jne 0x100030a9b
cmp dword [rsp + 0x24], 4
jne 0x100030a9b
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x100030a96
cmp eax, 0xa
je 0x100030a96
cmp eax, 0x5a
jne 0x100030a9b
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10005cbe0
add rsp, 0x150
pop rbx
ret
Function at 0x100031248
Capabilities:
Copy file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rax - 0x38]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x78]
call fcn.10001e06c
nop
mov rcx, rbx
call fcn.10002fbcc
xor esi, esi
cmp al, sil
jne 0x1000312cc
lea ecx, [rsi + 0x7b]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
xor eax, eax
jmp 0x1000314f4
mov rcx, rdi
call fcn.10002fbf4
cmp al, sil
jne 0x100031307
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
xor eax, eax
jmp 0x1000314f4
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.100030bdc
cmp eax, esi
jne 0x100031346
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
xor eax, eax
jmp 0x1000314f4
mov edx, 0x2e
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rsi
je 0x1000314cb
mov rcx, qword [rbx]
sub rax, rcx
sar rax, 1
cmp eax, 0xffffffff
je 0x1000314cb
mov r8d, dword [rcx - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.10003286c
nop
mov rdx, qword [rsp + 0x28]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.10001ed3c
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.10002f9d0
cmp al, sil
jne 0x1000313e7
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
xor eax, eax
jmp 0x1000314f4
lea rcx, [rsp + 0x78]
call fcn.10002fbcc
cmp al, sil
jne 0x100031482
mov rcx, qword [rsp + 0x78]
call fcn.10005ab8c
cmp eax, esi
je 0x100031441
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
xor eax, eax
jmp 0x1000314f4
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, esi
jne 0x100031482
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
jmp 0x1000314bf
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.10001e1c8
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov esi, 1
mov rcx, rdi
call fcn.10001f3ec
mov eax, esi
jmp 0x1000314f4
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov rcx, rbx
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x100031934
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rbp, rcx
xor r12d, r12d
cmp rcx, r12
jne 0x100031965
lea eax, [r12 + 0x57]
jmp 0x100031abb
lea rcx, [rsp + 0x50]
call fcn.10001e06c
nop
mov rbx, qword [rsp + 0x50]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov edi, 0x105
sub eax, edi
or eax, ecx
jge 0x10003199c
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.10001edf8
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0xc], edi
jl 0x100031ab0
mov dword [rbx - 0x10], edi
mov word [rbx + 0x20a], r12w
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movsxd rsi, eax
cmp esi, dword [rbx - 0x10]
jbe 0x100031a47
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r12d
jl 0x100031a3c
cmp ecx, dword [rbx - 0xc]
jg 0x100031a3c
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], r12w
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x100031a10
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.10001edf8
mov rbx, qword [rsp + 0x50]
cmp esi, r12d
jl 0x100031a31
cmp esi, dword [rbx - 0xc]
jg 0x100031a31
mov dword [rbx - 0x10], esi
mov word [rbx + rsi*2], r12w
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
jmp 0x100031a47
mov ecx, 0x80070057
call fcn.10001f28c
int3
mov ecx, 0x80070057
call fcn.10001f28c
int3
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r12d
jl 0x100031aa5
cmp ecx, dword [rbx - 0xc]
jg 0x100031aa5
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], r12w
cmp esi, r12d
jne 0x100031a89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
mov eax, edi
jmp 0x100031abb
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.10001e1c8
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
xor eax, eax
jmp 0x100031abb
mov ecx, 0x80070057
call fcn.10001f28c
int3
mov ecx, 0x80070057
call fcn.10001f28c
nop
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x100031c48
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8d, 6
lea rdx, [rsp + 0x28]
lea rcx, [0x10000b5e0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100031ca5
cmp eax, 6
ja 0x100031ca5
mov eax, 0x31
cmp ax, word [rsp + 0x28]
je 0x100031c8c
xor eax, eax
jmp 0x100031ca7
and dword [rsp + 0x20], 0
movzx eax, byte [0x7ffe02d4]
mov dword [rsp + 0x20], eax
jmp 0x100031ca3
jmp 0x100031ca7
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10005cbe0
add rsp, 0x48
ret
Function at 0x100032510
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x58]
call fcn.10001e06c
nop
mov rax, qword [rdi]
cmp dword [rax - 0x10], ebx
jne 0x100032546
jmp 0x1000325fe
lea rdx, [0x10000b620]
lea rcx, [rsp + 0x60]
call fcn.10001e134
nop
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000325f9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x10000b620]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000325fe
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, 1
cmp eax, ebx
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000325fe
mov ebx, 1
lea rcx, [rsp + 0x58]
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x10003e358
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x50], 4
call fcn.10003f274
xor ebx, ebx
cmp eax, ebx
jne 0x10003e384
xor eax, eax
jmp 0x10003e3b1
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0x50]
lea rdx, [0x100008ec0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x10003e708
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, r8
mov r12, rcx
cmp edx, 4
jne 0x10003e72e
lea rdi, [0x10000dc50]
jmp 0x10003e75a
cmp edx, 9
jne 0x10003e73c
lea rdi, [0x10000e018]
jmp 0x10003e75a
cmp edx, 0xa
jne 0x10003e74a
lea rdi, [0x10000bbb0]
jmp 0x10003e75a
cmp edx, 8
jne 0x10003e7f1
lea rdi, [0x10000e040]
call fcn.10003f274
xor ebx, ebx
cmp eax, ebx
je 0x10003e7f1
mov rcx, qword [r12 + 0x20]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10003e7f1
mov eax, dword [rsp + 0x58]
cmp eax, 1
jbe 0x10003e7f1
add eax, 4
mov ecx, eax
mov dword [rsp + 0x58], eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rsi, rax
cmp rax, rbx
je 0x10003e7f1
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [r12 + 0x20]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10003e806
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rdx, rsi
mov rcx, rbp
call fcn.10003de0c
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp qword [rbp + 0x10], rbx
setne bl
mov eax, ebx
jmp 0x10003e7f3

Function at 0x10003e82c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.10003f274
test eax, eax
jne 0x10003e851
xor eax, eax
jmp 0x10003e8ba
mov rcx, qword [rsi + 0x20]
lea rdx, [0x10000e078]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003e84d
mov ecx, dword [rdi]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rbx], rax
test rax, rax
je 0x10003e84d
mov rcx, qword [rsi + 0x20]
lea rdx, [0x10000e078]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10003e8b5
mov rcx, qword [rbx]
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x10003e84d
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x10003e8d0
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x28], 0
jne 0x10003e911
mov rcx, rdx
call fcn.10001f3ec
nop
mov esi, 0x10a
jmp 0x10003ea0c
lea rcx, [rsp + 0x50]
call fcn.10001e06c
nop
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
je 0x10003ea38
mov rax, qword [rbp]
cmp dword [rax - 0x10], 0
je 0x10003ea38
mov rcx, rdi
call fcn.10002fbcc
test al, al
jne 0x10003e961
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
nop
mov esi, 2
jmp 0x10003ea0c
lea rcx, [rbx + 0x10]
lea r8, [rsp + 0x50]
mov rdx, rbp
call fcn.10002f9d0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.10005ab8c
mov esi, eax
test eax, eax
je 0x10003e99b
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
nop
jmp 0x10003ea0c
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10003ea18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 5
jne 0x10003e9f8
lea edx, [rax + 0x7b]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10003ea18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
nop
jmp 0x10003ea0c
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
mov eax, esi
jmp 0x10003ea59
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
xor eax, eax
jmp 0x10003ea59
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
nop
mov rcx, rdi
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
mov eax, 0x57
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x10003ed5c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov edi, edx
mov r12, rcx
lea rax, [r11 + 0x18]
mov qword [r11 + 0x20], rax
lea rdx, [0x100008ec0]
lea rcx, [r11 + 0x18]
call fcn.10001e134
mov rbp, rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x78], edi
mov rcx, r12
call fcn.10003f274
xor ebx, ebx
cmp eax, ebx
jne 0x10003edb6
mov rcx, rbp
call fcn.10001f3ec
jmp 0x10003ee63
mov rdx, qword [rbp]
xor eax, eax
lea rdi, [0x100008ec0]
mov rsi, rdx
lea ecx, [rax + 5]
repe cmpsw word [rsi], word [rdi]
je 0x10003edd3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003ee08
xor eax, eax
lea rdi, [0x10000e090]
mov rsi, rdx
lea ecx, [rax + 0x15]
repe cmpsw word [rsi], word [rdi]
je 0x10003edf5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003ee08
mov rcx, rbp
call fcn.10001f3ec
jmp 0x10003ee63
lea rax, [rdx - 0x18]
cmp dword [rax + 0x10], 1
jle 0x10003ee25
mov edx, dword [rax + 8]
mov rcx, rbp
call fcn.10001e9a0
mov rax, qword [rbp]
sub rax, 0x18
add dword [rax + 0x10], 0xffffffff
jne 0x10003ee2f
or dword [rax + 0x10], 0xffffffff
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov rcx, rbp
call fcn.10001f3ec
mov eax, ebx
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10003ee78
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbp, r8
mov r12, rdx
mov r13, rcx
call fcn.10003f274
xor ebx, ebx
cmp eax, ebx
jne 0x10003eec7
mov rcx, r12
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
xor eax, eax
jmp 0x10003f0bb
xor eax, eax
lea rdi, [0x100008568]
mov rsi, qword [r12]
lea ecx, [rax + 4]
repe cmpsw word [rsi], word [rdi]
je 0x10003eee1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x10003ef50
lea rcx, [rsp + 0x88]
call fcn.10001e06c
nop
lea rcx, [r13 + 0x10]
lea r8, [rsp + 0x88]
mov rdx, rbp
call fcn.10002f9d0
lea rcx, [rsp + 0x88]
call fcn.10002fbcc
cmp al, bl
jne 0x10003ef43
lea rcx, [rsp + 0x88]
call fcn.10001f3ec
nop
mov rcx, r12
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
xor eax, eax
jmp 0x10003f0bb
lea rcx, [rsp + 0x88]
call fcn.10001f3ec
xor eax, eax
lea rdi, [0x100008568]
mov rsi, qword [r12]
lea ecx, [rax + 4]
repe cmpsw word [rsi], word [rdi]
je 0x10003ef6a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f022
xor eax, eax
lea rdi, [0x10000dfb0]
mov rsi, qword [r12]
lea edx, [rax + 0xc]
mov rcx, rdx
repe cmpsw word [rsi], word [rdi]
je 0x10003ef94
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f022
xor eax, eax
lea rdi, [0x10000dfc8]
mov rsi, qword [r12]
lea ecx, [rax + 0x11]
repe cmpsw word [rsi], word [rdi]
je 0x10003efbb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f022
xor eax, eax
lea rdi, [0x10000b6a8]
mov rsi, qword [r12]
mov rcx, rdx
repe cmpsw word [rsi], word [rdi]
je 0x10003efde
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f022
xor eax, eax
lea rdi, [0x10000dff0]
mov rsi, qword [r12]
lea ecx, [rax + 0x12]
repe cmpsw word [rsi], word [rdi]
je 0x10003f001
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f022
mov rcx, r12
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
xor eax, eax
jmp 0x10003f0bb
mov rax, qword [rbp]
mov esi, dword [rax - 0x10]
add rax, 0xffffffffffffffe8
cmp dword [rax + 0x10], 1
jle 0x10003f046
mov edx, dword [rax + 8]
mov rcx, rbp
call fcn.10001e9a0
mov rax, qword [rbp]
sub rax, 0x18
add dword [rax + 0x10], 0xffffffff
jne 0x10003f050
or dword [rax + 0x10], 0xffffffff
mov rdi, qword [rbp]
mov rax, qword [r12]
sub rax, 0x18
cmp dword [rax + 0x10], 1
jle 0x10003f075
mov edx, dword [rax + 8]
mov rcx, r12
call fcn.10001e9a0
mov rax, qword [r12]
sub rax, 0x18
add dword [rax + 0x10], 0xffffffff
jne 0x10003f07f
or dword [rax + 0x10], 0xffffffff
lea eax, [rsi + rsi + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
sete bl
mov rcx, r12
call fcn.10001f3ec
nop
mov rcx, rbp
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10003f0d4
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r12, r8
mov rbp, rdx
mov r13, rcx
call fcn.10003f274
xor ebx, ebx
cmp eax, ebx
jne 0x10003f10b
jmp 0x10003f250
mov rdx, qword [rbp]
xor eax, eax
lea rdi, [0x10000dc50]
mov rsi, rdx
lea ecx, [rax + 9]
repe cmpsw word [rsi], word [rdi]
je 0x10003f128
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f19b
xor eax, eax
lea rdi, [0x10000e018]
mov rsi, rdx
lea ecx, [rax + 0x13]
repe cmpsw word [rsi], word [rdi]
je 0x10003f14a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f19b
xor eax, eax
lea rdi, [0x10000bbb0]
mov rsi, rdx
lea ecx, [rax + 0x17]
repe cmpsw word [rsi], word [rdi]
je 0x10003f16c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x10003f19b
xor eax, eax
lea rdi, [0x10000e040]
mov rsi, rdx
lea ecx, [rax + 0x19]
repe cmpsw word [rsi], word [rdi]
je 0x10003f18e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
je 0x10003f250
cmp qword [r12 + 0x10], rbx
jne 0x10003f1cc
cmp dword [rdx - 8], 1
jle 0x10003f1b3
mov edx, dword [rdx - 0x10]
mov rcx, rbp
call fcn.10001e9a0
mov rdx, qword [rbp]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov ebx, 1
jmp 0x10003f250
mov dword [rsp + 0x88], ebx
lea rdx, [rsp + 0x88]
mov rcx, r12
call fcn.100031ad4
mov rsi, rax
cmp rax, rbx
je 0x10003f250
mov rcx, qword [rbp]
sub rcx, 0x18
cmp dword [rcx + 0x10], 1
jle 0x10003f20c
mov edx, dword [rcx + 8]
mov rcx, rbp
call fcn.10001e9a0
mov rcx, qword [rbp]
sub rcx, 0x18
add dword [rcx + 0x10], 0xffffffff
jne 0x10003f216
or dword [rcx + 0x10], 0xffffffff
mov eax, dword [rsp + 0x88]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp edi, ebx
sete bl
jmp 0x10003f250
mov rcx, rbp
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret