joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ee7c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x5ee895
movdqa xmm0, xmmword [0x00754eb0]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x5ee801
movdqa xmm0, xmmword [0x00754ec0]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x5ee917
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x5ee8eb
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x00754608]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x007553a0]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x5fc140
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5fc2eb
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x5fc167
inc rcx
cmp rbx, rcx
jle 0x5fc2dd
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x5fc164
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.004fd160
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rsi
test rsi, rsi
mov rdx, qword [rsp + 0x88]
cmovne rbx, rdx
mov rdx, qword [rsp + 0x80]
cmovne rax, rdx
mov rdx, qword [0x008e67e8]
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.005f8200
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop dword [rax]
test rcx, rcx
jne 0x5fc2cd
test rdx, rdx
je 0x5fc2be
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403280
xorps xmm15, xmm15
mov r14, qword [0x00947048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5fc289
xor eax, eax
lea rbx, [0x00752f00]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006da235]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.0044e8e0
jmp 0x5fc2b0
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00752d98]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.0044e800
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor ecx, ecx
mov rdi, r9
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, r9
mov rbx, rsi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00463760
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.005fc140
Function at 0x100001000
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate process modules
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
sub rsp, 0x11f8
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x48]
mov edx, 0xfa0
lea r8, [rsp + 0xfe8]
call qword [sym.imp.kernel32.dll_K32EnumProcesses]
test al, al
je 0x100001195
mov esi, dword [rsp + 0xfe8]
mov ecx, 0x43a
xor rdx, rdx
mov r8d, dword [rsp + rsi + 0x44]
call qword [sym.imp.kernel32.dll_OpenProcess]
test rax, rax
je 0x100001093
mov rbp, rax
mov rcx, rbp
xor rdx, rdx
lea r8, [rsp + 0xfe8]
mov r9d, 0x100
call qword [sym.imp.kernel32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x10000108a
lea rcx, [0x100003bbc]
lea rdx, [rsp + 0xfe8]
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x1000010ba
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
sub esi, 4
jne 0x100001038
xor rcx, rcx
lea rdx, [0x100003c08]
lea r8, [0x100003c04]
mov r9d, 0x10040
call qword [sym.imp.user32.dll_MessageBoxW]
jmp 0x1000011b2
mov rcx, rbp
xor rdx, rdx
mov r8d, dword [0x100000090]
mov r9d, 0x1000
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
test rax, rax
je 0x10000118c
mov rsi, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
sub qword [sym.imp.kernel32.dll_LoadLibraryA], rax
sub qword [sym.imp.kernel32.dll_GetProcAddress], rax
mov rcx, rbp
mov rdx, rsi
lea r8, [0x100000000]
mov r9d, dword [0x100000090]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test al, al
je 0x100001177
mov rcx, rbp
xor rdx, rdx
mov r8d, 0x1000
lea r9, [rsi + 0x11cd]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
call qword [sym.imp.kernel32.dll_CreateRemoteThread]
test rax, rax
je 0x100001177
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1000011b2
mov rcx, rbp
mov rdx, rsi
xor r8, r8
mov r9d, 0x4000
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
xor rcx, rcx
lea rdx, [0x100003c38]
lea r8, [0x100003c04]
mov r9d, 0x10010
call qword [sym.imp.user32.dll_MessageBoxW]
xor rcx, rcx
call qword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x140
mov rax, qword gs:[0x60]
mov esi, ecx
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x20]
test ecx, ecx
jne 0x140001039
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x158], rdi
test rbx, rbx
je 0x140001105
mov ebp, 0x104
nop word [rax + rax]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x1400010f9
cmp word [rbx + 0x48], bp
jae 0x1400010f9
mov r8, rbp
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140001e80
xor r9d, r9d
cmp word [rdi], r9w
je 0x1400010d1
xor r10d, r10d
mov r11, rdi
xor eax, eax
nop word [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 + 0x20]
movzx ecx, al
lea edx, [r8 - 0x41]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + r10 + 0x30], cl
mov rdi, qword [rbx + 0x50]
mov r10d, r9d
lea rax, [r9 + r9]
cmp word [rax + rdi], 0
jne 0x1400010a0
mov rcx, rdi
mov byte [rsp + r9 + 0x30], 0
call fcn.140001650
cmp eax, esi
je 0x1400011d2
lea rcx, [rsp + 0x30]
call fcn.140001650
cmp eax, esi
je 0x1400011d2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001060
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400011af
lea rbx, str.C:Users_adm_consultantDesktopMaldevAcademyLdr.1_mainMaldevAcademyLdr.1_mainLoaderApiHashing.c
mov edx, 0x5c
mov rcx, rbx
call fcn.140001eb0
test rax, rax
je 0x140001155
mov edx, 0x5c
mov rcx, rbx
call fcn.140001eb0
lea rbx, [rax + 1]
mov r9, rbx
mov dword [rsp + 0x20], 0x84
mov r8d, esi
lea rdx, str.____GetModuleHandleH_Failed:_Module_Of_Hash_0x_08X_Was_Not_Found____s._d_n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbp, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400011b1
Function at 0x140001650
Capabilities:
Hash data using djb2

Disassembly:
movsx edx, byte [rcx]
mov eax, 0x1505
test edx, edx
je 0x140001670
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140001660
ret

Function at 0x140001ee0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov r13, rcx
test r8b, 0xf
jne 0x14000200d
mov r15, rbx
shr r15, 4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi], rax
mov rdi, rax
test rax, rax
je 0x14000200d
lea rsi, [r13 + 0xf0]
test r15, r15
je 0x140001ff9
mov qword [rsp + 0x60], rbp
mov rbx, rsi
mov qword [rsp + 0x68], r12
lea rbp, [rax + 0xf]
lea r12, [rsi + 0xf]
sub rbx, rax
nop dword [rax]
mov r8d, 0x10
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140001e10
mov r9, r14
mov r8, rdi
mov edx, 0xe
mov rcx, r13
call fcn.140002070
cmp rdi, r12
ja 0x140001fb2
cmp rbp, rsi
jb 0x140001fb2
mov rax, rdi
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140001fa0
jmp 0x140001fc2
movdqu xmm1, xmmword [rdi]
movdqu xmm0, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rdi], xmm1
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140001e10
add rdi, 0x10
add rbp, 0x10
sub rbx, 0x10
add r14, 0x10
sub r15, 1
jne 0x140001f60
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x70]
xor al, al
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140003c90
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x248
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
mov dword [rax + 8], edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rdi + 8]
mov r8d, 0xff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140003ce2
mov dword [rax], 0xa5
mov rbx, rax
cmp dword [rbx], 0x15e
jle 0x140003d57
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowContextHelpId]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsWindowVisible]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140001e80
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0xe]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [0x140006090]
call fcn.140001680
test eax, eax
je 0x140003e61
xor ecx, ecx
mov ebx, 0x5a
call fcn.140001000
mov rcx, rax
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x268]
movzx edx, bx
call fcn.140003ec0
test eax, eax
je 0x140003e61
movss xmm0, dword [0x140006008]
mulss xmm0, dword [0x140005614]
mov rdx, qword [0x1400060e8]
mov ecx, dword [0x1400060e0]
cvttss2si rax, xmm0
imul eax, eax, 0x2710
neg rax
mov qword [rsp + 0x278], rax
call fcn.1400045b0
lea rdx, [rsp + 0x278]
xor ecx, ecx
call fcn.1400045d2
call fcn.1400041c0
mov edx, dword [rsp + 0x260]
lea r8, [rsp + 0x270]
mov rcx, qword [rsp + 0x268]
call fcn.1400039c0
test eax, eax
je 0x140003e61
mov rcx, qword [rsp + 0x270]
call fcn.1400038a0
xor eax, eax
add rsp, 0x248
pop rdi
pop rbx
ret
mov r9d, 0x21
lea r8, [0x140005610]
lea rdx, [0x140005610]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 1
je 0x140003ea1
cmp eax, 1
jne 0x140003ea7
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xffffffff
add rsp, 0x248
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 0xffffffff
add rsp, 0x248
pop rdi
pop rbx
ret
Function at 0x180001000
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001028
xor eax, eax
lea r8, [0x180001280]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x140854000
Capabilities:
Encode data using xor

Disassembly:
push rdi
movabs rdi, 0x5cac73788738b91a
lea rax, section..t
mov r10d, 0x8525bc
jmp 0x14085401d
xor byte [rax], dil
rol rdi, 1
inc rax
dec r10d
jne 0x14085401d
jmp 0x140854035
pop rdi
jmp loc.140851121
Function at 0x180012a70
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x11eece0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180012aa0
mov rax, qword [rsp + 0x58]
dec rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180012b7a
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
imul rax, rax, 0x1000193
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x180096710]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x180096710]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x180096710]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x180096710]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x180012b75
mov eax, 4
imul rax, rax, 3
lea rcx, [0x180096710]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x180096710]
mov dword [rdx + rcx], eax
jmp 0x180012a93
mov eax, dword [rsp + 0x28]
jmp 0x180012bd3
add rsp, 0x48
ret
Function at 0x180015ce0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x180015cee
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x180015d20
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.180018860
jmp 0x180015da3
movzx eax, byte [0x180120bf0]
test eax, eax
jne 0x180015d65
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180015d5e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180120be8], rax
mov byte [0x180120bf0], 1
cmp qword [0x180120be8], 0
je 0x180015d90
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x180120be8]
jmp 0x180015da3
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x180015db0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x180015dbe
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x180018580
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x180097030]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.18001b330
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800133f0
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.1800179c0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180018614
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x50]
call fcn.1800138a0
mov eax, dword [rsp + 0x4c]
jmp 0x1800186d2
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800186a1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180018580
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180018694
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x50]
call fcn.1800138a0
mov eax, dword [rsp + 0x44]
jmp 0x1800186d2
mov dword [rsp + 0x68], 0x100
jmp 0x18001861c
lea rcx, [rsp + 0x50]
call fcn.180015850
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.180015ce0
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x50]
call fcn.1800138a0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18004b890
add rsp, 0x298
ret
Function at 0x180018860
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x1800188ec
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18001889f
mov eax, 1
jmp 0x18001890e
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1800188ea
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x18001890e
jmp 0x180018909
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x180018909
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x18001890e
mov eax, 1
add rsp, 0x48
ret
Function at 0x180019ed0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x180019ee3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180019f20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x180019f33
cmp qword [rsp + 0x70], 0
je 0x180019f4b
mov dword [rsp + 0x38], 1
jmp 0x180019f53
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x180019f69
mov eax, SafeArrayGetDim
jmp 0x180019fe8
xor eax, eax
test eax, eax
jne 0x180019f39
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.18004bf08
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x180019f81
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret

Function at 0x180019ff0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x18001a008
cmp qword [rsp + 0x60], 0
je 0x18001a020
mov dword [rsp + 0x30], 1
jmp 0x18001a028
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18001a03e
mov eax, SafeArrayGetDim
jmp 0x18001a07e
xor eax, eax
test eax, eax
jne 0x18001a00e
mov rcx, qword [rsp + 0x60]
call fcn.18004bf08
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret
Function at 0x18001d790
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1800254c0
mov eax, 5
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180096980]
cmp dword [rcx + rax*4], 1
jne 0x18001d7e7
movsx rax, word [rsp + 0x20]
lea rcx, [0x180096980]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180096980]
mov dword [rdx + rcx*4], eax
call fcn.180025550
cmp qword [rax + 0xfa8], 0
je 0x18001d82c
cmp qword [0x18011fc88], 0
je 0x18001d81e
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [0x18011fc88]
mov dword [rsp + 0x24], eax
jmp 0x18001d826
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
jmp 0x18001d83c
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret