joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011532
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14001aa40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400410f7]
call fcn.140011aaa
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14001aa84
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14001ab15
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14001aada
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001aae4
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001aa79
mov qword [rbp + 0x88], 0xe3
jmp 0x14001ab33
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14001abdc
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14001ab98
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001aba2
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001ab22
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14001ac3c
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001ac46
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x1400115fa
Capabilities:
Terminate process

Disassembly:
jmp 0x140027810
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 0x140011771
Capabilities:
Parse pe header

Disassembly:
jmp 0x140028b60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140028b80
xor al, al
jmp 0x140028c01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140028b93
xor al, al
jmp 0x140028c01
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 0x140028bbd
xor al, al
jmp 0x140028c01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140028bd1
xor al, al
jmp 0x140028c01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140028be3
xor al, al
jmp 0x140028c01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140028bff
xor al, al
jmp 0x140028c01
mov al, 1
add rsp, 0x38
ret
Function at 0x140001a10
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2a8
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
lea rcx, [0x140067170]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2a
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140001b30
mov dword [rsp + 0x3c], 0x208
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.RimeUserDir
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 0
jne 0x140001b30
cmp dword [rsp + 0x38], 1
jne 0x140001b30
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x80]
test eax, eax
je 0x140001b30
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x2c0]
call fcn.140001d30
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c0]
jmp 0x140001b73
mov r8d, 0x104
lea rdx, [rsp + 0x80]
lea rcx, str._AppData_Rime
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x2c0]
call fcn.140001d30
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140028fe0
add rsp, 0x2a8
pop rdi
pop rsi
ret

Function at 0x140003310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140001ce0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14000334c
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x14000334c
mov dword [rsp + 0x28], 1
jmp 0x140003354
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x40]
call fcn.140001d00
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400120f0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x5d8
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareRimeWeasel
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001236b
mov dword [rsp + 0x38], 0x208
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.WeaselRoot
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001236b
cmp dword [rsp + 0x34], 1
jne 0x14001236b
lea rdx, str._k__
lea rcx, [rsp + 0x130]
call fcn.140001d30
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x150]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x110]
call fcn.14000a100
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea r8, str._rime_install.bat_
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xf0]
call fcn.14000a100
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140001ce0
mov rdx, rax
lea rcx, [rsp + 0x360]
call fcn.140012e60
lea rcx, [rsp + 0xf0]
call fcn.140001d00
nop
lea rcx, [rsp + 0x110]
call fcn.140001d00
nop
lea rcx, [rsp + 0x130]
call fcn.140001d00
mov dword [rsp + 0x80], 0x70
mov dword [rsp + 0x84], 0x140
mov rax, qword [rsp + 0x5f8]
mov qword [rsp + 0x88], rax
lea rax, str.open
mov qword [rsp + 0x90], rax
lea rax, [0x140067ca8]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x360]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], 5
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x5e0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x5e0]
mov rcx, qword [rcx + 0x48]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x5e0]
call fcn.1400117f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.140028fe0
add rsp, 0x5d8
ret
Function at 0x140013ee0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
and rax, 0xffff
cwde
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x78]
shr rax, 0x10
and rax, 0xffff
cwde
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
add rax, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140013eb0
cmp eax, 0xffffffff
je 0x140013f90
cmp dword [rsp + 0x38], 8
jne 0x140013f90
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140013f90
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
call fcn.140014040
mov rax, qword [rsp + 0x80]
mov dword [rax], 0
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140028fe0
add rsp, 0x50
pop rdi
ret

Function at 0x140014160
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x50], 0x20
jne 0x1400141ce
mov rax, qword [rsp + 0x40]
add rax, 8
mov r8d, 1
mov edx, 0xffffffff
mov rcx, rax
call fcn.140013ff0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400141ce
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x1400141ce
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140014040
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov eax, 1
add rsp, 0x38
ret

Function at 0x140014a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003110
lea rcx, [rsp + 0x30]
call fcn.140001ce0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140014ae3
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x140014ae3
mov dword [rsp + 0x28], 1
jmp 0x140014aeb
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x30]
call fcn.140001d00
nop
mov rcx, qword [rsp + 0x70]
call fcn.140001de0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140028fe0
add rsp, 0x68
ret
Function at 0x140018cf0
Capabilities:
Check mutex on windows
Create directory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x804
je 0x140018d3f
cmp dword [rsp + 0x2c], 0xc00
je 0x140018d3f
cmp dword [rsp + 0x2c], 0x1004
jne 0x140018d5d
mov cx, 0x804
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
jmp 0x140018d79
mov cx, 0x404
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x28]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x30], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, 4
call fcn.140019630
xor r9d, r9d
mov r8, qword [rsp + 0x80]
xor edx, edx
lea rcx, [0x14007c0f0]
call fcn.140019540
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140001a10
mov rcx, rax
call fcn.140001ce0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x40]
call fcn.140001d00
mov dword [rsp + 0x20], 0
lea r8, str.WeaselDeployerExclusiveMutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140018e16
mov dword [rsp + 0x20], 1
jmp 0x140018e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140018e2d
mov dword [rsp + 0x20], 1
jmp 0x140018e3e
mov rcx, qword [rsp + 0x90]
call fcn.140018e80
mov dword [rsp + 0x20], eax
cmp qword [rsp + 0x38], 0
je 0x140018e51
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14007c0f0]
call fcn.1400193d0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140028fe0
add rsp, 0x78
ret

Function at 0x14001ba00
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 0x14001ba0e
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 0x14001be50
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, 0x58
xor eax, eax
test eax, eax
jne 0x14001be68
cmp qword [rsp + 0x70], 0
je 0x14001be80
mov dword [rsp + 0x30], 1
jmp 0x14001be88
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14001be9e
mov eax, 0xd
jmp 0x14001bf02
xor eax, eax
test eax, eax
jne 0x14001be6e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x14001beb7
mov rax, qword [rsp + 0x38]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
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 0x14001bf90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
xor eax, eax
test eax, eax
jne 0x14001bfa3
cmp qword [rsp + 0x80], 0
je 0x14001bfbe
mov dword [rsp + 0x38], 1
jmp 0x14001bfc6
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14001bfdf
mov eax, 0xd
jmp 0x14001c088
xor eax, eax
test eax, eax
jne 0x14001bfa9
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x14001c00d
mov rax, qword [rsp + 0x40]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x48], 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 0x14001bffa
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x68
ret

Function at 0x14001c0a0
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 0x14001c0b3
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 0x14001cb40
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14001cd40
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 + 0x58]
call fcn.14001ca70
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001cbc5
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call fcn.14001cdd0
mov eax, dword [rsp + 0x48]
jmp 0x14001cc83
mov dword [rsp + 0x44], 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 + 0x44]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001cc52
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001cb40
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001cc45
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x58]
call fcn.14001cdd0
mov eax, dword [rsp + 0x4c]
jmp 0x14001cc83
mov dword [rsp + 0x44], 0x100
jmp 0x14001cbcd
lea rcx, [rsp + 0x58]
call fcn.14001cd80
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.14001cef0
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.14001cdd0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140028fe0
add rsp, 0x298
ret

Function at 0x14001ce30
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 0x14001cebc
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001ce6f
mov eax, 1
jmp 0x14001cede
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 0x14001ceba
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 0x14001cede
jmp 0x14001ced9
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x14001ced9
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14001cede
mov eax, 1
add rsp, 0x48
ret
Function at 0x14001cef0
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 0x14001cefe
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x14001cf30
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.14001ce30
jmp 0x14001cfb3
movzx eax, byte [0x14007bfd8]
test eax, eax
jne 0x14001cf75
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001cf6e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007bfd0], rax
mov byte [0x14007bfd8], 1
cmp qword [0x14007bfd0], 0
je 0x14001cfa0
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 [0x14007bfd0]
jmp 0x14001cfb3
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 0x14001eb80
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
mov qword [rbp - 0x29], rcx
xor r14d, r14d
mov dword [rbp - 0x39], r14d
mov dword [rcx], r14d
add rcx, 8
call fcn.140008130
nop
mov byte [rsi + 0x28], r14b
lea rcx, [rbp - 0x21]
call fcn.140008130
mov dword [rbp - 0x39], 1
lea rdx, str..pipe_
lea rcx, [rbp - 0x21]
call fcn.14000f120
mov dword [rbp - 0x31], r14d
lea rdx, [rbp - 0x31]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea r15, [r14 - 1]
mov eax, dword [rbp - 0x31]
test eax, eax
je 0x14001ec3d
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140029070
mov rbx, rax
lea rdx, [rbp - 0x31]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [rbp - 0x31], r14d
ja 0x14001ec56
mov rcx, rbx
call fcn.140029000
lea rdx, [0x1400681b8]
lea rcx, [rbp - 1]
call fcn.140001d30
mov dword [rbp - 0x39], 3
jmp 0x14001ec88
mov rdx, rbx
lea rcx, [rbp + 0x1f]
call fcn.140001d30
mov rcx, rbx
call fcn.140029000
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.140008060
mov dword [rbp - 0x39], 3
lea rcx, [rbp + 0x1f]
call fcn.140001d00
nop
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14000f150
nop
lea rcx, [rbp - 1]
call fcn.140001d00
lea rdx, [0x14006881c]
lea rcx, [rbp - 0x21]
call fcn.14000f120
lea rdx, [0x140068820]
lea rcx, [rbp - 0x21]
call fcn.14000f120
lea rdi, [rsi + 0x30]
mov qword [rbp - 0x31], rdi
lea rcx, [rbp - 0x21]
call fcn.1400022c0
mov rdx, rax
mov rcx, rdi
call fcn.1400080c0
nop
mov qword [rdi + 0x20], r15
mov byte [rdi + 0x28], 0
mov qword [rdi + 0x30], 0x10000
mov ecx, 0x10000
call fcn.140029070
mov rbx, rax
xor edx, edx
mov r8d, 0x10000
mov rcx, rax
call fcn.14002e670
mov qword [rbp - 0x39], rbx
lea rcx, [rbp - 0x39]
call fcn.1400022c0
mov rcx, qword [rax]
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], r14
mov qword [rdi + 0x48], r14
lea rcx, [rbp - 0x21]
call fcn.140001d00
mov rcx, rsi
call fcn.14001ee00
nop
mov rax, rsi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140028fe0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret