Function at 0x1559803d
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], esi
lea esi, [ebp + 4]
mov dword [ebp - 0x48], edi
mov ebx, dword [esi + 4]
push ebx
push ebx
sub esi, 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
mov eax, 0xdbf619d9
mov eax, 0xfffffff
mov edi, dword [ebx + 0xc]
mov edx, dword [0x155d7bd0]
mov ebx, dword [ebx]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
pop ecx
and ebx, eax
and edi, eax
mov eax, 0x15580000
mov ecx, eax
add ebx, eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x155980fd
and dword [ebp - 4], 0
test edi, edi
jbe 0x15598328
mov ecx, 0x7fffffff
mov esi, 0x5d320f68
mov eax, dword [ebp - 4]
movzx edx, byte [eax + ebx]
add edx, esi
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x70da
rol eax, 8
ror edx, 8
xor eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], edi
jb 0x155980b0
jmp 0x15598325
lea ecx, [edi + ebx]
mov edx, ebx
sub edx, eax
mov esi, edx
and esi, 0xfffff000
mov dword [ebp - 4], esi
add edi, edx
mov esi, edx
sub esi, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov edx, edi
mov ecx, dword [0x1558003c]
and edx, 0xfffff000
sub edi, edx
mov dword [ebp - 0x34], edi
mov edi, dword [ecx + 0x155800a0]
add edi, eax
mov eax, dword [ecx + 0x155800a4]
mov dword [ebp - 0x38], edx
add eax, edi
mov dword [ebp - 0x30], eax
jmp 0x1559814e
mov ecx, dword [ebp - 4]
cmp dword [edi], ecx
jae 0x15598152
add edi, dword [edi + 4]
cmp edi, eax
jne 0x15598144
and dword [ebp - 0x28], 0
cmp edi, eax
je 0x15598193
mov ecx, dword [ebp - 4]
cmp dword [edi], ecx
jne 0x15598193
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x10], ecx
je 0x15598193
lea ecx, [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx]
and ecx, 0xfff
cmp ecx, esi
jae 0x15598193
inc dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], ecx
jne 0x15598174
mov ecx, 0x7fffffff
mov esi, 0x5d320f68
jmp 0x155981a5
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
cmp edi, eax
je 0x155982d6
cmp dword [edi], edx
ja 0x155982d6
mov eax, dword [edi + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x155981e1
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x30]
je 0x155982d6
mov eax, dword [ebp - 0x38]
cmp dword [edi], eax
ja 0x155982d6
and dword [ebp - 0x28], 0
jmp 0x155981b5
mov edx, dword [ebp - 0x38]
cmp dword [edi], edx
jne 0x155981fb
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x155982d6
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
mov edx, 0xf000
test word [edi + eax*2 + 8], dx
je 0x1559819f
movzx eax, word [edi + eax*2 + 8]
mov edx, dword [edi]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x15580000]
mov dword [ebp - 8], eax
sub dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
je 0x1559827d
mov eax, dword [ebp - 4]
movzx edx, byte [eax + ebx]
add edx, esi
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x70da
rol eax, 8
ror edx, 8
xor eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x1559822f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 8], eax
movzx edx, byte [ebp + ebx - 8]
add edx, esi
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x70da
rol eax, 8
ror edx, 8
xor eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
inc ebx
cmp ebx, 4
mov dword [ebp - 0x20], eax
jb 0x15598287
mov ebx, dword [ebp - 0x10]
add ebx, 4
jmp 0x1559819f
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, ebx
mov dword [ebp - 0x1c], eax
je 0x15598325
movzx edx, byte [edi + ebx]
add edx, esi
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x70da
rol eax, 8
ror edx, 8
xor eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x155982e2
mov esi, dword [ebp - 0xc]
add dword [esi + 8], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 4]
and eax, 0xfffffff
cmp ecx, dword [eax + 0x15580000]
jne 0x15598351
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x15580004]
je 0x15598400
call fcn.1558f0da
lea ecx, [esi + 0xc]
and ecx, 0xfffffffc
mov edx, 0xfffff000
and eax, edx
lea edi, [ecx + 0xfff]
mov dword [ebp - 0x1c], eax
mov dword [esi + 8], 0x15591b38
and edi, edx
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x1560eac8]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x1560eac8], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x1559837c
mov ebx, 0xffff
div ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
inc edx
mov eax, ecx
cmp ecx, edi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x1c], 0
jae 0x155983cd
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
cmp eax, edi
jb 0x155983c1
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], 0x15591b38
mov ecx, dword [ebp - 0x50]
mov eax, dword [eax + 8]
and eax, 0xfffffff
mov edx, ecx
mov dword [ebp - 0x48], ecx
shl edx, 0x10
add eax, 0x15580000
xor edx, dword [eax]
xor edx, dword [0x15611eb0]
xor edx, ecx
and dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], edx
mov eax, 0x47900638
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
popfd
ret