joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b7e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400189d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b800
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b808
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b800
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b855
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b84c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b800
add rax, 0x28
cmp rax, r9
jne 0x14000b838
xor eax, eax
ret

Function at 0x14000b860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400189d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b880
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b888
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b880
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000b910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400189d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b930
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000b938
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000bb60
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14001c108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000b4e0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000b533
mov dword [rax], edi
lea rcx, [0x14001c120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14001c100]
lea rcx, [0x14001c120]
mov qword [0x14001c100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000b4d6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000bb90
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140011cb0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140011cc0
xor eax, eax
ret
jmp 0x14000b4c0

Function at 0x14000bbd0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000bc10
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000bc28
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140011cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
xor eax, eax
mov r9, rcx
mov r11, rdx
nop dword [rax]
mov byte [r9 + rax], al
add rax, 1
cmp rax, 0x100
jne 0x140011ce0
xor ecx, ecx
xor ebx, ebx
nop dword [rax]
mov eax, ecx
movzx r10d, byte [r9 + rcx]
cdq
idiv r8d
movsxd rdx, edx
movzx eax, byte [r11 + rdx]
add eax, r10d
add eax, ebx
movzx ebx, al
movzx eax, al
add rax, r9
movzx edx, byte [rax]
mov byte [r9 + rcx], dl
add rcx, 1
mov byte [rax], r10b
cmp rcx, 0x100
jne 0x140011cf8
pop rbx
ret

Function at 0x140011d40
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x128
mov ebx, dword [rsp + 0x170]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov r12, rdx
mov rdx, r8
mov rcx, r13
mov r8d, r9d
call fcn.140011cd0
mov edx, ebx
mov rcx, r13
call fcn.140011db0
mov r8, rax
test ebx, ebx
je 0x140011d9d
mov ecx, ebx
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rsi + rax]
xor dl, byte [r8 + rax]
mov byte [r12 + rax], dl
add rax, 1
cmp rcx, rax
jne 0x140011d88
mov rax, r12
add rsp, 0x128
pop rbx
pop rsi
pop r12
pop r13
ret

Function at 0x140011e90
Capabilities:
Decode data using base64 via winapi

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], r9d
mov r9, r8
mov r8d, 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
cmovne eax, dword [rsp + 0x4c]
add rsp, 0x58
ret
Function at 0x140013e00
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b0
lea rsi, [0x1400161b0]
call fcn.14000abb0
mov ecx, 0x17c
lea rdi, [rsp + 0x30]
call sub.msvcrt.dll_malloc
mov dword [rsp + 0x20], 0x17c
mov r9d, 3
lea r8, section..rdata
mov rdx, rax
lea rcx, str._EiB5PD____o0AAAAEFRQVBSUVZIMdJlSItSYD5Ii1IYPkiLUiASItyUD5ID7dKSk0xyUgxwKw8YXwCLCBBwckNQQHB4u1SQVESItSID6LQjxIAdAi4CIAAAASIXAdG9IAdBQPotIGD5Ei0AgSQHQ41xI_8kQYs0iEgB1k0xyUgxwKxBwckNQQHBOOB18T5MA0wkCEU50XXWWD5Ei0AkSQHQZj5BiwxIPkSLQBxJAdAQYsEiEgB0EFYQVheWVpBWEFZQVpIgwgQVL_4FhBWVoSIsS6Un___9dScfBAAAAAD5IjZXAAAAPkyNhQkBAABIMclBukWDVgf_1UgxyUG68LWiVv_VTWVvdy1tZW93IQA9Xi4uXj0A
call fcn.140011d40
mov ecx, 0x2f
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x17c
mov eax, dword [rsi]
mov dword [rdi], eax
movzx eax, byte [0x14001632c]
mov byte [rdi + 4], al
call sub.msvcrt.dll_malloc
mov r9d, 3
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x17c
lea r8, section..rdata
mov rdx, rax
mov r12, rax
call fcn.140011d40
mov ecx, 0x200
call sub.msvcrt.dll_malloc
mov r9d, 0x200
mov edx, 0x200
mov rcx, r12
mov r8, rax
mov rbx, rax
call fcn.140011e90
mov ecx, 0x11d
call fcn.140013710
mov rsi, rax
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [rbx + rax]
mov byte [rsi + rax], dl
add rax, 1
cmp rax, 0x11d
jne 0x140013ec8
lea rcx, str._______payload____________n
mov rbx, rsi
lea rbp, [rsi + 0x11d]
call fcn.140011e40
lea rdi, str._02hhx_t
nop dword [rax + rax]
movzx edx, byte [rbx]
mov rcx, rdi
add rbx, 1
call fcn.140011e40
cmp rbx, rbp
jne 0x140013f00
lea rcx, [0x1400161a8]
call fcn.140011e40
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
mov edx, 0x11e
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
mov rax, qword [rsi]
lea rdi, [r12 + 8]
mov qword [r12], rax
mov rax, qword [rsi + 0x115]
and rdi, 0xfffffffffffffff8
mov qword [r12 + 0x115], rax
mov rax, r12
sub rax, rdi
sub rsi, rax
add eax, 0x11d
shr eax, 3
mov ecx, eax
rep movsq qword [rdi], qword [rsi]
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
xor eax, eax
add rsp, 0x1b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140002060
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
lea r9, [rsp + 0x30]
xor ebx, ebx
lea rcx, [0x1400335e0]
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0x400
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x1400020af
lea eax, [rbx + 1]
jmp 0x140002171
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1400020c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi + 0x10]
lea r8, str._sdrivers_s
mov r9, qword [rsp + 0x30]
mov edx, 0x104
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.1400010a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002100
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
cmp byte [rdi + 2], bl
jne 0x140002126
cmp byte [rdi + 1], bl
je 0x140002126
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
jne 0x140002126
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002171
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x278], rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
cmp byte [rdi + 2], bl
jne 0x14000215c
cmp byte [rdi + 1], bl
je 0x14000215c
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
jne 0x14000215c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002169
call qword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
cmove ebx, eax
mov eax, ebx
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400164d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x140003170
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400031b4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400031a0
ret
Function at 0x14000bcc0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x128]
sub rsp, 0x220
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor edi, edi
mov qword [rsp + 0x58], rdi
lea r9, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x400
lea rcx, [0x1400335e0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14000bd20
xor al, al
jmp 0x14000be67
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x10]
call fcn.140019d60
lea rcx, [rbp + 0x10]
call fcn.14000c160
nop
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x20]
call fcn.14000d850
mov rcx, rax
lea rdx, str._timeout.exe_2
call fcn.14000d850
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000bd6d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x10]
call fcn.14000c050
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x58]
call fcn.140019d60
mov qword [rsp + 0x60], rdi
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x60], 0x68
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14000be09
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x14000be2b
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.140002ef0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea rcx, [rbp + 0xa8]
call fcn.14000c080
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.140015668
nop
movzx eax, bl
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400164d0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000bed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
lea r9, str.InstallLocation
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionUninstallRunBooster
call fcn.14000e5c0
mov rdi, rax
test rax, rax
jne 0x14000bf1d
lea eax, [rdi + 3]
jmp 0x14000c02a
mov qword [rsp + 0x58], 7
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp word [rax], bx
jne 0x14000bf3c
mov r8d, ebx
jmp 0x14000bf4a
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14000bf40
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140002ac0
nop
mov rcx, rdi
call fcn.140016538
lea rax, [rsp + 0x40]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 8
cmovae rax, r8
mov rdx, qword [rsp + 0x50]
cmp word [rax + rdx*2 - 2], 0x5c
jne 0x14000bfba
lea rcx, [rdx - 1]
cmp rdx, rcx
jae 0x14000bf9a
lea rcx, str.invalid_string_position
call fcn.140015090
int3
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x40]
cmp r9, 8
cmovae rax, r8
mov word [rax + rcx*2], bx
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
cmp r9, 8
cmovae rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000bffb
test al, 0x10
je 0x14000bffb
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140014050
mov ecx, 2
test al, al
cmove ebx, ecx
mov rcx, rsi
call fcn.140002060
test eax, 0xfffffffd
cmovne ebx, eax
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14000c028
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140002ef0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400164d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000e5c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, r8
lea rax, [rsp + 0x38]
mov rbp, r9
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0x20019
mov r9d, ebx
mov dword [rsp + 0x30], edi
mov rdx, rsi
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x14000e648
cmp ebx, 0x20019
jne 0x14000e648
lea rax, [rsp + 0x38]
mov ebx, 0x20219
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x14000e616
test eax, eax
jne 0x14000e6e0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e6d5
mov ecx, dword [rsp + 0x30]
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140016540
mov rcx, qword [rsp + 0x38]
mov rdi, rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000e6d5
mov edx, 2
mov rcx, rdi
call fcn.140016538
xor edi, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400164d0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000e700
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x98]
mov edx, 0x20006
mov rbx, qword [rsp + 0x90]
mov ecx, eax
or ecx, edx
test eax, eax
lea rax, [rsp + 0x50]
cmove ecx, edx
xor edi, edi
mov qword [rsp + 0x40], rdi
lea rdx, str.SoftwareRunBoosterCryptography
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000e776
xor al, al
jmp 0x14000e7bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
lea rdx, str.MachineGuid
mov r9d, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400164d0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000e7e0
Capabilities:
Delete registry key
Get installed programs

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15d, r9d
mov eax, 0x1000b
or r15d, eax
test r9d, r9d
cmove r15d, eax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallRunBooster
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor r12d, r12d
test eax, eax
jne 0x14000e9f7
xor edx, edx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
test eax, eax
jne 0x14000e9e9
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r12
mov word [rbp - 0x39], r12w
lea r8d, [r12 + 0x3e]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallRunBooster
lea rcx, [rbp - 0x39]
call fcn.140002ac0
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14000e9cb
lea rax, [rbp - 0x39]
mov r14, qword [rbp - 0x39]
mov rdi, qword [rbp - 0x21]
cmp rdi, 8
cmovae rax, r14
lea rbx, [rcx - 1]
lea rbx, [rax + rbx*2]
nop word [rax + rax]
mov ecx, 2
lea rax, [0x140046eac]
movzx edx, word [rbx]
nop
cmp word [rax], dx
je 0x14000e907
add rax, 2
sub rcx, 1
jne 0x14000e8e0
lea rcx, [rbp - 0x39]
call fcn.140002ab0
cmp rbx, rax
je 0x14000e9d3
sub rbx, 2
jmp 0x14000e8d0
lea rax, [rbp - 0x39]
cmp rdi, 8
cmovae rax, r14
sub rbx, rax
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14000e9d3
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14000ea30
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14000e9b1
lea r8, [rbx + 1]
or r9, 0xffffffffffffffff
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.14000ea30
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov r8, qword [rbp - 1]
cmp r8, 8
jb 0x14000e9b1
inc r8
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140002ef0
nop
mov r8, qword [rbp + 0x1f]
cmp r8, 8
jb 0x14000e9cb
inc r8
mov rdx, qword [rbp + 7]
lea rcx, [rbp + 7]
call fcn.140002ef0
mov r14, qword [rbp - 0x39]
mov rdi, qword [rbp - 0x21]
cmp rdi, 8
jb 0x14000e9e9
lea r8, [rdi + 1]
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.140002ef0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14000ea00
cmp esi, 2
movzx eax, r12b
jne 0x14000ea02
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400164d0
lea r11, [rsp + 0xb0]
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 0x14000ea70
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], edi
mov ebx, edi
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x38], edi
mov r9d, 0x220
mov dword [rsp + 0x30], edi
mov dl, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000eafa
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14000eb02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000eb17
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x68], rdi
test ebx, ebx
jne 0x14000eb40
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400164d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
lea rdx, [0x14004eac8]
mov dword [rsp + 0x60], ebx
lea rcx, [rsp + 0x60]
call fcn.140019b94
int3
Function at 0x1400137d0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov esi, eax
xor edx, edx
lea rax, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14001382b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400138db
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x1400138d9
cmp eax, 3
je 0x140013863
mov r8, rbx
mov rdx, rdi
call fcn.140013910
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140013820
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x1400138d9
mov edi, 0x7d0
nop dword [rax]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140013820
cmp dword [rsp + 0x3c], 1
je 0x1400138d9
mov eax, 0xcccccccd
mul dword [rsp + 0x50]
shr edx, 3
cmp edx, 0xfa
jae 0x1400138b6
mov edx, 0xfa
jmp 0x1400138bb
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1388
ja 0x1400138fa
cmp dword [rsp + 0x3c], 1
jne 0x140013870
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400164d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, 0x80e9
jmp 0x1400138db
Function at 0x140022480
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140022254
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022254
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022254
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022254
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022254
cmp dword [rcx + 0x84], 0xe
jbe 0x140022254
cmp dword [rcx + 0xf8], esi
je 0x140022254
mov ecx, r14d
call fcn.14002239c
mov ecx, 2
call fcn.14001e810
nop
cmp byte [0x140052608], 0
jne 0x14002231e
mov r15d, 1
mov eax, r15d
xchg dword [0x1400525f8], eax
test ebx, ebx
jne 0x1400222c7
mov rdi, qword [0x140050088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140052600]
cmp rcx, rax
je 0x1400222be
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000ca50]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140052840]
jmp 0x1400222d3
cmp ebx, r15d
jne 0x1400222d9
lea rcx, [0x140052858]
call fcn.140022f10
nop
test ebx, ebx
jne 0x1400222f0
lea rdx, [0x1400335c8]
lea rcx, [0x1400335a8]
call fcn.1400231dc
lea rdx, [0x1400335d8]
lea rcx, [0x1400335d0]
call fcn.1400231dc
movzx eax, byte [0x140052608]
test esi, esi
cmove eax, r15d
mov byte [0x140052608], al
jmp 0x14002231e
mov ecx, 2
call fcn.14001e864
test esi, esi
jne 0x140022335
mov ecx, r14d
call fcn.140022350
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400221e4