Function at 0x478130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
lea esi, [ecx + 0xa4]
push edi
mov edi, dword [esp + 0x3c]
xor ebx, ebx
cmp edi, ebx
lea eax, [esi + 0x7d6]
mov edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov ebp, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edx
je 0x478739
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x478739
mov dword [ecx + 0x8a4], ebx
mov dword [esp + 0x14], ebx
jle 0x47871c
add ecx, 0x7c
mov dword [esp + 0x24], ecx
nop
cmp esi, dword [esp + 0x2c]
ja 0x4785d5
mov cl, byte [edi]
movsx eax, cl
add eax, 0xffffffdc
cmp eax, 0x3a
mov ebx, esi
mov dword [esp + 0x34], ebx
ja case.0x4781b8.37
movzx eax, byte [eax + 0x478770]
jmp dword [eax*4 + 0x478754]
mov byte [esi], 2
add esi, 1
jmp 0x4785b2
cmp edi, dword [esp + 0x3c]
jne 0x4781db
mov byte [esi], 4
add esi, 1
jmp 0x4785b2
mov byte [esi], 1
mov cl, byte [edi]
add esi, 1
mov byte [esi], cl
add esi, 1
jmp 0x4785b2
cmp byte [edi + 1], 0
jne 0x47856f
mov byte [esi], 5
add esi, 1
jmp 0x4785b2
mov eax, 1
add dword [esp + 0x14], eax
mov byte [esi], 3
add edi, eax
add esi, eax
cmp byte [edi], 0x5e
jne 0x478224
add dword [esp + 0x14], eax
mov byte [esp + 0x13], 0xff
add edi, eax
jmp 0x478229
mov byte [esp + 0x13], 0
cmp byte [edi], 0x2d
jne 0x478240
mov ecx, dword [esp + 0x20]
add dword [esp + 0x14], eax
push 0x2d
call fcn.00478020
add edi, 1
cmp byte [edi], 0x5d
jne 0x478258
mov ecx, dword [esp + 0x20]
add dword [esp + 0x14], 1
push 0x5d
call fcn.00478020
add edi, 1
mov al, byte [edi]
test al, al
je 0x4785eb
cmp al, 0x5d
je 0x478339
cmp al, 0x2d
jne 0x4782b8
mov cl, byte [edi + 1]
test cl, cl
je 0x4782b8
cmp cl, 0x5d
je 0x4782b8
movsx ebp, byte [edi - 1]
movsx ebx, byte [edi + 1]
add dword [esp + 0x14], 2
add edi, 1
add ebp, 1
add edi, 1
cmp ebp, ebx
jg 0x478326
jmp 0x4782a0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
push eax
push ebp
call fcn.00478050
add ebp, 1
cmp ebp, ebx
jle 0x4782a0
jmp 0x478326
cmp al, 0x5c
jne 0x47830f
cmp byte [edi + 1], 0
je 0x47830f
movzx ecx, byte [edi + 1]
add dword [esp + 0x14], 1
add edi, 1
push ecx
call fcn.004780c0
add esp, 4
test al, al
mov byte [esp + 0x30], al
je 0x4782f9
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00478050
add dword [esp + 0x14], 1
jmp 0x478323
mov eax, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00478050
add dword [esp + 0x14], 1
jmp 0x478323
mov ecx, dword [esp + 0x44]
add dword [esp + 0x14], 1
push ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.00478050
add edi, 1
mov al, byte [edi]
test al, al
je 0x4785eb
mov ebx, dword [esp + 0x34]
jmp 0x478262
cmp byte [edi], 0
je 0x4785eb
mov eax, dword [esp + 0x20]
add eax, 0x8a8
mov ebp, 0x20
mov dl, byte [eax]
xor dl, byte [esp + 0x13]
add esi, 1
mov byte [esi - 1], dl
mov byte [eax], 0
add eax, 1
sub ebp, 1
jne 0x478350
jmp 0x4785b2
cmp edi, dword [esp + 0x3c]
je 0x478601
mov al, byte [ebp]
cmp al, 0xb
mov ebx, ebp
je 0x4785b2
cmp al, 4
je 0x478617
cmp al, 5
jle 0x478397
cmp al, 0xa
jle 0x478617
cmp cl, 0x2b
jne 0x4783b0
cmp ebx, esi
mov eax, esi
jae 0x4783b0
mov cl, byte [ebx]
mov byte [esi], cl
add ebx, 1
add esi, 1
cmp ebx, eax
jb 0x4783a2
mov byte [esi], 0
add esi, 1
mov byte [esi], 0
add esi, 1
mov eax, esi
sub esi, 1
cmp esi, ebx
jbe 0x4783d1
mov dl, byte [esi - 1]
mov byte [esi], dl
add esi, 0xffffffff
cmp esi, ebx
ja 0x4783c5
mov byte [esi], 0xb
mov esi, eax
jmp 0x4785b2
mov cl, byte [edi + 1]
add dword [esp + 0x14], 1
add edi, 1
movsx eax, cl
lea edx, [eax - 0x31]
cmp edx, 0x45
ja case.0x4783f8.58
movzx edx, byte [edx + 0x4787c0]
jmp dword [edx*4 + 0x4787ac]
mov byte [esi], 8
add esi, 1
jmp 0x4785b2
cmp byte [ebp], 8
je 0x47862d
mov byte [esi], 9
add esi, 1
jmp 0x4785b2
add eax, 0xffffffd0
cmp dword [esp + 0x1c], 0
jle 0x478435
mov ecx, dword [esp + 0x24]
cmp dword [ecx], eax
je 0x478643
cmp dword [esp + 0x28], eax
jle 0x478659
mov byte [esi], 0xa
add esi, 1
mov byte [esi], al
add esi, 1
jmp 0x4785b2
mov byte [esi], 1
movzx edx, byte [edi]
push edx
add esi, 1
call fcn.004780c0
add esp, 4
mov byte [esi], al
add esi, 1
jmp 0x4785b2
cmp byte [esp + 0x48], 0
jne 0x47856f
cmp cl, 0x28
jne 0x4784b1
mov eax, dword [esp + 0x28]
cmp eax, 0xa
jge 0x47866f
mov ecx, dword [esp + 0x24]
add dword [esp + 0x1c], 1
add ecx, 4
mov dword [ecx], eax
mov byte [esi], 6
add esi, 1
mov byte [esi], al
add esi, 1
add eax, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jmp 0x4785b2
cmp cl, 0x29
jne 0x47856f
cmp byte [ebp], 6
je 0x478685
cmp dword [esp + 0x1c], 0
jle 0x47869b
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], 1
mov byte [esi], 7
mov cl, byte [eax]
add esi, 1
mov byte [esi], cl
add esi, 1
sub eax, 4
mov dword [esp + 0x24], eax
jmp 0x4785b2
cmp byte [esp + 0x48], 0
je 0x478568
cmp cl, 0x28
jne 0x47852f
cmp edx, 0xa
jge 0x4786b1
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 1
add eax, 4
mov dword [eax], edx
mov byte [esi], 6
add esi, 1
mov byte [esi], dl
add esi, 1
add edx, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
jmp 0x4785b2
cmp cl, 0x29
jne 0x478568
cmp byte [ebp], 6
je 0x4786c7
cmp dword [esp + 0x1c], 0
jle 0x4786dd
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], 1
mov byte [esi], 7
mov cl, byte [eax]
add esi, 1
mov byte [esi], cl
add esi, 1
sub eax, 4
mov dword [esp + 0x24], eax
jmp 0x4785b2
cmp byte [esp + 0x44], 0
je 0x47857e
mov byte [esi], 1
mov dl, byte [edi]
add esi, 1
mov byte [esi], dl
add esi, 1
jmp 0x4785b2
mov ebp, dword [esp + 0x20]
mov byte [esi], 3
movzx eax, byte [edi]
push 0
push eax
mov ecx, ebp
add esi, 1
call fcn.00478050
lea eax, [ebp + 0x8a8]
mov ecx, 0x20
mov dl, byte [eax]
mov byte [esi], dl
mov byte [eax], 0
add esi, 1
add eax, 1
sub ecx, 1
jne 0x4785a0
mov eax, dword [esp + 0x14]
add eax, 1
add edi, 1
cmp eax, dword [esp + 0x40]
mov ebp, ebx
mov dword [esp + 0x14], eax
jge 0x4786f3
mov edx, dword [esp + 0x28]
jmp 0x478190
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Pattern_too_long
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, str.Missing__
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, str.Empty_closure
pop ebx
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Illegal_closure
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, str.Null_pattern_inside___
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, str.Cyclical_reference
pop ebx
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Undetermined_reference
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, str.Too_many____pairs
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, 0x4d4c2c
pop ebx
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, str.Unmatched__
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, 0x4d4c08
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [edx], 0
mov eax, 0x4d4bf0
pop ebx
add esp, 0x28
ret 0x10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax], 0
mov eax, 0x4d4be4
pop ebx
add esp, 0x28
ret 0x10
cmp dword [esp + 0x1c], 0
jle 0x47871c
cmp byte [esp + 0x48], 0
mov ecx, dword [esp + 0x18]
mov byte [ecx], 0
mov eax, 0x4d4bd8
jne 0x478748
pop edi
pop esi
pop ebp
mov eax, 0x4d4bc8
pop ebx
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x20]
mov byte [esi], 0
mov dword [edx + 0x8a4], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
cmp dword [ecx + 0x8a4], ebx
jne 0x47872d
mov byte [esi], bl
mov eax, str.No_previous_regular_expression
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10