Function at 0x4556f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.004b9bb0
push ebx
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x4559f2
mov eax, dword [0x5251cc]
push esi
test eax, eax
je 0x4557cd
lea eax, [esp + 0xc]
push eax
call fcn.004213a0
push 0xdf
push 0x4fa6f8
push 0x13
push 5
call fcn.00421430
lea ecx, [esp + 0x20]
push ecx
push 0x524d80
call fcn.004213f0
mov esi, eax
push 0xe1
neg esi
sbb esi, esi
push 0x4fa6f8
inc esi
push 0x13
push 6
mov dword [esp + 0x34], esi
call fcn.00421430
add esp, 0x2c
test esi, esi
jne 0x45577c
push 0xe6
push 0x4fa6f8
push 0x12
push 9
call fcn.00421430
add esp, 0x10
mov eax, dword [0x5251b4]
mov ecx, dword [0x5251bc]
mov edx, dword [0x5251b8]
push ebp
mov ebp, eax
push edi
mov dword [esp + 0x20], ecx
add eax, ebx
mov ecx, 5
mov esi, 0x52519c
lea edi, [esp + 0x24]
cmp eax, 0x3ff
mov dword [esp + 0x1c], edx
mov dword [0x5251b4], eax
rep movsd dword es:[edi], dword [esi]
jl 0x4557d7
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x5251b0], ecx
mov dword [0x5251b4], edx
jmp 0x4557ee
mov dword [esp + 8], 0
jmp 0x455766
mov ecx, dword [0x5251b0]
cmp ecx, 0x3ff
jge 0x4557ee
cmp eax, ecx
jle 0x4557ee
mov dword [0x5251b0], eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
mov esi, dword [0x5251bc]
test edx, edx
setg cl
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, esi
mov esi, dword [esp + 0x10]
add edx, ecx
test esi, esi
mov dword [0x5251bc], edx
jne 0x45583e
push 0x106
push 0x4fa6f8
push 0x12
push 0xa
call fcn.00421430
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call fcn.00431c60
add esp, 4
test ebx, ebx
jle 0x455971
mov esi, ebx
add ebx, 0x13
mov eax, 0xcccccccd
mov dword [esp + 0x58], esi
mul ebx
mov ebx, dword [esp + 0x54]
shr edx, 4
mov dword [esp + 0x14], edx
jmp 0x455874
mov esi, dword [esp + 0x58]
cmp esi, 0x14
jle 0x45587e
mov esi, 0x14
push 0
call fcn.00428ab0
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.00431cd0
lea eax, [esp + 0x30]
push 0x14
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00431e80
lea edi, [esi + ebp - 0x3ff]
add esp, 0x18
test edi, edi
jle 0x4558da
mov edx, esi
lea eax, [ebp + 0x524d88]
sub edx, edi
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00431e80
push edi
lea edx, [esp + 0x48]
push 0x524d88
push edx
call fcn.00431e80
add esp, 0x18
jmp 0x4558ef
lea eax, [ebp + 0x524d88]
push esi
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00431e80
add esp, 0xc
push esi
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.00431e80
lea eax, [esp + 0x28]
push 8
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00431e80
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00431fb0
mov edi, dword [esp + 0x44]
add esp, 0x24
inc edi
add ebx, esi
xor eax, eax
mov dword [esp + 0x20], edi
test esi, esi
jle 0x455953
mov cl, byte [esp + eax + 0x24]
mov dl, byte [ebp + 0x524d88]
xor dl, cl
mov byte [ebp + 0x524d88], dl
inc ebp
cmp ebp, 0x3ff
jl 0x45594e
xor ebp, ebp
inc eax
cmp eax, esi
jl 0x455931
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
sub ecx, 0x14
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], eax
jne 0x455870
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
call fcn.00432520
add esp, 4
test esi, esi
pop edi
pop ebp
jne 0x45599a
push 0x139
push 0x4fa6f8
push 0x12
push 9
call fcn.00421430
add esp, 0x10
xor eax, eax
mov cl, byte [esp + eax + 0x1c]
mov bl, byte [eax + 0x52519c]
xor bl, cl
mov byte [eax + 0x52519c], bl
inc eax
cmp eax, 0x14
jl 0x45599c
fld qword [0x5251c0]
fcomp qword [0x4fa6f0]
fnstsw ax
test ah, 1
je 0x4559d7
fld qword [0x5251c0]
fadd qword [esp + 0x54]
fstp qword [0x5251c0]
test esi, esi
pop esi
jne 0x4559f2
push 0x144
push 0x4fa6f8
push 0x12
push 0xa
call fcn.00421430
add esp, 0x10
pop ebx
add esp, 0x40
ret