Function at 0x1019db40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1041f700]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov eax, dword [edi + 0x88]
test edx, edx
je 0x1019db7d
mov ebx, dword [eax + 0x8c]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x44]
lea esi, [eax + 0xec]
lea ecx, [eax + 0x4c]
jmp 0x1019db8f
mov ebx, dword [eax + 0x88]
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x44]
lea esi, [ecx + 0xc8]
test ebx, ebx
je 0x1019de9c
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], 0
mov eax, dword [eax + 0x14]
cmp dword [eax], 0xfeff
jne 0x1019dbd9
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x10]
test edx, edx
je 0x1019dbbf
movzx eax, word [eax + 0x20a]
jmp 0x1019dbc6
movzx eax, word [eax + 0x208]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.1019c5d0
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x1019dbf8
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov eax, 7
lea esp, [esp]
inc byte [eax + ecx]
jne 0x1019dbf8
dec eax
jns 0x1019dbf0
mov al, byte [esi]
mov byte [ebp - 0xc], al
mov eax, dword [edi]
sar eax, 8
mov byte [ebp - 0xb], al
mov al, byte [edi]
mov byte [ebp - 0xa], al
mov al, byte [ebx + 0x15]
cmp al, 8
ja 0x1019de88
cmp al, 0x10
ja 0x1019de88
mov cl, byte [ebx + 0x16]
mov byte [ebp - 0x29], cl
test cl, cl
je 0x1019dc4d
mov ah, byte [ebx + 0x14]
cmp ah, 0x10
ja 0x1019de88
cmp al, ah
ja 0x1019de88
movzx ecx, al
movzx edi, ah
mov eax, edi
mov dword [ebp - 0x28], ecx
sub eax, ecx
mov dword [ebp - 0x34], eax
jmp 0x1019dc65
movzx edi, byte [ebx + 0x14]
movzx ecx, al
mov dword [ebp - 0x28], ecx
lea eax, [edi + ecx]
cmp eax, 0x10
ja 0x1019de88
xor eax, eax
test edx, edx
je 0x1019dd7b
cmp byte [ebp - 0x29], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x38], ecx
je 0x1019dcc2
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.101b9cb0
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
lea eax, [ebp + eax - 0x24]
push eax
call fcn.101b8700
add esp, 0x18
xor ecx, ecx
test edi, edi
jle 0x1019dcbd
mov edi, edi
mov al, byte [ebx + ecx + 8]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, edi
jl 0x1019dcb0
mov eax, dword [ebp - 0x28]
jmp 0x1019dcea
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.101b8700
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
add eax, edi
push eax
call fcn.101b8700
mov eax, dword [ebp - 0x28]
add esp, 0x18
add edi, eax
cmp byte [ebx + 0x18], 0
je 0x1019dd0b
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
call fcn.101b8700
movzx edx, byte [ebx + 0x15]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
sub ecx, edx
jmp 0x1019dd10
mov ecx, dword [ebp - 0x40]
xor edx, edx
push 0xd
mov eax, ecx
mov byte [ebp - 8], cl
shr eax, 8
mov byte [ebp - 9], al
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
add eax, edx
push eax
push edi
lea eax, [ebp - 0x24]
push eax
movzx eax, byte [ebx + 0x17]
add eax, ecx
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
add eax, edx
push eax
push ebx
call fcn.101dfa50
add esp, 0x28
test eax, eax
je 0x1019de88
cmp byte [ebx + 0x18], 0
mov ecx, dword [ebp - 0x30]
je 0x1019de6f
movzx eax, byte [ebx + 0x15]
add ecx, eax
mov eax, 1
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x10], eax
jne 0x1019de88
cmp dword [esi + 4], ecx
jae 0x1019dd9f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x29], 0
je 0x1019dde3
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.101b9cb0
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
lea eax, [ebp + eax - 0x24]
push eax
call fcn.101b8700
add esp, 0x18
xor ecx, ecx
test edi, edi
jle 0x1019ddde
mov al, byte [ebx + ecx + 8]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, edi
jl 0x1019ddd1
mov eax, dword [ebp - 0x28]
jmp 0x1019de13
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.101b8700
cmp byte [ebx + 0x18], 0
lea eax, [ebp - 0x14]
push dword [ebp - 0x28]
cmovne eax, dword [esi + 0x14]
push eax
lea eax, [ebp - 0x24]
add eax, edi
push eax
call fcn.101b8700
mov eax, dword [ebp - 0x28]
add esp, 0x18
add edi, eax
cmp byte [ebx + 0x18], 0
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 4]
je 0x1019de23
add edx, eax
sub ecx, eax
movzx eax, byte [ebx + 0x17]
mov dword [ebp - 0x3c], eax
cmp ecx, eax
jb 0x1019dd8c
sub ecx, eax
push 0xd
mov eax, ecx
mov byte [ebp - 8], cl
shr eax, 8
mov byte [ebp - 9], al
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x3c]
add eax, ecx
push eax
push edx
push edi
lea eax, [ebp - 0x24]
mov edi, edx
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
push edi
push ebx
call fcn.101df9c0
add esp, 0x28
test eax, eax
je 0x1019de88
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
pop edi
mov dword [esi + 4], ecx
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x1019df5d
mov eax, dword [edi + 0x88]
push dword [eax + 0x94]
call fcn.10136cb0
add esp, 4
test eax, eax
je 0x1019def1
mov eax, dword [edi + 0x88]
push dword [eax + 0x94]
call fcn.10136cb0
push eax
call fcn.1010fac0
add esp, 8
test eax, eax
jns 0x1019def1
push str.n___0
push 0x345
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_t1_enc.c
call fcn.10112bb0
add esp, 0xc
mov eax, dword [edi + 0x88]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1019df0b
xor ebx, ebx
jmp 0x1019dfbd
push eax
call fcn.101278d0
mov ebx, eax
add esp, 4
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x40]
test byte [eax], 1
je 0x1019dfba
push ebx
call fcn.1010f710
and eax, 0xf0007
add esp, 4
cmp eax, 2
jne 0x1019dfba
push ebx
call fcn.10118560
add esp, 4
cmp eax, 1
jle 0x1019dfba
mov ecx, dword [esi + 0x14]
cmp dword [esi + 0x10], ecx
jne 0x1019dfba
push eax
push ecx
call fcn.1013c420
add esp, 8
jmp 0x1019dfba
push dword [edi + 0x84]
call fcn.10136cb0
add esp, 4
test eax, eax
je 0x1019df9e
push dword [edi + 0x84]
call fcn.10136cb0
push eax
call fcn.1010fac0
add esp, 8
test eax, eax
jns 0x1019df9e
push str.n___0
push 0x361
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_t1_enc.c
call fcn.10112bb0
add esp, 0xc
mov eax, dword [edi + 0x80]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1019dfaf
xor ebx, ebx
jmp 0x1019dfbd
push eax
call fcn.101278d0
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x28]
cmp dword [edi + 0x50], 0
je 0x1019e0e1
test eax, eax
je 0x1019e0e1
test ebx, ebx
je 0x1019e0e1
push dword [eax]
mov ebx, dword [esi + 4]
call fcn.10178df0
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, 1
je 0x1019e02c
test ecx, ecx
je 0x1019e030
mov eax, ebx
cdq
idiv dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp - 0x34], eax
lea edx, [ebx + eax]
mov dword [ebp - 0x3c], edx
cmp ebx, edx
jge 0x1019e027
mov edi, eax
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
lea edx, [edi - 1]
mov byte [ebx + eax], dl
inc ebx
mov edx, dword [ebp - 0x3c]
cmp ebx, edx
jl 0x1019e010
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
add dword [esi + 4], eax
mov ebx, edx
test ecx, ecx
jne 0x1019e047
test ebx, ebx
je 0x1019dd8c
xor edx, edx
mov eax, ebx
div dword [ebp - 0x30]
test edx, edx
jne 0x1019dd8c
push ebx
push dword [esi + 0x14]
mov ebx, dword [ebp - 0x28]
push dword [esi + 0x10]
push ebx
call fcn.1010fa70
push dword [ebx]
mov dword [ebp - 0x38], eax
call fcn.1010f710
add esp, 0x14
test eax, 0x100000
je 0x1019e075
xor eax, eax
cmp dword [ebp - 0x38], eax
setl al
jmp 0x1019e07d
xor eax, eax
cmp dword [ebp - 0x38], eax
sete al
test eax, eax
jne 0x1019de88
push dword [edi + 0x84]
lea ebx, [eax + 1]
call fcn.10136cb0
add esp, 4
test eax, eax
je 0x1019e0b2
push dword [edi + 0x84]
call fcn.10136cb0
push eax
call fcn.1010fac0
add esp, 8
mov ecx, eax
jmp 0x1019e0b4
xor ecx, ecx
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1019e0fd
cmp dword [ebp + 0xc], 0
jne 0x1019e0fd
push ecx
push eax
push esi
push edi
call fcn.101b2c30
add esp, 0x10
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.101b8d50
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [esi + 0x14], eax
mov ebx, 1
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret