Function at 0x10176870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
xor ebx, ebx
call fcn.10110120
mov eax, dword [ebp + 0x18]
test eax, eax
mov ecx, dword [ebp + 0x14]
cmove eax, ecx
push ecx
mov dword [ebp + 0x18], eax
call fcn.1010fac0
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
js 0x10176aec
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x1017692a
mov edi, eax
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.101258a0
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.10175660
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], ebx
jne 0x101768e6
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 8], ecx
cmp edi, 0xfffffffe
jne 0x10176956
mov edi, ecx
sub edi, dword [ebp - 4]
sub edi, 2
test edi, edi
jle 0x1017698f
push edi
call fcn.101b93cc
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10176982
push 0xeb
push str.Z:metasploit_payloadscmeterpreterdepslibresslcrypto_rsa_rsa_pss.c
push 0x41
push 0xfff
push 4
call fcn.10112080
add esp, 0x14
jmp 0x10176aea
cmp edi, 0xfffffffe
jne 0x10176931
jmp 0x101768b6
jge 0x101768b6
push 0xd8
push str.Z:metasploit_payloadscmeterpreterdepslibresslcrypto_rsa_rsa_pss.c
push 0x88
push 0xfff
push 4
call fcn.10112080
add esp, 0x14
jmp 0x10176aeb
mov eax, dword [ebp - 4]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x101768f3
push 0xe5
push str.Z:metasploit_payloadscmeterpreterdepslibresslcrypto_rsa_rsa_pss.c
push 0x6e
push 0xfff
push 4
call fcn.10112080
add esp, 0x14
jmp 0x10176aea
push edi
push ebx
call fcn.1013c420
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, ecx
sub eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
dec eax
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call fcn.1010fc70
add esp, 0xc
test eax, eax
je 0x10176aea
push 8
lea eax, [ebp - 0x30]
push 0x102eccfc
push eax
call fcn.1010fe60
add esp, 0xc
test eax, eax
je 0x10176aea
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
call fcn.1010fe60
add esp, 0xc
test eax, eax
je 0x10176aea
test edi, edi
je 0x10176a03
push edi
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.1010fe60
add esp, 0xc
test eax, eax
je 0x10176aea
mov eax, dword [ebp - 0xc]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1010fbc0
add esp, 0xc
test eax, eax
je 0x10176aea
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.10175c10
add esp, 0x14
test eax, eax
jne 0x10176aea
mov ecx, dword [ebp - 0x18]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x10176ac4
xor edx, edx
cmp edi, 0x20
jb 0x10176ab2
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x10176a67
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x10176ab2
mov eax, edi
and eax, 0x8000001f
jns 0x10176a75
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
lea eax, [ebx + 0x10]
mov edi, edi
movdqu xmm0, xmmword [ecx]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [ecx], xmm1
movdqu xmm1, xmmword [eax - 0x20]
movdqu xmm0, xmmword [ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, dword [ebp + 0x18]
jl 0x10176a80
cmp edx, edi
jge 0x10176ac4
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x10176ab6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10176adb
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 1
mov byte [eax + esi - 1], 0xbc
pop esi
pop edi
push ebx
call fcn.101b9394
lea eax, [ebp - 0x30]
push eax
call fcn.1010fe70
mov eax, dword [ebp - 0x14]
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret