joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d5c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x368]
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor ebx, ebx
lea rdx, [rbp + 0x140]
mov r8d, 0x105
xor ecx, ecx
mov edi, ebx
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140003f89
lea rcx, [rbp + 0x140]
call fcn.140018270
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140016ef0
test eax, eax
js 0x140003f89
cmp dword [0x140050ce0], ebx
jne 0x140003de4
call fcn.140018218
jmp 0x140003e21
mov edi, 0x104
lea rcx, [rbp + 0x140]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140003e24
lea r8, str.wmvcore.dll
mov edx, edi
lea rcx, [rbp + 0x140]
call fcn.140001584
test eax, eax
js 0x140003e24
lea rcx, [rbp + 0x140]
call fcn.140018270
mov rsi, rax
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x34], ebx
mov edi, ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], ebx
jmp 0x140003e43
inc edi
lea rcx, [rax + 2]
mov edx, 0x2e
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140003e3d
mov ecx, edi
sub ecx, 1
je 0x140003f2d
sub ecx, 1
je 0x140003f05
cmp ecx, 1
lea rcx, [rsp + 0x40]
je 0x140003ed8
test edi, edi
je 0x140003e8a
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x38], eax
jmp 0x140003f49
inc edi
lea rcx, [rax + 2]
mov edx, 0x2c
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140003e84
lea rcx, [rsp + 0x40]
sub edi, 1
je 0x140003ecf
sub edi, 1
je 0x140003ec6
cmp edi, 1
je 0x140003ebd
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x30], eax
jmp 0x140003f49
lea rdx, str._lu__lu__lu__lu
jmp 0x140003edf
lea rdx, str._lu__lu__lu
jmp 0x140003f11
lea rdx, str._lu__lu
jmp 0x140003f39
lea rdx, str._lu._lu._lu._lu
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x140003f49
lea rdx, str._lu._lu._lu
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x140003f49
lea rdx, str._lu._lu
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_swscanf]
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x3c]
shl eax, 0x10
add ecx, eax
mov eax, dword [rsp + 0x38]
mov edi, ecx
and rdi, 0xffffffffffff0000
shl eax, 0x10
add edx, eax
movzx eax, cx
or rdi, rax
mov ecx, edx
shl rdi, 0x10
shr rcx, 0x10
or rdi, rcx
movzx ecx, dx
shl rdi, 0x10
or rdi, rcx
cmp rdi, rsi
setae bl
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400040dc
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
xor ebx, ebx
call fcn.140017448
test eax, eax
je 0x1400041d4
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000414a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400041d4
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edi, 0x104
mov edx, edi
call fcn.140001470
test eax, eax
js 0x1400041d4
lea rdx, [0x140042014]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140004183
lea rcx, [rsp + 0x40]
call fcn.140016c2c
lea r9, [rsp + 0x40]
mov rdx, rdi
lea r8, str._s.bak
lea rcx, [rsp + 0x250]
call fcn.140001734
test eax, eax
js 0x1400041d4
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400041cf
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1400041d4
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret

Function at 0x140004200
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [0x140050c44], ebx
je 0x14000422a
lea eax, [rbx + 1]
jmp 0x14000428c
test rax, rax
je 0x14000428a
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
je 0x14000428a
mov edi, ebx
cmp dword [rsp + 0x30], ebx
jle 0x140004281
mov r14, rax
mov rcx, qword [r14]
lea rdx, [0x14003fb08]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140004276
inc edi
add r14, 8
cmp edi, dword [rsp + 0x30]
jl 0x140004254
jmp 0x140004281
mov ebx, 1
mov dword [0x140050c44], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400042a8
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14000432c
xor r9d, r9d
lea r8, str.RebarWindow32
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x14000432c
xor r9d, r9d
lea r8, str.WMPDeskBand
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
jne 0x14000439c
xor r9d, r9d
lea r8, str.WMP9DeskBand
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
jne 0x14000439c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140017e34
mov ebx, 0x104
test eax, eax
je 0x140004366
lea r8, str.wmdband.dll
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140001584
test eax, eax
js 0x140004366
lea rcx, [rsp + 0x20]
call fcn.1400040dc
test eax, eax
jne 0x14000439c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140017e34
test eax, eax
je 0x1400043a3
lea r8, str.wmpband.dll
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140001584
test eax, eax
js 0x1400043a3
lea rcx, [rsp + 0x20]
call fcn.1400040dc
test eax, eax
je 0x1400043a3
mov eax, 1
jmp 0x1400043a5
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x240
pop rbx
ret

Function at 0x1400043c4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov ebx, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000441a
lea r8, [0x14003fbc8]
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140001584
test eax, eax
js 0x14000441a
lea rcx, [rsp + 0x20]
call fcn.1400040dc
test eax, eax
jne 0x140004451
mov edx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140004458
lea r8, str.wmvcore.dll
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140001584
test eax, eax
js 0x140004458
lea rcx, [rsp + 0x20]
call fcn.1400040dc
test eax, eax
je 0x140004458
mov eax, 1
jmp 0x14000445d
call fcn.1400042a8
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x240
pop rbx
ret
Function at 0x1400044f8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1400045a1
mov qword [r11 - 0x18], rbx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 2
test edx, edx
mov dword [rsp + 0x20], ebx
lea rdx, str.SoftwareMicrosoftMultimediaWMPlayerWMPQFEBackup
mov qword [r11 + 8], rbx
mov rcx, 0xffffffff80000002
jne 0x140004555
lea rdx, str.SoftwareMicrosoftMultimediaWMPlayerWMFDistQFEBackup
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400045a1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400045a1
lea rax, [0x14003f4a0]
mov dword [rsp + 0x28], 2
mov esi, 1
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400045bc
Capabilities:
Get installed programs
Query or enumerate registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rax - 0x5b8]
sub rsp, 0x6a0
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x590], rax
xor edi, edi
mov r14d, edx
test rcx, rcx
je 0x1400047bd
mov qword [rsp + 0x20], rcx
lea r9, str.SoftwareMicrosoftUpdates
mov r13d, 0x104
lea r8, [0x14003fc48]
mov edx, r13d
lea rcx, [rbp + 0x170]
call fcn.140001734
test eax, eax
js 0x1400047bd
and qword [rsp + 0x48], rdi
mov ebx, 0x20019
call fcn.1400264a0
test eax, eax
lea rdx, [rbp + 0x170]
mov ecx, 0x20119
lea rax, [rsp + 0x48]
cmovne ebx, ecx
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400047bd
xor esi, esi
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
and qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rsi
xor edx, edx
jmp 0x140004790
lea rcx, [rsp + 0x60]
inc esi
call qword [sym.imp.msvcrt.dll__wcslwr]
cmp word [rsp + 0x60], 0x6b
jne 0x140004776
cmp word [rsp + 0x62], 0x62
jne 0x140004776
lea rax, [rsp + 0x60]
mov rdx, r13
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov qword [rsp + 0x20], rax
lea r8, [0x14003fc48]
xor edi, edi
lea rcx, [rbp + 0x380]
call fcn.140001734
test eax, eax
js 0x140004776
and qword [rsp + 0x58], rdi
mov ebx, 0x2001f
call fcn.1400264a0
test eax, eax
lea rdx, [rbp + 0x380]
mov ecx, 0x2011f
lea rax, [rsp + 0x58]
cmovne ebx, ecx
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004776
mov rcx, qword [rsp + 0x58]
lea ebx, [rdi + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 1
lea rdx, str.SystemComponent
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000476b
mov edx, r14d
lea rcx, [rsp + 0x60]
lea edi, [rbx - 3]
call fcn.1400044f8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
mov edx, esi
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], r13d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000468f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x1400063a4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, edx
mov r14, rcx
lea rdx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
movd xmm1, dword [0x1400502d0]
mov r15d, dword [rbp - 0x44]
sub r15d, dword [rbp - 0x4c]
mov ecx, dword [rbp - 0x34]
mov ebx, dword [rbp - 0x48]
sub ebx, dword [rbp - 0x50]
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x140049d78]
movaps xmm0, xmm1
mulsd xmm1, qword [0x140049d68]
mulsd xmm0, qword [0x140049d58]
cvttsd2si eax, xmm1
cvttsd2si edi, xmm0
sub ecx, eax
mov eax, ecx
mov dword [rbp - 0x44], ecx
sub eax, r15d
cmp byte [0x140051728], 0
mov dword [rbp - 0x4c], eax
jne 0x140006473
call fcn.140038da8
movzx ecx, word [0x14005172c]
lea r8, [rbp - 0x30]
mov r9d, 0x10
test eax, eax
setne byte [0x14005172e]
lea edx, [r9 + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov byte [0x140051728], 1
cmp byte [0x14005172e], 0
je 0x140006487
lea ecx, [rbx + rdi*2]
imul ecx, esi
add ecx, dword [rbp - 0x40]
jmp 0x140006494
mov ecx, dword [rbp - 0x38]
lea eax, [rdi + rbx]
imul eax, esi
sub ecx, eax
sub ecx, edi
lea eax, [rcx + rbx]
mov dword [rbp - 0x50], ecx
mov rcx, r14
mov dword [rbp - 0x48], eax
call qword [sym.imp.USER32.dll_GetParent]
mov r9d, 2
lea r8, [rbp - 0x50]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov r8d, dword [rbp - 0x4c]
mov r9d, ebx
mov edx, dword [rbp - 0x50]
mov rcx, r14
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14003c6c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006504
Capabilities:
Get common file path
Get file attributes

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 [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdx, qword [0x140050ce8]
xor r12d, r12d
mov rbp, rcx
mov edi, 1
test rdx, rdx
je 0x140006558
mov rcx, rdx
call fcn.1400059b8
mov edx, r12d
mov qword [0x140050ce8], rdx
cmp qword [0x140051660], r12
je 0x140006731
call fcn.140013f90
test rax, rax
je 0x140006731
call fcn.140013f90
mov esi, 0x104
lea rbx, [0x14003f4a0]
mov edx, esi
lea rcx, [rsp + 0x50]
cmp qword [rax + 0x60], r12
cmovne rbx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x14000672a
lea r8, str._notepad.exe
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140001584
or r14d, 0xffffffff
test eax, eax
js 0x1400065f6
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r14d
je 0x1400065d1
test al, 0x10
je 0x1400065f6
mov edx, esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400065f6
lea r8, str._notepad.exe
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140001584
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r14d
je 0x14000672a
test al, 0x10
jne 0x14000672a
test rbx, rbx
je 0x14000672a
lea rdx, [0x14003f4a0]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14000672a
mov rcx, rbx
call fcn.140017448
test eax, eax
je 0x14000672a
mov rcx, qword [0x140050d10]
lea r8, [rsp + 0x260]
mov r9d, 0xff
lea edx, [r9 - 0x55]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x14000672a
movsxd rax, dword [0x140050cd8]
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]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x402
mov rcx, rbp
mov r15, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
jne 0x1400066cc
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
mov edx, 0x402
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
mov ecx, 0x48
call fcn.14003c2c4
test rax, rax
je 0x14000671e
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.140013444
mov rdx, rax
mov qword [0x140050ce8], rax
jmp 0x140006731
mov rdx, r12
mov qword [0x140050ce8], rdx
jmp 0x140006731
mov rdx, qword [0x140050ce8]
test rdx, rdx
cmove edi, r12d
mov eax, edi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003c6c0
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 0x140006b20
Capabilities:
Get common file path
Get file attributes

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 [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor r12d, r12d
mov rsi, rcx
cmp qword [0x140050ce8], r12
mov ebx, 1
jne 0x140006d73
mov edi, 0x104
lea rcx, [rbp + 0x160]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x140006d65
lea r8, str._notepad.exe
mov edx, edi
lea rcx, [rbp + 0x160]
call fcn.140001584
or r15d, 0xffffffff
mov r14b, 0x10
test eax, eax
js 0x140006be6
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r15d
je 0x140006bbd
test r14b, al
je 0x140006be6
mov edx, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140006be6
lea r8, str._notepad.exe
mov rdx, rdi
lea rcx, [rbp + 0x160]
call fcn.140001584
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r15d
je 0x140006d65
test r14b, al
jne 0x140006d65
mov r8d, edi
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140006d65
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140006c39
mov word [rax + 2], r12w
jmp 0x140006c3f
mov word [rsp + 0x50], r12w
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, str.eula.txt
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140001584
test eax, eax
js 0x140006d65
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r15d
je 0x140006d65
test r14b, al
jne 0x140006d65
mov rcx, qword [0x140050d10]
lea r8, [rbp + 0x370]
mov r9d, 0xff
lea edx, [r9 - 0x55]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140006d65
movsxd rax, dword [0x140050cd8]
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]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x402
mov rcx, rsi
mov r15, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
test rax, rax
jne 0x140006d0b
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
mov edx, 0x402
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov ecx, 0x48
call fcn.14003c2c4
test rax, rax
je 0x140006d59
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.140013444
jmp 0x140006d5c
mov rax, r12
mov qword [0x140050ce8], rax
jmp 0x140006d6c
mov rax, qword [0x140050ce8]
test rax, rax
cmove ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14003c6c0
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 0x14000eff8
Capabilities:
Accept command line arguments
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rcx, qword [str.6ij]
lea rax, section..data
cmp rax, rcx
jne 0x14000f131
cmp dword [0x140050d0c], 0xd2af9
je 0x14000f23e
cmp qword [0x140051660], 0
je 0x14000f121
call fcn.140013f90
test rax, rax
je 0x14000f121
call fcn.140013f90
cmp dword [rax + 0x138], 0
jne 0x14000f121
xor edx, edx
lea rcx, str.WMPlayerApp
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14000f121
xor edx, edx
lea rcx, str.WMPlayerApp
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
test rax, rax
je 0x14000f23e
lea rcx, str.WMPlayer_PluginAddRemove
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
je 0x14000f23e
xor r9d, r9d
mov edx, eax
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14000f0ec
lea edx, [rcx + 5]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14000f23e
cmp dword [0x1400516e0], 4
jl 0x14000f23e
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, str.Alerted_WMP_to_the_updated_service._r_n
mov r8d, 0x25
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000f23e
mov edi, 1
mov dword [0x140050ca0], edi
jmp 0x14000f23e
lea rax, str.K
mov edi, 1
cmp rax, rcx
jne 0x14000f18d
mov eax, dword [0x140050ca0]
cmp dword [0x140050d0c], 0xd2af9
cmovne eax, edi
mov dword [0x140050ca0], eax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, str._RunOnce
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14000f23e
and dword [0x140050ca0], 0
mov ecx, edi
call fcn.140011554
jmp 0x14000f23e
mov eax, dword [0x140050d0c]
cmp eax, 0xd2af8
jne 0x14000f1e9
mov esi, 0x104
lea rcx, [rsp + 0x40]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000f1dc
lea r8, str.unregmp2.exe
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140001584
test eax, eax
js 0x14000f1dc
mov r9d, 0xffff
lea rdx, [rsp + 0x40]
mov r8d, edi
xor ecx, ecx
call fcn.140019648
mov eax, dword [0x140050d0c]
mov rcx, qword [str.6ij]
test eax, eax
js 0x14000f219
lea rdx, str.6ij
cmp rdx, rcx
jne 0x14000f219
cmp dword [0x140050ce0], 0
jne 0x14000f20e
call fcn.140004998
call fcn.1400047f4
jmp 0x14000f213
call fcn.140004998
mov eax, dword [0x140050d0c]
cmp eax, 0xd2af9
je 0x14000f239
cmp eax, 0xc00d2afb
je 0x14000f239
test eax, eax
js 0x14000f23e
cmp dword [0x140050c44], 0
jne 0x14000f23e
jmp 0x14000f126
call fcn.1400105d4
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003c6c0
mov rsi, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret