joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b710
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 0x14001b732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001b741
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 + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b766
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x14001b7a0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b847
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14001b7db
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x14001b821
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14001b860
cmp rdi, rax
ja 0x14001b7f0
mov r8, rbx
test rbx, rbx
je 0x14001b847
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14001b84a
mov esp, 0xc6d12e1e
push rbx
sti
invalid
Function at 0x4029f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x402a0f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x402c60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00411050]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00411050]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
Function at 0x4079b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp qword [rcx + 8], 0
mov rdi, qword [rcx]
mov rbp, rcx
mov rbx, rdx
mov rsi, rcx
js 0x407b13
cmp rdi, 7
mov r8d, 7
mov rax, qword [0x004703e8]
cmovl rdi, r8
cmp qword [0x004703e0], rax
jle 0x407b71
mov rax, qword [0x004703d8]
cmp qword [0x004724d0], rax
jge 0x407b71
lea rdx, [rdi + 0x21]
lea rcx, [0x00470438]
call fcn.00403a10
lea rsi, [0x00412020]
mov qword [rax + 8], rsi
mov qword [rax], 4
mov rdx, qword [0x004703e8]
mov rcx, qword [0x004703f8]
cmp rdx, 8
jle 0x407b89
shl rdx, 3
lea r9, [rcx + rdx - 8]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea r9, [rcx + rdx - 0x10]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea r9, [rcx + rdx - 0x18]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea r9, [rcx + rdx - 0x20]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea r9, [rcx + rdx - 0x28]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea r9, [rcx + rdx - 0x30]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea r9, [rcx + rdx - 0x38]
mov r10, qword [r9]
mov r8, qword [r10]
cmp r8, 7
ja 0x407ae0
lea rcx, [rcx + rdx - 0x40]
mov r8, qword [rcx]
mov rdx, qword [r8]
cmp rdx, 7
jbe 0x407b9a
and rdx, 0xfffffffffffffffb
mov qword [r8], rdx
mov qword [rcx], rax
jmp 0x407aea
and r8, 0xfffffffffffffffb
mov qword [r10], r8
mov qword [r9], rax
lea rsi, [rax + 0x10]
mov qword [rsi + 8], rdi
mov qword [rax + 0x10], 0
mov rdi, qword [rbp]
lea rcx, [rax + 0x20]
lea rdx, [rbp + 0x10]
mov qword [rax + 0x10], rdi
lea r8, [rdi + 1]
call sub.msvcrt.dll_memcpy
lea r8, [rdi + rbx]
mov rcx, rsi
sub rcx, rbx
test rdi, rdi
jle 0x407b65
nop dword [rax]
nop word cs:[rax + rax]
mov rax, rbx
mov rdx, rbx
sar rax, 8
sar rdx, 0x10
xor eax, ebx
and edx, 0xffffffee
and eax, 0xffffffee
xor al, byte [rcx + rbx + 0x10]
xor eax, edx
mov rdx, rbx
sar rdx, 0x18
and edx, 0xffffffee
xor eax, edx
mov byte [rcx + rbx + 0x10], al
add rbx, 1
cmp rbx, r8
jne 0x407b30
mov rax, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp qword [0x00470430], 0
jne 0x407a05
call fcn.00406e10
jmp 0x407a05
mov qword [rcx + rdx*8], rax
add qword [0x004703e8], 1
jmp 0x407aea
lea rcx, [0x004703e8]
mov rdx, rax
mov qword [rsp + 0x28], rax
call fcn.00405910
mov rax, qword [rsp + 0x28]
jmp 0x407aea
Function at 0x408450
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbx, [0x0045da80]
mov r14, rcx
mov ebp, edx
mov edx, 0x35ae7a84
lea rcx, [0x0045d880]
call fcn.004079b0
lea rsi, [r14 + 2]
mov edx, 0x4cfb590c
mov rcx, rax
call fcn.004081e0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
nop dword [rax]
nop word cs:[rax + rax]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x4084e0
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x408660
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x4084c0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x408682
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x408690
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x408500
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x408595
test r12w, r12w
je 0x4086b0
mov r10, rsi
mov eax, r15d
sub r10, rcx
jmp 0x408556
cmp word [rcx], 0
je 0x408595
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x4086b0
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x408550
mov edx, 0xaf8c704
mov rcx, rbx
call fcn.004079b0
mov edx, 0x4bfdee8c
mov rcx, rax
call fcn.004081e0
cmp r15w, r12w
je 0x4086cf
mov r13, qword [r13]
cmp rdi, r13
jne 0x4084b0
test ebp, ebp
je 0x4086e4
lea rcx, [0x0045d9e0]
mov edx, 0x34e988a4
call fcn.004079b0
lea rbx, [rsp + 0x30]
mov edx, 0x53ed8f6c
mov rcx, rax
call fcn.004081e0
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00462798]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x00462790]
mov edx, 0x6fa21a2c
lea rcx, [0x0045d9a0]
mov ebx, eax
call fcn.004079b0
mov edx, 0xaf8c704
mov rcx, rax
call fcn.004081e0
test ebx, ebx
jne 0x408702
mov rax, qword [rsp + 0x28]
jmp 0x4086d3
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x4084c0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x4084f2
movzx r15d, word [r14]
jmp 0x408595
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x408500
jmp 0x408526
mov rcx, rbx
mov edx, 0xaf8c704
call fcn.004079b0
mov edx, 0x4bfdee8c
mov rcx, rax
call fcn.004081e0
jmp 0x4085b9
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x0045d960]
mov edx, 0x49a14b4c
call fcn.004079b0
mov edx, 0x2cbe8664
mov rcx, rax
call fcn.004081e0
xor eax, eax
jmp 0x4086d3
Function at 0x408710
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x0045da80]
mov edx, 0x35ae7a84
mov r13, rcx
lea rcx, [0x0045d880]
call fcn.004079b0
lea rdi, [r13 + 2]
mov edx, 0x4cfb590c
mov rcx, rax
call fcn.004081e0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x408790
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x408910
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x408770
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
je 0x408931
mov rax, rcx
nop
nop word cs:[rax + rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x408940
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x4087b0
movzx r14d, word [r13]
movzx ebx, word [rcx]
test r14w, r14w
je 0x408845
test bx, bx
je 0x408960
mov r10, rdi
mov eax, r14d
sub r10, rcx
jmp 0x408806
cmp word [rcx], 0
je 0x408845
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x408960
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x408800
mov edx, 0xaf8c704
mov rcx, rsi
call fcn.004079b0
mov edx, 0x4bfdee8c
mov rcx, rax
call fcn.004081e0
cmp r14w, bx
je 0x40897f
mov r12, qword [r12]
cmp rbp, r12
jne 0x408760
lea rcx, [0x0045d9e0]
mov edx, 0x34e988a4
call fcn.004079b0
lea rbx, [rsp + 0x30]
mov edx, 0x53ed8f6c
mov rcx, rax
call fcn.004081e0
mov rcx, rbx
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00462798]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x00462790]
mov edx, 0x6fa21a2c
lea rcx, [0x0045d9a0]
mov ebx, eax
call fcn.004079b0
mov edx, 0xaf8c704
mov rcx, rax
call fcn.004081e0
xor eax, eax
test ebx, ebx
jne 0x408984
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x408770
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
jne 0x4087a1
movzx r14d, word [r13]
jmp 0x408845
add rax, 2
movzx ebx, word [rax]
test bx, bx
jne 0x4087b0
jmp 0x4087d0
mov rcx, rsi
mov edx, 0xaf8c704
call fcn.004079b0
mov edx, 0x4bfdee8c
mov rcx, rax
call fcn.004081e0
jmp 0x408869
mov rax, qword [r12 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x40a870
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00411050]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x40a950
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, [section..rdata]
lea rdx, [0x00413224]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x00413224]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x40a8ea
cmp byte [rsi + rax + 0x10], 0
jne 0x40a930
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40a8ea
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x40a8ca
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x004130b6]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40a8ea
add ebx, eax
jmp 0x40a8c2
lea r8, [section..rdata]
mov rcx, rax
lea rdx, [0x00413224]
call sub.msvcrt.dll_fprintf
lea rsi, [0x00413224]
mov ebx, eax
nop
test ebx, ebx
jns 0x40a8ea
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x40a9a9
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x40a8ea
add ebx, 1
test ebx, ebx
jns 0x40a8ea
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x40a982
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x40a8ea
add ebx, eax
jmp 0x40a970
Function at 0x40ffc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00473584]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x410148
mov rax, qword [0x00473588]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41000c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x410095
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40fff0
mov rcx, rbx
call fcn.00410c60
test rax, rax
mov r12, rax
je 0x41017d
mov rax, qword [0x00473588]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00410d90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00473588]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410160
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41008e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4100f0
add dword [0x00473584], 1
cmp edi, 8
jae 0x4100c3
test dil, 4
jne 0x410134
test edi, edi
je 0x4100b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41014f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4100b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4100dc
jmp 0x4100b8
add rsi, qword [0x00473588]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41008e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00411220
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4100b8
xor esi, esi
jmp 0x410017
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4100b8
mov rax, qword [0x00473588]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00411220
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00411220
nop
nop dword [rax]

Function at 0x4108d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00473860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00473840]
test rbx, rbx
je 0x410924
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41091b
test rsi, rsi
je 0x41091b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410900
lea rcx, [0x00473860]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x410c60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0045e3c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x410ccd
mov rcx, r8
call fcn.00410b40
test eax, eax
je 0x410ccd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x410ccd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x410cc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x410ccf
add rax, 0x28
cmp rax, r9
jne 0x410cb0
xor eax, eax
add rsp, 0x28
ret

Function at 0x411220
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00411050
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.00411050
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x180001030
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, 1
nop
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test dil, al
je 0x1800010da
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.nigger_
call fcn.180001530
xor ebx, ebx
xor eax, eax
lock cmpxchg dword [0x180006940], edi
je 0x180001096
cmp rbx, 0x20
jae 0x18000107f
xor ecx, ecx
jmp 0x180001081
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180006940], edi
jne 0x180001075
cmp qword [0x180006948], 0
jne 0x1800010b4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180006948], rax
xor eax, eax
xchg dword [0x180006940], eax
mov rcx, qword [0x180006938]
mov rcx, qword [rcx]
call fcn.180001ce4
mov rcx, qword [0x180006938]
mov rcx, qword [rcx]
call fcn.180001f44
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001040
Function at 0x180001370
Capabilities:
Create thread
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
xor edi, edi
cmp edx, 1
je 0x1800013ad
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180002cf0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x1800013f0
mov qword [rsp + 0x40], rdi
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1800046fc]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.RecNutV3
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 8
call fcn.180002d18
lea rcx, [0x1800010f0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180001760]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800014b0
cmp dword [rsp + 0x38], 0
je 0x1800014a4
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1800014a4
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdx, str.Injected.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180001530
lea rdx, [0x180001700]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp dword [rsp + 0x38], 0
je 0x18000149a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov eax, 1
jmp 0x180001395
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x180001ac0
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 0x180001b24
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180001b12
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 0x180001b0b
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 0x180001adf
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180006948]
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 0x180001b34
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 [0x180006990]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x180001b6d
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 0x180001ba0
mov eax, 0xa
jmp 0x180001bed
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 0x180001bbc
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 0x18000200c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180002023
cmp r8b, 0x90
je 0x180002023
cmp r8b, 0xcc
jne 0x180002045
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180002041
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180002045
add edx, r10d
cmp edx, r9d
jb 0x180002031
mov eax, r10d
ret
xor eax, eax
ret