joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004130
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.140004f70
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.140004f70
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 0x1400041a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ce644]
test esi, esi
mov rbx, rcx
jle 0x1400042d0
mov rax, qword [0x1400ce648]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400041eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140004275
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400041d0
mov rcx, rbx
call fcn.140004c10
test rax, rax
mov rdi, rax
je 0x1400042f2
mov rax, qword [0x1400ce648]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140004d50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ce648]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400042d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000426e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140004280
add dword [0x1400ce644], 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 [0x1400ce648]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000426e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004130
nop dword [rax]
xor esi, esi
jmp 0x1400041f8
mov rax, qword [0x1400ce648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140004130
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140004130
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004860
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ce6a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ce680]
test rbx, rbx
je 0x1400048bc
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 0x1400048b3
test rsi, rsi
je 0x1400048b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140004898
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 0x140004ad0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004b08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140004b10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004b08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140004b10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004af0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004b08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140004b10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x1400c9a10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004c30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004c38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004c30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140004c8d
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 0x140004c84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004c30
add rax, 0x28
cmp rax, r9
jne 0x140004c70
xor eax, eax
ret

Function at 0x140004c90
Capabilities:
Parse pe header

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

Function at 0x140004d50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c9a10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140004d6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004d78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400152fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001537a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015371
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015371
mov rax, qword [rbp - 8]
jmp 0x14001538f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015344
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140162a07
Capabilities:
Encode data using xor

Disassembly:
setne dil
lea rdi, [0x140133e48]
lea rsp, [rsp + 8]
movzx r9d, byte [r10]
xor r9d, edx
push 0x7c916e0e
and r9d, 0xff
push 0xffffffff9385c01d
neg word [rsp + 2]
mov r9d, dword [rdi + r9*4]
shr edx, 8
xor edx, r9d
inc r10
xor edx, 0xe11a00ad
shr byte [rsp + 0xc], 0xc5
dec rbp
lea rsp, [rsp + 0x10]
jne 0x140162a17
pop r9
pop rdi
Function at 0x140011019
Capabilities:
Get common file path

Disassembly:
jmp 0x140011c70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x140025003]
call fcn.14001141f
nop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov rcx, qword [rbp + 0x118]
add rcx, rax
mov rax, rcx
lea rax, [rax + rax + 4]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rbp + 4]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
lea r8, [0x14001bff8]
mov edx, 4
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
nop
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ucrtbased.dll_wcslen]
shl rax, 1
mov r8, qword [rbp + 0x140]
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
nop
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1400110cd
Capabilities:
Inject apc

Disassembly:
jmp 0x140011920
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rcx, [0x140025003]
call fcn.14001141f
nop
call fcn.140011389
test eax, eax
je 0x140011959
mov dword [rbp + 0x174], 1
jmp 0x140011963
mov dword [rbp + 0x174], 0
mov eax, dword [rbp + 0x174]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14001197a
mov eax, dword [rbp + 4]
jmp 0x140011aa2
mov r8d, dword [rbp + 0x1a8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140011aa0
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 1]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140011aa0
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 1]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x1a0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140011aa0
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x68], rax
mov ecx, dword [rbp + 0x1a8]
call fcn.1400112b7
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
je 0x140011aa0
cmp qword [rbp + 0x68], 0
je 0x140011aa0
mov r8d, dword [rbp + 0x84]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0xa8], rax
mov r8, qword [rbp + 0x48]
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
jne 0x140011aa0
lea rdx, str.Inject_sucessful_
lea rcx, [0x14001be50]
call fcn.14001103c
nop
xor eax, eax
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400111ae
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
jmp 0x140011fe0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rcx, [0x140025003]
call fcn.14001141f
nop
call fcn.140011389
test eax, eax
je 0x140012019
mov dword [rbp + 0x154], 1
jmp 0x140012023
mov dword [rbp + 0x154], 0
mov eax, dword [rbp + 0x154]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14001203a
mov eax, dword [rbp + 4]
jmp 0x1400121c5
mov r8d, dword [rbp + 0x188]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400121bb
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 1]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x1400121b1
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 1]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x180]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400120dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400121c5
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x1400121af
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x1400121a7
lea rdx, str.Inject_sucessful_
lea rcx, [0x14001be50]
call fcn.14001103c
nop
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
lea rdx, str.The_inject_was_killed_
lea rcx, [0x14001be50]
call fcn.14001103c
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1400121a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400121c5
jmp 0x1400121af
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400121c5
jmp 0x1400121b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400121c5
jmp 0x1400121c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400121c5
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c00
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]
nop
add rsp, 0x28
ret
Function at 0x1400112b7
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140011d60
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x140025003]
call fcn.14001141f
nop
cmp dword [rbp + 0x160], 0
je 0x140011e2b
mov dword [rbp + 4], 0
mov dword [rbp + 0x28], 0x1c
lea rax, [rbp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 4
call fcn.1400111ef
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
call fcn.1400112ad
test eax, eax
je 0x140011e14
mov eax, dword [rbp + 0x34]
cmp dword [rbp + 0x160], eax
jne 0x140011e03
mov eax, dword [rbp + 0x30]
mov dword [rbp + 4], eax
jmp 0x140011e14
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
call fcn.140011091
test eax, eax
jne 0x140011df0
mov edx, dword [rbp + 4]
lea rcx, str.ThreadId:_d_n
call fcn.14001103c
nop
mov eax, dword [rbp + 4]
jmp 0x140011e2d
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bc80]
call fcn.140011398
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011203
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014fb0
xor al, al
jmp 0x140015031
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014fc3
xor al, al
jmp 0x140015031
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014fed
xor al, al
jmp 0x140015031
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015001
xor al, al
jmp 0x140015031
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015013
xor al, al
jmp 0x140015031
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001502f
xor al, al
jmp 0x140015031
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113de
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x140011ea0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x140025003]
call fcn.14001141f
nop
mov qword [rbp + 8], 0
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140011f60
lea rdx, str.InjectHook
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140011f56
mov ecx, dword [rbp + 0x168]
call fcn.1400112b7
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140011f54
mov r9d, dword [rbp + 0x64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140011f4c
lea rdx, str.Hook_Process_Success_
lea rcx, [0x14001be50]
call fcn.14001103c
nop
jmp 0x140011f54
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f90
jmp 0x140011f5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f90
jmp 0x140011f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f90
lea rdx, str.Wait_you_unhook__press_any_key_to_unhook.
lea rcx, [0x14001be50]
call fcn.14001103c
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140012e40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011447
movzx eax, al
test eax, eax
jne 0x140012e60
mov ecx, 7
call fcn.1400113a7
nop
mov byte [rsp + 0x20], 0
call fcn.1400113c0
mov byte [rsp + 0x21], al
cmp dword [0x14001f868], 1
jne 0x140012e84
mov ecx, 7
call fcn.1400113a7
nop
jmp 0x140012edc
cmp dword [0x14001f868], 0
jne 0x140012ed7
mov dword [0x14001f868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111e5
test eax, eax
je 0x140012eb8
mov eax, 0xff
jmp 0x140012fe1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113b6
mov dword [0x14001f868], 2
jmp 0x140012edc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001138e
call fcn.140011316
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012f39
mov rcx, qword [rsp + 0x30]
call fcn.140011186
movzx eax, al
test eax, eax
je 0x140012f39
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.140011348
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012f6d
mov rcx, qword [rsp + 0x38]
call fcn.140011186
movzx eax, al
test eax, eax
je 0x140012f6d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011406
nop
call fcn.140013090
mov dword [rsp + 0x28], eax
call fcn.1400112f3
movzx eax, al
test eax, eax
jne 0x140012f8c
mov ecx, dword [rsp + 0x28]
call fcn.14001106e
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012f9b
call fcn.140011410
nop
xor edx, edx
mov cl, 1
call fcn.140011172
mov eax, dword [rsp + 0x28]
jmp 0x140012fe1
add rsp, 0x68
ret
Function at 0x140029a2c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d034
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d034
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b7c
cmp rax, 0xffffffffffffffff
je 0x140029b7c
xor edi, edi
test rbp, rbp
jle 0x140029b27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f948
mov rbx, rax
test rax, rax
jne 0x140029ab4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029b1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a99c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001dd10
cmp eax, 0xffffffff
je 0x140029afd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029ac4
mov edx, r15d
mov ecx, r14d
call fcn.14001a99c
jmp 0x140029b1d
cmp byte [rsi + 0x38], dil
je 0x140029b14
cmp dword [rsi + 0x34], 5
jne 0x140029b14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029b1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b700
jmp 0x140029b90
jns 0x140029b90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d034
cmp rax, 0xffffffffffffffff
jne 0x140029b48
cmp byte [rsi + 0x30], dil
je 0x140029b90
mov edi, dword [rsi + 0x2c]
jmp 0x140029b90
mov ecx, r14d
call fcn.140018e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029b90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b89
mov eax, dword [rsi + 0x2c]
jmp 0x140029b8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d034
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ac80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1408db907
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x10]
je 0x1408db985
push rsi
mov r10d, 0x66122480
push r10
movzx esi, r10w
lea r10, [0x1408ddf68]
lea rsp, [rsp + 8]
mov esi, 0x6309713a
movzx esi, byte [rcx + rsi - 0x6309713a]
push 0x772b592f
xor esi, ebx
and dword [rsp + 2], 0x34a028b0
and esi, 0xff
mov esi, dword [r10 + rsi*4]
shr ebx, 8
xor ebx, esi
push 0x2b3a6593
inc rcx
xor ebx, 0x793ac93f
dec rax
lea rsp, [rsp + 0x10]
jne 0x1408db92b
mov esi, 0x615c836
push rsi
mov rsi, qword [rsp + rsi - 0x615c82e]
lea rsp, [rsp + 0x10]
jmp 0x1408ee877