Function at 0x5559d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebp
push 0x555dfe
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 0x10]
shr edx, 0x18
mov dword [ebp - 0x54], edx
xor edx, edx
mov dl, al
mov edx, dword [edx*4 + 0x56a0b8]
mov dword [ebp - 0x64], edx
xor edx, edx
mov dl, al
mov edx, dword [edx*4 + 0x56a0a4]
dec edx
mov dword [ebp - 0x68], edx
and eax, 0x7f
mov eax, dword [eax*4 + 0x56a0cc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x7a]
mov edx, dword [0x56aa24]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 8]
shr eax, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
call fcn.00406840
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
shr eax, cl
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jge 0x555dd4
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
shl eax, cl
sub eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jge 0x555a99
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
call fcn.00406840
cmp eax, dword [ebp - 0x2c]
jg 0x555ab1
mov eax, dword [ebp - 0xc]
call fcn.00406848
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7f000000
mov dword [ebp - 0x34], 0x81000000
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, eax
jl 0x555b39
inc edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00406840
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x555b31
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
and eax, 0x7fffffff
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x30]
jge 0x555b23
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x34]
jle 0x555b31
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x74]
jne 0x555ad0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jl 0x555dc5
mov ecx, dword [ebp - 0x64]
shr dword [ebp - 0x30], cl
mov ecx, dword [ebp - 0x64]
shr dword [ebp - 0x34], cl
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
call fcn.00406840
cmp eax, dword [ebp - 0x4c]
jge 0x555ba4
mov eax, dword [ebp - 0x4c]
add eax, 0x40
push eax
lea eax, [ebp - 0x44]
mov ecx, 1
mov edx, dword [0x555984]
call fcn.00406a1c
add esp, 4
mov eax, dword [ebp - 0x4c]
add eax, 0x40
push eax
lea eax, [ebp - 0x48]
mov ecx, 1
mov edx, dword [0x5559ac]
call fcn.00406a1c
add esp, 4
mov ebx, dword [0x56a3b0]
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
call ebx
cmp byte [ebp + 0xc], 0
jne 0x555c75
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, eax
jl 0x555d4f
inc edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00406840
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x58], eax
cmp esi, dword [ebp - 0x14]
jge 0x555c64
mov eax, dword [ebp - 0x58]
mov ebx, dword [eax + esi*4]
and ebx, 0x7fffffff
mov eax, dword [ebp - 0x68]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
add dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add dword [eax + ebx*4 + 4], edx
inc esi
mov eax, dword [ebp - 0x58]
mov ebx, dword [eax + esi*4]
and ebx, 0x7fffffff
mov eax, dword [ebp - 0x68]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
sub dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
sub dword [eax + ebx*4 + 4], edx
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x555bf9
inc dword [ebp - 0x10]
dec dword [ebp - 0x74]
jne 0x555bd5
jmp 0x555d4f
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, eax
jl 0x555d4f
inc edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00406840
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
cmp esi, dword [ebp - 0x14]
jge 0x555d43
mov eax, dword [ebp - 0x58]
mov ebx, dword [eax + esi*4]
inc esi
test ebx, 0x80000000
je 0x555ccf
mov dword [ebp - 0x60], 1
jmp 0x555cd6
mov dword [ebp - 0x60], 0xffffffff
and ebx, 0x7fffffff
cmp dword [ebp - 0x5c], 0
jne 0x555d08
mov eax, dword [ebp - 0x68]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
add dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add dword [eax + ebx*4 + 4], edx
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x555d3a
mov eax, dword [ebp - 0x68]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
sub dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
sub dword [eax + ebx*4 + 4], edx
cmp esi, dword [ebp - 0x14]
jl 0x555cb7
inc dword [ebp - 0x10]
dec dword [ebp - 0x74]
jne 0x555c8a
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
and eax, 0xffffff
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
dec eax
test eax, eax
jl 0x555d93
inc eax
mov dword [ebp - 0x74], eax
xor esi, esi
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + esi*4]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
imul dword [ebp - 0x6c]
and eax, 0xff00
shl eax, 0x10
or eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x48]
mov dword [edx + esi*4], eax
inc esi
dec dword [ebp - 0x74]
jne 0x555d6d
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004d21d0
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
sub edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
call fcn.0043a324
mov ecx, eax
mov eax, dword [ebp - 0x48]
pop edx
call dword [ebp - 0x70]
call fcn.004c8714
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jl 0x555a77
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555e05
lea eax, [ebp - 0x48]
mov edx, dword [0x5559ac]
call fcn.00406b48
lea eax, [ebp - 0x44]
mov edx, dword [0x555984]
call fcn.00406b48
ret