Function at 0x4c1820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebx + 0x1ca]
push edi
mov edi, dword [ebx]
test dword [edi + 0x18], 0x40000
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], eax
je 0x4c1d6f
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0x40]
xor edx, edx
mov dword [ebp - 0xc], 0xfff0bdc0
cmp esi, edx
je 0x4c1886
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xc], edx
cmp ecx, edx
jle 0x4c1886
mov eax, dword [edi + 0x10]
add eax, 0xc
jmp 0x4c1872
xor edx, edx
cmp dword [eax], esi
je 0x4c1886
mov edx, dword [ebp - 0xc]
inc edx
add eax, 0x10
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x4c1870
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x10]
add eax, eax
mov eax, dword [ecx + eax*8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
cmp eax, edx
je 0x4c1a24
jmp 0x4c18b5
mov edi, dword [ebp - 8]
xor edx, edx
cmp byte [ebx + 0x1ca], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
je 0x4c18e0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push edx
push ecx
push edi
call fcn.00471b50
add esp, 0xc
jmp 0x4c1a89
mov esi, dword [ebx]
cmp byte [esi + 0x81], 0
mov edx, dword [ebp - 4]
mov edi, dword [edx + 8]
jne 0x4c1a3b
lea eax, [ebx + 4]
push eax
call fcn.004c0590
add esp, 4
test eax, eax
je 0x4c1a3b
inc dword [ebx + 0x44]
mov dword [ebx + 0xc], eax
xor esi, esi
cmp dword [ebp - 0x24], 0
je 0x4c1d6e
mov edx, dword [ebp - 8]
cmp byte [edx + 0x38], 0
jne 0x4c1d6e
test esi, esi
jne 0x4c1a13
mov edi, dword [ebx + 8]
test edi, edi
jne 0x4c1954
mov eax, dword [ebx]
call fcn.00481f60
mov edi, eax
mov dword [ebx + 8], eax
test edi, edi
je 0x4c1954
push 0x94
call fcn.00479760
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
mov edx, dword [edi + 0x1c]
lea edx, [edx + eax + 1]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
test eax, eax
jle 0x4c19d1
add ecx, 0x24
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov esi, dword [edi + 0x1c]
lea eax, [ecx + edx + 1]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x20], esi
jg 0x4c1995
call fcn.00479680
test eax, eax
jne 0x4c19be
mov edx, dword [edi + 4]
inc dword [edi + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x49
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add dword [ebp - 0x1c], 8
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ecx + 0x14]
jl 0x4c1975
movzx eax, byte [ecx + 0x18]
mov esi, dword [edi + 0x1c]
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x20], esi
jg 0x4c19e9
call fcn.00479680
test eax, eax
jne 0x4c1a13
mov edx, dword [edi + 4]
inc dword [edi + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x75
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c18b0
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov eax, ecx
test ecx, ecx
jne 0x4c1bac
jmp 0x4c1bbe
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx]
push esi
push edi
push ecx
call fcn.00471b50
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4c1a89
push edi
test esi, esi
je 0x4c1a6e
push esi
push str.no_such_table
push str._s:__s._s
mov esi, ebx
call fcn.0047fe90
add esp, 0x10
jmp 0x4c1a82
push str.no_such_table
push str._s:__s
mov esi, ebx
call fcn.0047fe90
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov byte [ebx + 0x11], 1
mov esi, eax
test esi, esi
je 0x4c1911
mov edi, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
push edi
push esi
push ebx
lea eax, [ebp - 0x1c]
call fcn.004850e0
add esp, 0x10
test eax, eax
jne 0x4c1911
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c1abc
mov dword [ebp - 0x10], eax
jmp 0x4c1aca
mov eax, dword [edi + 0x24]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], ecx
mov eax, ecx
mov edx, dword [ebp - 4]
xor edi, edi
cmp dword [edx + 0x14], edi
jle 0x4c1b38
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x24]
cmp dword [eax + edi*4], edx
jne 0x4c1ae7
mov dword [eax + edi*4], 0xffffffff
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10c], 0
je 0x4c1b2f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c1b02
mov edx, dword [eax + 4]
mov eax, dword [edx + edi*4]
jmp 0x4c1b06
movsx eax, word [esi + 0x24]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8]
push edx
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00483820
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [ebp - 0x10]
sete cl
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
inc edi
cmp edi, dword [edx + 0x14]
jl 0x4c1ad4
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov edi, dword [ebp - 0xc]
push eax
push 0
push ecx
push edi
mov eax, ebx
call fcn.0047bf00
mov eax, dword [ebp + 0xc]
inc dword [ebx + 0x48]
add esp, 0x10
test eax, eax
je 0x4c1b77
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x10]
push eax
push ecx
push edx
push esi
push edi
push ebx
call fcn.004977d0
add esp, 0x24
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c1b9c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push 1
push eax
mov eax, dword [ebp - 4]
push edx
push eax
push ecx
push esi
push edi
push ebx
call fcn.004977d0
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
call fcn.0046a740
jmp 0x4c1a13
cmp byte [ecx], 0
je 0x4c1bb7
inc eax
cmp byte [eax], 0
jne 0x4c1bb1
sub eax, ecx
and eax, 0x3fffffff
mov esi, dword [edx + 0x40]
add esi, 0x38
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
je 0x4c1c0a
mov edx, eax
xor eax, eax
cmp edx, eax
jle 0x4c1c01
jmp 0x4c1be0
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x57ef38]
lea edi, [eax*8]
xor esi, edi
dec edx
xor eax, esi
inc ecx
test edx, edx
jg 0x4c1be0
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
xor edx, edx
div dword [esi]
mov eax, dword [ebp - 0x1c]
jmp 0x4c1c0c
xor edx, edx
push eax
push ecx
mov eax, esi
call fcn.0046b950
add esp, 8
test eax, eax
je 0x4c1d6e
mov edi, dword [eax + 8]
xor esi, esi
cmp edi, esi
je 0x4c1d6e
lea ecx, [ecx]
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
jne 0x4c1c4e
cmp dword [ebx + 0x1b0], esi
jne 0x4c1c4e
cmp byte [ebx + 0x17], 0
je 0x4c1d63
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
push ecx
push ebx
lea eax, [ebp - 0x14]
call fcn.004850e0
add esp, 0x10
test eax, eax
je 0x4c1c82
cmp dword [ebp - 0x24], esi
je 0x4c1d6e
mov edx, dword [ebp - 8]
cmp byte [edx + 0x38], 0
jne 0x4c1d6e
jmp 0x4c1d63
mov esi, dword [ebp - 8]
mov ecx, 0x50
call fcn.00475e70
mov esi, eax
test esi, esi
je 0x4c1d56
push 0x50
push 0
push esi
call fcn.00534b40
mov edx, dword [ebp - 8]
mov eax, 1
mov word [esi + 2], ax
movsx ecx, word [esi]
push ecx
push eax
push edx
mov eax, esi
call fcn.0047c560
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x18
cmp byte [eax + 0x38], 0
jne 0x4c1d4d
movsx eax, word [esi]
lea eax, [eax + eax*8]
lea eax, [esi + eax*8 - 0x40]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov edx, dword [edi]
mov dword [esi + 0x18], edx
mov eax, dword [edi]
mov edx, dword [eax]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], edx
mov edx, 1
add word [eax + 0x28], dx
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
add dword [ebx + 0x48], edx
cmp eax, ecx
je 0x4c1d22
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push edx
push eax
push esi
push ebx
call fcn.004bf580
add esp, 0x20
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c1d43
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push 1
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push edx
push eax
push esi
push ebx
call fcn.004bf580
add esp, 0x20
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], 0
push esi
call fcn.004722d0
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.0046a740
xor esi, esi
mov edi, dword [edi + 0xc]
cmp edi, esi
jne 0x4c1c30
pop esi
pop edi
mov esp, ebp
pop ebp
ret