joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007ca8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180005988
xor ebx, ebx
mov rdi, rax
cmp qword [0x18001ff00], rbx
jne 0x180007dae
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180007e83
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007e83
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18001ff00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18001ff08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18001ff10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18001ff20], rax
test rax, rax
je 0x180007da5
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18001ff18], rax
jmp 0x180007db5
mov rax, qword [0x18001ff18]
jmp 0x180007dbc
mov rax, qword [0x18001ff18]
mov r11, qword [0x18001ff20]
cmp rax, rdi
je 0x180007e24
cmp r11, rdi
je 0x180007e24
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18001ff20]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180007e24
test rax, rax
je 0x180007e24
call rsi
test rax, rax
je 0x180007e1e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180007e1e
test byte [rsp + 0x38], 1
jne 0x180007e24
bts ebp, 0x15
jmp 0x180007e62
mov rcx, qword [0x18001ff08]
cmp rcx, rdi
je 0x180007e62
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007e62
call rax
mov rbx, rax
test rax, rax
je 0x180007e62
mov rcx, qword [0x18001ff10]
cmp rcx, rdi
je 0x180007e62
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007e62
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18001ff00]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007e83
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180007e85
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140029b84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180027c70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180027c98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180027c98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180028650
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001ba0
movzx eax, al
test eax, eax
jne 0x180028697
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x30]
lea rdx, [0x180037f7c]
mov rcx, rax
call fcn.180001da0
add rsp, 0x28
ret
Function at 0x10000642c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rcx], 0
mov rbx, rcx
mov dil, 1
je 0x10000651d
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.100004f60
test eax, eax
js 0x100006549
and qword [rsp + 0x40], 0
mov rbp, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x18]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
add rbx, 0x20
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100006505
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100006508
xor dil, dil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx], 0
jne 0x100006465
mov al, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x100006520

Function at 0x100006554
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor esi, esi
mov rdi, rcx
mov bl, 1
cmp qword [rcx], rsi
je 0x1000065cd
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
lea rcx, [rsp + 0x20]
mov edx, 0x100
call fcn.100004f60
cmp eax, esi
jl 0x1000065f4
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
add rdi, 0x20
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x1000065c8
cmp eax, 2
je 0x1000065c8
movzx ebx, bl
cmp eax, esi
cmovne ebx, esi
cmp qword [rdi], rsi
jne 0x100006584
mov al, bl
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x1000065cf
Function at 0x100006c54
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0xf0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor r12d, r12d
lea rsi, [0x10001bdb8]
lea rdi, [0x1000019a8]
mov ebp, r12d
lea r14, [0x10001d600]
mov r9d, dword [rdi]
lea r8, [0x100001ac0]
lea rcx, [0x10001d9f0]
mov edx, 0x28
lea rbx, [0x10001bd10]
call fcn.100004f60
cmp eax, r12d
jl 0x100006e25
mov r8, qword [rsi]
cmp r8, r12
je 0x100006d1d
mov r9d, 0x28
mov rcx, r14
mov edx, r12d
sub r8, r14
lea rax, [r9 + 0x7fffffd6]
cmp rax, r12
je 0x100006d02
movzx eax, word [r8 + rcx]
cmp ax, r12w
je 0x100006d02
mov word [rcx], ax
add rcx, 2
sub r9, 1
jne 0x100006cde
cmp r9, r12
jne 0x100006d10
sub rcx, 2
mov edx, 0x8007007a
cmp edx, r12d
mov word [rcx], r12w
jl 0x100006e52
cmp qword [0x10001bd10], r12
je 0x100006d84
lea rax, [rbx + 8]
cmp qword [rax], r12
je 0x100006d7f
cmp qword [rbx + 0x10], r12
je 0x100006d7f
mov r8, qword [rbx]
mov r9, qword [rax]
lea rcx, [rsp + 0x40]
mov edx, 0x50
mov rbx, rax
call fcn.100004f60
cmp eax, r12d
jl 0x100006e25
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x100006d7b
cmp eax, 2
je 0x100006d7b
cmp eax, r12d
je 0x100006d7b
inc ebp
add rbx, 0x20
cmp qword [rbx], r12
jne 0x100006d26
lea rax, [0x1000019b8]
add rdi, 0x10
add rsi, 8
cmp rdi, rax
jl 0x100006c9c
lea rax, [rsp + 0x30]
lea rdx, [0x100001b10]
mov r9d, 0x2011f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x100006df7
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001b78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001ba0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10000a9ac
cmp al, r12b
je 0x100006e0d
lea rcx, [0x10001bef0]
call fcn.100006554
call fcn.10000a9ac
cmp al, r12b
je 0x100006e23
lea rcx, [0x10001bce8]
call fcn.100006554
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
mov eax, edx
jmp 0x100006e25

Function at 0x100006e5c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x100001c28]
mov r8d, 0x40
mov byte [0x10001db04], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100006ecf
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x100006ecd
mov r9d, dword [0x10001daec]
and ecx, 0x1f
add r8, 2
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x100006ead
mov dword [0x10001daec], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1000170f0
add rsp, 0xb8
ret
Function at 0x10000a110
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov rbx, r9
xor r9d, r9d
mov rax, r8
mov qword [r11 - 0x18], r9
mov qword [r11 - 0x20], rax
mov dword [r11 - 0x28], r9d
movzx r10d, dx
xor r8d, r8d
mov word [r11 - 0x30], r10w
mov qword [r11 - 0x38], r9
mov r9d, ecx
lea edx, [r8 + 2]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
add rsp, 0x50
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]

Function at 0x10000a164
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x50
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x10000a199
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100002230]
mov edx, eax
call fcn.10000a81c
xor al, al
jmp 0x10000a2d3
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x10000a192
cmp byte [0x10001e24a], 0
jne 0x10000a1c2
lea rcx, [rsp + 0x20]
call fcn.100005350
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
jmp 0x10000a1cb
lea rdx, [0x10001e250]
xor eax, eax
test eax, eax
je 0x10000a1d8
lea rcx, [0x1000022f0]
jmp 0x10000a18b
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10000a1e9
mov al, 1
jmp 0x10000a2d3
cmp byte [0x10001e249], 0
jne 0x10000a203
lea rcx, [rsp + 0x20]
call fcn.10000523c
mov rdx, qword [rsp + 0x20]
jmp 0x10000a20c
lea rdx, [0x10001e350]
xor eax, eax
test eax, eax
je 0x10000a21c
lea rcx, [0x100002390]
jmp 0x10000a18b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10000a1e2
lea rbx, [0x10001e450]
cmp byte [0x10001e248], al
jne 0x10000a2ae
and dword [rsp + 0x20], eax
lea rdx, [0x100001a90]
lea rcx, [rsp + 0x38]
call qword [0x10001a880]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [0x10001a8b8]
cmp eax, 0xc0000023
je 0x10000a270
mov eax, 0xd
jmp 0x10000a2b4
cmp dword [rsp + 0x20], 0x100
jbe 0x10000a281
mov eax, 0xea
jmp 0x10000a2b4
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
mov rdx, rbx
call qword [0x10001a8b8]
test eax, eax
jns 0x10000a2a7
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x28]
jmp 0x10000a2b0
mov byte [0x10001e248], 1
xor eax, eax
test eax, eax
je 0x10000a2c0
lea rcx, [0x100002420]
jmp 0x10000a18b
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x50
pop rbx
ret
Function at 0x10000a40c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xa90
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rsi, rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov r12d, 0x105
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x270]
mov ebp, 0x401
mov dword [rsp + 0x48], r12d
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x268], ebp
mov r9d, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10000a5f7
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10000a57a
mov rcx, qword [rsp + 0x30]
call fcn.10000a2e0
test al, al
jne 0x10000a561
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11, qword [rsp + 0x40]
lea rdx, [0x100002208]
xor ecx, ecx
mov qword [rsp + 0x38], r11
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x10000a511
lea edx, [rbx + 1]
lea r8, [rsp + 0x38]
mov r9, rax
mov ecx, 0x403
call fcn.10000a110
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x1000025e0]
call fcn.100004f60
test eax, eax
js 0x10000a545
mov rcx, qword [rsp + 0x260]
xor edx, edx
call fcn.10000a81c
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.10000e260
test al, al
jne 0x10000a563
xor edx, edx
lea rcx, [0x1000026b0]
jmp 0x10000a5a9
inc edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x40]
mov edx, edi
jmp 0x10000a482
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x100002570]
call fcn.100004f60
test eax, eax
js 0x10000a5ae
mov rcx, qword [rsp + 0x260]
mov edx, ebx
call fcn.10000a81c
cmp dword [rsp + 0x268], ebp
jle 0x10000a5c5
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x48], r12d
lea rax, [rsp + 0x270]
mov dword [rsp + 0x268], ebp
mov qword [rsp + 0x260], rax
jle 0x10000a5f3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a5f3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000a650
cmp eax, 0x103
je 0x10000a609
mov edx, eax
lea rcx, [0x100002720]
jmp 0x10000a5a9
cmp dword [rsp + 0x268], ebp
jle 0x10000a620
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x48], r12d
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x268], ebp
mov qword [rsp + 0x260], rcx
jle 0x10000a64e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a64e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10000a81c
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8c0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp dword [0x10001d04c], 0xffffffff
mov ebx, eax
jne 0x10000a906
lea rax, [rsp + 0x30]
lea rdx, [0x100002960]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x10001d04c], ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10000a906
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1000029c0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x10000a8e9
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x10001d04c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x10000a906
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x10001d04c]
and eax, 3
cmp al, bpl
je 0x10000a979
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x800
mov word [rsp + 0xa0], bp
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rsp + 0xa0]
cmp edi, ebp
je 0x10000a958
lea r8, [0x1000029d0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.100004f60
jmp 0x10000a967
lea r8, [0x1000029f8]
mov r9, rsi
call fcn.100004f60
cmp eax, ebp
jl 0x10000a979
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1000170f0
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000aa68
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x880
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rcx, qword [0x10001dae0]
lea rdx, [0x10001d6a0]
xor esi, esi
mov r8d, 0x103
mov word [0x10001d8a6], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jne 0x10000aac1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000ab3e
mov word [0x10001d8a6], si
mov edi, esi
lea rbx, [0x10001bdc0]
cmp qword [0x10001bdc8], rsi
je 0x10000ab1f
mov r12d, 0x401
cmp qword [rbx], rsi
jne 0x10000ab15
mov rax, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov rdx, r12
lea rcx, [rsp + 0x60]
cmp rax, rsi
je 0x10000ab0a
mov qword [rsp + 0x20], rax
call fcn.100004f60
jmp 0x10000ab0f
call fcn.100004f60
cmp eax, esi
jge 0x10000ab68
inc edi
add rbx, 0x30
cmp qword [rbx + 8], rsi
jne 0x10000aae0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
neg edi
sbb eax, eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10000aba6
inc edi
mov r8, qword [rbx + 0x20]
cmp r8, rsi
je 0x10000ac03
mov r9, qword [rbx + 0x28]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.100004f60
add rbx, 0x30
cmp eax, esi
jl 0x10000abff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10000ac07
inc edi
jmp 0x10000ac07
add rbx, 0x30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10000ab19
Function at 0x10000ac20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x850], rax
cmp qword [0x10001bdc8], 0
lea rbx, [0x10001bdc8]
je 0x10000ad00
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
mov edx, 0x401
lea rcx, [rsp + 0x40]
test rax, rax
je 0x10000ac76
mov qword [rsp + 0x20], rax
call fcn.100004f60
jmp 0x10000ac7b
call fcn.100004f60
test eax, eax
js 0x10000ad31
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20008
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000acf2
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 0x50]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x10000ace1
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001880]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
add rbx, 0x30
cmp qword [rbx], 0
jne 0x10000ac50
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1000170f0
add rsp, 0x860
pop rbx
ret
mov eax, 0x80004005
jmp 0x10000ad18
Function at 0x10000b620
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jb 0x10000b669
cmp al, 6
jb 0x10000b669
lea rcx, [0x100002b18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x10000b669
lea rdx, [0x100002b38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10000b669
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
add rsp, 0x28
ret