Function at 0x558350
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.0052df00
mov eax, dword [esp + 0x48]
test eax, eax
je 0x558697
mov eax, dword [0x68c7b4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x558432
lea eax, [esp + 0x14]
push eax
call fcn.00547860
push 0xdf
push 0x608d30
push 0x13
push 5
call fcn.00547900
lea ecx, [esp + 0x28]
push ecx
push 0x68c368
call fcn.005478b0
mov esi, eax
push 0xe1
neg esi
sbb esi, esi
push 0x608d30
inc esi
push 0x13
push 6
mov dword [esp + 0x3c], esi
call fcn.00547900
add esp, 0x2c
test esi, esi
jne 0x5583de
push 0xe6
push 0x608d30
push 0x12
push 9
call fcn.00547900
add esp, 0x10
mov eax, dword [0x68c79c]
mov edx, dword [0x68c7a0]
mov ebx, dword [0x68c7a4]
mov ecx, 5
mov esi, 0x68c784
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x58]
mov ebp, eax
add eax, esi
mov dword [esp + 0x1c], edx
cmp eax, 0x3ff
mov dword [esp + 0x20], ebx
mov dword [0x68c79c], eax
jb 0x55843c
xor edx, edx
mov ecx, 0x3ff
div ecx
mov dword [0x68c798], ecx
mov dword [0x68c79c], edx
jmp 0x558453
mov dword [esp + 0x10], 0
jmp 0x5583c8
mov ecx, dword [0x68c798]
cmp ecx, 0x3ff
jae 0x558453
cmp eax, ecx
jbe 0x558453
mov dword [0x68c798], eax
mov eax, esi
mov ecx, 0x14
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
test edx, edx
setg cl
imul esi
sar edx, 3
mov esi, dword [esp + 0x10]
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ebx
add edx, ecx
test esi, esi
mov dword [0x68c7a4], edx
jne 0x55849d
push 0x106
push 0x608d30
push 0x12
push 0xa
call fcn.00547900
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call fcn.0056b4e0
mov ebx, dword [esp + 0x5c]
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], 0
jle 0x558615
cmp ebx, 0x14
mov esi, ebx
jle 0x5584ca
mov esi, 0x14
push 0
call fcn.00563420
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.0056b520
add esp, 0xc
test eax, eax
je 0x558686
lea eax, [esp + 0x24]
push 0x14
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0056b6e0
add esp, 0xc
test eax, eax
je 0x558686
lea edi, [esi + ebp - 0x3ff]
test edi, edi
jle 0x55854c
mov edx, esi
lea eax, [ebp + 0x68c370]
sub edx, edi
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.0056b6e0
add esp, 0xc
test eax, eax
je 0x558686
push edi
lea edx, [esp + 0x3c]
push 0x68c370
push edx
call fcn.0056b6e0
add esp, 0xc
test eax, eax
je 0x558686
jmp 0x558569
lea eax, [ebp + 0x68c370]
push esi
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0056b6e0
add esp, 0xc
test eax, eax
je 0x558686
mov edx, dword [esp + 0x54]
push esi
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0056b6e0
add esp, 0xc
test eax, eax
je 0x558686
lea ecx, [esp + 0x1c]
push 8
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0056b6e0
add esp, 0xc
test eax, eax
je 0x558686
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0056b800
add esp, 0xc
test eax, eax
je 0x558686
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
inc edi
add edx, esi
xor eax, eax
mov dword [esp + 0x20], edi
test esi, esi
mov dword [esp + 0x54], edx
jle 0x5585f7
mov dl, byte [esp + eax + 0x24]
mov cl, byte [ebp + 0x68c370]
xor cl, dl
mov byte [ebp + 0x68c370], cl
inc ebp
cmp ebp, 0x3ff
jl 0x5585f2
xor ebp, ebp
inc eax
cmp eax, esi
jl 0x5585d5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
add eax, 0x14
sub ebx, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x5584be
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x55862f
push 0x13b
push 0x608d30
push 0x12
push 9
call fcn.00547900
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x24]
mov bl, byte [eax + 0x68c784]
xor bl, cl
mov byte [eax + 0x68c784], bl
inc eax
cmp eax, 0x14
jl 0x558631
fld qword [0x68c7a8]
fcomp qword [0x608d28]
fnstsw ax
test ah, 1
je 0x55866c
fld qword [0x68c7a8]
fadd qword [esp + 0x5c]
fstp qword [0x68c7a8]
test esi, esi
jne 0x558686
push 0x148
push 0x608d30
push 0x12
push 0xa
call fcn.00547900
add esp, 0x10
lea edx, [esp + 0x38]
push edx
call fcn.0056bd60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret