joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002758
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 0x140002793
mov eax, r12d
jmp 0x1400027a9
cmp word [rcx], r12w
je 0x1400027a3
add rax, 2
cmp word [rax], r12w
jne 0x140002799
sub rax, rbx
sar rax, 1
lea r13, [0x140035798]
mov rcx, r13
add rcx, 2
cmp word [rcx], r12w
jne 0x1400027b3
sub rcx, r13
mov edx, 8
sar rcx, 1
lea rdi, [rcx + 2]
mov rcx, qword [0x14003ec68]
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 0x140002889
mov rdx, rbx
mov rcx, rax
call fcn.140001af8
mov r8, rdi
mov rdx, r13
call fcn.140010a14
lea rdx, [rsp + 0x270]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov r13d, 1
cmp rax, 0xffffffffffffffff
je 0x140002860
mov r8, r15
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.1400029a0
test eax, eax
jne 0x140002854
lea rdx, [rsp + 0x270]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140002857
jmp 0x140002826
mov ebp, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14003ec68]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebp, ebp
je 0x140002882
mov eax, r13d
jmp 0x14000297e
lea r13, [0x140035798]
mov rax, rbx
test rbx, rbx
jne 0x140002896
mov rax, r12
jmp 0x1400028ac
cmp word [rbx], r12w
je 0x1400028a6
add rax, 2
cmp word [rax], r12w
jne 0x14000289c
sub rax, rbx
sar rax, 1
mov rcx, qword [0x14003ec68]
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 0x14000297e
mov rdx, rbx
mov rcx, rdi
call fcn.140001af8
mov r8, rsi
lea rdx, [0x140035278]
call fcn.140010a14
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002965
test byte [rsp + 0x20], 0x10
je 0x14000294a
cmp word [rsp + 0x4c], 0x2e
je 0x14000294a
mov rdx, rbx
mov rcx, rdi
call fcn.140001af8
lea rdx, [rsp + 0x4c]
call fcn.140001abc
lea r8, [fcn.1400029a0]
mov rdx, r13
mov rcx, rdi
mov r9, r15
call fcn.140002758
mov r14d, eax
test eax, eax
jne 0x14000295c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000290a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14003ec68]
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 0x140002ae8
Capabilities:
Accept command line arguments
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov r12, rcx
mov dword [rsp + 0x30], 0x5c003a
xor eax, eax
mov dword [rsp + 0x34], 0x79006d
mov r14d, r8d
mov dword [rsp + 0x38], 0x700061
mov r15, rdx
mov dword [rsp + 0x3c], 0x2e0070
mov ecx, 0x208
mov dword [rsp + 0x40], 0x780065
lea rdi, [rbp + 0x160]
mov dword [rsp + 0x44], 0x65
rep stosb byte [rdi], al
xor ebx, ebx
lea rdx, [rbp + 0x160]
xor ecx, ecx
mov r8d, 0x104
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x160]
call fcn.140001c58
test rax, rax
je 0x140002b89
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlExitUserProcess]
lea rcx, [rbp + 0x3b8]
mov dword [rbp + 0x3b8], ebx
call qword [sym.imp.ntdll.dll_RtlQueryElevationFlags]
test byte [rbp + 0x3b8], 1
jne 0x140002baf
mov eax, 0xc000042c
jmp 0x140002d16
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140002bca
mov eax, 0xc00000e5
jmp 0x140002d16
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp qword [0x14003ec58], rbx
jne 0x140002bf1
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [0x14003ec58], rax
mov ecx, dword [r12]
cmp ecx, 0xabcdef
jne 0x140002c74
xor eax, eax
mov dword [rbp + 0x3b8], ebx
lea rdi, [rsp + 0x50]
mov ecx, 0x20a
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rax
lea rax, [rbp + 0x3b8]
mov qword [rsp + 0x20], rax
call section..text
cmp dword [rbp + 0x3b8], ebx
je 0x140002d11
movzx edx, word [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, ebx
jmp 0x140002c6b
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x140002c70
movzx eax, dx
lea ecx, [rcx + rcx*4]
add rdi, 2
lea ecx, [rcx - 0x18]
lea ecx, [rax + rcx*2]
movzx edx, word [rdi]
test dx, dx
jne 0x140002c4f
mov dword [r12], ecx
test ecx, ecx
je 0x140002d11
cmp ecx, 0x4f
jge 0x140002d11
test r15, r15
je 0x140002c97
test r14d, r14d
je 0x140002c97
mov rbx, r15
mov esi, r14d
jmp 0x140002ce2
xor eax, eax
mov dword [rbp + 0x3b8], ebx
lea rdi, [rsp + 0x50]
mov ecx, 0x20a
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, rax
lea rax, [rbp + 0x3b8]
mov qword [rsp + 0x20], rax
call section..text
cmp dword [rbp + 0x3b8], ebx
jbe 0x140002ce2
mov esi, dword [rbp + 0x3b8]
lea rbx, [rsp + 0x50]
lea rcx, [0x140003860]
call fcn.14000de38
mov r9, rax
mov r8d, esi
mov rdx, rbx
call fcn.14000f9fc
mov qword [0x14003ec68], rax
neg rax
sbb eax, eax
not eax
and eax, 0x40000015
jmp 0x140002d16
mov eax, 0xc000000d
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140002d84
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x30
mov dword [rax + 0x18], 1
mov rbx, rdx
mov dword [rax + 8], 0x7f
lea rax, [rax + 0x20]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Environment
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002e0a
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rdx, str.UacVerifyPriv
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002dff
mov eax, 1
jmp 0x140002e0c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140002e58
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x120
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xfe
call fcn.1400245a0
call fcn.14000dc94
mov ecx, eax
mov ebx, eax
call fcn.140002e14
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
call fcn.140002d84
test eax, eax
je 0x140002eb7
lea rdx, [rsp + 0x20]
lea rcx, str.Privileges:__s__r_n
call fcn.140002a94
lea rcx, str.cmd__c__setx_UacVerifyPriv______nul_2_1
call fcn.140014d60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140003558
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
cmp dword [rcx], 0x44504355
je 0x140003590
cmp dword [rcx], 0x55504355
je 0x140003590
cmp dword [rcx], 0x43504355
je 0x140003590
cmp dword [rcx], 0x4b504355
je 0x140003590
xor eax, eax
jmp 0x1400035e3
mov ebx, dword [rcx + 0xc]
and dword [rcx + 0xc], 0
mov r8d, 0x20
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlComputeCrc32]
cmp eax, ebx
je 0x1400035b0
xor eax, eax
jmp 0x1400035e3
mov eax, dword [rdi + 4]
test eax, eax
je 0x1400035dd
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x1400035dd
cmp eax, esi
jbe 0x1400035c6
xor eax, eax
jmp 0x1400035e3
cmp ecx, esi
jbe 0x1400035ce
xor eax, eax
jmp 0x1400035e3
cmp ecx, eax
jbe 0x1400035d6
xor eax, eax
jmp 0x1400035e3
mov eax, 1
jmp 0x1400035e3
xor eax, eax
jmp 0x1400035e3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003d28
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.1400279d0
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 0x140003ed7
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 0x140003ed7
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 0x140003ed7
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 0x140003ed7
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 0x140003ed7
cmp word [rbp - 0x80], r12w
jne 0x140003ed7
cmp byte [rbp - 0x7e], 0xc
jne 0x140003ed7
cmp byte [rbp - 0x7d], 3
jne 0x140003ed7
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x140003ed7
mov eax, 0x100
cmp word [rbp - 0x68], ax
ja 0x140003ed7
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 0x140003ed7
cmp word [rbp + rcx - 0x62], si
jne 0x140003ed7
mov eax, r14d
jmp 0x140003ed9
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 0x140003ef8
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.1400279d0
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 0x140004092
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x140004092
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 0x140004092
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 0x140004092
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 0x140004092
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 0x140004092
cmp word [rsp + 0x40], r14w
jne 0x140004092
cmp byte [rsp + 0x42], 2
jne 0x140004092
cmp byte [rsp + 0x43], 3
jne 0x140004092
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf80]
jne 0x140004092
cmp word [rsp + 0x54], si
jne 0x140004092
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140004092
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call fcn.140024960
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x140004094
xor eax, eax
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005c98
Capabilities:
Query service status

Disassembly:
sub rsp, 0x68
lea rax, [rsp + 0x78]
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov ecx, 1
cmovne ecx, dword [rsp + 0x34]
mov eax, ecx
add rsp, 0x68
ret

Function at 0x140005ccc
Capabilities:
Start service

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 r14
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.ServicesActive
xor ebx, ebx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140005da1
lea r8d, [rbx + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005d98
mov rcx, rax
call fcn.140005c98
mov edi, eax
cmp eax, 4
je 0x140005d8d
cmp eax, 6
je 0x140005d3a
cmp eax, 3
jne 0x140005d5e
mov ebp, 5
mov rcx, rsi
call fcn.140005c98
mov edi, eax
cmp eax, 4
je 0x140005d8d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 0xffffffff
jne 0x140005d3f
cmp edi, 1
jne 0x140005d8f
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140005d8f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140005c98
cmp eax, 4
jne 0x140005d8f
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005dc0
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.14000fda4
test eax, eax
js 0x140005f75
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 0x140005e74
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.140001af8
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001abc
lea rdx, [0x1400356b0]
lea rcx, [rsp + 0x50]
call fcn.140001abc
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001abc
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 0x140005f61
mov rax, rbx
test rbx, rbx
jne 0x140005f03
mov rax, rdi
jmp 0x140005f17
cmp word [rbx], di
je 0x140005f11
add rax, 2
cmp word [rax], di
jne 0x140005f08
sub rax, rbx
sar rax, 1
mov rcx, qword [rbp + 0x178]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140035868]
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 0x140005f66
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 0x140006178
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 0x1400062ac
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 0x1400062ac
mov edx, dword [rbp + 0x1c8]
test edx, edx
je 0x1400062ac
lea rdi, [rbp - 0x80]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, r14d
test edx, edx
je 0x1400062ac
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 0x1400062a2
cmp dword [rsp + 0x60], 3
jne 0x14000629d
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140001c58
test rax, rax
je 0x14000629d
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14000629d
inc ebx
mov word [rbp - 0x80], r14w
inc edi
cmp edi, dword [rbp + 0x1c8]
jb 0x140006230
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 0x140007d10
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 0x140007d9a
mov rax, rdi
test rdi, rdi
je 0x140007d82
cmp word [rdi], bx
je 0x140007d79
add rax, 2
cmp word [rax], bx
jne 0x140007d70
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.14000e078
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008458
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.14000fda4
lea r13, str.lzx32
mov ebx, eax
test eax, eax
js 0x14000865c
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x208
mov rdx, r13
rep stosb byte [rdi], al
lea rcx, [rsp + 0x60]
call fcn.140001af8
lea rdx, str._shellopen
lea rcx, [rsp + 0x60]
call fcn.140001abc
lea rdx, [0x1400356b0]
lea rcx, [rsp + 0x60]
call fcn.140001abc
lea rdx, str.command
lea rcx, [rsp + 0x60]
call fcn.140001abc
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 0x140008589
mov rax, r14
test r14, r14
jne 0x140008540
mov eax, r12d
jmp 0x140008556
cmp word [r14], r12w
je 0x140008550
add rax, 2
cmp word [rax], r12w
jne 0x140008546
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.14000e078
mov rcx, qword [rbp + 0x1b8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
js 0x14000865c
lea rdx, str.ms_settings
mov qword [rbp + 0x1b8], r12
lea rcx, [rsp + 0x60]
call fcn.140001af8
lea rdx, [0x1400356b0]
lea rcx, [rsp + 0x60]
call fcn.140001abc
lea rdx, str.CurVer
lea rcx, [rsp + 0x60]
call fcn.140001abc
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 0x14000865c
mov rax, r13
add rax, 2
cmp word [rax], r12w
jne 0x1400085ff
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.14000e078
mov ebx, eax
test eax, eax
js 0x14000863f
mov rcx, r15
call fcn.14000e3ec
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.14000e968
cmp qword [rsp + 0x50], r12
je 0x14000867b
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
Function at 0x140008a78
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
mov rdx, qword [0x14003ec68]
lea rcx, [rsp + 0x20]
add rdx, 0x47c
call fcn.140001af8
xor edi, edi
lea rbx, [rsp + 0x20]
cmp word [rsp + 0x20], di
je 0x140008ab4
add rbx, 2
cmp word [rbx], di
jne 0x140008aab
lea rax, [rsp + 0x20]
sub rbx, rax
lea rdx, str.kmkze.msc
lea rcx, [rsp + 0x20]
sar rbx, 1
call fcn.140001abc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.readme.html
mov word [rsp + rbx*2 + 0x20], di
lea rcx, [rsp + 0x20]
call fcn.140001abc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [0x140036150]
mov word [rsp + rbx*2 + 0x20], di
lea rcx, [rsp + 0x20]
call fcn.140001abc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret