joyce8/EMBER2024-capa huggingface dataset:
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 [0x14007d078]
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, [0x14006d740]
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.140001d20
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.140001d20
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.140029320
add rsp, 0x2a8
pop rdi
pop rsi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140001cd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14000333c
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x14000333c
mov dword [rsp + 0x28], 1
jmp 0x140003344
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x40]
call fcn.140001cf0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140011ee0
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 [0x14007d078]
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 0x14001215b
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 0x14001215b
cmp dword [rsp + 0x34], 1
jne 0x14001215b
lea rdx, str._k__
lea rcx, [rsp + 0x130]
call fcn.140001d20
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.14000a090
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.14000a090
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140001cd0
mov rdx, rax
lea rcx, [rsp + 0x360]
call fcn.140012c50
lea rcx, [rsp + 0xf0]
call fcn.140001cf0
nop
lea rcx, [rsp + 0x110]
call fcn.140001cf0
nop
lea rcx, [rsp + 0x130]
call fcn.140001cf0
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, [0x14006e260]
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.1400115e0
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.140029320
add rsp, 0x5d8
ret
Function at 0x140013cd0
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 [0x14007d078]
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.140013ca0
cmp eax, 0xffffffff
je 0x140013d80
cmp dword [rsp + 0x38], 8
jne 0x140013d80
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140013d80
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
call fcn.140013e30
mov rax, qword [rsp + 0x80]
mov dword [rax], 0
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140029320
add rsp, 0x50
pop rdi
ret

Function at 0x140013f50
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 0x140013fbe
mov rax, qword [rsp + 0x40]
add rax, 8
mov r8d, 1
mov edx, 0xffffffff
mov rcx, rax
call fcn.140013de0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140013fbe
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140013fbe
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140013e30
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov eax, 1
add rsp, 0x38
ret

Function at 0x140014870
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 [0x14007d078]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003100
lea rcx, [rsp + 0x30]
call fcn.140001cd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x1400148d3
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x1400148d3
mov dword [rsp + 0x28], 1
jmp 0x1400148db
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x30]
call fcn.140001cf0
nop
mov rcx, qword [rsp + 0x70]
call fcn.140001dd0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140029320
add rsp, 0x68
ret
Function at 0x140018aa0
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 [0x14007d078]
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 0x140018aef
cmp dword [rsp + 0x2c], 0xc00
je 0x140018aef
cmp dword [rsp + 0x2c], 0x1004
jne 0x140018b0d
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 0x140018b29
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.1400193e0
xor r9d, r9d
mov r8, qword [rsp + 0x80]
xor edx, edx
lea rcx, [0x140082100]
call fcn.1400192f0
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140001a10
mov rcx, rax
call fcn.140001cd0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x40]
call fcn.140001cf0
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 0x140018bc6
mov dword [rsp + 0x20], 1
jmp 0x140018bee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140018bdd
mov dword [rsp + 0x20], 1
jmp 0x140018bee
mov rcx, qword [rsp + 0x90]
call fcn.140018c30
mov dword [rsp + 0x20], eax
cmp qword [rsp + 0x38], 0
je 0x140018c01
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140082100]
call fcn.140019180
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140029320
add rsp, 0x78
ret

Function at 0x14001b7b0
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 0x14001b7be
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 0x14001bc00
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 0x14001bc18
cmp qword [rsp + 0x70], 0
je 0x14001bc30
mov dword [rsp + 0x30], 1
jmp 0x14001bc38
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14001bc4e
mov eax, 0xd
jmp 0x14001bcb2
xor eax, eax
test eax, eax
jne 0x14001bc1e
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 0x14001bc67
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 0x14001bd40
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 0x14001bd53
cmp qword [rsp + 0x80], 0
je 0x14001bd6e
mov dword [rsp + 0x38], 1
jmp 0x14001bd76
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14001bd8f
mov eax, 0xd
jmp 0x14001be38
xor eax, eax
test eax, eax
jne 0x14001bd59
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 0x14001bdbd
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 0x14001bdaa
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 0x14001be50
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 0x14001be63
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 0x14001c8f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x14007d078]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14001caf0
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.14001c820
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001c975
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call fcn.14001cb80
mov eax, dword [rsp + 0x48]
jmp 0x14001ca33
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 0x14001ca02
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001c8f0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001c9f5
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x58]
call fcn.14001cb80
mov eax, dword [rsp + 0x4c]
jmp 0x14001ca33
mov dword [rsp + 0x44], 0x100
jmp 0x14001c97d
lea rcx, [rsp + 0x58]
call fcn.14001cb30
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.14001cca0
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.14001cb80
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140029320
add rsp, 0x298
ret

Function at 0x14001cbe0
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 0x14001cc6c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001cc1f
mov eax, 1
jmp 0x14001cc8e
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 0x14001cc6a
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 0x14001cc8e
jmp 0x14001cc89
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x14001cc89
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14001cc8e
mov eax, 1
add rsp, 0x48
ret
Function at 0x14001cca0
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 0x14001ccae
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x14001cce0
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.14001cbe0
jmp 0x14001cd63
movzx eax, byte [0x140081fe8]
test eax, eax
jne 0x14001cd25
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001cd1e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140081fe0], rax
mov byte [0x140081fe8], 1
cmp qword [0x140081fe0], 0
je 0x14001cd50
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 [0x140081fe0]
jmp 0x14001cd63
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 0x14001e930
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 [0x14007d078]
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.14000efb0
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 0x14001e9ed
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400293b0
mov rbx, rax
lea rdx, [rbp - 0x31]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [rbp - 0x31], r14d
ja 0x14001ea06
mov rcx, rbx
call fcn.140029340
lea rdx, [0x14006e750]
lea rcx, [rbp - 1]
call fcn.140001d20
mov dword [rbp - 0x39], 3
jmp 0x14001ea38
mov rdx, rbx
lea rcx, [rbp + 0x1f]
call fcn.140001d20
mov rcx, rbx
call fcn.140029340
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.140008060
mov dword [rbp - 0x39], 3
lea rcx, [rbp + 0x1f]
call fcn.140001cf0
nop
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14000efe0
nop
lea rcx, [rbp - 1]
call fcn.140001cf0
lea rdx, [0x14006f134]
lea rcx, [rbp - 0x21]
call fcn.14000efb0
lea rdx, [0x14006f138]
lea rcx, [rbp - 0x21]
call fcn.14000efb0
lea rdi, [rsi + 0x30]
mov qword [rbp - 0x31], rdi
lea rcx, [rbp - 0x21]
call fcn.1400022b0
mov rdx, rax
mov rcx, rdi
call fcn.1400080c0
nop
mov qword [rdi + 0x20], r15
mov byte [rdi + 0x28], 0
mov qword [rdi + 0x30], 0x1000
mov ecx, 0x1000
call fcn.1400293b0
mov rbx, rax
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.14002e990
mov qword [rbp - 0x39], rbx
lea rcx, [rbp - 0x39]
call fcn.1400022b0
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.140001cf0
mov rcx, rsi
call fcn.14001ebb0
nop
mov rax, rsi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140029320
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
Function at 0x14001f000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], r9d
lea rbx, [rcx + 0x30]
mov rcx, rbx
call fcn.1400274d0
lea r8, [rsp + 0x38]
mov rdx, qword [rbx + 0x20]
mov rcx, rbx
call fcn.14001f310
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001f0a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001f0bd
mov r8, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rbx + 0x38]
call fcn.14002e990
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rbx + 0x30]
mov rdx, qword [rbx + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f0d2
mov byte [rbx + 0x28], 0
mov eax, dword [rsp + 0x68]
jmp 0x14001f0b2
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x30], eax
lea rdx, [0x140079770]
lea rcx, [rsp + 0x30]
call fcn.14002ed18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x140079770]
lea rcx, [rsp + 0x34]
call fcn.14002ed18
int3

Function at 0x14001f310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbx, rcx
mov rdx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdx
movsd xmm0, qword [r8]
movsd qword [rdx], xmm0
mov eax, dword [r8 + 8]
mov dword [rdx + 8], eax
lea rsi, [rcx + 0x28]
mov qword [rsp + 0x40], rsi
cmp byte [rsi], 0
je 0x14001f355
mov rax, qword [rcx + 0x30]
jmp 0x14001f35a
mov eax, 0xc
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001f3e5
cmp dword [rsp + 0x80], 0
jbe 0x14001f3e5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
jmp 0x14001f3a3
mov byte [rsi], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001f3dc
mov qword [rbx + 0x40], 0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], 0
test rcx, rcx
je 0x14001f3dc
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x30], eax
lea rdx, [0x140079770]
lea rcx, [rsp + 0x30]
call fcn.14002ed18
int3

Function at 0x1400275e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rax, r9
mov qword [rsp + 0x20], 0
mov rbx, rdx
lea r9, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140027628
cmp dword [rsp + 0x50], 0
jbe 0x140027628
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140079770]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
call fcn.14002ed18
int3
Function at 0x14002a0dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a126
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a126
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a126
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a126
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a126
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002a128
xor al, al
add rsp, 0x28
ret

Function at 0x14004778c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047588

Function at 0x14004b0bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004b0d2
mov al, 1
jmp 0x14004b132
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004b0e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004b130
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400531b8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004b130
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004b130
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004b130
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004b132
xor al, al
add rsp, 0x20
pop rbx
ret