joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov r10, qword [0x100710f8]
xor edx, edx
mov qword [rsp + 0x38], rbx
test r10, r10
lea rbx, str.duCSw3FDReNLGYf
je 0x100076d9
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
add rcx, r10
mov r11d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x20]
mov r9d, dword [rcx + 0x24]
add r11, r10
add rax, r10
add r9, r10
test ebx, 0xffff0000
jne 0x10007688
movzx eax, bx
sub eax, dword [rcx + 0x10]
mov edx, dword [r11 + rax*4]
add rdx, r10
call rdx
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
mov r8d, dword [rcx + 0x18]
test r8d, r8d
je 0x100076d9
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
nop
nop
mov esi, dword [rax]
mov rdi, rbx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
add rsi, r10
add r8d, 0xffffffff
repe cmpsb byte [rsi], byte [rdi]
je 0x100076c4
add rax, 4
add r9, 2
test r8d, r8d
jne 0x100076a0
jmp 0x100076cf
movzx eax, word [r9]
mov edx, dword [r11 + rax*4]
add rdx, r10
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
call rdx
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x28
ret

Function at 0x10009230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov eax, r8d
mov rbp, rdx
mov qword [rsp + 0x40], rsi
shr eax, 4
add ax, 1
mov ebx, r8d
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x10009395
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10009395
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x10009395
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x100092d6
nop
cmp rdi, r11
jae 0x10009395
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100092c0
cmp rdi, r11
jae 0x10009395
movzx eax, word [rdi]
test ax, ax
je 0x10009395
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x1000930c
mov edx, ebx
mov rcx, rsi
call fcn.100095f0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x1000932c
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.10032c70
test eax, eax
je 0x1000936b
cmp eax, 0xc
je 0x10009365
cmp eax, 0x16
je 0x1000935f
cmp eax, 0x22
je 0x1000935f
cmp eax, 0x50
je 0x1000936b
call fcn.1000d44c
int3
call fcn.1000d44c
int3
call fcn.1000d404
int3
test ebx, ebx
js 0x1000938a
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1000938a
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x10009397
mov ecx, 0x80070057
call fcn.10001000
int3
xor eax, eax
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x10016d94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x10016dee
call fcn.1000be8c
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x10016dee
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x10016e10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.10016814
test rdi, rdi
mov esi, eax
je 0x10016e0e
test rbx, rbx
je 0x10016e0e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x10017684
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x100176ba
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10017771
call fcn.1000d248
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x100176d9
mov ecx, 0x80004005
call fcn.10001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x118]
mov rdx, rsi
mov rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x50]
mov rcx, rdi
call fcn.10034a80
test eax, eax
je 0x10017744
cmp eax, 0xc
je 0x1001773e
cmp eax, 0x16
je 0x10017738
cmp eax, 0x22
je 0x10017738
cmp eax, 0x50
je 0x10017744
call fcn.1000d44c
int3
call fcn.1000d44c
int3
call fcn.1000d404
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x1001776f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x10036b57
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1006ad50]
jne 0x1003282a
rol rcx, 0x10
test cx, 0xffff
jne 0x10032826
repz ret
ror rcx, 0x10
jmp 0x10036ab0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10070260]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10070358]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10036b35
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10070260]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10036b57
mov rax, qword [rsp + 0x88]
mov qword [0x10070358], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100702f8], rax
mov rax, qword [0x10070358]
mov qword [0x100701d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100702e0], rax
mov dword [0x100701c0], 0xc0000409
mov dword [0x100701c4], 1
mov rax, qword [0x1006ad50]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1006ad58]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x10070258], eax
mov ecx, 1
call fcn.100436f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10057a00]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x10070258], 0
jne 0x10036bde
mov ecx, 1
call fcn.100436f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x10043ff0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.100381a0
xor ebx, ebx
cmp qword [0x10070fc0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x10044121
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x10044053
xor eax, eax
jmp 0x10044201
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1004404c
mov rcx, rax
call fcn.10038130
lea rdx, [0x10058bb0]
mov rcx, rbp
mov qword [0x10070fc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.10038130
lea rdx, [0x10058b98]
mov rcx, rbp
mov qword [0x10070fc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.10038130
lea rcx, [rsp + 0x30]
mov qword [0x10070fd0], rax
call fcn.10035190
test eax, eax
je 0x100440d7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10036c10
cmp dword [rsp + 0x30], 2
jne 0x10044121
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.10038130
test rax, rax
mov qword [0x10070fe0], rax
je 0x10044121
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.10038130
mov qword [0x10070fd8], rax
mov rcx, qword [0x10070fd8]
cmp rcx, rsi
je 0x100441b3
cmp qword [0x10070fe0], rsi
je 0x100441b3
call fcn.10038200
call rax
test rax, rax
mov rbp, rax
je 0x1004417e
mov rcx, qword [0x10070fe0]
call fcn.10038200
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x1004417e
test byte [rsp + 0x48], 1
jne 0x100441b3
lea rcx, [rsp + 0x34]
call fcn.100351e0
test eax, eax
je 0x100441a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10036c10
cmp dword [rsp + 0x34], 4
jb 0x100441ad
bts edi, 0x15
jmp 0x100441e7
bts edi, 0x12
jmp 0x100441e7
mov rcx, qword [0x10070fc8]
cmp rcx, rsi
je 0x100441e7
call fcn.10038200
call rax
test rax, rax
mov rbx, rax
je 0x100441e7
mov rcx, qword [0x10070fd0]
cmp rcx, rsi
je 0x100441e7
call fcn.10038200
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x10070fc0]
call fcn.10038200
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400020e0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.140001290
lea rcx, str.powershell.exe__command__Add_MpPreference__ExclusionPath_C:_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140001750
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400024a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400024c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400024ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400024f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002549
test ecx, ecx
jle 0x140002529
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002549
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002549
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140002570
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002592
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400025a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400025c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400025c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002602
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000269e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000263d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000267e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000269e
cmp rbx, rax
ja 0x140002650
test rbx, rbx
je 0x14000269e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002b00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b2d
xor eax, eax
jmp 0x140002c99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002c99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002c8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002baa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002bd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c44
sub eax, 1
je 0x140002c44
cmp eax, 2
jne 0x140002c8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002c72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002c8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003dd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002fc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003093
cmp byte [rcx + 0x71], 0
je 0x140003093
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000308f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003054
sub eax, 1
je 0x140003058
cmp eax, 2
jne 0x14000308f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003dd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003086
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000308f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000303c
xor al, al
jmp 0x14000303c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003dd0
add rsp, 0x60
pop rbx
ret

Function at 0x140004750
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
lea rcx, str..Oykyo
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x140001089
lea rdx, str.Failed_to_open_driver._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400011b0
nop
cmp rbx, 0xffffffffffffffff
je 0x140001178
mov dword [rsp + 0x40], 0x64
mov dword [rsp + 0x44], 0x64
mov word [rsp + 0x48], di
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0xc
lea r8, [rsp + 0x40]
mov edx, 0x2676d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400010eb
lea rdx, str.Mouse_moved_successfully._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011b0
mov qword [rsp + 0x40], rdi
mov eax, 1
mov word [rsp + 0x48], ax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0xc
lea r8, [rsp + 0x40]
mov edx, 0x2676d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001178
lea rdx, str.Mouse_left_button_clicked._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011b0
mov qword [rsp + 0x40], rdi
mov eax, 2
mov word [rsp + 0x48], ax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0xc
lea r8, [rsp + 0x40]
mov edx, 0x2676d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
cmp rbx, 0xffffffffffffffff
je 0x140001195
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001410
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140001cd8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rdi, rcx
lea rdx, [0x14000d390]
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x48], 0
lea r9, [rbp - 0x60]
and dword [rsp + 0x74], 0
lea r8, [rsp + 0x70]
and dword [rbp - 0x74], 0
lea rcx, [rbp + 0x48]
and qword [rsp + 0x78], 0
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x60
mov edx, 4
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rsp + 0x70], 0x30
mov dword [rbp - 0x78], 0x240
mov qword [rbp - 0x80], rax
movdqu xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140001c7a
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 0x64]
call fcn.14000ce00
lea rcx, [rbp - 0x50]
call fcn.140003408
mov qword [rsp + 0x40], rdi
movups xmm1, xmmword [rax]
movq rdx, xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rcx, xmm0
movsx r8d, dx
mov rax, rcx
movsx ebx, cx
shr rax, 0x20
movsx r11d, ax
mov rax, rdx
shr rax, 0x30
movsx r10d, ax
mov rax, rdx
shr rax, 0x20
movsx ecx, ax
mov rax, rdx
mov dword [rsp + 0x38], r11d
lea rdx, [0x14000d3c0]
mov dword [rsp + 0x30], ebx
shr rax, 0x10
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rbp - 0x40]
movsx r9d, ax
call sub.ntoskrnl.exe_sprintf
lea rcx, [rbp - 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140001c33
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov rcx, qword [rbp + 0x48]
xor edx, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002ef0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov esi, ecx
cmp ecx, 0x2000
ja 0x140002f73
lea rcx, [0x14000d320]
call fcn.1400021e8
xor ebx, ebx
test rax, rax
je 0x140002f73
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rbx
mov rax, qword [0x140011108]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x140002f55
mov ebx, dword [rdi + rsi*4]
mov dword [rsp + 0x20], ebx
sar ebx, 4
mov dword [rsp + 0x20], ebx
jmp 0x140002f60
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
movsxd rax, ebx
add rax, rdi
jmp 0x140002f75
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret