Function at 0x14000afa0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Enumerate pe sections
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rax, qword [0x14002f1c0]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov rbx, qword [rbp + 0x5d0]
mov eax, 0x5a4d
movzx r15d, r9b
mov rsi, rdx
mov r14, rcx
cmp word [rdx], ax
je 0x14000aff6
lea rcx, str.Invalid_file_n
call fcn.140011e40
xor al, al
jmp 0x14000ba1f
mov qword [rsp + 0x658], r12
mov eax, 0x8664
movsxd r12, dword [rdx + 0x3c]
add r12, rsi
cmp word [r12 + 4], ax
je 0x14000b025
lea rcx, str.Invalid_platform_n
call fcn.140011e40
xor al, al
jmp 0x14000ba17
lea rcx, str.File_ok_n
mov qword [rsp + 0x650], r13
call fcn.140011e40
mov r8d, dword [r12 + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x14000b07a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_memory_allocation_failed__ex__0x_X_n
call fcn.140011e40
xor al, al
jmp 0x14000ba0f
lea rax, [rsp + 0x34]
mov qword [rsp + 0x6a0], rdi
xor edi, edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], edi
mov rdx, r13
mov r8d, dword [r12 + 0x50]
mov rcx, r14
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 + 0x60], rax
mov r8, rsi
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r13
mov qword [rsp + 0x68], rax
mov rcx, r14
mov rax, qword [sym.imp.ntdll.dll_RtlAddFunctionTable]
mov qword [rsp + 0x70], rax
mov eax, dword [rbp + 0x5c8]
mov dword [rbp - 0x78], eax
movzx eax, byte [rbp + 0x5c0]
mov dword [rbp - 0x68], eax
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x74], edi
mov dword [rbp - 0x64], edi
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_file_header_0x_X_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
movzx ebx, word [r12 + 0x14]
add rbx, 0x2c
cmp word [r12 + 6], di
je 0x14000b18e
add rbx, r12
mov eax, dword [rbx - 4]
test eax, eax
je 0x14000b17e
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, rsi
add rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000b1e6
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x14000b152
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, r14
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
mov rsi, rax
test rax, rax
jne 0x14000b214
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Target_process_mapping_allocation_failed__ex__0x_X_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
xor edi, edi
lea r8, [rsp + 0x60]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, r14
lea r9d, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b277
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_mapping_0x_X_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x14000b2e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_shellcode_allocation_failed__ex__0x_X_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
mov r9d, 0x1000
mov qword [rsp + 0x20], rdi
lea r8, [0x14000ede0]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_write_shellcode_0x_X_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
mov rdx, r13
lea rcx, str.Mapped_DLL_at__p_n
call fcn.140011e40
mov rdx, rsi
lea rcx, str.Mapping_info_at__p_n
call fcn.140011e40
mov rdx, rbx
lea rcx, str.Shell_code_at__p_n
call fcn.140011e40
lea rcx, str.Data_allocated_n
call fcn.140011e40
xorps xmm0, xmm0
mov qword [rbp - 0xc], rdi
mov rcx, r14
mov dword [rbp - 0x20], 0x1c
movdqu xmmword [rbp - 0x1c], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000ba05
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov edi, eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000b9fc
nop dword [rax]
cmp dword [rbp - 0x14], edi
je 0x14000b40a
lea rdx, [rbp - 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x14000b3f0
jmp 0x14000ba05
mov r8d, dword [rbp - 0x18]
test r8d, r8d
je 0x14000ba05
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000ba05
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14000b9fc
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp]
mov dword [rbp + 0x30], 0x100001
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14000b9f3
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x100
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x14000b9f3
mov eax, dword [rbp + 0xf8]
lea r8, [rbp + 0x4d0]
mov dword [rbp + 0x4df], eax
mov r9d, 0x63
mov rax, qword [rbp + 0xf8]
mov rdx, rdi
shr rax, 0x20
mov rcx, r14
mov dword [rbp + 0x4e7], eax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x4f9], rax
lea rax, [rdi + 8]
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0x4d0], 0
mov dword [rbp + 0x4d8], 0x8ec8348
mov word [rbp + 0x4dc], 0x4c7
mov byte [rbp + 0x4de], 0x24
mov dword [rbp + 0x4e3], 0x42444c7
mov dword [rbp + 0x4eb], 0x41525150
mov dword [rbp + 0x4ef], 0x41514150
mov dword [rbp + 0x4f3], 0x9c534152
mov word [rbp + 0x4f7], 0xb848
mov word [rbp + 0x501], 0xb948
mov dword [rbp + 0x50b], 0x20ec8348
mov dword [rbp + 0x50f], 0x8348d0ff
mov dword [rbp + 0x513], 0x8d4820c4
mov dword [rbp + 0x517], 0xffffb40d
mov dword [rbp + 0x51b], 0x18948ff
mov dword [rbp + 0x51f], 0x415b419d
mov dword [rbp + 0x523], 0x4159415a
mov dword [rbp + 0x527], 0x58595a58
mov dword [rbp + 0x52b], 0xffa905c6
mov dword [rbp + 0x52f], 0xc300ffff
mov qword [rbp + 0x503], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000b9ca
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x14000b9ca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x14000b9d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x40]
lea rcx, str.Thread_created_at:__p__waiting_for_return..._n
mov rdx, rdi
call fcn.140011e40
nop dword [rax]
nop dword [rax + rax]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, r14
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [rsp + 0x30]
cmp edx, 0x103
jne 0x14000b9bc
xorps xmm0, xmm0
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x40]
mov rdx, rsi
lea r8, [rbp - 0x60]
mov rcx, r14
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x40]
cmp rbx, 0x404040
je 0x14000b984
cmp rbx, 0x505050
jne 0x14000b686
lea rcx, str.WARNING:_Exception_support_failed__n
call fcn.140011e40
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x14000b610
mov ecx, 0x1400000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x14000b6c3
lea rcx, str.Unable_to_allocate_memory_n
call fcn.140011e40
jmp 0x14000ba05
xor edx, edx
mov r8d, 0x1400000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
test r15b, r15b
je 0x14000b706
mov r9d, 0x1000
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b706
lea rcx, str.WARNING_:_Cant_clear_HEADER_n
call fcn.140011e40
cmp byte [rbp + 0x5b0], 0
je 0x14000b827
movzx ebx, word [r12 + 0x14]
xor edi, edi
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], di
je 0x14000b827
movzx r15d, byte [rbp + 0x5c0]
lea rdx, [0x140025c10]
lea r8, str..rsrc
lea r9, str..reloc
nop dword [rax + rax]
cmp dword [rbx + 8], 0
je 0x14000b813
test r15b, r15b
jne 0x14000b776
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000b776
cmp rcx, 7
jne 0x14000b761
jmp 0x14000b7b4
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000b796
cmp rcx, 6
jne 0x14000b780
jmp 0x14000b7b4
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x14000b813
cmp rcx, 7
jne 0x14000b7a0
mov rdx, rbx
lea rcx, str.Processing__s_removal_n
call fcn.140011e40
mov edx, dword [rbx + 0xc]
mov r8, rsi
mov r9d, dword [rbx + 8]
add rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b7fe
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.140011e40
lea r9, str..reloc
lea r8, str..rsrc
lea rdx, [0x140025c10]
movzx eax, word [r12 + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x14000b750
cmp byte [rbp + 0x5b8], 0
je 0x14000b8fe
movzx ebx, word [r12 + 0x14]
xor esi, esi
add rbx, 0x18
add rbx, r12
cmp word [r12 + 6], si
je 0x14000b8ca
lea r15d, [rsi + 0x20]
nop
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x14000b8ba
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x30], 0
test eax, 0x80000000
jbe 0x14000b870
mov edi, 4
jmp 0x14000b87e
test eax, 0x20000000
mov edi, 2
cmova edi, r15d
mov edx, dword [rbx + 0xc]
lea rax, [rsp + 0x30]
mov r8, rcx
mov qword [rsp + 0x20], rax
add rdx, r13
mov r9d, edi
mov rcx, r14
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 0x14000b8b5
lea rcx, str.FAIL:_section__s_not_set_as__lX_n
call fcn.140011e40
movzx eax, word [r12 + 6]
inc esi
add rbx, 0x28
cmp esi, eax
jne 0x14000b850
movzx eax, word [r12 + 0x14]
mov r9d, 2
mov dword [rsp + 0x38], 0
mov rdx, r13
mov rcx, r14
mov r8d, dword [rax + r12 + 0x24]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r9d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b931
lea rcx, str.WARNING:_Cant_clear_shellcode_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000b956
lea rcx, str.WARNING:_cant_release_shell_code_memory_n
call fcn.140011e40
mov rdx, qword [rsp + 0x50]
mov r9d, 0x8000
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x14000b97d
lea rcx, str.WARNING:_cant_release_mapping_data_memory_n
call fcn.140011e40
mov al, 1
jmp 0x14000ba07
lea rcx, str.Wrong_mapping_ptr_n
call fcn.140011e40
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000b9dc
lea rcx, str.Process_crashed__exit_code:__d_n
call fcn.140011e40
jmp 0x14000ba05
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x14000ba05
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, qword [rsp + 0x6a0]
mov r13, qword [rsp + 0x650]
mov r12, qword [rsp + 0x658]
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.1400227b0
add rsp, 0x660
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret