joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bed0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400159f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001bf5a
cmp byte [rbp - 0x21], r15b
je 0x14001bf55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001bf90
call fcn.140012794
test eax, eax
jne 0x14001bf7c
cmp byte [rbp - 0x21], r15b
je 0x14001bf74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001bf90
cmp byte [rbp - 0x21], r15b
je 0x14001bf8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140014fd8
test eax, eax
jne 0x14001c030
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400159f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001bfcf
cmp byte [rbp - 0x21], r15b
je 0x14001c004
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c004
call fcn.140012794
test eax, eax
jne 0x14001bff0
cmp byte [rbp - 0x21], r15b
je 0x14001bfe9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c004
cmp byte [rbp - 0x21], r15b
je 0x14001c001
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140014fd8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c030
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c033
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c041
mov rcx, rdi
call fcn.140012544
cmp byte [rbp + 0x3f], r15b
je 0x14001c050
mov rcx, qword [rbp + 0x27]
call fcn.140012544
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001e5c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001e5e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001e5e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x141168058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411681df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141168089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14116806f
add dl, dl
jne 0x141168096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411680f6
xor eax, eax
add dl, dl
jne 0x1411680a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411681ad
add dl, dl
jne 0x1411680b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411680c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411680d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411680dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411680ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14116807e
mov eax, 1
add dl, dl
jne 0x141168106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141168113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411680fb
sub eax, ebx
mov ebx, 1
jne 0x14116814c
mov ecx, 1
add dl, dl
jne 0x14116812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14116813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141168123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141168168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141168175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14116815d
cmp eax, 0x7d00
jae 0x14116819b
cmp eax, 0x500
jb 0x141168196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116807e
cmp eax, 0x7f
ja 0x14116819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14116807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411681d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
invalid
Function at 0x140001d5c
Capabilities:
Bypass uac via rpc

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x150
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor edx, edx
mov sil, dl
mov qword [rax + 0x30], rdx
mov dword [rax + 0x40], edx
mov rbx, qword [rsp + 0x1b8]
test rbx, rbx
je 0x140001dac
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
lea rdi, [rsp + 0x88]
xor eax, eax
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x110]
lea ecx, [rax + 0x38]
rep stosb byte [rdi], al
mov dword [rsp + 0x134], 1
mov word [rsp + 0x138], dx
lea rdi, [rsp + 0xa0]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1b8]
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
call fcn.140010264
test eax, eax
jne 0x140001f8e
lea edx, [rax + 0x70]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x140001e4b
mov dword [rsp + 0xcc], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0xd0], rax
test rax, rax
jne 0x140001e4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140001f8e
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x68], rax
or dword [rsp + 0x60], 0xffffffff
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x50], rax
lea rax, str.WinSta0Default
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x1b8]
lea r8, [rsp + 0xa0]
lea rdx, [0x140023eb2]
lea rcx, [0x140023e10]
call qword [sym.imp.RPCRT4.dll_NdrAsyncClientCall]
or edi, 0xffffffff
mov edx, edi
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x140001ef6
or ecx, 0xffffffff
call qword [sym.imp.RPCRT4.dll_RpcRaiseException]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test eax, eax
jne 0x140001f56
cmp qword [rsp + 0x198], 0
jne 0x140001f56
test rbx, rbx
je 0x140001f4b
mov rax, qword [rsp + 0x88]
mov qword [rbx], rax
mov rax, qword [rsp + 0x90]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x98]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x14], eax
mov sil, 1
mov byte [rsp + 0x80], sil
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140001f72
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140001f8e
mov al, sil
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140002754
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
xor r12d, r12d
mov r15, r9
mov rbx, rcx
mov r14d, r12d
mov ebp, r12d
mov rax, rcx
test rcx, rcx
jne 0x14000278f
mov eax, r12d
jmp 0x1400027a5
cmp word [rcx], r12w
je 0x14000279f
add rax, 2
cmp word [rax], r12w
jne 0x140002795
sub rax, rbx
sar rax, 1
lea r13, [0x1400276a8]
mov rcx, r13
add rcx, 2
cmp word [rcx], r12w
jne 0x1400027af
sub rcx, r13
mov edx, 8
sar rcx, 1
lea rdi, [rcx + 2]
mov rcx, qword [0x14002fa70]
add rdi, rax
mov rcx, qword [rcx + 0x18]
lea r8, [rdi + rdi]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x140002885
mov rdx, rbx
mov rcx, rax
call fcn.140001af4
mov r8, rdi
mov rdx, r13
call fcn.1400103a8
lea rdx, [rsp + 0x270]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov r13d, 1
cmp rax, 0xffffffffffffffff
je 0x14000285c
mov r8, r15
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.14000299c
test eax, eax
jne 0x140002850
lea rdx, [rsp + 0x270]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002822
jmp 0x140002853
mov ebp, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002fa70]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebp, ebp
je 0x14000287e
mov eax, r13d
jmp 0x14000297a
lea r13, [0x1400276a8]
mov rax, rbx
test rbx, rbx
jne 0x140002892
mov rax, r12
jmp 0x1400028a8
cmp word [rbx], r12w
je 0x1400028a2
add rax, 2
cmp word [rax], r12w
jne 0x140002898
sub rax, rbx
sar rax, 1
mov rcx, qword [0x14002fa70]
lea rsi, [rax + 0x108]
lea r8, [rsi + rsi]
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000297a
mov rdx, rbx
mov rcx, rdi
call fcn.140001af4
mov r8, rsi
lea rdx, [0x1400273f8]
call fcn.1400103a8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002961
test byte [rsp + 0x20], 0x10
je 0x140002946
cmp word [rsp + 0x4c], 0x2e
je 0x140002946
mov rdx, rbx
mov rcx, rdi
call fcn.140001af4
lea rdx, [rsp + 0x4c]
call fcn.140001ab8
lea r8, [fcn.14000299c]
mov rdx, r13
mov rcx, rdi
mov r9, r15
call fcn.140002754
mov r14d, eax
test eax, eax
jne 0x140002958
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002906
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002fa70]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, r14d
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000392c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xfa8]
mov eax, 0x1080
call fcn.140017500
sub rsp, rax
mov rbx, rcx
lea rdi, [rsp + 0x30]
xor esi, esi
lea rdx, [rsp + 0x50]
xor eax, eax
mov dword [rbp + 0xfc0], esi
mov dword [rbp + 0xfb8], esi
mov r15d, 0x1000
lea ecx, [rsi + 0x10]
rep stosb byte [rdi], al
mov eax, dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x3c], eax
lea ecx, [rsi + 0x38]
xor eax, eax
mov dword [rsp + 0x30], 0x30b0005
rep stosb byte [rdi], al
lea r14d, [rsi + 1]
mov dword [rsp + 0x34], InitCommonControls
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov dword [rsp + 0x38], 0x48
lea r12d, [rsi + 5]
mov qword [rsp + 0x40], 0x10001000
mov byte [rsp + 0x48], r14b
mov dword [rsp + 0x4c], 0x10000
mov dword [rsp + 0x74], 2
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x140003adb
lea rdx, [rsp + 0x64]
mov dword [rsp + 0x60], 2
lea rcx, str.8a885d04_1ceb_11c9_9fe8_08002b104860
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x140003adb
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003adb
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x38]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003adb
add dword [rbx + 8], r14d
lea rdi, [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x20], rsi
mov ecx, r15d
lea r9, [rbp + 0xfb8]
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rbp - 0x80]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003adb
cmp word [rbp - 0x80], r12w
jne 0x140003adb
cmp byte [rbp - 0x7e], 0xc
jne 0x140003adb
cmp byte [rbp - 0x7d], 3
jne 0x140003adb
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x140003adb
mov eax, 0x100
cmp word [rbp - 0x68], ax
ja 0x140003adb
movzx edx, word [rbp - 0x68]
lea rcx, [rdx + 5]
and rcx, 0xfffffffffffffffc
sub rcx, rdx
sub rcx, 2
mov ecx, ecx
add rcx, rdx
cmp dword [rbp + rcx - 0x66], r14d
jne 0x140003adb
cmp word [rbp + rcx - 0x62], si
jne 0x140003adb
mov eax, r14d
jmp 0x140003add
xor eax, eax
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003afc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.140017500
sub rsp, rax
xor esi, esi
mov rbx, rcx
mov dword [rbp + 0xf70], esi
mov dword [rbp + 0xf80], esi
cmp dword [rcx + 0x10], esi
je 0x140003c96
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x140003c96
xor eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x10]
mov ecx, r8d
lea rdi, [rsp + 0x30]
rep stosb byte [rdi], al
movzx eax, word [rbx + 0x814]
lea rdi, [rbp + 0xf88]
add ax, 0x18
mov dword [rsp + 0x30], 0x3000005
mov word [rsp + 0x38], ax
lea ecx, [rsi + 8]
mov eax, dword [rbx + 8]
lea r9, [rbp + 0xf70]
mov dword [rsp + 0x3c], eax
lea r14d, [rsi + 5]
xor eax, eax
mov dword [rsp + 0x34], r8d
rep stosb byte [rdi], al
mov rcx, qword [rbx]
mov word [rbp + 0xf8e], dx
lea rdx, [rsp + 0x30]
mov word [rsp + 0x3a], si
mov dword [rbp + 0xf88], esi
mov word [rbp + 0xf8c], si
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003c96
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
lea r8d, [rsi + 8]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xf88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003c96
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003c96
inc dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rsi
mov ecx, r8d
lea r9, [rbp + 0xf80]
xor eax, eax
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003c96
cmp word [rsp + 0x40], r14w
jne 0x140003c96
cmp byte [rsp + 0x42], 2
jne 0x140003c96
cmp byte [rsp + 0x43], 3
jne 0x140003c96
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf80]
jne 0x140003c96
cmp word [rsp + 0x54], si
jne 0x140003c96
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140003c96
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call fcn.14001a9b0
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x140003c98
xor eax, eax
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400059e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rbx, rcx
lea rdx, [rbp + 0x180]
xor edi, edi
xor ecx, ecx
mov qword [rbp + 0x180], rdi
mov qword [rbp + 0x178], rdi
call fcn.14000f738
test eax, eax
js 0x140005b95
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rdi
lea rdx, str.ms_windows_store
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005a94
mov rcx, qword [rbp + 0x178]
lea r9d, [rdi + 1]
mov dword [rsp + 0x28], edi
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.ms_windows_store
lea rcx, [rsp + 0x50]
call fcn.140001af4
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001ab8
lea rdx, [0x1400275c0]
lea rcx, [rsp + 0x50]
call fcn.140001ab8
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001ab8
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005b81
mov rax, rbx
test rbx, rbx
jne 0x140005b23
mov rax, rdi
jmp 0x140005b37
cmp word [rbx], di
je 0x140005b31
add rax, 2
cmp word [rax], di
jne 0x140005b28
sub rax, rbx
sar rax, 1
mov rcx, qword [rbp + 0x178]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140027778]
mov r9d, 1
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub edi, ebx
neg edi
sbb ebx, ebx
and ebx, 0xc000014d
jmp 0x140005b86
mov ebx, 0xc000014d
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005d98
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rsi, r8
lea rax, [rsp + 0x68]
xor r14d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1c8], r14d
mov r9d, 0x2001b
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005ecc
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140005ecc
mov edx, dword [rbp + 0x1c8]
test edx, edx
je 0x140005ecc
lea rdi, [rbp - 0x80]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, r14d
test edx, edx
je 0x140005ecc
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov edx, edi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140005ec2
cmp dword [rsp + 0x60], 3
jne 0x140005ebd
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140001c54
test rax, rax
je 0x140005ebd
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140005ebd
inc ebx
mov word [rbp - 0x80], r14w
inc edi
cmp edi, dword [rbp + 0x1c8]
jb 0x140005e50
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x290]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14000785c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
lea rdx, str.DelegateExecute
lea rcx, [rax - 0x18]
mov dword [rax + 0x18], ebx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], ebx
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
js 0x1400078e6
mov rax, rdi
test rdi, rdi
je 0x1400078ce
cmp word [rdi], bx
je 0x1400078c5
add rax, 2
cmp word [rax], bx
jne 0x1400078bc
mov rbx, rax
sub rbx, rdi
sar rbx, 1
lea eax, [rbx*2 + 2]
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.14000da34
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007fb8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov r15, rdx
xor r12d, r12d
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x1b8], r12
xor ecx, ecx
mov r14, r8
call fcn.14000f738
lea r13, str.lzx32
mov ebx, eax
test eax, eax
js 0x1400081cf
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x208
mov rdx, r13
rep stosb byte [rdi], al
lea rcx, [rsp + 0x60]
call fcn.140001af4
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001ab8
lea rdx, [0x1400275c0]
lea rcx, [rsp + 0x60]
call fcn.140001ab8
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001ab8
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov edi, 0x2000000
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400080e9
mov rax, r14
test r14, r14
jne 0x1400080a0
mov eax, r12d
jmp 0x1400080b6
cmp word [r14], r12w
je 0x1400080b0
add rax, 2
cmp word [rax], r12w
jne 0x1400080a6
sub rax, r14
sar rax, 1
mov rcx, qword [rbp + 0x1b8]
lea eax, [rax*2 + 2]
mov r9, r14
mov dword [rsp + 0x20], eax
xor edx, edx
call fcn.14000da34
mov rcx, qword [rbp + 0x1b8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x1400081cf
lea rdx, str.ms_settings
mov qword [rbp + 0x1b8], r12
lea rcx, [rsp + 0x60]
call fcn.140001af4
lea rdx, [0x1400275c0]
lea rcx, [rsp + 0x60]
call fcn.140001ab8
lea rdx, str.CurVer
lea rcx, [rsp + 0x60]
call fcn.140001ab8
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x40], r12
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400081cf
mov rax, r13
add rax, 2
cmp word [rax], r12w
jne 0x14000815f
mov rcx, qword [rbp + 0x1b8]
sub rax, r13
sar rax, 1
mov r9, r13
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
call fcn.14000da34
mov ebx, eax
test eax, eax
js 0x1400081b2
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14000dd50
test eax, eax
cmovne ebx, r12d
mov rcx, qword [rbp + 0x1b8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x50]
mov rdx, r13
call fcn.14000e2fc
cmp qword [rsp + 0x50], r12
je 0x1400081ee
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
lea r11, [rsp + 0x270]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret