joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043eb0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov dword [rbp - 9], 0x14878f9e
mov dl, 0xc
mov dword [rbp - 5], 0x251c32d8
xor r9b, r9b
mov dword [rbp - 1], 0x9d8ea1a5
mov dword [rbp + 3], 0x1cb8c900
mov byte [rbp + 7], 0x17
mov dword [rbp + 0xf], 0x6b058680
mov dword [rbp + 0x13], 0x76533de5
mov dword [rbp + 0x17], 0xdc0b90e4
mov dword [rbp + 0x1b], 0xde56d3d
mov dword [rbp + 0x1f], 0x404c3ecc
mov dword [rbp + 0x23], 0xe76863
mov dword [rbp + 0x27], 0x363b877c
nop dword [rax]
nop word [rax + rax]

Function at 0x140044980
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Get system firmware table
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov qword [rsp + 0x58], rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov eax, dword [0x14007b518]
mov dword [rsp + 0x20], eax
mov rdx, qword [0x14007b520]
mov edx, dword [0x14007b520]
mov rax, rdx
and eax, 0x3ff
mov rcx, qword [0x14007ad00]
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x20], al
lea rax, [rdx + 1]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x21], al
lea rax, [rdx + 2]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x22], al
lea rax, [rdx + 3]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 0x23], al
cmp dword [rsp + 0x20], ebx
je 0x1400481ab
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400477ac
mov rcx, qword [0x14007b1f8]
mov qword [rsp + 0x20], rcx
mov rdx, qword [0x14007b200]
mov rcx, rdx
and ecx, 0x3ff
mov rdi, qword [0x14007ad00]
movzx ecx, byte [rcx + rdi]
xor byte [rsp + 0x20], cl

Function at 0x1400485e0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x69], r8d
mov dl, 6
mov dword [rbp - 0x19], 0x14878f9e
xor r9b, r9b
mov dword [rbp - 0x15], 0x251c32d8
Function at 0x14004a650
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x2048
call fcn.14006a800
sub rsp, rax
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x2010], rax
mov rdx, qword [0x14007b4e0]
mov rcx, qword [0x14007ad00]
mov rax, qword [0x14007b4d8]
mov qword [rsp], rax
mov rax, rdx
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp], al
lea rax, [rdx + 1]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 1], al
lea rax, [rdx + 2]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 2], al
lea rax, [rdx + 3]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 3], al
lea rax, [rdx + 4]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 4], al
lea rax, [rdx + 5]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 5], al
lea rax, [rdx + 6]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 6], al
lea rax, [rdx + 7]
mov rdx, qword gs:[0x60]
and eax, 0x3ff
movzx eax, byte [rax + rcx]
xor byte [rsp + 7], al
test rdx, rdx
je 0x14004aa60
mov rdx, qword [rdx + 0x20]
mov r9d, 0x1000
movzx eax, word [rdx + 0x60]
cmp ax, r9w
jae 0x14004aa60
mov rdx, qword [rdx + 0x68]
xor r11d, r11d
mov qword [rsp + 0x2050], rbx
mov ebx, r11d
mov qword [rsp + 0x2060], rsi
mov ecx, r11d
mov qword [rsp + 0x2040], rdi
mov edi, eax
mov qword [rsp + 0x2030], r13
test rax, rax
je 0x14004a787
nop dword [rax]
movzx eax, byte [rdx]
mov byte [rsp + rcx + 0x10], al
test al, al
je 0x14004a787
inc rcx
add rdx, 2
cmp rcx, rdi
cmp ecx, edi
jb 0x14004a770
mov ecx, r11d
nop word [rax + rax]
mov eax, ecx
cmp byte [rsp + rax + 0x10], bl
je 0x14004a79f
inc ecx
cmp ecx, 0xffffffff
jb 0x14004a790
test ecx, ecx
js 0x14004a7cb
nop dword [rax]
nop word [rax + rax]
mov eax, ecx
lea rdx, [rsp + 0x10]
add rdx, rax
cmp byte [rdx], 0x5c
je 0x14004a7c6
sub ecx, 1
jns 0x14004a7b0
jmp 0x14004a7cb
test rdx, rdx
jne 0x14004a80b
mov eax, r11d
nop
mov ecx, eax
cmp byte [rsp + rcx + 0x10], bl
je 0x14004a7df
inc eax
cmp eax, 0xffffffff
jb 0x14004a7d0
test eax, eax
js 0x14004a81c
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x10]
add rdx, rcx
cmp byte [rdx], 0x2f
je 0x14004a806
sub eax, 1
jns 0x14004a7f0
jmp 0x14004a81c
test rdx, rdx
je 0x14004a81c
lea rbx, [rdx + 1]
mov byte [rdx], 0x5c
lea rax, [rsp + 0x10]
mov byte [rbx], r11b
sub ebx, eax
mov rdx, qword [rsp]
lea rdi, [rsp + 0x1010]
mov r8, qword [0x14007ad00]
lea rsi, [rsp + 0x10]
mov qword [rsp + 0x2058], rbp
xor eax, eax
mov qword [rsp + 0x2038], r12
mov rcx, r9
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1010]
mov ecx, ebx
mov qword [rsp + 0x2028], r14
add rdx, 0x18
rep movsb byte [rdi], byte [rsi]
xor al, al
mov rcx, qword [rsp + 0x2010]
xor rcx, rsp
call fcn.140057410
add rsp, 0x2048
ret
Function at 0x14004aa80
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [r11 - 0x418]
sub rsp, 0x4f0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rcx, qword [0x14007b4e0]
mov rdx, qword [0x14007ad00]
mov rax, qword [0x14007b4d8]
mov qword [rbp + 0x350], rax
mov rax, rcx
and eax, 0x3ff
mov qword [r11 + 8], r12
mov qword [r11 + 0x10], r13
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x350], al
lea rax, [rcx + 1]
and eax, 0x3ff
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x351], al
lea rax, [rcx + 2]
and eax, 0x3ff
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x352], al
lea rax, [rcx + 3]
and eax, 0x3ff
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x353], al
lea rax, [rcx + 4]
and eax, 0x3ff
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x354], al
lea rax, [rcx + 5]
and eax, 0x3ff
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x355], al
lea rax, [rcx + 6]
and eax, 0x3ff
movzx eax, byte [rax + rdx]
xor byte [rbp + 0x356], al
Function at 0x1400532c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov qword [rbp - 0x69], rcx
mov dl, 8
mov dword [rbp - 0x19], 0x14878f9e
xor r9b, r9b
mov dword [rbp - 0x15], 0x251c32d8
mov dword [rbp - 0x11], 0x9d8ea1a5
mov word [rbp - 0xd], 0x1e00
mov dword [rbp + 0x17], 0xbcf0523e
mov dword [rbp + 0x1b], 0x72583b82
mov dword [rbp + 0x1f], 0xe66b6a
mov dword [rbp + 0x23], 0xef665e60
mov byte [rbp + 0x27], 0x59
Function at 0x1400552f0
Capabilities:
Check os version
Encode data using xor
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x138], rax
xor ebx, ebx
mov qword [rbp - 0x80], r8
mov qword [rsp + 0x40], rdx
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x48], rcx
test r8, r8
je 0x14005731a
cmp byte [r8], bl
je 0x14005731a
mov dword [rbp + 0x68], 0x4524c810
mov dl, 4
mov dword [rbp + 0x6c], 0x9076e670
xor r8b, r8b
mov dword [rbp + 0x70], 0x96988cff
mov word [rbp + 0x74], 0x5f00
mov dword [rbp + 0x108], 0xfb511b91
mov dword [rbp + 0x10c], 0x8095c339
mov dword [rbp + 0x110], 0x9cdf18
mov dword [rbp + 0x114], 0x24851f5c
mov byte [rbp + 0x118], 0xf9
nop dword [rax + rax]
xor dil, dil
nop dword [rax]
nop word [rax + rax]
movzx ecx, dl
movzx eax, dil
shl cl, 5
inc dil
xor cl, dl
shr dl, 1
and cl, 0xe0
shl cl, 2
or dl, cl
xor byte [rbp + rax + 0x108], dl
cmp dil, 0xb
jb 0x1400553b0
add r8b, cl
cmp r8b, dl
jb 0x1400553a0
mov dl, 5
xor r8b, r8b
nop dword [rax]
nop word [rax + rax]
xor dil, dil
nop dword [rax]
nop word [rax + rax]
movzx ecx, dl
movzx eax, dil
shl cl, 5
inc dil
xor cl, dl
shr dl, 1
and cl, 0xe0
shl cl, 2
or dl, cl
xor byte [rbp + rax + 0x68], dl
cmp dil, 0xc
jb 0x140055400
add r8b, cl
cmp r8b, dl
jb 0x1400553f0
mov dword [rsp + 0x70], 0x34a7af9e
mov dl, 3
mov dword [rsp + 0x74], 0x251c12f8
xor r8b, r8b
mov dword [rsp + 0x78], 0xbdae81a5
mov word [rsp + 0x7c], 0xb700
mov dword [rbp - 0x70], 0xdf178297
mov dword [rbp - 0x6c], 0x99b5c711
mov dword [rbp - 0x68], 0x8fe44814
mov word [rbp - 0x64], 0x6c00
invalid
invalid

Function at 0x14005dca0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005dacc
Function at 0x180003390
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 case.default.0x1800033b1
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 0x1800033de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800033e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180003439
test ecx, ecx
jle 0x180003419
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 0x180003439
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180003439
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
out 0x32, al
invalid
Function at 0x180003460
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 0x180003482
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180003491
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 0x1800034b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800034b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800034f2
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 0x18000358e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000352d
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 0x18000356e
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 0x18000358e
cmp rbx, rax
ja 0x180003540
test rbx, rbx
je 0x18000358e
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
enter 0x732, 0
add byte [rax], al
add byte [rax], al
int 0x32
invalid
Function at 0x1800039f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180003a1d
xor eax, eax
jmp 0x180003b89
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180003a57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180003a57
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 0x180003b89
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180003b7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180003a9a
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 0x180003ac5
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 0x180003b81
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 0x180003b34
sub eax, 1
je 0x180003b34
cmp eax, 2
jne 0x180003b7c
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 0x180003b81
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180003b62
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 0x180003b7c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180003b81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180005fb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180004020
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18000c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800040f3
cmp byte [rcx + 0x71], 0
je 0x1800040f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800040ef
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 0x1800040b4
sub eax, 1
je 0x1800040b8
cmp eax, 2
jne 0x1800040ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005fb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800040e6
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 0x1800040ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000409c
xor al, al
jmp 0x18000409c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180005fb0
add rsp, 0x60
pop rbx
ret
Function at 0x180004e94
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180004ef8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180004ee6
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180004edf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180004eb3
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18000cc70]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180004f08
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x18000ccc0]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x180004f41
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180004f74
mov eax, 0xa
jmp 0x180004fc1
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x180004f90
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18000528c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800052a3
cmp r8b, 0x90
je 0x1800052a3
cmp r8b, 0xcc
jne 0x1800052c5
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800052c1
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800052c5
add edx, r10d
cmp edx, r9d
jb 0x1800052b1
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18000562c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180005676
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x18000ccb0]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1800056af
cmp rbx, r14
jb 0x1800056ac
cmp rbx, r12
jae 0x1800056ac
cmp qword [rbx + 8], rsi
jne 0x180005811
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180005698
mov r15, rdi
cmp rdi, r14
jb 0x1800057cb
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800056fb
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005735
cmp dword [rbp - 0x10], 0x10000
je 0x180005705
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180005735
sub r15, r13
cmp r15, r14
jae 0x1800056d1
jmp 0x180005735
test r15, r15
je 0x180005735
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800057d6
cmp r15, r14
jae 0x1800056c0
test rbx, rbx
jmp 0x1800057c9
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180005811
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180005811
cmp dword [rbp - 0x10], 0x10000
je 0x1800057a4
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x180005761
jmp 0x180005811
test rdi, rdi
je 0x180005811
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800057d6
cmp rdi, r12
jbe 0x18000573d
jmp 0x180005811
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800057e2
mov rax, qword [0x18000ccb0]
mov qword [rbx], rax
mov qword [0x18000ccb0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x14000263c
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x140002641
cmp eax, 0x40
jb 0x140002716
cmp rax, r8
ja 0x14000272a
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x140002646
mov r9b, 5
cmp r10d, 0x10b
jne 0x140002670
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140002670
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x140002670
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x140002670
lea r9, [rax + 0xf8]
cmp r9, r8
ja 0x14000273f
lea r10, [rsi + 4]
xor edi, edi
jmp 0x1400026a2
xor r9d, r9d
jmp 0x140002670
mov r9b, 1
jmp 0x140002670
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140002670
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x140002670
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x140002689
mov byte [rcx], r9b
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r9, [rax + 0x108]
cmp r9, r8
ja 0x14000273f
lea r10, [rsi + 4]
mov edi, 1
mov r11, r8
sub r11, r9
movzx r14d, word [r10 + 2]
lea r10, [r14*8]
lea r10, [r10 + r10*4]
mov rbx, r11
sub rbx, r10
jb 0x140002754
add rax, 0xffffffffffffffc0
lea r11, [rdx + 0x40]
add r9, rdx
add r10, r9
mov ebp, r14d
shr ebp, 8
mov qword [rcx], rdx
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r9
mov byte [rcx + 0x30], r14b
mov dword [rcx + 0x31], ebp
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], r8
jmp 0x14000267b
lea r8, [0x140057840]
mov ecx, 0x40
mov rdx, rax
call fcn.14002c940
lea r9, [0x140057840]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.14002c8c0
lea rax, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparserpe.rs
mov rcx, r9
mov rdx, r8
mov r8, rax
call fcn.14002c840
lea r8, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparser_section.rs
mov rcx, r10
mov rdx, r11
call fcn.14002c840
int3