Function at 0x5b9970
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
push ebx
push ebp
lea eax, [ecx + 0xa4]
push esi
mov esi, eax
push edi
xor ebp, ebp
mov dword [esp + 0x24], ecx
lea edi, [esi + 0x7d6]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x40]
cmp edi, ebp
mov edx, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], 1
je 0x5b9f45
mov ebx, dword [esp + 0x44]
cmp ebx, ebp
je 0x5b9f45
mov dword [ecx + 0x8a4], ebp
mov dword [esp + 0x14], ebp
jle 0x5b9f2c
add ecx, 0x7c
mov dword [esp + 0x20], ecx
jmp 0x5b99d6
mov eax, dword [esp + 0x18]
cmp esi, dword [esp + 0x30]
ja 0x5b9e0e
mov cl, byte [edi]
mov dword [esp + 0x2c], esi
movsx eax, cl
add eax, 0xffffffdc
cmp eax, 0x3a
ja case.0x5b99fd.42
xor ebx, ebx
mov bl, byte [eax + 0x5b9f88]
jmp dword [ebx*4 + 0x5b9f6c]
mov byte [esi], 2
inc esi
jmp 0x5b9dc1
cmp edi, dword [esp + 0x40]
jne 0x5b9a1c
mov byte [esi], 4
inc esi
jmp 0x5b9dc1
mov byte [esi], 1
mov al, byte [edi]
inc esi
mov byte [esi], al
inc esi
jmp 0x5b9dc1
mov al, byte [edi + 1]
test al, al
jne 0x5b9a3a
mov byte [esi], 5
inc esi
jmp 0x5b9dc1
mov byte [esi], 1
mov cl, byte [edi]
inc esi
mov byte [esi], cl
inc esi
jmp 0x5b9dc1
mov edx, dword [esp + 0x14]
mov byte [esi], 3
mov al, byte [edi + 1]
inc esi
inc edx
inc edi
cmp al, 0x5e
mov dword [esp + 0x14], edx
jne 0x5b9a6c
mov ecx, edx
mov byte [esp + 0x13], 0xff
inc ecx
inc edi
mov dword [esp + 0x14], ecx
jmp 0x5b9a71
mov byte [esp + 0x13], 0
cmp byte [edi], 0x2d
jne 0x5b9a8b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc edx
push 0x2d
mov dword [esp + 0x18], edx
inc edi
call fcn.005b9860
cmp byte [edi], 0x5d
jne 0x5b9aa5
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc edx
push 0x5d
mov dword [esp + 0x18], edx
inc edi
call fcn.005b9860
mov al, byte [edi]
test al, al
je 0x5b9b71
cmp al, 0x5d
je 0x5b9b71
cmp al, 0x2d
jne 0x5b9afc
mov cl, byte [edi + 1]
test cl, cl
je 0x5b9afc
cmp cl, 0x5d
je 0x5b9afc
movsx ebx, byte [edi - 1]
mov edx, dword [esp + 0x14]
inc edi
inc ebx
add edx, 2
movsx ebp, byte [edi]
inc edi
cmp ebx, ebp
mov dword [esp + 0x14], edx
jg 0x5b9b67
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov al, bl
push edx
push eax
inc ebx
call fcn.005b9890
cmp ebx, ebp
jle 0x5b9ae4
jmp 0x5b9b67
cmp al, 0x5c
jne 0x5b9b4e
mov cl, byte [edi + 1]
test cl, cl
je 0x5b9b4e
mov ebp, dword [esp + 0x14]
mov al, byte [edi + 1]
inc ebp
inc edi
push eax
mov dword [esp + 0x18], ebp
call fcn.005b9900
add esp, 4
mov byte [esp + 0x34], al
test al, al
je 0x5b9b31
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
push ecx
push edx
jmp 0x5b9b39
mov eax, dword [esp + 0x48]
mov cl, byte [edi]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.005b9890
mov ecx, dword [esp + 0x14]
inc ecx
inc edi
mov dword [esp + 0x14], ecx
jmp 0x5b9b67
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
inc ecx
push edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
push eax
inc edi
call fcn.005b9890
mov al, byte [edi]
test al, al
jne 0x5b9aaf
cmp byte [edi], 0
je 0x5b9e20
mov ecx, dword [esp + 0x24]
mov ebp, 0xfffff758
sub ebp, ecx
lea eax, [ecx + 0x8a8]
mov cl, byte [esp + 0x13]
mov dl, byte [eax]
xor dl, cl
mov byte [esi], dl
inc esi
mov byte [eax], 0
inc eax
lea edx, [eax + ebp]
cmp edx, 0x20
jl 0x5b9b8f
jmp 0x5b9dc1
cmp edi, dword [esp + 0x40]
je 0x5b9e36
mov al, byte [edx]
mov ebx, edx
cmp al, 0xb
mov dword [esp + 0x2c], ebx
je 0x5b9dc1
cmp al, 4
je 0x5b9e4c
cmp al, 5
jle 0x5b9bd5
cmp al, 0xa
jle 0x5b9e4c
cmp cl, 0x2b
jne 0x5b9bee
cmp ebx, esi
mov eax, esi
jae 0x5b9bee
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
inc ebx
cmp ebx, eax
jb 0x5b9be0
mov dword [esp + 0x2c], ebx
mov byte [esi], 0
inc esi
mov byte [esi], 0
inc esi
lea eax, [esi - 1]
cmp eax, ebx
mov dword [esp + 0x38], eax
jbe 0x5b9c0b
mov dl, byte [eax - 1]
mov byte [eax], dl
dec eax
cmp eax, ebx
ja 0x5b9c01
mov byte [eax], 0xb
jmp 0x5b9dc1
mov eax, dword [esp + 0x14]
mov cl, byte [edi + 1]
inc eax
inc edi
mov dword [esp + 0x14], eax
movsx eax, cl
lea ebp, [eax - 0x31]
cmp ebp, 0x45
ja case.0x5b9c33.53
xor ebx, ebx
mov bl, byte [ebp + 0x5b9fd8]
jmp dword [ebx*4 + 0x5b9fc4]
mov byte [esi], 8
inc esi
jmp 0x5b9dc1
cmp byte [edx], 8
je 0x5b9e62
mov byte [esi], 9
inc esi
jmp 0x5b9dc1
mov ecx, dword [esp + 0x1c]
add eax, 0xffffffd0
test ecx, ecx
jle 0x5b9c6c
mov ecx, dword [esp + 0x20]
cmp dword [ecx], eax
je 0x5b9e78
cmp dword [esp + 0x28], eax
jle 0x5b9e8e
mov byte [esi], 0xa
inc esi
mov byte [esi], al
inc esi
jmp 0x5b9dc1
mov byte [esi], 1
mov dl, byte [edi]
push edx
inc esi
call fcn.005b9900
add esp, 4
mov byte [esi], al
inc esi
jmp 0x5b9dc1
mov al, byte [esp + 0x4c]
test al, al
jne 0x5b9d84
cmp cl, 0x28
jne 0x5b9ce0
mov eax, dword [esp + 0x28]
cmp eax, 0xa
jge 0x5b9ea4
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
add ecx, 4
inc esi
inc esi
mov dword [esp + 0x20], ecx
mov dword [ecx], eax
mov byte [esi - 2], 6
mov byte [esi - 1], al
inc eax
mov dword [esp + 0x28], eax
jmp 0x5b9dc1
cmp cl, 0x29
jne 0x5b9d84
cmp byte [edx], 6
je 0x5b9eba
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x5b9ed0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov byte [esi], 7
inc esi
mov cl, byte [eax]
mov byte [esi], cl
inc esi
dec edx
sub eax, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jmp 0x5b9dc1
mov al, byte [esp + 0x4c]
test al, al
je 0x5b9d7c
cmp cl, 0x28
jne 0x5b9d60
mov eax, dword [esp + 0x28]
cmp eax, 0xa
jge 0x5b9ee6
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
add ecx, 4
inc esi
inc esi
mov dword [esp + 0x20], ecx
mov dword [ecx], eax
mov byte [esi - 2], 6
mov byte [esi - 1], al
inc eax
mov dword [esp + 0x28], eax
jmp 0x5b9dc1
cmp cl, 0x29
jne 0x5b9d7c
cmp byte [edx], 6
je 0x5b9efc
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x5b9f12
jmp 0x5b9cfe
mov al, byte [esp + 0x48]
test al, al
je 0x5b9d8f
mov byte [esi], 1
mov dl, byte [edi]
inc esi
mov byte [esi], dl
inc esi
jmp 0x5b9dc1
mov ebx, dword [esp + 0x24]
mov byte [esi], 3
mov al, byte [edi]
push 0
push eax
mov ecx, ebx
inc esi
call fcn.005b9890
mov ecx, 0xfffff758
lea eax, [ebx + 0x8a8]
sub ecx, ebx
mov dl, byte [eax]
mov byte [esi], dl
inc esi
mov byte [eax], 0
inc eax
lea edx, [eax + ecx]
cmp edx, 0x20
jl 0x5b9db0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5b99d2
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x5b9f28
mov eax, dword [esp + 0x18]
mov byte [eax], 0
mov al, byte [esp + 0x4c]
test al, al
mov eax, str.Unmatched__
jne 0x5b9f61
pop edi
pop esi
pop ebp
mov eax, 0x94af20
pop ebx
add esp, 0x2c
ret 0x10
pop edi
pop esi
mov byte [eax], 0
pop ebp
mov eax, str.Pattern_too_long
pop ebx
add esp, 0x2c
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Missing__
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, str.Empty_closure
pop ebx
add esp, 0x2c
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, str.Illegal_closure
pop ebx
add esp, 0x2c
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Null_pattern_inside___
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, str.Cyclical_reference
pop ebx
add esp, 0x2c
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, str.Undetermined_reference
pop ebx
add esp, 0x2c
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Too_many____pairs
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, 0x94ae68
pop ebx
add esp, 0x2c
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, 0x94ae58
pop ebx
add esp, 0x2c
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, 0x94ae44
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, 0x94ae2c
pop ebx
add esp, 0x2c
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, 0x94ae20
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esp + 0x24]
mov byte [esi], 0
pop edi
pop esi
pop ebp
mov dword [ecx + 0x8a4], 1
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
cmp dword [ecx + 0x8a4], ebp
je 0x5b9f59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
mov byte [eax], 0
mov eax, 0x94ae00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10