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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, rdx
mov r8, rdx
mov edx, 4
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetKeySecurity]
nop dword [rax + rax]
xor r12d, r12d
mov ebx, eax
test eax, eax
jne 0x14006bac9
mov qword [rsp + 0x58], r12
lea rax, [rbp + 0x40]
mov qword [rsp + 0x50], r12
xor r9d, r9d
mov qword [rsp + 0x48], r12
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], r12
mov rcx, rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x48], r12d
mov dword [rbp + 0x40], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006bac9
mov eax, dword [rbp + 0x40]
inc eax
mov qword [rbp - 0x10], r12
mov ecx, eax
mov dword [rbp + 0x40], eax
lea eax, [rbx + 2]
mul rcx
lea rcx, [r12 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140013050
lea rcx, [rbp - 0x10]
mov r14, rax
call fcn.14000e2b4
mov qword [rbp - 0x10], r14
test r14, r14
je 0x14006babb
mov edi, r12d
cmp edi, dword [rbp + 0x48]
jae 0x14006bac0
mov eax, dword [rbp + 0x40]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x38], r12
mov r8, r14
mov qword [rsp + 0x30], r12
mov edx, edi
mov qword [rsp + 0x28], r12
mov rcx, rsi
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x20], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006baa3
mov rdx, r14
mov rcx, rsi
call fcn.14000e564
test eax, eax
jne 0x14006ba70
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], r12
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006ba65
mov rcx, qword [rbp - 0x18]
mov rdx, r15
call fcn.14006b8f8
mov ebx, eax
lea rcx, [rbp - 0x18]
call fcn.140012d28
jmp 0x14006baaa
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006baaa
test byte [rcx + 0x44], 0x20
je 0x14006baaa
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac5a0]
mov edx, 0xc
mov r9, r14
call fcn.1400413f0
jmp 0x14006baaa
cmp eax, 0x103
je 0x14006bab6
inc edi
test ebx, ebx
je 0x14006b9d5
jmp 0x14006bac0
mov ebx, r12d
jmp 0x14006bac0
mov ebx, 8
lea rcx, [rbp - 0x10]
call fcn.14000e2b4
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14006ca04
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor ebx, ebx
mov dword [rsp + 0x44], 0x104
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x60]
mov r12, rdx
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x170]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov r15, rcx
mov r14d, ebx
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
lea esi, [rbx + 1]
jmp 0x14006cbb0
cmp word [rsp + 0x60], bx
je 0x14006cb61
mov edx, 0x2c
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14006cb61
mov word [rax], bx
add rdi, 2
cmp word [rdi], 0x20
je 0x14006cac9
mov r8d, 2
lea rdx, [0x1400ac5d0]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14006cb61
add rdi, 4
mov ecx, ebx
mov word [rdi + 4], bx
jmp 0x14006cb18
lea eax, [rdx - 0x30]
cmp ax, 9
ja 0x14006cb20
lea ecx, [rcx + rcx*4]
movzx eax, dx
lea ecx, [rcx - 0x18]
add rdi, 2
lea ecx, [rax + rcx*2]
movzx edx, word [rdi]
test dx, dx
jne 0x14006caff
lea rax, [rbp + 0x170]
mov r9, r12
sub r9, rax
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x14006cb43
add rax, 2
test r8d, r8d
jne 0x14006cb2d
test edx, edx
je 0x14006cbd5
cmp ecx, 0x64
jae 0x14006cb61
mov edx, ecx
mov eax, esi
and ecx, 0x1f
shr rdx, 5
shl eax, cl
or dword [rsp + rdx*4 + 0x48], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x170]
add r14d, esi
mov qword [rsp + 0x28], rbx
mov edx, r14d
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
je 0x14006ca99
mov eax, ebx
mov ecx, ebx
shr rax, 5
and ecx, 0x1f
mov eax, dword [rsp + rax*4 + 0x48]
bt eax, ecx
jae 0x14006cbd9
add ebx, esi
cmp ebx, 0x64
jb 0x14006cbb8
jmp 0x14006cbdb
mov eax, ecx
jmp 0x14006cbdd
mov esi, ebx
mov eax, esi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400133c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14006fb28
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rcx, qword [0x1400b90e0]
mov ebx, 1
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test byte [0x1400b90e8], bl
jne 0x14006fc3d
mov eax, dword [0x1400b90f0]
test eax, eax
je 0x14006fbb3
lea r9d, [rax - 1]
mov dword [0x1400b90f0], r9d
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006fb9b
test byte [rcx + 0x44], 0x80
je 0x14006fb9b
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 9]
lea r8, [0x1400ac628]
call fcn.140030cf8
mov rcx, qword [0x1400b90f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
jmp 0x14006fc3f
mov rax, qword [0x1400b90e0]
mov r9d, dword [0x1400b90ec]
cmp r9d, dword [rax]
jae 0x14006fc3f
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006fbf4
test byte [rcx + 0x44], 0x80
je 0x14006fbf4
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ac628]
mov edx, 0xb
call fcn.140030cf8
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x1400b90e0]
and dword [rsp + 0x20], 0
lea r8, [0x14006fd70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14006fc3d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
add dword [0x1400b90ec], ebx
jmp 0x14006fc3f
xor ebx, ebx
mov rcx, qword [0x1400b90e0]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140077160
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400b7c44], 0xffffffff
jne 0x140077211
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400b7c44], ebx
lea rdx, [0x1400acb40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077211
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077200
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400b7c44], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x1400b7c44]
add rsp, 0x30
pop rbx
ret

Function at 0x140077820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x1400778c7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400778b6
cmp dword [rsp + 0x58], 4
jne 0x1400778b6
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x50], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007790b
test byte [rcx + 0x1c], 2
je 0x14007790b
cmp dword [rdi + 0x50], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x1400acb30]
mov edx, 0xe
call fcn.1400413f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400779fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140077a9d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077a82
cmp dword [rsp + 0x60], ebx
je 0x140077a87
mov ebx, 1
mov dword [rdi + 0x4c], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140077aa4
mov dword [rdi + 0x4c], 1
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140077ae8
test byte [rcx + 0x1c], 2
je 0x140077ae8
cmp dword [rdi + 0x4c], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400acb30]
mov edx, 0xd
call fcn.1400413f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007ad24
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007ae3c
cmp dword [rsp + 0x30], 3
jne 0x14007ae3c
cmp dword [rsp + 0x68], 0x48
jbe 0x14007ae3c
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14007ae35
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14007ae20
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x14007adef
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x14007adef
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x14007ae6d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007ae20
test byte [rcx + 0x1c], 4
je 0x14007ae20
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x14009cdf0]
call fcn.140030ccc
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x14007ae6d
mov ebx, 8
jmp 0x14007ae6d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007ae6d
test byte [rcx + 0x1c], 4
je 0x14007ae6d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x14009cdf0]
call fcn.140030ccc
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140013b40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140013b50]
mov dword [rax], 1
mov rax, qword [0x140013b60]
mov dword [rax], 1
mov rax, qword [0x140013b30]
mov dword [rax], 1
mov rax, qword [0x1400139e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140013b20]
mov dword [0x140017020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140013ae0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140013ac0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140013990]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140001591
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
jne 0x1400015bc
lea rcx, str.Failed_to_open_clipboard_n
call sym.printf
jmp 0x140001723
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001648
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001638
mov rax, qword [rbp - 0x10]
lea rdx, [0x14001301a]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001638
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rdx, [0x14001301a]
lea rcx, str.Clipboard_content_is_already_replaced_with:__s_n
call sym.printf
jmp 0x140001723
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov edx, 4
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001680
lea rcx, str.Failed_to_allocate_memory_n
call sym.printf
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
jmp 0x140001723
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400016c2
lea rcx, str.Failed_to_lock_memory_n
call sym.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
jmp 0x140001723
mov rax, qword [rbp - 0x20]
lea rdx, [0x14001301a]
mov rcx, rax
call sym.strcmp
mov rax, qword [rbp - 0x20]
mov dword [rax], 0x787878
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_EmptyClipboard]
call rax
mov rax, qword [rbp - 0x18]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SetClipboardData]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rcx, str.Clipboard_content_replaced_with:_xxx_n
call sym.printf
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001ca0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400170c4]
mov r12, rcx
test ebx, ebx
jle 0x140001e40
mov rax, qword [0x1400170c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001d5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001de3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001d40
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001e62
mov rax, qword [0x1400170c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400170c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001ddc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001df0
add dword [0x1400170c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400170c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001d67
mov rax, qword [0x1400170c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002320
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140017120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140017100]
test rbx, rbx
je 0x140002374
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000236b
test r12, r12
je 0x14000236b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002350
lea rcx, [0x140017120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400025c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000260c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002603
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000260e
add rax, 0x28
cmp rax, r9
jne 0x1400025f0
xor eax, eax
ret

Function at 0x140002610
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026a0
mov rdx, qword [0x1400139e0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000268e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000268e
cmp word [rax + 0x18], 0x20b
jne 0x14000268e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400026a0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002679
add r12, 0x28
cmp r12, rsi
je 0x1400026a0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002670
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400026b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400139e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002725
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000271c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026d0
add rax, 0x28
cmp rax, r9
jne 0x140002708
xor eax, eax
ret

Function at 0x140002730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400139e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002750
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002758
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002750
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002770
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400139e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002790
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002798
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002790
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400027d8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027cf
test rcx, rcx
je 0x140002790
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400027c0
xor eax, eax
ret