Function at 0x140001200
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push r12
push r13
lea rbp, [rsp - 0x4b8]
sub rsp, 0x5b8
mov eax, 0x5a4d
mov r12, r8
mov rsi, rdx
mov r13d, ecx
cmp word [r8], ax
je 0x14000124a
lea rcx, [0x1400a3918]
call fcn.1400011b0
xor al, al
add rsp, 0x5b8
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x5a8], r14
mov eax, 0x8664
movsxd r14, dword [r8 + 0x3c]
add r14, r12
cmp word [r14 + 4], ax
je 0x140001278
lea rcx, str.Invalid_platform_n
call fcn.1400011b0
xor al, al
jmp 0x140001b54
lea rcx, str.File_ok_n
mov qword [rsp + 0x5a0], r15
call fcn.1400011b0
mov r8d, dword [r14 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x1400012cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.1400011b0
xor al, al
jmp 0x140001b4c
lea rax, [rbp + 0x508]
mov qword [rsp + 0x5b0], rdi
xor edi, edi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x508], edi
mov rdx, r15
mov r8d, dword [r14 + 0x50]
mov rcx, rsi
lea r9d, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9d, 0x1000
mov qword [rsp + 0x50], rax
mov r8, r12
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r15
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov rax, qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 1
mov qword [rbp - 0x78], 1
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000138d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001b44
mov qword [rsp + 0x5e0], rbx
movzx ebx, word [r14 + 0x14]
add rbx, 0x2c
cmp word [r14 + 6], di
je 0x1400013e3
add rbx, r14
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400013d4
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, r12
add rdx, r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000143d
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x1400013a8
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x4f0], rax
mov rbx, rax
test rax, rax
jne 0x14000146b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001b3a
xor r12d, r12d
lea r8, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], r12
mov rcx, rsi
lea r9d, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400014d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001b3a
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x4f8], rax
mov rdi, rax
test rax, rax
jne 0x140001541
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001b3a
mov r9d, 0x1000
mov qword [rsp + 0x20], r12
lea r8, [0x140001b70]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400015bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rbx
xor r8d, r8d
mov r9d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140001b3a
mov rdx, r15
lea rcx, str.Mapped_DLL_at__p_n
call fcn.1400011b0
mov rdx, rbx
lea rcx, str.Mapping_info_at__p_n
call fcn.1400011b0
mov rdx, rdi
lea rcx, str.Shell_code_at__p_n
call fcn.1400011b0
lea rcx, str.Data_allocated_n
call fcn.1400011b0
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xorps xmm0, xmm0
mov qword [rsp + 0x44], r12
mov rcx, rax
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rbx, rax
movdqu xmmword [rsp + 0x34], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140001661
nop word [rax + rax]
cmp dword [rsp + 0x3c], r13d
jne 0x14000164f
mov r8d, dword [rsp + 0x38]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r12, rax
test rax, rax
jne 0x140001661
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001630
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x4d0
call fcn.140054400
lea rdx, [rbp - 0x30]
mov dword [rbp], 0x10001f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x4d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x4d0
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rbp - 0x30]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x46]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, 0x46
xor ecx, ecx
mov r8d, 0x3000
mov rbx, rax
lea r9d, [rdx - 0x42]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm0, xmmword [0x1400aecf0]
mov r9d, 0x46
mov r13, qword [rbp + 0x4f0]
mov r8, rax
mov rdx, rbx
mov qword [rsp + 0x20], 0
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1400aed00]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400aed10]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400aed20]
movups xmmword [rax + 0x30], xmm1
mov ecx, dword [0x1400aed30]
mov dword [rax + 0x40], ecx
movzx ecx, word [0x1400aed34]
mov word [rax + 0x44], cx
mov rcx, rsi
mov qword [rax + 0x18], r13
mov rax, qword [rbp + 0x4f8]
mov qword [r8 + 0x22], rax
mov rax, qword [sym.imp.KERNEL32.dll_RtlRestoreContext]
mov qword [r8 + 0x38], rax
mov qword [r8 + 0x2e], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rbp - 0x30]
mov qword [rbp + 0xc8], rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rbp + 0x4f8]
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
mov rdx, rdi
call fcn.1400011b0
nop
xor ebx, ebx
lea rdx, [rbp + 0x500]
mov rcx, rsi
mov dword [rbp + 0x500], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rbp + 0x500]
cmp edx, 0x103
jne 0x140001b2e
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x40]
mov rdx, r13
lea r8, [rbp - 0x70]
mov rcx, rsi
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x50]
cmp rbx, 0x404040
je 0x140001b05
cmp rbx, 0x505050
jne 0x14000184c
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.1400011b0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1400017d0
mov ecx, 0x1400000
call fcn.14005b3fc
mov qword [rbp + 0x4f0], rax
mov r12, rax
test rax, rax
jne 0x14000188a
lea rcx, str.Unable_to_allocate_memory_n
call fcn.1400011b0
jmp 0x140001b3a
xor edx, edx
mov r8d, 0x1400000
mov rcx, r12
call fcn.140054400
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400018c8
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.1400011b0
movzx ecx, word [r14 + 0x14]
lea rbx, [r14 + 0x18]
movzx edx, word [r14 + 6]
add rbx, rcx
xor edi, edi
test dx, dx
je 0x1400019a7
lea rdx, str..rsrc
lea r8, str..reloc
cmp dword [rbx + 8], 0
je 0x14000198c
xor ecx, ecx
nop
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140001915
cmp rcx, 6
jne 0x140001900
jmp 0x140001934
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [rbx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x14000198c
cmp rax, 7
jne 0x140001920
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.1400011b0
mov edx, dword [rbx + 0xc]
mov r8, r12
mov r9d, dword [rbx + 8]
add rdx, r15
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000197e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Cant_clear_section__s:_0x_x_n
mov r8d, eax
call fcn.1400011b0
lea r8, str..reloc
lea rdx, str..rsrc
movzx eax, word [r14 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x1400018f2
movzx ecx, word [r14 + 0x14]
movzx edx, ax
movzx eax, cx
lea rbx, [r14 + 0x18]
add rbx, rax
xor r12d, r12d
test dx, dx
je 0x140001a4e
lea edx, [r12 + 0x20]
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x140001a34
mov eax, dword [rbx + 0x24]
mov dword [rbp + 0x500], 0
test eax, 0x80000000
jbe 0x1400019e4
mov edi, 4
jmp 0x1400019f1
test eax, 0x20000000
mov edi, 2
cmova edi, edx
mov edx, dword [rbx + 0xc]
lea rax, [rbp + 0x500]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r15
mov r9d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, edi
lea rcx, str.section__s_set_as__lX_n
mov rdx, rbx
test eax, eax
jne 0x140001a2a
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.1400011b0
mov edx, 0x20
movzx eax, word [r14 + 6]
inc r12d
add rbx, 0x28
cmp r12d, eax
jne 0x1400019c2
movzx eax, word [r14 + 0x14]
movzx eax, ax
mov r9d, 2
mov dword [rbp + 0x510], 0
mov rdx, r15
mov rcx, rsi
mov r8d, dword [rax + r14 + 0x24]
lea rax, [rbp + 0x510]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rbp + 0x4f8]
mov r9d, 0x1000
mov r8, qword [rbp + 0x4f0]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001ab7
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140001adc
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140001b01
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.1400011b0
mov al, 1
jmp 0x140001b3c
lea rcx, str.Wrong_mapping_ptr_n
call fcn.1400011b0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, r13
jmp 0x14000158f
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.1400011b0
xor al, al
mov rbx, qword [rsp + 0x5e0]
mov rdi, qword [rsp + 0x5b0]
mov r15, qword [rsp + 0x5a0]
mov r14, qword [rsp + 0x5a8]
add rsp, 0x5b8
pop r13
pop r12
pop rsi
pop rbp
ret