Function at 0x553ee0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov ebp, edi
sub ebp, ecx
add eax, ecx
add ebp, 0x7c8
cmp byte [esp + 0x50], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], eax
jne 0x553f2e
cmp eax, 0x108
jbe 0x5542c3
add eax, 0xfffffef8
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x5542c3
lea ebx, [ebx]
lea eax, [edi + 0x887d2]
cmp ebx, eax
jb 0x553f84
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
mov ecx, edi
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], edx
mov dword [edi + 0x20], eax
mov dword [edi + 8], esi
call fcn.00553dc0
mov ebx, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x5542b9
movzx edx, byte [esi + ebp + 3]
movzx ecx, byte [esi + ebp + 2]
mov al, byte [esi + ebp]
movzx ebx, byte [esi + ebp + 4]
and edx, 0x3ff
and ecx, 0xfff
add edx, edx
add edx, edx
xor edx, ecx
movzx ecx, byte [esi + ebp + 1]
and ecx, 0x3fff
add edx, edx
add edx, edx
xor edx, ecx
movzx ecx, byte [esi + ebp + 5]
add ecx, ecx
xor ecx, ebx
mov byte [esp + 0x50], al
shl ecx, 7
movzx eax, al
xor ecx, eax
add edx, edx
and ecx, 0xffff
add edx, edx
xor edx, ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + edx*4 + 0x307d0]
sub ecx, esi
cmp ecx, 0x102
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], 0x102
jae 0x553fff
mov dword [esp + 0x1c], ecx
mov ebx, esi
sub ebx, dword [edi + 0x2c]
mov dword [esp + 0x20], ebx
jns 0x554010
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov ecx, 5
mov dword [esp + 0x34], 0
jl 0x55418c
cmp dword [esp + 0x1c], 6
jb 0x55418c
mov edx, dword [esi + ebp]
mov dword [esp + 0x40], edx
movzx edx, word [esi + ebp + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov edx, eax
sub edx, ecx
lea edx, [edx + ebp + 5]
mov bl, byte [edx + ecx]
mov dword [esp + 0x2c], edx
lea edx, [esi + ebp]
cmp bl, byte [edx + ecx]
jne 0x554104
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
cmp dword [edx], ebx
jne 0x554104
mov bx, word [esp + 0x44]
cmp word [edx + 4], bx
jne 0x554104
mov ebx, 6
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
jbe 0x5540c8
lea ebx, [esi + ebp]
lea edx, [ebx + 6]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
sub edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
mov ebx, dword [esp + 0x24]
jne 0x5540c8
add ebx, 1
add edx, 1
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edx
jb 0x5540a1
cmp ebx, ecx
jbe 0x554104
mov edx, ecx
sub edx, eax
lea edx, [edx + esi - 5]
mov dword [esp + 0x34], edx
mov edx, ebx
sub edx, ecx
add eax, edx
cmp eax, esi
jne 0x5540ee
mov eax, dword [esp + 0x48]
add dword [esp + 0x20], edx
mov ecx, ebx
jmp 0x554110
add eax, edx
and eax, 0x7fff
mov eax, dword [edi + eax*4 + 0x107d0]
add dword [esp + 0x20], edx
mov ecx, ebx
jmp 0x554110
and eax, 0x7fff
mov eax, dword [edi + eax*4 + 0x107d0]
cmp eax, dword [esp + 0x20]
jge 0x554044
cmp ecx, 6
jb 0x554188
xor eax, eax
cmp ecx, 4
mov dword [esp + 0x50], eax
jb 0x554140
lea ebx, [ebx]
add eax, 1
cmp ecx, dword [eax*4 + 0x65afe4]
jae 0x554130
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x10]
mov dx, word [esp + 0x34]
add eax, 0x101
mov word [ebx], ax
mov eax, dword [esp + 0x18]
mov word [eax], dx
add eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dl, cl
sub dl, 3
mov byte [eax], dl
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
movzx edx, byte [eax + 0x65b060]
add ebx, 2
add dword [edi + 0x18], edx
mov edx, dword [esp + 0x38]
jmp 0x5541a1
mov edx, dword [esp + 0x38]
movzx ax, byte [esp + 0x50]
mov ebx, dword [esp + 0x10]
mov word [ebx], ax
add ebx, 2
mov ecx, 1
mov eax, dword [edi + 0x1c]
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x5541b9
cmp ecx, 1
jbe 0x554215
mov dword [edi + 0x1c], ecx
lea ecx, [eax + 1]
jmp 0x55421d
cmp ecx, eax
jbe 0x5541f5
movzx ax, byte [esi + ebp - 1]
mov word [ebx - 4], ax
mov eax, dword [esp + 0x18]
mov bx, word [eax - 2]
mov word [eax - 4], bx
add eax, 0xfffffffe
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov bl, byte [eax - 1]
mov byte [eax - 2], bl
add eax, 0xffffffff
mov dword [edi + 0x1c], ecx
mov dword [esp + 0x14], eax
mov ecx, 1
jmp 0x55421d
sub ebx, 2
cmp ecx, 1
mov dword [esp + 0x10], ebx
jbe 0x55420b
sub dword [esp + 0x18], 2
sub dword [esp + 0x14], 1
lea ecx, [eax - 1]
mov dword [edi + 0x1c], 0
test ecx, ecx
jbe 0x5542b9
mov ebx, dword [edi + edx*4 + 0x307d0]
mov eax, esi
and eax, 0x7fff
mov dword [edi + eax*4 + 0x107d0], ebx
mov dword [edi + edx*4 + 0x307d0], esi
add esi, 1
sub ecx, 1
je 0x5542b5
movzx eax, byte [esi + ebp + 3]
movzx edx, byte [esi + ebp + 2]
movzx ebx, byte [esi + ebp + 4]
and eax, 0x3ff
and edx, 0xfff
add eax, eax
add eax, eax
xor eax, edx
movzx edx, byte [esi + ebp + 1]
and edx, 0x3fff
add eax, eax
add eax, eax
xor eax, edx
movzx edx, byte [esi + ebp + 5]
add edx, edx
xor edx, ebx
movzx ebx, byte [esi + ebp]
shl edx, 7
xor edx, ebx
add eax, eax
and edx, 0xffff
add eax, eax
xor eax, edx
mov ebx, dword [edi + eax*4 + 0x307d0]
mov edx, esi
and edx, 0x7fff
mov dword [edi + edx*4 + 0x107d0], ebx
mov dword [edi + eax*4 + 0x307d0], esi
add esi, 1
sub ecx, 1
jne 0x554241
mov ebx, dword [esp + 0x10]
cmp esi, dword [esp + 0x28]
jb 0x553f40
mov eax, esi
sub eax, dword [edi + 0x10]
cmp eax, 0xc000
jb 0x5542f8
lea ebp, [eax - 0x8000]
mov eax, dword [edi + 0xc]
sub eax, ebp
push eax
lea ecx, [edi + ebp + 0x7c8]
push ecx
lea edx, [edi + 0x7c8]
push edx
call fcn.005f8630
add dword [edi + 0x10], ebp
add esp, 0xc
sub dword [edi + 0xc], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [edi + 8], esi
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4