Function at 0x180007f44
Capabilities:
Encrypt or decrypt via wincrypt
Enumerate pe sections

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax + 0x18]
sub rsp, 0x138
mov rdx, qword [rbp]
and dword [rbp - 0x7c], 0
and qword [rbp - 0x70], 0
mov r9, r8
add r8, 4
movzx eax, byte [r9 + 0x1f]
movzx ecx, byte [r9 + 0x1e]
movzx ebx, byte [r9 + 0x1b]
mov dword [rsp + 0x100], eax
movzx esi, byte [r9 + 0x19]
movzx r10d, byte [r9 + 0x1d]
movzx r11d, byte [r9 + 0x1c]
movzx edi, byte [r9 + 0x1a]
movzx r14d, byte [r9 + 0x18]
movzx r15d, byte [r9 + 0x17]
movzx r12d, byte [r9 + 0x16]
movzx r13d, byte [r9 + 0x15]
mov dword [rsp + 0xf8], ecx
movzx r9d, byte [r9 + 2]
mov dword [rsp + 0xf0], r10d
mov dword [rsp + 0xe8], r11d
mov dword [rsp + 0xe0], ebx
mov dword [rsp + 0xd8], edi
mov dword [rsp + 0xd0], esi
mov rsi, qword [rbp]
mov dword [rsp + 0xc8], r14d
movzx eax, byte [rsi + 0x14]
mov dword [rsp + 0xc0], r15d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xb0], r13d
mov dword [rsp + 0xa8], eax
movzx eax, byte [rsi + 0x13]
mov dword [rsp + 0xa0], eax
movzx eax, byte [rsi + 0x12]
mov qword [rbp - 0x78], r8
mov dword [rsp + 0x98], eax
movzx eax, byte [rsi + 0x11]
movzx r8d, byte [rdx + 1]
mov rbx, qword [rbp - 0x78]
movzx edx, byte [rdx]
mov dword [rsp + 0x90], eax
movzx eax, byte [rsi + 0x10]
lea rcx, str._DEC__Packet_header:__0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X_
mov dword [rsp + 0x88], eax
movzx eax, byte [rsi + 0xf]
mov dword [rsp + 0x80], eax
movzx eax, byte [rsi + 0xe]
mov dword [rsp + 0x78], eax
movzx eax, byte [rsi + 0xd]
mov dword [rsp + 0x70], eax
movzx eax, byte [rsi + 0xc]
mov dword [rsp + 0x68], eax
movzx eax, byte [rsi + 0xb]
mov dword [rsp + 0x60], eax
movzx eax, byte [rsi + 0xa]
mov dword [rsp + 0x58], eax
movzx eax, byte [rsi + 9]
mov dword [rsp + 0x50], eax
movzx eax, byte [rsi + 8]
mov dword [rsp + 0x48], eax
movzx eax, byte [rsi + 7]
mov dword [rsp + 0x40], eax
movzx eax, byte [rsi + 6]
mov dword [rsp + 0x38], eax
movzx eax, byte [rsi + 5]
mov dword [rsp + 0x30], eax
movzx eax, byte [rbx]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsi + 3]
mov dword [rsp + 0x20], eax
call fcn.180007e94
mov edi, dword [rbp + 8]
lea rcx, str._DEC__Packet_buffer_size_is:__u
mov edx, edi
call fcn.180007e94
lea r8d, [rdi - 4]
mov rdx, rbx
mov rcx, rsi
call fcn.180007568
movzx eax, byte [rsi + 0x1f]
mov r9, rsi
mov dword [rsp + 0x100], eax
movzx ecx, byte [rsi + 0x1e]
movzx edi, byte [rsi + 0x1a]
movzx r10d, byte [rsi + 0x1d]
movzx r11d, byte [rsi + 0x1c]
movzx ebx, byte [rsi + 0x1b]
movzx r14d, byte [r9 + 0x18]
movzx r15d, byte [r9 + 0x17]
movzx r12d, byte [r9 + 0x16]
movzx r13d, byte [r9 + 0x15]
movzx esi, byte [rsi + 0x19]
mov rdx, qword [rbp]
mov dword [rsp + 0xf8], ecx
mov rcx, qword [rbp - 0x78]
movzx r8d, byte [rdx + 1]
movzx r9d, byte [r9 + 2]
movzx edx, byte [rdx]
mov dword [rsp + 0xf0], r10d
mov dword [rsp + 0xe8], r11d
mov dword [rsp + 0xe0], ebx
mov dword [rsp + 0xd8], edi
mov rdi, qword [rbp]
mov dword [rsp + 0xd0], esi
mov dword [rsp + 0xc8], r14d
movzx eax, byte [rdi + 0x14]
mov dword [rsp + 0xc0], r15d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xb0], r13d
mov dword [rsp + 0xa8], eax
movzx eax, byte [rdi + 0x13]
mov dword [rsp + 0xa0], eax
movzx eax, byte [rdi + 0x12]
mov dword [rsp + 0x98], eax
movzx eax, byte [rdi + 0x11]
mov dword [rsp + 0x90], eax
movzx eax, byte [rdi + 0x10]
mov dword [rsp + 0x88], eax
movzx eax, byte [rdi + 0xf]
mov dword [rsp + 0x80], eax
movzx eax, byte [rdi + 0xe]
mov dword [rsp + 0x78], eax
movzx eax, byte [rdi + 0xd]
mov dword [rsp + 0x70], eax
movzx eax, byte [rdi + 0xc]
mov dword [rsp + 0x68], eax
movzx eax, byte [rdi + 0xb]
mov dword [rsp + 0x60], eax
movzx eax, byte [rdi + 0xa]
mov dword [rsp + 0x58], eax
movzx eax, byte [rdi + 9]
mov dword [rsp + 0x50], eax
movzx eax, byte [rdi + 8]
mov dword [rsp + 0x48], eax
movzx eax, byte [rdi + 7]
mov dword [rsp + 0x40], eax
movzx eax, byte [rdi + 6]
mov dword [rsp + 0x38], eax
movzx eax, byte [rdi + 5]
mov dword [rsp + 0x30], eax
movzx eax, byte [rcx]
lea rcx, str._DEC__Packet_header:__0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X_
mov dword [rsp + 0x28], eax
movzx eax, byte [rdi + 3]
mov dword [rsp + 0x20], eax
call fcn.180007e94
mov edx, 0x48
lea ecx, [rdx - 0x47]
call fcn.1800199bc
mov rsi, rax
mov qword [rbp - 0x78], rax
test rax, rax
jne 0x180008261
lea ebx, [rax + 8]
jmp 0x1800085cd
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
lea rcx, str._DEC__Encryption_flags_set_to__x
mov edx, eax
mov ebx, eax
call fcn.180007e94
mov rcx, qword [rbp - 0x10]
mov rcx, qword [rcx + 0xa0]
test rcx, rcx
je 0x18000847b
cmp dword [rcx + 0x14], 0
je 0x18000847b
test ebx, ebx
je 0x18000847b
lea rcx, str._DEC__Context_is_valid__moving_on_...
call fcn.180007e94
mov rdx, qword [rbp]
lea r8, [rdi + 0x20]
movzx eax, byte [r8 + 0xf]
movzx ecx, byte [r8 + 0xe]
movzx edi, byte [r8 + 0xa]
movzx r10d, byte [r8 + 0xd]
movzx r11d, byte [r8 + 0xc]
movzx ebx, byte [r8 + 0xb]
movzx esi, byte [r8 + 9]
movzx r14d, byte [r8 + 8]
movzx r15d, byte [r8 + 7]
movzx r12d, byte [r8 + 6]
movzx r13d, byte [r8 + 5]
movzx r9d, byte [r8 + 2]
movzx r8d, byte [r8 + 1]
movzx edx, byte [rdx + 0x20]
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edi
mov rdi, qword [rbp]
movzx eax, byte [rdi + 0x24]
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
movzx eax, byte [rdi + 0x23]
lea rcx, str._DEC__IV:__02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x20], eax
call fcn.180007e94
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
lea rcx, str._DEC__Encrypted_Size:__u___x_
lea rsi, [rdi + 0x30]
sub eax, 0x18
mov r8d, eax
mov edx, eax
mov dword [rbp + 8], eax
call fcn.180007e94
mov edx, dword [rbp + 8]
lea rcx, str._DEC__Encrypted_Size_mod_AES256_BLOCKSIZE:__u
and edx, 0xf
call fcn.180007e94
mov rax, qword [rbp - 0x10]
lea r9, [rbp - 0x70]
mov rcx, qword [rax + 0xa0]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x1800083c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._DEC__Failed_to_duplicate_key:__d___x_
mov edx, eax
mov r8d, eax
mov ebx, eax
call fcn.180007e94
mov rsi, qword [rbp - 0x78]
jmp 0x1800085c1
mov rcx, qword [rbp - 0x70]
xor r9d, r9d
lea r8, [rbp - 0x80]
lea edx, [r9 + 4]
mov dword [rbp - 0x80], 1
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x1800083f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._ENC__Failed_to_set_mode_to_CBC:__d___x_
jmp 0x1800083b3
mov rcx, qword [rbp - 0x70]
xor r9d, r9d
lea r8, [rdi + 0x20]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x18000841f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._DEC__Failed_to_set_IV:__d___x_
jmp 0x1800083b3
mov rcx, qword [rbp - 0x70]
xor r9d, r9d
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x180008456
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._DEC__Failed_to_decrypt:__d___x_
jmp 0x1800083b3
mov edx, dword [rbp + 8]
lea rcx, [rdi + 0x20]
mov r8, rsi
mov r9d, edx
call fcn.18001ad90
mov ecx, dword [rbp + 8]
add ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov rsi, qword [rbp - 0x78]
mov dword [rdi + 0x18], eax
mov ecx, dword [rdi + 0x18]
mov dword [rsi + 0x18], ecx
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
call qword [sym.imp.WS2_32.dll_ntohl]
lea rcx, str._DEC__Actual_payload_Length:__d
lea edx, [rax - 8]
mov dword [rsi + 0x28], edx
call fcn.180007e94
mov ecx, dword [rsi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
lea rcx, str._DEC__Header_Type:__d
mov edx, eax
call fcn.180007e94
mov ecx, dword [rsi + 0x28]
call fcn.180018f98
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x1800084dd
lea rcx, str._DEC__failed_to_allocate_payload
call fcn.180007e94
mov ebx, 8
jmp 0x1800085c5
lea rcx, str._DEC__Local_packet_payload_successfully_allocated__copying_data
call fcn.180007e94
mov edx, dword [rsi + 0x28]
mov rcx, qword [rsi + 0x20]
lea r8, [rdi + 0x20]
mov r9d, edx
call fcn.18001ad08
mov rdi, qword [rsi + 0x20]
movzx ecx, byte [rdi + 6]
movzx eax, byte [rdi + 7]
movzx r10d, byte [rdi + 5]
movzx r11d, byte [rdi + 4]
movzx ebx, byte [rdi + 3]
movzx r9d, byte [rdi + 2]
movzx r8d, byte [rdi + 1]
movzx edx, byte [rdi]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
lea rcx, str._DEC__TLV_1_length___type:__0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X_
mov dword [rsp + 0x20], ebx
call fcn.180007e94
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
lea rcx, str._DEC__Skipping__u_bytes
mov edx, eax
mov ebx, eax
call fcn.180007e94
add rdi, rbx
movzx ecx, byte [rdi + 6]
movzx eax, byte [rdi + 7]
movzx r10d, byte [rdi + 5]
movzx r11d, byte [rdi + 4]
movzx ebx, byte [rdi + 3]
movzx r9d, byte [rdi + 2]
movzx r8d, byte [rdi + 1]
movzx edx, byte [rdi]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
lea rcx, str._DEC__TLV_2_length___type:__0x_02X_0x_02X_0x_02X_0x_02X___0x_02X_0x_02X_0x_02X_0x_02X_
mov dword [rsp + 0x20], ebx
call fcn.180007e94
mov rbx, qword [rbp - 8]
lea rcx, str._DEC__Writing_localpacket__p_to_packet_pointer__p
mov r8, rbx
mov rdx, rsi
call fcn.180007e94
mov qword [rbx], rsi
mov ebx, dword [rbp - 0x7c]
test ebx, ebx
je 0x1800085cd
mov rcx, rsi
call fcn.180004ff8
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1800085dc
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebx
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret