joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400850a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x240
xor esi, esi
mov dword [r11 + 0x10], 0xff
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [r11 + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400851ac
nop
mov rax, qword [0x1400fca58]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x270]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400851b9
mov rcx, qword [rsp + 0x270]
call fcn.1400850a0
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400851b9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1400851b9
lea rax, [rsp + 0x278]
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x268]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400850f0
xor eax, eax
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400851d0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x140085330
test r8, r8
je 0x140085203
cmp word [r8], 0
jne 0x14008520c
test rsi, rsi
je 0x140085330
mov rax, qword [0x1400fca58]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140085321
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x14008530b
call fcn.1400850a0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140085321
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140107d80], eax
jle 0x1400852cd
lea rcx, [0x140107d80]
call fcn.1400a440c
cmp dword [0x140107d80], 0xffffffff
jne 0x1400852cd
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RegDeleteKeyExW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140107d80]
mov qword [0x140107d88], rax
call fcn.1400a43ac
mov rax, qword [0x1400fca58]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400852fb
mov rax, qword [0x140107d88]
test rax, rax
je 0x1400852fb
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call rax
mov ebx, eax
jmp 0x140085321
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x140085321
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x140085335
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x140085337
mov ebx, 0x57
mov ecx, ebx
mov rax, qword [0x1400fca58]
test ebx, ebx
setne dl
mov dword [rax + 0x40], ecx
mov rcx, r14
call fcn.140035980
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140085b20
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
xor edi, edi
mov rdx, qword [rcx + 0x30]
mov rbx, rcx
test rdx, rdx
je 0x140085b5c
sub rdx, qword [rcx + 0x38]
lea r8d, [rdi + 1]
mov eax, dword [rcx + 0xc]
mov r9, qword [rcx]
sub rdx, rax
call qword [r9 + 0x28]
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0xc], edi
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x140085b7b
cmp qword [rbx + 0x30], rdi
jne 0x140085b7b
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [rbx + 0x38]
call qword [rax + 0x20]
mov dword [rbx + 0xc], edi
mov rax, qword [rbx]
mov rcx, rbx
mov word [rbx + 0x2c], di
call qword [rax + 0x30]
mov r9, qword [rbx]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
call qword [r9 + 0x28]
test al, al
je 0x140085bdc
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140085bdc
mov rax, qword [rbx]
cmp rsi, rdi
mov rcx, rbx
cmovl rdi, rsi
xor r8d, r8d
mov rdx, rdi
call qword [rax + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + gethostname]
mov rbx, qword [rsp + 0x30]
or rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400867a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140089250
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140089336
cmp word [rcx], 0
je 0x140089336
mov r8d, 4
lea rdx, [0x1400e9eb8]
call fcn.1400b03e8
mov r8, rbx
test eax, eax
jne 0x140089293
lea r8, [rbx + 8]
test r8, r8
je 0x1400892d0
movzx edx, word [r8]
test dx, dx
je 0x1400892d0
lea rcx, [0x1400e6808]
mov eax, 0x3f
nop dword [rax]
cmp dx, ax
je 0x1400892fb
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400892b0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400892a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test rdi, rdi
je 0x1400892e2
mov dword [rdi], eax
xor eax, eax
cmp ecx, 0xffffffff
setne al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140089336
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test rdi, rdi
je 0x140089323
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140089a30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400bd540
sub rsp, rax
mov rdi, rdx
mov r8d, 0x7fff
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x140089a84
lea r8d, [rax + 1]
mov rcx, rdi
add r8, r8
lea rdx, [rsp + 0x20]
call fcn.1400a63f0
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret

Function at 0x140089aa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rdi, r9
lea rax, [rsp + 0x50]
mov r9d, dword [rsp + 0x68]
lea rdx, str.SOFTWAREAutoHotkey
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140089b80
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallDir
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
jne 0x140089b80
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x140089b80
shr ecx, 1
dec ecx
mov dword [rsp + 0x68], ecx
cmp word [rdi + rcx*2], 0
jne 0x140089b60
test ecx, ecx
je 0x140089b58
lea edx, [rcx - 1]
cmp word [rdi + rdx*2], 0
jne 0x140089b58
mov dword [rsp + 0x68], edx
mov ecx, edx
test edx, edx
jne 0x140089b44
mov eax, ecx
add rsp, 0x30
pop rdi
ret
inc ecx
mov dword [rsp + 0x68], ecx
cmp ecx, 0x104
jae 0x140089b80
mov eax, ecx
xor ecx, ecx
mov word [rdi + rax*2], cx
mov eax, dword [rsp + 0x68]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
mov word [rdi], cx
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14008a3d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r15d, r8d
mov ebp, edx
mov r13, rcx
mov r12d, ebx
test rcx, rcx
je 0x14008a40c
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x14008a413
mov rdi, qword [0x140100f08]
test rdi, rdi
je 0x14008a5cb
mov qword [rsp + 0x80], r14
lea r14, [0x14010523c]
test ebp, ebp
jns 0x14008a43a
movzx eax, bp
neg ax
movzx edx, ax
jmp 0x14008a470
test ebp, ebp
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], r14
cmovne eax, ebp
lea r9, [rsp + 0x40]
lea r8, [0x14008a3b0]
mov dword [rsp + 0x40], eax
mov edx, SafeArrayGetElemsize
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, r14
je 0x14008a594
mov r8d, SafeArrayGetElemsize
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14008a594
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008a594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14008a594
cmp r15d, 0xffffffff
cmovne esi, r15d
test esi, esi
jne 0x14008a4d2
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [r14 + 4]
lea rcx, [r14 + 6]
cmp eax, 1
jbe 0x14008a525
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r10d, eax
nop dword [rax]
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x14008a507
movzx eax, dl
mov edx, ebx
cmp eax, esi
setl dl
jmp 0x14008a511
movzx eax, al
mov edx, ebx
cmp eax, esi
setge dl
test edx, edx
cmovne rcx, r9
add r9, 0xe
add r8, 0xe
sub r10, 1
jne 0x14008a4f0
movzx edx, word [rcx + 0xc]
mov r8d, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14008a594
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008a594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14008a594
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, r14
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r12, rax
mov rcx, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x80]
test rcx, rcx
je 0x14008a5b3
test r12, r12
je 0x14008a5b3
mov qword [rcx], rdi
jmp 0x14008a5c1
test r13, r13
je 0x14008a5c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14008a5cb
mov rax, r12
jmp 0x14008a5e8
test ebp, ebp
jle 0x14008a5d4
lea ebx, [rbp - 1]
jmp 0x14008a5da
cmp ebp, 0xffffffff
cmovl ebx, ebp
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14008afc0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp byte [rdx + 0x23], 0
mov rbx, rdx
mov rdi, rcx
jne 0x14008afda
mov rbx, qword [rdx + 0x10]
cmp byte [rcx + 0x23], 0
jne 0x14008afe4
mov rdi, qword [rcx + 0x10]
movzx eax, byte [rbx + 0x21]
test al, 0x10
je 0x14008b066
test al, 8
jne 0x14008b061
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
shr r8, 1
movzx eax, word [rdx]
movzx ecx, word [rdx + r8*2 - 2]
cmp eax, 0x20
je 0x14008b022
cmp eax, 9
je 0x14008b022
cmp ecx, 0x20
je 0x14008b022
cmp ecx, 9
je 0x14008b022
cmp eax, 0x30
je 0x14008b022
cmp eax, 0x2b
jne 0x14008b061
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rcx, rdi
call fcn.14008b8b0
test eax, eax
jne 0x14008b043
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.140001280
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
jmp 0x14008b046
test al, 0x20
je 0x14008b0b8
mov rcx, rdi
test al, 8
jne 0x14008b0a4
mov r8, qword [rbx + 0x10]
xor r9d, r9d
mov rdx, qword [rbx + 8]
shr r8, 1
mov byte [rsp + 0x20], 1
call fcn.14008b8b0
test eax, eax
je 0x14008b036
movsd xmm0, qword [rbx]
mov r8b, 0x20
movsd qword [rsp + 0x40], xmm0
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
jmp 0x14008b04c
movsd xmm0, qword [rbx]
mov r8b, 0x28
movsd qword [rsp + 0x40], xmm0
mov rdx, qword [rsp + 0x40]
jmp 0x14008b04c
test al, 1
je 0x14008b0d1
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14008b5e0
test al, 2
je 0x14008b0f6
mov rbx, qword [rbx]
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + VariantCopy]
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14008bc30
cmp byte [rbx + 0x23], 0
jne 0x14008b102
mov rax, qword [rbx + 0x10]
jmp 0x14008b105
mov rax, rbx
test byte [rax + 0x21], 4
je 0x14008b113
mov rdx, rbx
call fcn.1400368f0
mov r8, qword [rbx + 0x10]
xor r9d, r9d
mov rdx, qword [rbx + 8]
mov rcx, rdi
shr r8, 1
mov byte [rsp + 0x20], 1
call fcn.14008b8b0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14008b140
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r8d, dword [rdx + 0x10]
mov rbx, rdx
mov rdi, rcx
sub r8d, 1
je 0x14008b225
sub r8d, 1
je 0x14008b211
sub r8d, 2
je 0x14008b1ff
sub r8d, 1
je 0x14008b19f
cmp r8d, 1
jne 0x14008b1e0
mov rbx, qword [rdx]
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + VariantCopy]
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14008bc30
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x14008b1e0
mov rax, qword [rbx]
cmp word [rax], 0x30
jne 0x14008b225
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rdx, rax
call fcn.14008b8b0
test eax, eax
jne 0x14008b1d4
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rdi
jmp 0x14008b228
mov rdx, qword [rbx]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008b8b0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14008afc0
movsd xmm0, qword [rdx]
mov r8b, 0x28
movsd qword [rsp + 0x48], xmm0
mov rdx, qword [rsp + 0x48]
jmp 0x14008b22b
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, qword [rdx]
call fcn.140001280
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14008b5e0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x23], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14008b600
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 0
je 0x14008b5f6
cmp byte [rdx + 0x23], 0
jne 0x14008b60a
mov rdi, qword [rdx + 0x10]
mov rcx, rdi
call fcn.140001320
cmp byte [rbx + 0x23], 1
jne 0x14008b677
cmp rbx, rdi
je 0x14008b667
mov rax, qword [rdi + 0x10]
mov r9b, 1
mov r8, rax
mov byte [rsp + 0x20], 0
shr r8, 1
and eax, 1
add r8, rax
xor edx, edx
mov rcx, rbx
call fcn.14008b8b0
test eax, eax
jne 0x14008b64e
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
add r8, 2
mov rcx, qword [rbx + 8]
call fcn.1400a63f0
or byte [rbx + 0x21], 1
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14008b690
Function at 0x14008b690
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x140105f80]
call fcn.140005360
test eax, eax
jne 0x14008b6cd
lea r8, [0x1400e8268]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x140105350]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140035ec0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14, [rsi + rbx]
xor r12d, r12d
lea rbx, [rsi + 4]
cmp rbx, r14
ja 0x14008b792
mov r15d, dword [rsi]
test r15d, r15d
je 0x14008b792
mov rax, rbx
add rbx, 8
cmp rbx, r14
ja 0x14008b792
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, r14
ja 0x14008b792
mov rdx, r12
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x14008b850
test rdi, rdi
je 0x14008b779
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14008b7f1
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400a63f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, rbp
mov ecx, r15d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r14
jbe 0x14008b700
cmp dword [0x140105fac], r12d
je 0x14008b7cc
cmp qword [0x140105f90], r12
je 0x14008b7b8
mov rcx, qword [0x140105f80]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140105f90], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140105fac], r12d
mov qword [0x140105f80], r12
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x140105fac], r12d
je 0x14008b834
cmp qword [0x140105f90], r12
je 0x14008b820
mov rcx, qword [0x140105f80]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140105f90], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140105fac], r12d
mov qword [0x140105f80], r12
lea r8, [0x1400e8268]
lea rdx, [0x1400cc278]
lea rcx, [0x140105350]
call fcn.140035ec0
jmp 0x14008b7d1
cmp dword [0x140105fac], r12d
je 0x14008b88a
cmp qword [0x140105f90], r12
je 0x14008b876
mov rcx, qword [0x140105f80]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140105f90], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140105fac], r12d
mov qword [0x140105f80], r12
lea r8, [0x1400e8268]
lea rdx, str.Out_of_memory.
lea rcx, [0x140105350]
call fcn.140035ec0
jmp 0x14008b7d1
Function at 0x14008bd00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
movzx ecx, byte [rcx + 0x23]
test ecx, ecx
je 0x14008bf40
mov qword [rsp + 0x50], rsi
sub ecx, 1
je 0x14008bd96
sub ecx, 1
je 0x14008bd66
cmp ecx, 1
je 0x14008bd4a
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008bd54
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140004bf0
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x14008bed9
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001320
cmp dword [0x140101c40], 0
jne 0x14008be97
cmp qword [rdi + 0x10], 0
jne 0x14008be97
cmp qword [0x140107930], rdi
jne 0x14008bdc4
test rbx, rbx
jne 0x14008be43
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14008be3e
xor esi, esi
mov qword [0x140107930], rsi
test rbx, rbx
je 0x14008be2c
mov edx, dword [0x140101c54]
test edx, edx
je 0x14008be0e
mov r9, qword [rdi + 0x28]
lea r8, str.An_environment_variable_is_being_accessed__see_NoEnv.
lea rcx, [0x140105350]
mov qword [rsp + 0x20], rsi
call fcn.1400367a0
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.140089a30
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008be7e
cmp byte [rdi + 0x23], 0
jne 0x14008be4f
mov rax, qword [rdi + 0x10]
jmp 0x14008be52
mov rax, rdi
test byte [rax + 0x21], 4
je 0x14008be60
mov rdx, rdi
call fcn.1400368f0
xor esi, esi
mov word [rbx], si
xor eax, eax
mov qword [0x140107930], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [0x140107930], rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x14008bf3b
test r8, r8
jne 0x14008bee9
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x14008becf
mov rdx, rdi
call fcn.1400368f0
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x14008bf3b
cmp r8, 0x186a0
jae 0x14008bf2d
movzx eax, word [rdx]
test ax, ax
je 0x14008bf23
nop dword [rax]
nop word [rax + rax]
mov word [rbx], ax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
add rbx, 2
test ax, ax
jne 0x14008bf10
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x14008bed4
mov rcx, rbx
call fcn.1400a63f0
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x14008bed4
mov rcx, qword [rdi + 0x10]
call fcn.14008bd00
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret