Function at 0x50b9bc
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], 1
push esi
xor edx, edx
mov dword [esp + 0x24], ebp
push edi
lea eax, [ebp + 0x16c]
mov dword [esp + 0x1c], edx
mov esi, eax
mov dword [esp + 0x38], eax
mov ebx, eax
lea ecx, [esi + 0xfd6]
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x54], edx
je 0x50bce6
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x50bce6
and dword [ebp + 0x116c], edx
and dword [esp + 0x14], edx
mov edi, dword [esp + 0x54]
test ecx, ecx
jle 0x50bcd7
cmp esi, dword [esp + 0x3c]
ja 0x50bcc9
mov cl, byte [edi]
movsx eax, cl
mov dword [esp + 0x18], esi
cmp eax, 0x3f
jg 0x50b89a
je 0x50b7e6
sub eax, 0x24
je 0x50b7d1
sub eax, 6
je 0x50b7e6
sub eax, 1
je 0x50b7e6
sub eax, 3
jne 0x50b8b6
mov byte [esi], 2
inc esi
jmp 0x50bc4c
cmp byte [edi + 1], 0
jne 0x50b7dc
mov byte [esi], 5
jmp 0x50b7cb
mov byte [esi], 1
inc esi
mov al, byte [edi]
mov byte [esi], al
jmp 0x50b7cb
cmp edi, dword [esp + 0x54]
je 0x50bc8a
mov al, byte [ebx]
mov dword [esp + 0x18], ebx
cmp al, 0xb
je 0x50bc4c
cmp al, 0xd
je 0x50bc4c
movsx eax, al
sub eax, 4
je 0x50bc83
dec eax
sub eax, 1
je 0x50bc83
sub eax, 1
je 0x50bc83
sub eax, 1
je 0x50bc83
sub eax, 1
je 0x50bc83
sub eax, 1
je 0x50bc83
cmp cl, 0x2b
jne 0x50b85b
mov edx, ebx
mov ecx, esi
cmp edx, esi
jae 0x50b85b
mov al, byte [edx]
mov byte [esi], al
inc esi
inc edx
cmp edx, ecx
jb 0x50b84d
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x18]
mov byte [esi], 0
inc esi
mov byte [esi], 0
lea edx, [esi + 1]
jmp 0x50b871
mov al, byte [esi - 1]
mov byte [esi], al
dec esi
cmp esi, ebx
ja 0x50b86b
cmp byte [edi], 0x3f
jne 0x50b87f
mov byte [esi], 0xc
jmp 0x50b88f
cmp byte [edi + 1], 0x3f
sete al
lea eax, [eax*2 + 0xb]
mov byte [esi], al
mov esi, edx
mov edx, dword [esp + 0x1c]
jmp 0x50bc50
sub eax, 0x5b
je 0x50ba78
sub eax, 1
je 0x50b985
dec eax
sub eax, 1
je 0x50b973
cmp byte [esp + 0x60], 0
je 0x50b913
cmp cl, 0x28
jne 0x50b8f0
mov ecx, dword [esp + 0x24]
cmp ecx, 0xa
jge 0x50bc91
inc edx
mov al, cl
mov dword [ebp + edx*4 + 0x144], ecx
inc ecx
mov byte [esi], 6
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov byte [esi + 1], al
add esi, 2
jmp 0x50bc4c
cmp cl, 0x29
jne 0x50b913
cmp byte [ebx], 6
je 0x50bc9f
test edx, edx
jle 0x50bc98
mov byte [esi], 7
mov al, byte [ebp + edx*4 + 0x144]
dec edx
jmp 0x50b8e1
test cl, cl
movzx edx, cl
push 0x5c
pop eax
cmove edx, eax
cmp byte [esp + 0x5c], 0
mov byte [esp + 0x40], dl
jne 0x50b965
mov eax, dword [ebp + 0x1194]
movzx ecx, dl
cmp byte [ecx + eax], 2
jne 0x50b965
push 0
push dword [esp + 0x44]
mov byte [esi], 3
mov ecx, ebp
inc esi
call fcn.0050b6cd
push 0x20
lea ecx, [ebp + 0x1170]
pop edx
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x50b952
jmp 0x50bc48
mov byte [esi], 1
mov byte [esi + 1], dl
add esi, 2
jmp 0x50bc48
cmp edi, dword [esp + 0x54]
jne 0x50b7dc
mov byte [esi], 4
jmp 0x50b7cb
inc dword [esp + 0x14]
inc edi
mov cl, byte [edi]
movsx edx, cl
lea eax, [edx - 0x31]
cmp eax, 0xd
ja case.0x50b99e.58
movzx eax, byte [eax + 0x50bd13]
jmp dword [eax*4 + 0x50bd03]
mov byte [esi], 8
inc esi
jmp 0x50bc48
cmp byte [ebx], 8
je 0x50bca6
mov byte [esi], 9
jmp 0x50b9a8
lea eax, [edx - 0x30]
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x50b9d4
cmp dword [ebp + edx*4 + 0x144], eax
je 0x50bcad
cmp dword [esp + 0x24], eax
jle 0x50bcb4
mov byte [esi], 0xa
jmp 0x50b8e5
cmp byte [esp + 0x60], 0
jne 0x50ba2c
cmp cl, 0x28
jne 0x50ba08
mov ecx, dword [esp + 0x24]
cmp ecx, 0xa
jge 0x50bcbb
mov edx, dword [esp + 0x1c]
jmp 0x50b8cf
cmp cl, 0x29
jne 0x50ba2c
cmp byte [ebx], 6
je 0x50bcc2
mov edx, dword [esp + 0x1c]
test edx, edx
jg 0x50b906
mov eax, 0x5754bc
jmp 0x50bcce
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push edi
call fcn.0050bddb
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x2c]
add edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
test eax, eax
js 0x50ba58
mov byte [esi], 1
mov byte [esi + 1], al
jmp 0x50b96b
push 0x20
mov byte [esi], 3
lea ecx, [ebp + 0x1170]
inc esi
pop edx
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x50ba65
jmp 0x50bc48
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov byte [esi], 3
inc esi
inc edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], ebx
mov al, byte [edi]
cmp al, 0x5e
jne 0x50ba9c
inc edi
mov byte [esp + 0x13], 0xff
inc ecx
mov al, byte [edi]
jmp 0x50baa0
mov byte [esp + 0x13], bl
inc ecx
mov dword [esp + 0x14], ecx
cmp al, 0x2d
jne 0x50bac4
inc ecx
inc edi
push 0x2d
pop ebx
mov dword [esp + 0x14], ecx
mov ecx, ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.0050b6a9
mov al, byte [edi]
mov ecx, dword [esp + 0x14]
cmp al, 0x5d
jne 0x50badf
inc ecx
inc edi
push 0x5d
pop ebx
mov dword [esp + 0x14], ecx
mov ecx, ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.0050b6a9
mov al, byte [edi]
test al, al
je 0x50bbbb
mov byte [esp + 0x34], al
cmp al, 0x5d
je 0x50bc2b
cmp al, 0x2d
jne 0x50bbce
test ebx, ebx
jns 0x50bb13
push 0x2d
pop ebx
push ebx
mov dword [esp + 0x24], ebx
mov ecx, ebp
call fcn.0050b6a9
jmp 0x50bba3
mov al, byte [edi + 1]
test al, al
je 0x50bbbb
cmp al, 0x5d
je 0x50baff
inc dword [esp + 0x14]
lea ecx, [ebx + 1]
movzx ebp, al
inc edi
push 0x5c
pop eax
mov dword [esp + 0x30], ecx
cmp ebp, eax
jne 0x50bb78
inc edi
cmp byte [edi], 0
je 0x50bbbb
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push edi
mov ecx, ebx
call fcn.0050bddb
add edi, dword [esp + 0x44]
mov ebp, eax
mov eax, dword [esp + 0x14]
inc eax
add eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
test ebp, ebp
js 0x50bbc5
push ebp
mov ecx, ebx
call fcn.0050b6a9
mov ecx, dword [esp + 0x30]
mov ebx, ebp
mov dword [esp + 0x20], ebx
cmp ecx, ebp
jg 0x50bb9f
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
push dword [esp + 0x5c]
mov al, bl
mov ecx, esi
push eax
inc ebx
call fcn.0050b6cd
cmp ebx, ebp
jle 0x50bb84
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc eax
inc edi
mov dword [esp + 0x14], eax
mov al, byte [edi]
mov byte [esp + 0x34], al
test al, al
jne 0x50baeb
mov eax, str.Missing__
jmp 0x50bcce
mov ebp, dword [esp + 0x28]
jmp 0x50baff
cmp al, 0x5c
jne 0x50bc10
cmp byte [edi + 1], 0
je 0x50bc10
lea eax, [esp + 0x4c]
inc edi
push eax
push edi
mov ecx, ebp
call fcn.0050bddb
add edi, dword [esp + 0x4c]
mov ebx, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x20], ebx
add eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
test ebx, ebx
js 0x50bc07
push ebx
jmp 0x50bb07
or ebx, 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x50bba7
push dword [esp + 0x5c]
movzx ebx, al
mov ecx, ebp
push dword [esp + 0x38]
mov dword [esp + 0x28], ebx
call fcn.0050b6cd
jmp 0x50bba3
mov bl, byte [esp + 0x13]
lea ecx, [ebp + 0x1170]
push 0x20
pop edx
mov al, byte [ecx]
xor al, bl
mov byte [esi], al
inc esi
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x50bc38
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
inc edi
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x58]
jl 0x50b792
test edx, edx
jle 0x50bcd7
mov ecx, dword [esp + 0x38]
mov eax, 0x575504
cmp byte [esp + 0x60], 0
mov byte [ecx], 0
mov ecx, str.Unmatched__
cmove eax, ecx
jmp 0x50bcf9
mov eax, str.Illegal_closure
jmp 0x50bcce
mov eax, str.Empty_closure
jmp 0x50bcce
mov eax, str.Too_many____pairs
jmp 0x50bcce
mov eax, 0x5754f8
jmp 0x50bcce
mov eax, str.Null_pattern_inside___
jmp 0x50bcce
mov eax, 0x575444
jmp 0x50bcce
mov eax, str.Cyclical_reference
jmp 0x50bcce
mov eax, str.Undetermined_reference
jmp 0x50bcce
mov eax, 0x57548c
jmp 0x50bcce
mov eax, 0x5754a0
jmp 0x50bcce
mov eax, str.Pattern_too_long
mov ecx, dword [esp + 0x38]
mov byte [ecx], 0
jmp 0x50bcf9
mov byte [esi], 0
mov dword [ebp + 0x116c], 1
jmp 0x50bcee
cmp dword [ebp + 0x116c], edx
je 0x50bcf2
xor eax, eax
jmp 0x50bcf9
mov byte [eax], dl
mov eax, str.No_previous_regular_expression
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10