joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401880
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
mov qword [rsp + 0x30], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00453a00]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x401927
mov dword [rsp + 0x4c], 0
mov edi, 0x19000
lea rbp, [rsp + 0x4c]
test ebx, ebx
jle 0x401906
cmp edi, ebx
mov r9, rbp
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
cmovg edi, ebx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401911
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401927
mov edx, dword [rsp + 0x4c]
mov ecx, 0x3e8
add rsi, rdx
sub ebx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4018de
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401950
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov dword [rsp + 0x34], 0
mov rdi, rcx
mov esi, edx
mov rbx, r8
mov dword [rsp + 0x38], 0
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x3c], 0
xor edx, edx
mov rcx, qword [0x00453040]
mov r9, rbp
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], 0
call r12
test eax, eax
je 0x4019db
mov r8d, dword [rsp + 0x34]
movsxd rdx, dword [rbx]
cmp r8d, 0xffffffff
je 0x4019db
mov rcx, qword [0x00453040]
add rdx, rdi
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
add dword [rbx], eax
jmp 0x401986
xor eax, eax
cmp dword [rbx], esi
sete al
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401a59
Capabilities:
Create mailslot
Create thread

Disassembly:
push r12
add rsp, 0xffffffffffffff80
lea r12, [0x00453a00]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x70], 0x5c
mov dword [rsp + 0x68], 0x74
mov dword [rsp + 0x60], 0x6f
mov dword [rsp + 0x58], 0x6c
mov dword [rsp + 0x50], 0x73
mov dword [rsp + 0x48], 0x6c
mov dword [rsp + 0x40], 0x69
mov r8d, 0x5c
mov rcx, r12
mov dword [rsp + 0x38], 0x61
mov dword [rsp + 0x30], 0x6d
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x78], edx
lea rdx, str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
call sub.msvcrt.dll_sprintf
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov qword [0x00453040], rax
inc rax
je 0x401b4a
xor r9d, r9d
lea r8, [0x00401932]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call fcn.004019ed
mov rcx, qword [0x00453040]
sub rsp, 0xffffffffffffff80
pop r12
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsp, 0xffffffffffffff80
pop r12
ret
Function at 0x402010
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 fcn.00403180
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403180
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x402080
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00453634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x402228
mov rax, qword [0x00453638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4020cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402157
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4020b0
mov rcx, r12
call fcn.00402de0
mov rbp, rax
test rax, rax
je 0x402262
mov rax, qword [0x00453638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402f10
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00453638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402271
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402150
sub eax, 4
and eax, 0xfffffffb
jne 0x4021e0
add dword [0x00453634], 1
cmp ebx, 8
jae 0x402188
test bl, 4
jne 0x402230
test ebx, ebx
je 0x402179
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x402250
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x402179
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x4021ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00453638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402150
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402010
nop dword [rax]
xor edi, edi
jmp 0x4020d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402179
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402179
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00402010
mov rax, qword [0x00453638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00402010
nop
nop dword [rax]
Function at 0x402a50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00453920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00453900]
test rbx, rbx
je 0x402aa4
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 0x402a9b
test r12, r12
je 0x402a9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402a80
lea rcx, [0x00453920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402de0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004503f0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402e59
mov rcx, r10
call fcn.00402cb0
test eax, eax
je 0x402e59
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402e56
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402e4d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402e59
add r8, 0x28
cmp r8, r9
jne 0x402e38
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x2d60a1b00
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 fcn.2d60a2710
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2d60a2710
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2d60a1b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2d60a8064]
test esi, esi
mov rbx, rcx
jle 0x2d60a1ca0
mov rax, qword [0x2d60a8068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2d60a1bbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2d60a1c45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2d60a1ba0
mov rcx, rbx
call fcn.2d60a23d0
test rax, rax
mov rdi, rax
je 0x2d60a1cc2
mov rax, qword [0x2d60a8068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2d60a2510
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2d60a8068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2d60a1ca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2d60a1c3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2d60a1c50
add dword [0x2d60a8064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2d60a8068]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2d60a1c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2d60a1b00
nop dword [rax]
xor esi, esi
jmp 0x2d60a1bc8
mov rax, qword [0x2d60a8068]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2d60a1b00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2d60a1b00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2d60a2040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2d60a80a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2d60a8080]
test rbx, rbx
je 0x2d60a209c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2d60a2093
test rsi, rsi
je 0x2d60a2093
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2d60a2078
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2d60a23d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2d60a5690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2d60a23f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2d60a23f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2d60a23f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2d60a244d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x2d60a2444
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2d60a23f0
add rax, 0x28
cmp rax, r9
jne 0x2d60a2430
xor eax, eax
ret

Function at 0x2d60a2450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d60a5690]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2d60a246f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2d60a2478
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2d60a246f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2d60a2510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d60a5690]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2d60a252f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2d60a2538
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001370
Capabilities:
Enumerate processes

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.CreateToolhelp32Snapshot
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea ecx, [rdx + 2]
call rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov qword [rsp + 0x2c0], rbx
xor r14d, r14d
mov qword [rsp + 0x2c8], rbp
mov r12d, r14d
mov r15d, 1
mov qword [rsp + 0x2d0], rsi
xorps xmm0, xmm0
lea rax, [rsp + 0x6c]
movups xmmword [rsp + 0x20], xmm0
mov r8d, 0xa
movabs rdx, 0x7fffffffffffffff
movabs rcx, 0x7ffffffffffffffe
inc r15d
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140001425
cmp rdi, rcx
ja 0x140001600
cmp rdi, 7
ja 0x14000147c
lea rbx, [rdi + rdi]
mov qword [rsp + 0x30], rdi
mov r8, rbx
mov qword [rsp + 0x38], 7
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r14w
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x140001518
mov rbp, rdi
or rbp, 7
cmp rbp, rcx
jbe 0x140001491
mov rbp, rcx
lea rcx, [rdx + rdx]
jmp 0x1400014b2
cmp rbp, 0xa
cmovb rbp, r8
lea rcx, [rbp + 1]
cmp rcx, rdx
ja 0x1400015fa
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400014de
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400015fa
mov rcx, rax
call fcn.140001750
test rax, rax
je 0x1400015e3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400014f0
test rcx, rcx
je 0x1400014ed
call fcn.140001750
mov rsi, rax
jmp 0x1400014f0
mov rsi, r14
lea rbx, [rdi + rdi]
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r14w
cmp rbp, 7
lea r8, [rsp + 0x20]
cmova r8, rsi
cmp rdi, 0xa
jne 0x140001558
lea rbx, str.WeChat.exe
mov rdx, rdi
mov rax, rbx
sub r8, rbx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140001558
add rax, 2
sub rdx, 1
jne 0x140001540
lea r12d, [rdx + 1]
cmp rbp, 7
jbe 0x14000158f
lea rdx, [rbp*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001587
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400015e3
mov rcx, rsi
call fcn.14000178c
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400013f4
test r12d, r12d
jne 0x1400015ea
mov rsi, qword [rsp + 0x2d0]
mov rbp, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001730
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r15d, 0xc8
setg r14b
mov eax, r14d
jmp 0x1400015aa
call fcn.140001170
int3
call fcn.140001210
int3
Function at 0x140001610
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp ecx, 1
jne 0x140001701
call fcn.140001370
test eax, eax
je 0x140001701
xor ecx, ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea r8, [0x1400012a0]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140001690
mov edx, dword [rsp + 0x30]
lea rcx, str._t_t_____Thread__d_Is_Created_To_Monitor_Mouse_Clicks_For__d_Seconds______n_n
mov r8d, 0x14
call fcn.140001010
mov edx, 0x4e20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140005708]
mov rbx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400016bf
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
jne 0x1400016bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____UnhookWindowsHookEx_Failed_With_Error_:__d__n
call fcn.140001010
mov edx, dword [0x140005700]
lea rcx, str._i__Monitored_Users_Mouse_Clicks_:__d_...
call fcn.140001010
cmp dword [0x140005700], 5
lea rax, str.____Posssibly_A_Virtual_Environment__n
lea rcx, str.___Passed_The_Test__n
cmovbe rcx, rax
call fcn.140001010
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001730
add rsp, 0x48
ret

Function at 0x1400020a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020f4
xor al, al
add rsp, 0x28
ret
Function at 0x180011140
Capabilities:
Write file on windows

Disassembly:
jmp 0x18001e970
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1800440fd]
call fcn.180011b45
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x18001e9c7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x18001ead3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18001ea6c
cmp qword [rbp + 0x28], 0
jle 0x18001ea6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x18001ea0c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.180011a9b
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x18001eac2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x18001eac2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x180011663
Capabilities:
Terminate process

Disassembly:
jmp 0x180027cb0
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 0x180011a64
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x180020380
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
mov rax, qword [0x18003a480]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x18004425f]
call fcn.180011b45
lea r9, [rbp + 4]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 8
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call fcn.18001156e
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov edx, 8
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rbp - 0x20]
lea rdx, [0x180033730]
call fcn.180011938
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.180011569
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x180011b22
Capabilities:
Write file on windows

Disassembly:
jmp 0x180019e20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18003a480]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1800440fd]
call fcn.180011b45
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x180019e86
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180019e8d
mov al, 1
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.18001132a
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.18001132a
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1800118c0
movzx eax, al
test eax, eax
je 0x180019ef0
xor al, al
jmp 0x180019ffd
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x180019f63
cmp dword [rbp + 0x160], 1
je 0x180019f6e
cmp dword [rbp + 0x160], 3
je 0x180019fec
jmp 0x180019ffb
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x180019fbe
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x180019fbe
xor al, al
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180019fd9
mov dword [rbp + 0x154], 1
jmp 0x180019fe3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180019ffd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180032810]
call fcn.180011938
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.180011569
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret