joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180025d90
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
movzx r9d, cx
mov eax, 0x5e6ea9af
shr ecx, 0x10
mul r8d
mov ebx, r8d
mov esi, r8d
shr edx, 0xb
imul eax, edx, 0x15b0
sub ebx, eax
test r8d, r8d
je 0x180025ece
mov qword [rsp + 0x20], rdi
xor edx, edx
cmp ebx, 7
jbe 0x180025e39
lea r8d, [rdx + 7]
movzx eax, byte [r10]
add edx, 8
add r9d, eax
add r8d, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
cmp r8d, ebx
jb 0x180025dd2
xor r8d, r8d
xor r11d, r11d
cmp edx, ebx
jae 0x180025e96
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x180025e83
mov eax, ebx
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea edx, [rdx + rax*2]
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add r8d, r9d
add r10, 2
add r9d, eax
add r11d, r9d
sub rdi, 1
jne 0x180025e60
cmp edx, ebx
jae 0x180025e90
movzx eax, byte [r10]
add r9d, eax
add ecx, r9d
inc r10
lea eax, [r11 + r8]
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub esi, ebx
mov ebx, 0x15b0
jne 0x180025dc7
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl ecx, 0x10
lea eax, [r9 + rcx]
pop rsi
ret
Function at 0x1800302c0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, edx
lea r8, str.SCROLLX
test eax, eax
lea rdx, str.SCROLLY
cmove rdx, r8
xor r8d, r8d
jmp fcn.180011d70
Function at 0x180054380
Capabilities:
Authenticate hmac
Encode data using base64
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x2d50]
mov eax, 0x2e50
call fcn.18005b0b0
sub rsp, rax
mov rax, qword [0x180078068]
xor rax, rsp
mov qword [rbp + 0x2d40], rax
lea rcx, [0x180066e00]
jmp fcn.1800c5fc9

Function at 0x180056910
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movsx rax, dl
mov r8d, r9d
xor r8, rax
shr r9d, 8
movzx eax, r8b
lea r8, [0x18006a700]
xor r9d, dword [r8 + rax*4]
mov dword [rcx], r9d
movzx eax, r9b
add eax, dword [rcx + 4]
imul edx, eax, 0x8088405
inc edx
mov dword [rcx + 4], edx
mov ecx, dword [rcx + 8]
movzx eax, cl
shr rdx, 0x18
xor rdx, rax
shr ecx, 8
xor ecx, dword [r8 + rdx*4]
mov dword [r10 + 8], ecx
ret
Function at 0x1800593c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800593cb
xor eax, eax
ret
lea r11, [0x18006a700]
not ecx
cmp r8d, 8
jb 0x1800594a1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800593f0
test r8d, r8d
je 0x1800594cd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800594b0
not ecx
mov eax, ecx
ret
Function at 0x140001630
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax

Function at 0x140001ecc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f16
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f18
xor al, al
add rsp, 0x28
ret

Function at 0x140002978
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rdx, str._ServiceExtra:
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
xor edi, edi
test rax, rax
je 0x140002a71
lea edx, [rdi + 0x3a]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002a71
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerServices
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002a71
add rbx, 2
je 0x140002a60
lea rdx, [0x140040718]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140002a60
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140002a2b
mov rcx, qword [rsp + 0x68]
lea rdx, str.ServiceExtra
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140002b0c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
mov r14d, r8d
mov ebp, edx
mov rsi, rcx
test rcx, rcx
je 0x140002c28
mov qword [rsp + 0x20], rcx
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, [0x140040ec0]
call fcn.1400104f4
test eax, eax
js 0x140002c28
mov qword [rsp + 0x30], rdi
mov ebx, 0x2001f
call fcn.140029380
test eax, eax
lea rdx, [rsp + 0x40]
mov ecx, 0x2011f
lea rax, [rsp + 0x30]
cmovne ebx, ecx
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002c28
mov rcx, qword [rsp + 0x30]
lea rdx, str.SystemComponent
test ebp, ebp
je 0x140002c01
lea r9d, [rdi + 4]
xor r8d, r8d
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], r9d
lea ebx, [rdi + 1]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002c17
mov edx, r14d
mov rcx, rsi
mov edi, ebx
call fcn.14000cb84
jmp 0x140002c17
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
mov ebx, 1
cmove edi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140002c5c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
test rax, rax
je 0x140002d93
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140002d93
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x140002d93
mov rcx, qword [rdi]
lea rdx, str._CreateService
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x140002d83
mov rcx, qword [rdi]
mov edx, 0x3a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002d83
add rbx, 2
je 0x140002d83
mov rcx, rbx
call fcn.140019eb0
test eax, eax
je 0x140002d83
mov rcx, rbx
call fcn.14001eca0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002d83
lea r9, [rsp + 0x38]
mov rcx, rax
lea r8, [0x1400435b8]
lea rdx, str.DefaultInstall
call fcn.14001e9ec
test eax, eax
je 0x140002d74
or dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002e490
mov ebp, eax
test eax, eax
js 0x140002d74
lea rdx, [rsp + 0x50]
call fcn.14002f008
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
nop dword [rax + rax]
inc esi
add rdi, 8
cmp esi, dword [rsp + 0x30]
jl 0x140002cd0
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003304
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor r12d, r12d
mov rsi, rcx
cmp qword [0x140051e38], r12
mov ebx, 1
jne 0x140003574
mov edi, 0x104
lea rcx, [rbp + 0x160]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140003566
lea r8, str._notepad.exe
mov edx, edi
lea rcx, [rbp + 0x160]
call fcn.140010470
test eax, eax
js 0x1400033c7
lea rcx, [rbp + 0x160]
call fcn.140019eb0
test eax, eax
jne 0x1400033c7
mov edx, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400033c7
lea r8, str._notepad.exe
mov edx, edi
lea rcx, [rbp + 0x160]
call fcn.140010470
lea rcx, [rbp + 0x160]
call fcn.140019eb0
test eax, eax
je 0x140003566
mov r8d, edi
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x140003566
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14000341b
mov word [rax + 2], r12w
jmp 0x140003421
mov word [rsp + 0x50], r12w
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
lea r8, str.eula.txt
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140010470
test eax, eax
js 0x140003566
lea rcx, [rsp + 0x50]
call fcn.140019eb0
test eax, eax
je 0x140003566
mov rcx, qword [0x140051e60]
lea r8, [rbp + 0x370]
mov r9d, 0xff
lea edx, [r9 - 0x55]
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x140003566
movsxd rax, dword [0x140051e28]
lea rcx, [rax + rax*2]
mov rax, qword [str.6ij]
add rcx, rcx
mov r14d, dword [rax + rcx*8 + 0x2c]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
nop dword [rax + rax]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov edx, 0x402
mov rcx, rsi
mov r15, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000350c
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x402
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rdi, rax
mov ecx, 0x48
call fcn.1400012cc
test rax, rax
je 0x14000355a
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x38], r14d
mov r9, rdi
mov qword [rsp + 0x30], rcx
mov r8d, 0x402
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x370]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400159c0
jmp 0x14000355d
mov rax, r12
mov qword [0x140051e38], rax
jmp 0x14000356d
mov rax, qword [0x140051e38]
test rax, rax
cmove ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003764
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdx, qword [0x140051e38]
xor r12d, r12d
mov rbp, rcx
mov edi, 1
test rdx, rdx
je 0x1400037b8
mov rcx, rdx
call fcn.140002858
mov edx, r12d
mov qword [0x140051e38], rdx
cmp qword [0x140053798], r12
je 0x1400039b2
call fcn.14001670c
test rax, rax
je 0x1400039b2
call fcn.14001670c
mov esi, 0x104
lea rbx, [0x140040718]
mov edx, esi
lea rcx, [rsp + 0x50]
cmp qword [rax + 0x60], r12
cmovne rbx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400039ab
lea r8, str._notepad.exe
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140010470
test eax, eax
js 0x140003857
lea rcx, [rsp + 0x50]
call fcn.140019eb0
test eax, eax
jne 0x140003857
mov edx, esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140003857
lea r8, str._notepad.exe
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140010470
lea rcx, [rsp + 0x50]
call fcn.140019eb0
test eax, eax
je 0x1400039ab
test rbx, rbx
je 0x1400039ab
lea rdx, [0x140040718]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400039ab
mov rcx, rbx
call fcn.140019eb0
test eax, eax
je 0x1400039ab
mov rcx, qword [0x140051e60]
lea r8, [rsp + 0x260]
mov r9d, 0xff
lea edx, [r9 - 0x55]
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x1400039ab
movsxd rax, dword [0x140051e28]
lea rcx, [rax + rax*2]
mov rax, qword [str.6ij]
add rcx, rcx
mov r14d, dword [rax + rcx*8 + 0x2c]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetParent]
nop dword [rax + rax]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov edx, 0x402
mov rcx, rbp
mov r15, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000394d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetParent]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x402
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rsi, rax
mov ecx, 0x48
call fcn.1400012cc
test rax, rax
je 0x14000399f
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x38], r14d
mov r9, rsi
mov qword [rsp + 0x30], rbx
mov r8d, 0x402
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x260]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400159c0
mov rdx, rax
mov qword [0x140051e38], rax
jmp 0x1400039b2
mov rdx, r12
mov qword [0x140051e38], rdx
jmp 0x1400039b2
mov rdx, qword [0x140051e38]
test rdx, rdx
cmove edi, r12d
mov eax, edi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140004df0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
cmp dword [0x140051d90], r8d
mov rcx, 0xffffffff80000002
jne 0x140004ed4
and qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140004e91
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140004f6d
mov r9d, 4
mov dword [rbp + 0x10], 1
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AcceptedEULA
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x140004f5d
mov r9d, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004f16
mov rcx, qword [rbp + 0x18]
lea rdx, str.AcceptedEULA
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rax, [rbp + 0x18]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004f6d
mov rcx, qword [rbp + 0x18]
lea rdx, str.AcceptedEULA
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x50
pop rbp
ret

Function at 0x140004f7c
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
nop dword [rax + rax]
test eax, eax
js 0x140005005
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov edx, 0x802e
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
nop dword [rax + rax]
test eax, eax
js 0x140004fe9
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140004fe9
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
movabs r10, 0xcb3d1ea576d29870
mov rax, qword [rax + 0x28]
call qword [0x1400401a8]
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400401a8]
add rsp, 0x28
ret
Function at 0x140005014
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
nop dword [rax + rax]
test eax, eax
js 0x14000509e
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8035
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140005082
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
movabs r10, 0xcb3d1ea576d29870
mov rax, qword [rax + 0x28]
call qword [0x1400401a8]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400401a8]
add rsp, 0x38
ret

Function at 0x1400050ac
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
lea rdx, str.SoftwareMicrosoftMediaPlayerSetupReentrant
mov qword [rsp + 0x38], rax
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005215
lea rax, [rsp + 0x50]
xor r8d, r8d
lea r9d, [rbx + 3]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005204
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400051f3
lea r8, str.unregmp2.exe
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140010470
test eax, eax
js 0x1400051f3
lea r8, str.__EnsureFileVersions
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140010470
test eax, eax
js 0x1400051f3
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400051b4
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.MP10_EnsureFileVer
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret