joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001808
Capabilities:
Resolve function by parsing pe exports

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
push r15
movsxd rax, dword [rcx + 0x3c]
mov r8, rcx
mov ecx, 0x8664
mov rbp, rdx
cmp word [rax + r8 + 4], cx
jne 0x140001840
mov ecx, dword [rax + r8 + 0x88]
jmp 0x140001845
mov ecx, dword [rax + r8 + 0x78]
mov r9d, ecx
xor r10d, r10d
mov r14d, dword [r9 + r8 + 0x20]
mov esi, dword [r9 + r8 + 0x24]
add r14, r8
mov ecx, dword [r9 + r8 + 0x18]
add rsi, r8
dec ecx
lea ebx, [rcx + r10]
shr ebx, 1
mov edx, dword [r14 + rbx*4]
add rdx, r8
cmp rbp, rdx
je 0x1400018b2
test rbp, rbp
je 0x1400018aa
test rdx, rdx
je 0x1400018a4
mov rax, rbp
sub rax, rdx
movsx r11d, byte [rax + rdx]
movsx edi, byte [rdx]
inc rdx
test r11b, r11b
je 0x140001899
cmp r11b, dil
je 0x140001884
mov edx, r11d
sub edx, edi
js 0x1400018aa
test edx, edx
jle 0x1400018b2
lea r10d, [rbx + 1]
jmp 0x1400018ad
lea ecx, [rbx - 1]
cmp ecx, r10d
jae 0x140001862
cmp ecx, r10d
jb 0x1400018d6
movzx eax, word [rsi + rbx*2]
cmp eax, dword [r9 + r8 + 0x14]
jae 0x1400018d6
mov eax, dword [r9 + r8 + 0x1c]
movzx ecx, word [rsi + rbx*2]
add rax, r8
mov eax, dword [rax + rcx*4]
add rax, r8
jmp 0x1400018d8
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x140001cc0
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 0x140001d10
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.14000c7e8
test eax, eax
jne 0x140001ef2
lea edx, [rax + 0x70]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x140001daf
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 0x140001daf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140001ef2
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, [0x14001ecc2]
lea rcx, [0x14001ec20]
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 0x140001e5a
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 0x140001eba
cmp qword [rsp + 0x198], 0
jne 0x140001eba
test rbx, rbx
je 0x140001eaf
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 0x140001ed6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140001ef2
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 0x140001f18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r9d, r9d
lea rdi, [0x140024c10]
mov eax, r9d
mov rcx, rdi
mov rbx, rdx
cmp word [rcx], 6
je 0x140001f53
inc eax
add rcx, 0x10
cmp eax, 8
jb 0x140001f35
xor al, al
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov ecx, eax
add rcx, rcx
movzx r10d, word [rdi + rcx*8 + 2]
cmp r10, 0x200
ja 0x140001f46
mov rax, qword [sym.imp.ntdll.dll_RtlNtdllName]
mov r8, r9
mov rdi, qword [rdi + rcx*8 + 8]
shr r10, 1
mov rcx, qword [rax]
jmp 0x140001fa5
movzx edx, ax
mov r11d, 8
xor r8, rdx
mov rax, r9
rol r8, 8
add r8, rax
add rax, 7
add r8, rdx
sub r11, 1
jne 0x140001f8d
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140001f7e
test r10, r10
je 0x140001fd9
movzx edx, word [rdi]
lea rdi, [rdi + 2]
movzx ecx, dx
xor cx, r9w
movzx r9d, dx
sub cx, r8w
rol r8, 8
mov word [rbx], cx
lea rbx, [rbx + 2]
sub r10, 1
jne 0x140001fb2
mov al, 1
jmp 0x140001f48

Function at 0x140001fe0
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 0x140002018
cmp dword [rcx], 0x55504355
je 0x140002018
cmp dword [rcx], 0x43504355
je 0x140002018
cmp dword [rcx], 0x4b504355
je 0x140002018
xor eax, eax
jmp 0x14000206b
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 0x140002038
xor eax, eax
jmp 0x14000206b
mov eax, dword [rdi + 4]
test eax, eax
je 0x140002065
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x140002065
cmp eax, esi
jbe 0x14000204e
xor eax, eax
jmp 0x14000206b
cmp ecx, esi
jbe 0x140002056
xor eax, eax
jmp 0x14000206b
cmp ecx, eax
jbe 0x14000205e
xor eax, eax
jmp 0x14000206b
mov eax, 1
jmp 0x14000206b
xor eax, eax
jmp 0x14000206b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004294
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 0x1400042c8
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 0x14000439d
lea r8d, [rbx + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140004394
mov rcx, rax
call fcn.140004294
mov edi, eax
cmp eax, 4
je 0x140004389
cmp eax, 6
je 0x140004336
cmp eax, 3
jne 0x14000435a
mov ebp, 5
mov rcx, rsi
call fcn.140004294
mov edi, eax
cmp eax, 4
je 0x140004389
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 0xffffffff
jne 0x14000433b
cmp edi, 1
jne 0x14000438b
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14000438b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140004294
cmp eax, 4
jne 0x14000438b
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 0x1400043bc
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 rdi, rcx
lea rdx, [rbp + 0x180]
xor ebx, ebx
xor ecx, ecx
mov qword [rbp + 0x180], rbx
mov qword [rbp + 0x178], rbx
call fcn.14000b9d8
test eax, eax
js 0x14000456f
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rbx
lea rdx, str.ms_windows_store
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004470
mov rcx, qword [rbp + 0x178]
lea r9d, [rbx + 1]
mov dword [rsp + 0x28], ebx
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rbx
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.140001a5c
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rdx, [0x14001f628]
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001a20
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000455b
mov rax, rdi
test rdi, rdi
jne 0x1400044ff
mov rax, rbx
jmp 0x140004513
cmp word [rdi], bx
je 0x14000450d
add rax, 2
cmp word [rax], bx
jne 0x140004504
sub rax, rdi
sar rax, 1
mov rcx, qword [rbp + 0x178]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x14001f808]
mov r9d, 1
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xc000014d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004560
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 0x140004584
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
and qword [rbp + 0x5c0], 0
lea rdi, [rsp + 0x40]
xor eax, eax
mov rsi, rcx
mov ebx, 0xc0000022
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
xor ecx, ecx
lea edx, [rax + 2]
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rcx, str.AppXSvc
mov r15d, eax
call fcn.1400042c8
mov r14b, al
test al, al
je 0x140004714
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x14000477f
lea rdx, [rbp + 0x5c0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x14000477f
lea rcx, [rsp + 0x40]
call fcn.14000bae4
mov ebx, eax
test eax, eax
js 0x14000477f
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x5b8]
and dword [rbp + 0x5b8], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x30], 0
and qword [rbp + 0x5c8], 0
call fcn.14000c124
mov edi, 1
test eax, eax
je 0x1400046e7
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.14000b9d8
test eax, eax
js 0x1400046cf
mov rdx, qword [rsp + 0x38]
lea rax, [rbp + 0x5c8]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400046c4
and dword [rsp + 0x28], eax
lea rdx, str.NoOpenWith
mov rcx, qword [rbp + 0x5c8]
mov r9d, edi
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x5c8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x1400268c8]
xor edx, edx
mov r8, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdx, qword [rbp + 0x5c0]
lea rax, str.URL:ms_windows_store
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x20], edi
lea rcx, str.ms_windows_store
call fcn.14000bdc0
jmp 0x14000471c
mov rcx, rsi
call fcn.1400043bc
mov edi, eax
test eax, eax
js 0x140004778
mov rdx, qword [0x1400268c8]
lea rcx, [rbp + 0x170]
add rdx, 0x26a
call fcn.140001a5c
lea rdx, str.WSReset.exe
lea rcx, [rbp + 0x170]
call fcn.140001a20
or dword [rsp + 0x20], 0xffffffff
lea r8, str.open
xor edx, edx
lea rcx, [rbp + 0x170]
xor r9d, r9d
call fcn.14000a0b0
neg eax
sbb edi, edi
not edi
and edi, 0xc0000022
mov ebx, edi
test r14b, r14b
je 0x1400047ab
mov r8, qword [rbp + 0x5c0]
test r8, r8
je 0x140004805
lea r9, [rsp + 0x40]
lea rdx, str.ms_windows_store
call fcn.14000c068
mov rcx, qword [rbp + 0x5c0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140004805
and qword [rbp + 0x5b8], 0
lea rdx, [rbp + 0x5b8]
xor ecx, ecx
call fcn.14000b9d8
test eax, eax
js 0x140004805
lea rdx, str.ms_windows_store
lea rcx, [rsp + 0x60]
call fcn.140001a5c
lea rdx, str._shell
lea rcx, [rsp + 0x60]
call fcn.140001a20
mov rcx, qword [rbp + 0x5b8]
lea rdx, [rsp + 0x60]
call fcn.14000a4b4
mov rcx, qword [rbp + 0x5b8]
call qword [sym.imp.ntdll.dll_NtClose]
test r15d, r15d
js 0x140004810
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x680
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000482c
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 0x140004960
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 0x140004960
mov edx, dword [rbp + 0x1c8]
test edx, edx
je 0x140004960
lea rdi, [rbp - 0x80]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, r14d
test edx, edx
je 0x140004960
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 0x140004956
cmp dword [rsp + 0x60], 3
jne 0x140004951
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140001bb8
test rax, rax
je 0x140004951
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140004951
inc ebx
mov word [rbp - 0x80], r14w
inc edi
cmp edi, dword [rbp + 0x1c8]
jb 0x1400048e4
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 0x140006a60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov r11, rcx
lea rdi, [rbp + 0x380]
xor r15d, r15d
xor eax, eax
mov r10d, edx
mov qword [rsp + 0x60], r15
mov r12d, 0x410
mov dword [rbp + 0x7d0], r15d
mov ecx, r12d
mov dword [rbp + 0x7d8], r15d
rep stosb byte [rdi], al
mov rdi, qword [0x1400268c8]
lea rcx, [rbp + 0x380]
mov esi, 0xc0000022
lea rdx, [rdi + 0x474]
call fcn.140001a5c
cmp dword [rdi + 0xc], 0x2580
lea rcx, [rbp + 0x380]
lea rdx, [0x140020208]
jb 0x140006aee
lea rdx, str.MSCOREE.DLL
call fcn.140001a20
mov r8d, r10d
lea rcx, [rbp + 0x380]
mov rdx, r11
xor r9d, r9d
call fcn.14000944c
mov r14d, eax
test eax, eax
je 0x140006ca0
lea rax, [rsp + 0x60]
mov r9d, 0x2000000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionKnownFunctionTableDlls
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006ca0
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x7d8]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140006ca0
mov ecx, dword [rbp + 0x7d0]
test ecx, ecx
je 0x140006ca0
mov eax, dword [rbp + 0x7d8]
dec eax
cmp eax, 0x103
ja 0x140006ca0
mov ebx, r15d
test ecx, ecx
je 0x140006ca0
mov qword [rsp + 0x38], r15
lea rdi, [rsp + 0x70]
xor eax, eax
mov qword [rsp + 0x30], r15
mov rcx, r12
mov qword [rsp + 0x28], r15
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x68], 0x104
mov edx, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400019b4
mov rcx, rax
test rax, rax
je 0x140006ca0
jmp 0x140006c1f
add rax, 2
cmp word [rax], r15w
jne 0x140006c1b
cmp word [rax - 2], 0x5c
jne 0x140006c31
mov word [rax - 2], r15w
call fcn.140009e58
test eax, eax
je 0x140006ca0
inc ebx
cmp ebx, dword [rbp + 0x7d0]
jb 0x140006bbf
mov rdx, qword [0x1400268c8]
lea rdi, [rsp + 0x70]
xor eax, eax
mov rcx, r12
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
add rdx, 0x26a
call fcn.140001a5c
lea rdx, str.dcomcnfg.exe
lea rcx, [rsp + 0x70]
call fcn.140001a20
xor r8d, r8d
mov dword [rsp + 0x20], 0x2ee0
xor edx, edx
lea rcx, [rsp + 0x70]
mov r9d, 5
call fcn.14000a0b0
test eax, eax
cmovne esi, r15d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140006cb0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14d, r14d
je 0x140006cba
call fcn.140009758
lea r11, [rsp + 0x890]
mov eax, esi
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 0x14000807c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea rdx, str.DelegateExecute
lea rcx, [rax - 0x18]
mov dword [rax + 0x18], esi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], esi
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
js 0x14000811f
mov rax, rbx
test rbx, rbx
jne 0x1400080db
mov eax, esi
jmp 0x1400080ef
cmp word [rbx], si
je 0x1400080e9
add rax, 2
cmp word [rax], si
jne 0x1400080e0
sub rax, rbx
sar rax, 1
lea eax, [rax*2 + 2]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x30]
mov r9d, 1
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140009758
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x430
mov rdx, qword [0x1400268c8]
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
add rdx, 0x474
call fcn.140001a5c
lea rdx, str.update.msu
lea rcx, [rsp + 0x20]
call fcn.140001a20
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x430
pop rdi
ret

Function at 0x140009e58
Capabilities:
Create thread
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov r9, rcx
mov qword [r11 - 0x10], rax
lea r8, [0x1400098d8]
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140009f0e
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400097ac]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140009ee5
mov edx, 0x3a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140009edc
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140009f05
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1400268b0]
cmp ecx, 1
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000a018
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov dword [rax + 0x10], ebx
mov rsi, rdx
test rdx, rdx
je 0x14000a096
test r8d, r8d
je 0x14000a096
mov qword [rax - 0x18], rbx
xor r9d, r9d
mov dword [rax - 0x20], ebx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x28], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000a096
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], edi
sete bl
mov eax, ebx
jmp 0x14000a098
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret