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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x7ff6629822eb
lea r8, [0x7ff6629897d8]
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.7ff662987ba8
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
nop dword [rax + rax]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
je 0x7ff6629822eb
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
nop dword [rax + rax]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff662988470
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x7ff662982318
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
test cx, cx
je 0x7ff662982447
cmp cx, 1
je 0x7ff6629823cb
jbe 0x7ff66298244e
cmp cx, 3
ja 0x7ff66298244e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff6629823c3
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, dword [rbp + 0x10]
jmp 0x7ff66298244e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff6629823c3
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
nop dword [rax + rax]
jmp 0x7ff6629823a8
call fcn.7ff662982244
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x7ff662982468
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x7ff6629824c4
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
mov edx, 0x4f0
xor ecx, ecx
call fcn.7ff662984dcc
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.7ff662988470
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x7ff66298261c
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov byte [rcx], dil
mov rbx, rcx
cmp byte [r8], 0x23
lea r15d, [rdi + 1]
jne 0x7ff6629827e0
add rsi, r15
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
nop dword [rax + rax]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rsi, rax
cmp r14b, 0x53
je 0x7ff6629827dd
cmp r14b, 0x57
je 0x7ff6629827c7
lea r8, [0x7ff6629897e8]
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x7ff6629826e5
mov al, byte [r8 + rcx]
test al, al
je 0x7ff6629826e5
mov byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x7ff6629826c7
test rdx, rdx
lea rax, [rcx - 1]
mov r8, rsi
mov edx, 0x104
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov byte [rax], dil
call fcn.7ff662987ba8
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff6629827f5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x7ff662989700]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff6629827b4
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x7ff6629827ad
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
nop dword [rax + rax]
test eax, eax
je 0x7ff6629827a9
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
call fcn.7ff662981008
mov edi, r15d
jmp 0x7ff6629827b4
mov eax, dword [rsp + 0x30]
cmp eax, r15d
cmove edi, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x7ff6629827f1
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
jmp 0x7ff6629827f5
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
test edi, edi
jne 0x7ff662982805
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.7ff662987ba8
mov eax, r15d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.7ff662988470
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff662982834
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor r14d, r14d
mov rsi, rdx
mov r15, rcx
mov ebx, r14d
mov r13d, r14d
mov r12d, r14d
cmp dword [rcx + 0x7c], r14d
jle 0x7ff662982a2f
mov eax, r14d
mov qword [rbp - 0x18], rax
mov edi, dword [r15 + 0x80]
lea r8, [r15 + 0x84]
add rdi, rax
mov rcx, rsi
mov eax, dword [rdi + r15 + 0xbc]
add r8, rax
call fcn.7ff66298261c
test eax, eax
je 0x7ff662982a35
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x7ff6629829fe
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x7ff662982a35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x7ff662982a35
mov edx, dword [rbp + 0x58]
mov r8d, esi
mov rsi, qword [rbp + 0x50]
mov r9, rax
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
nop dword [rax + rax]
test eax, eax
je 0x7ff6629829ea
lea r9, [rbp + 0x48]
mov rcx, r14
lea r8, [rbp - 0x10]
lea rdx, [0x7ff66298981c]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
je 0x7ff6629829ed
cmp dword [rbp + 0x48], r14d
je 0x7ff6629829ed
mov rax, qword [rbp - 0x10]
lea rcx, [r15 + 0x90]
add rcx, rdi
mov edx, r14d
mov r9d, dword [rax + 0xc]
mov r8d, dword [rax + 8]
cmp r8d, dword [rcx - 0xc]
jae 0x7ff662982977
or eax, 0xffffffff
jmp 0x7ff66298298c
jbe 0x7ff662982980
mov eax, 1
jmp 0x7ff66298298c
cmp r9d, dword [rcx - 8]
jb 0x7ff662982972
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x28], eax
cmp r8d, dword [rcx]
jae 0x7ff66298299a
or eax, 0xffffffff
jmp 0x7ff6629829af
jbe 0x7ff6629829a3
mov eax, 1
jmp 0x7ff6629829af
cmp r9d, dword [rcx + 4]
jb 0x7ff662982995
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x20], eax
add rcx, 0x18
add rdx, 4
cmp rdx, 8
jl 0x7ff66298296c
cmp dword [rbp - 0x28], r14d
jl 0x7ff6629829cd
cmp dword [rbp - 0x20], r14d
jle 0x7ff6629829ed
cmp dword [rbp - 0x24], r14d
jl 0x7ff6629829d9
cmp dword [rbp - 0x1c], r14d
jle 0x7ff6629829ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
jmp 0x7ff662982a35
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
jmp 0x7ff662982a16
cmp dword [rdi + r15 + 0x84], r14d
jne 0x7ff662982a35
cmp dword [rdi + r15 + 0x88], r14d
jne 0x7ff662982a35
mov rsi, qword [rbp + 0x50]
mov rax, qword [rbp - 0x18]
inc r12d
add rax, 0x3c
mov qword [rbp - 0x18], rax
cmp r12d, dword [r15 + 0x7c]
jl 0x7ff662982879
mov r13d, 1
mov rax, qword [rbp + 0x60]
mov dword [rax], r12d
test rbx, rbx
je 0x7ff662982a50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
mov eax, r13d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x7ff662982c54
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
xor esi, esi
test eax, eax
js 0x7ff662982cc3
cmp al, 6
jb 0x7ff662982cc3
lea rcx, [0x7ff662989820]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x7ff662982cc3
lea rdx, [0x7ff662989840]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x7ff662982cc3
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [0x7ff662989650]
mov rdx, rbx
mov dword [0x7ff66298d544], esi
mov rcx, rdi
call fcn.7ff662982db4
test eax, eax
je 0x7ff662982d7f
call fcn.7ff6629830ec
mov ebx, eax
call fcn.7ff6629861ec
test ebx, ebx
je 0x7ff662982d7f
cmp byte [0x7ff66298cd1a], sil
jne 0x7ff662982d7f
mov edi, dword [0x7ff66298de5c]
test dil, 1
je 0x7ff662982d7f
test dil, 2
jne 0x7ff662982d2d
cmp dword [0x7ff66298d540], esi
jne 0x7ff662982d2d
movzx ecx, word [0x7ff66298de78]
mov ebx, dword [0x7ff66298de7c]
call fcn.7ff662982318
cmp ebx, eax
je 0x7ff662982d7f
test dil, 4
jne 0x7ff662982d5e
mov dword [rsp + 0x28], 4
lea r8, [0x7ff662989700]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.7ff662984dcc
cmp eax, 6
jne 0x7ff662982d7f
cmp word [0x7ff66298de78], si
jne 0x7ff662982d7a
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x7ff662982d7f
call fcn.7ff662981c0c
mov rcx, qword [0x7ff66298c830]
test rcx, rcx
je 0x7ff662982d97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x7ff66298d544]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff66298473c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov esi, 1
and qword [rsp + 0x38], 0
mov rdx, rcx
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop dword [rax + rax]
test eax, eax
je 0x7ff6629848b3
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x7ff66298cd08], 0
mov edi, dword [rsp + 0x50]
jne 0x7ff66298481e
mov ecx, dword [0x7ff66298de5c]
test sil, cl
je 0x7ff66298481e
test cl, 2
jne 0x7ff66298481e
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x7ff66298de5c], ecx
test dword [0x7ff66298de64], 0x800
je 0x7ff662984832
mov dword [0x7ff66298d544], edi
jmp 0x7ff66298487c
cmp dword [0x7ff66298d540], 0
jne 0x7ff662984872
movzx ecx, word [0x7ff66298de78]
mov ebx, dword [0x7ff66298de7c]
call fcn.7ff662982318
cmp ebx, eax
jne 0x7ff662984872
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x7ff662984864
test sil, dil
jne 0x7ff662984872
test dword [0x7ff66298de64], 0x200
je 0x7ff66298487c
jmp 0x7ff66298482a
mov dword [0x7ff66298d544], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test dword [0x7ff66298de64], 0x400
je 0x7ff66298491e
cmp dword [rsp + 0x50], 0
jge 0x7ff66298491e
jmp 0x7ff66298491c
call fcn.7ff662987700
mov dword [0x7ff66298d544], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], 0x10
mov edx, 0x4c4
xor ecx, ecx
call fcn.7ff662984dcc
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.7ff662988470
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff662984a60
Capabilities:
Get common file path

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, 0x70
mov rbp, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x7ff662984c20
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x7ff662984c0a
mov edx, 0xc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x7ff662984c0a
lea rdx, str.SHGetPathFromIDList
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x7ff662984c0a
cmp byte [0x7ff66298cba0], bl
lea r13, [0x7ff66298cba0]
jne 0x7ff662984b67
mov rdx, r13
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], bl
jne 0x7ff662984b2b
add rdx, r13
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
mov rsi, rax
cmp byte [rax], 0x5c
jne 0x7ff662984b67
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
cmp byte [rax], 0x3a
je 0x7ff662984b67
mov byte [rsi], bl
lea rax, [0x7ff66298c850]
mov byte [0x7ff66298ca60], bl
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
lea rax, [0x7ff662984a30]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x58], rax
mov rax, r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], r13
call qword [0x7ff662989650]
mov rsi, rax
test rax, rax
je 0x7ff662984bee
mov rcx, rax
mov rdx, r13
mov rax, r15
call qword [0x7ff662989650]
cmp byte [0x7ff66298cba0], bl
je 0x7ff662984be2
mov r8, r13
lea rcx, [0x7ff66298ca60]
mov edx, 0x104
call fcn.7ff662981008
mov rcx, rsi
mov rax, r14
call qword [0x7ff662989650]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp byte [0x7ff66298ca60], bl
setne bl
mov eax, ebx
jmp 0x7ff662984c41
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov edx, 0x4c1
jmp 0x7ff662984c25
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
mov rcx, rbp
call fcn.7ff662984dcc
xor eax, eax
lea r11, [rsp + 0x70]
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 0x7ff662985050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, r8d
mov rdx, rcx
mov rdi, rcx
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
cmp eax, ebp
ja 0x7ff662985109
test rsi, rsi
je 0x7ff662985109
test eax, eax
je 0x7ff662985121
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x7ff662985121
mov r9d, ebx
mov edx, ebp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x7ff66298510b

Function at 0x7ff6629851bc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x7ff662985263
shr eax, 4
not eax
and eax, 1
je 0x7ff662985263
xor ebx, ebx
cmp dword [0x7ff66298d600], ebx
jne 0x7ff662985246
test byte [0x7ff66298cd18], 1
jne 0x7ff662985246
mov r8, qword [0x7ff66298c828]
lea r9, [0x7ff662983840]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
mov qword [rsp + 0x20], rbx
mov qword [0x7ff66298d830], rdi
call fcn.7ff662987ac8
sub rax, 6
je 0x7ff662985246
sub rax, 1
je 0x7ff66298525f
cmp rax, 0x832
jne 0x7ff662985246
mov dword [0x7ff66298d600], 1
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov ebx, 1
mov eax, ebx
jmp 0x7ff662985268
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff662985d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor r8d, r8d
lea rcx, [0x7ff662989940]
xor edx, edx
call fcn.7ff662985050
mov r8d, 0xa
mov dword [0x7ff66298d568], eax
lea rdx, [0x7ff662989940]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [0x7ff66298d560], rax
test rax, rax
je 0x7ff662985fd1
mov rcx, qword [0x7ff66298c828]
test rcx, rcx
je 0x7ff662985e56
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
mov rcx, qword [0x7ff66298c828]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
call fcn.7ff662985c60
test eax, eax
jne 0x7ff662985e69
mov edx, 0x4ba
jmp 0x7ff662985f34
lea rax, [0x7ff66298d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x7ff6629855e0]
mov dword [rsp + 0x38], 1
lea rax, [0x7ff6629857e0]
mov qword [rsp + 0x30], rax
lea r8, [fcn.7ff662985380]
lea rax, [fcn.7ff662985770]
mov qword [rsp + 0x28], rax
lea rdx, [0x7ff662985890]
lea rax, [0x7ff662985690]
lea rcx, [0x7ff662985870]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x7ff662985f28
lea rax, [0x7ff66298d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x7ff662989700]
and qword [rsp + 0x28], 0
lea rax, [0x7ff6629858b0]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x7ff662985f55
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x7ff662985f55
mov edx, dword [0x7ff66298d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x7ff66298c828]
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
call fcn.7ff662984dcc
xor ebx, ebx
mov rcx, qword [0x7ff66298d560]
test rcx, rcx
je 0x7ff662985f75
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x7ff66298d560], 0
test ebx, ebx
jne 0x7ff662985f9f
cmp dword [0x7ff66298d5fc], ebx
jne 0x7ff662985f9f
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
mov edx, 0x4f8
xor ecx, ecx
call fcn.7ff662984dcc
test byte [0x7ff66298cd18], 1
jne 0x7ff662985fcf
test byte [0x7ff66298de64], 1
jne 0x7ff662985fcf
mov rcx, qword [0x7ff66298c828]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x7ff6629861ec
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x7ff66298d608]
jmp 0x7ff66298626e
cmp dword [0x7ff66298cd04], 0
mov rdi, rbx
jne 0x7ff66298624c
cmp dword [0x7ff66298de60], 0
jne 0x7ff66298624c
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x7ff662986214
mov eax, dword [0x7ff66298cd00]
mov ebx, 1
test eax, eax
je 0x7ff662986317
cmp dword [0x7ff66298cd04], 0
jne 0x7ff662986317
cmp dword [0x7ff66298de60], 0
jne 0x7ff662986317
lea r8, [0x7ff66298d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x7ff6629862d3
mov al, byte [r8 + rcx]
test al, al
je 0x7ff6629862d3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x7ff6629862b5
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x7ff66298de64], 0x20
mov byte [rax], 0
je 0x7ff6629862f4
lea rcx, [rsp + 0x40]
call fcn.7ff662987c40
lea rcx, [0x7ff6629897d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.7ff66298204c
mov eax, dword [0x7ff66298cd00]
cmp word [0x7ff66298de78], bx
je 0x7ff662986387
test eax, eax
je 0x7ff662986387
cmp byte [0x7ff66298c7d0], 0
je 0x7ff662986387
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff662986387
mov rcx, qword [rsp + 0x30]
lea rdx, [0x7ff66298c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x7ff66298cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.7ff662988470
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret