joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d887790
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8a85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d887918
mov rax, qword [0x6d8a85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8877dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d887865
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8877c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d88794d
mov rax, qword [0x6d8a85e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8a85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d887930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d88785e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8878c0
add dword [0x6d8a85e4], 1
cmp edi, 8
jae 0x6d887893
test dil, 4
jne 0x6d887904
test edi, edi
je 0x6d887888
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d88791f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d887888
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8878ac
jmp 0x6d887888
add rsi, qword [0x6d8a85e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d88785e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d887888
xor esi, esi
jmp 0x6d8877e7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d887888
mov rax, qword [0x6d8a85e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8880a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8a88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8a88a0]
test rbx, rbx
je 0x6d8880f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8880eb
test rsi, rsi
je 0x6d8880eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8880d0
lea rcx, [0x6d8a88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d888330
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d888340
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d888350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d888391
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d888388
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d888393
add rax, 0x28
cmp rax, r9
jne 0x6d888374
xor eax, eax
ret

Function at 0x6d888430
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a51f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d88849d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d88849d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d88849d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d888494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d88849f
add rax, 0x28
cmp rax, r9
jne 0x6d888480
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8885a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8a51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8885c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8885b8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d88861d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d888614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d888624
add rax, 0x28
cmp rax, r9
jne 0x6d888600
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d888640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8a51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8886ae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8886ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8886ae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8886ae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8886a5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8886b5
add rcx, 0x28
cmp rcx, rax
jne 0x6d888690
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8886c8
jmp 0x6d8886ae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8886d6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8886ae
test r9d, r9d
jg 0x6d8886c0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d888a40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call 0x1000a2000
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10000c1e0
add rsp, 0x28
jmp 0x10000bae0
Function at 0x140001650
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 [0x140054080]
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, [0x140049810]
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 0x140001770
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 0x140001770
cmp dword [rsp + 0x38], 1
jne 0x140001770
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x80]
test eax, eax
je 0x140001770
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x2c0]
call fcn.140001970
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c0]
jmp 0x1400017b3
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.140001970
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.140021d50
add rsp, 0x2a8
pop rdi
pop rsi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140001920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x1400054fc
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x1400054fc
mov dword [rsp + 0x28], 1
jmp 0x140005504
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x40]
call fcn.140001940
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140011d30
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 [0x140054080]
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 0x140011fab
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 0x140011fab
cmp dword [rsp + 0x34], 1
jne 0x140011fab
lea rdx, str._k__
lea rcx, [rsp + 0x130]
call fcn.140001970
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.140009d40
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.140009d40
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140001920
mov rdx, rax
lea rcx, [rsp + 0x360]
call fcn.140012aa0
lea rcx, [rsp + 0xf0]
call fcn.140001940
nop
lea rcx, [rsp + 0x110]
call fcn.140001940
nop
lea rcx, [rsp + 0x130]
call fcn.140001940
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, [0x14004a368]
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.140011430
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.140021d50
add rsp, 0x5d8
ret
Function at 0x140013b20
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 [0x140054080]
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.140013af0
cmp eax, 0xffffffff
je 0x140013bd0
cmp dword [rsp + 0x38], 8
jne 0x140013bd0
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140013bd0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
call fcn.140013c80
mov rax, qword [rsp + 0x80]
mov dword [rax], 0
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140021d50
add rsp, 0x50
pop rdi
ret

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

Function at 0x1400146c0
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 [0x140054080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400052c0
lea rcx, [rsp + 0x30]
call fcn.140001920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140014723
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x140014723
mov dword [rsp + 0x28], 1
jmp 0x14001472b
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x30]
call fcn.140001940
nop
mov rcx, qword [rsp + 0x70]
call fcn.140001a20
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140021d50
add rsp, 0x68
ret
Function at 0x140018930
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 [0x140054080]
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 0x14001897f
cmp dword [rsp + 0x2c], 0xc00
je 0x14001897f
cmp dword [rsp + 0x2c], 0x1004
jne 0x14001899d
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 0x1400189b9
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.140019270
xor r9d, r9d
mov r8, qword [rsp + 0x80]
xor edx, edx
lea rcx, [0x1400579f0]
call fcn.140019180
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140001650
mov rcx, rax
call fcn.140001920
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x40]
call fcn.140001940
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 0x140018a56
mov dword [rsp + 0x20], 1
jmp 0x140018a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140018a6d
mov dword [rsp + 0x20], 1
jmp 0x140018a7e
mov rcx, qword [rsp + 0x90]
call fcn.140018ac0
mov dword [rsp + 0x20], eax
cmp qword [rsp + 0x38], 0
je 0x140018a91
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400579f0]
call fcn.140019010
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021d50
add rsp, 0x78
ret

Function at 0x14001b640
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 0x14001b64e
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 0x14001ba90
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 0x14001baa8
cmp qword [rsp + 0x70], 0
je 0x14001bac0
mov dword [rsp + 0x30], 1
jmp 0x14001bac8
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14001bade
mov eax, 0xd
jmp 0x14001bb42
xor eax, eax
test eax, eax
jne 0x14001baae
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 0x14001baf7
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 0x14001bbd0
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 0x14001bbe3
cmp qword [rsp + 0x80], 0
je 0x14001bbfe
mov dword [rsp + 0x38], 1
jmp 0x14001bc06
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14001bc1f
mov eax, 0xd
jmp 0x14001bcc8
xor eax, eax
test eax, eax
jne 0x14001bbe9
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 0x14001bc4d
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 0x14001bc3a
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 0x14001bce0
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 0x14001bcf3
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