Function at 0x543140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [esp + 0x20], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
call edx
mov dword [esp + 0x1c], eax
lea eax, [edi + 8]
mov dword [esp + 0x24], eax
cmp esi, dword [edi + 0xc]
jne 0x54318c
cmp dword [eax], 0
jne 0x5433a7
mov dword [esp + 0x24], eax
jmp 0x5431a0
mov dword [esp + 0x24], eax
mov eax, dword [eax]
test eax, eax
je 0x5431a0
push eax
call dword [0x5b46d4]
add esp, 4
mov eax, esi
sar eax, 1
mov dword [esp + 0x28], eax
add eax, 2
lea eax, [esi + eax*2]
shl eax, 2
push eax
call dword [0x5b46d8]
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x5437a3
mov edx, dword [esp + 0x28]
lea eax, [ecx + 0x10]
mov dword [ecx + 4], eax
mov dword [esp + 0x30], 0
lea ecx, [eax + edx*8]
mov eax, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax], esi
test edx, edx
jle 0x54333a
cmp edx, 2
jb 0x5432b7
movd xmm2, esi
mov eax, edx
cvtdq2pd xmm2, xmm2
xor edi, edi
unpcklpd xmm2, xmm2
movups xmmword [esp + 0x50], xmm2
and eax, 0x80000001
jns 0x543219
dec eax
or eax, 0xfffffffe
inc eax
mov esi, dword [esp + 0x18]
mov ecx, edx
sub ecx, eax
add esi, 0x14
mov dword [esp + 0x38], ecx
nop dword [eax + eax]
movd xmm0, edi
pshufd xmm1, xmm0, 0
movq xmm0, qword [0x5d6000]
paddd xmm1, xmm0
cvtdq2pd xmm0, xmm1
mulpd xmm0, xmmword [0x5d6080]
divpd xmm0, xmm2
movaps xmmword [esp + 0x40], xmm0
call fcn.00593f30
cvtpd2ps xmm1, xmm0
movaps xmm0, xmmword [esp + 0x40]
movss dword [esi - 4], xmm1
shufps xmm1, xmm1, 0xe5
movss dword [esi + 4], xmm1
call fcn.00593ec0
xorps xmm0, xmmword [0x5d60d0]
lea esi, [esi + 0x10]
movups xmm2, xmmword [esp + 0x50]
add edi, 2
cvtpd2ps xmm0, xmm0
movss dword [esi - 0x10], xmm0
shufps xmm0, xmm0, 0xe5
movss dword [esi - 8], xmm0
cmp edi, dword [esp + 0x38]
jl 0x543230
cmp edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x14]
jge 0x543336
movsd xmm2, qword [0x5d5df0]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
divsd xmm2, xmm0
movsd qword [esp + 0x40], xmm2
nop dword [eax]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x5d5e58]
mulsd xmm1, xmm2
movaps xmm0, xmm1
call fcn.00593ee0
mov ecx, dword [esp + 0x18]
movaps xmm1, xmm0
movsd xmm2, qword [esp + 0x40]
shufpd xmm1, xmm0, 1
xorps xmm0, xmmword [0x5d60d0]
cvtsd2ss xmm1, xmm1
cvtsd2ss xmm0, xmm0
movss dword [ecx + edi*8 + 0x10], xmm1
movss dword [ecx + edi*8 + 0x14], xmm0
inc edi
cmp edi, esi
jl 0x5432e0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
test esi, esi
jle 0x543397
mov edi, dword [esp + 0x28]
xor edx, edx
mov ecx, eax
test edi, edi
je 0x543372
nop dword [eax]
mov eax, ecx
sar ecx, 1
and eax, 1
sar edi, 1
lea edx, [eax + edx*2]
jne 0x543360
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov dword [edi + ecx*8], edx
cmp eax, edx
jge 0x54338a
mov dword [edi + ecx*8 + 4], eax
inc ecx
mov dword [esp + 0x30], ecx
inc eax
mov dword [esp + 0x34], eax
cmp eax, esi
jl 0x543351
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edi + 0xc], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov dword [esp + 0x18], eax
cmp esi, dword [edi + 4]
jbe 0x5433d9
push esi
mov ecx, edi
call fcn.00545c90
mov ecx, dword [edi + 4]
cmp esi, ecx
jbe 0x5433d2
inc ecx
cmp ecx, esi
jb 0x5433c8
mov dword [edi + 4], ecx
jmp 0x5433e6
jae 0x5433e6
mov dword [edi + 4], esi
jmp 0x5433e6
jae 0x5433e6
push esi
mov ecx, edi
mov dword [edi + 4], esi
call fcn.00545c90
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push eax
push dword [esp + 0x20]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [esp + 0x20]
mov edx, dword [edi]
imul eax, esi
shr eax, 1
push eax
call dword [edx + 0xc]
mov eax, dword [edi]
mov ecx, esi
shr ecx, 1
mov dword [esp + 0x3c], ecx
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov edx, dword [esp + 0x1c]
mov ecx, eax
test edx, edx
je 0x54379b
mov eax, dword [esp + 0x18]
lea edi, [edx*4]
sub ecx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], ecx
xorps xmm3, xmm3
nop word [eax + eax]
cmp byte [ebp + 0x10], 0
je 0x543596
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14], esi
je 0x543492
push esi
mov ecx, eax
call fcn.005437d0
mov eax, dword [esp + 0x14]
xorps xmm3, xmm3
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
cmp esi, 4
jb 0x543545
mov edx, dword [esp + 0x14]
lea edi, [esi - 4]
shr edi, 2
inc edi
mov dword [esp + 0x34], edi
mov edx, dword [edx + 0x10]
mov dword [esp + 0x38], edx
add edx, 8
shl edi, 2
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x30]
nop dword [eax]
movss xmm0, dword [edx - 8]
lea edx, [edx + 0x10]
mulss xmm0, dword [eax]
add eax, edi
mov dword [ecx + 4], 0
movss dword [ecx], xmm0
movss xmm0, dword [edx - 0x14]
mulss xmm0, dword [eax]
add eax, edi
mov dword [ecx + 0xc], 0
movss dword [ecx + 8], xmm0
movss xmm0, dword [eax]
add eax, edi
mulss xmm0, dword [edx - 0x10]
mov dword [ecx + 0x14], 0
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [edx - 0xc]
mulss xmm0, dword [eax]
add eax, edi
mov dword [ecx + 0x1c], 0
movss dword [ecx + 0x18], xmm0
add ecx, 0x20
sub dword [esp + 0x34], 1
jne 0x5434d0
mov edx, dword [esp + 0x28]
cmp edx, esi
jb 0x54355c
jmp 0x543626
test esi, esi
je 0x543626
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
sub esi, dword [esp + 0x28]
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x30]
nop dword [eax + eax]
movss xmm0, dword [eax]
lea ecx, [ecx + 8]
mulss xmm0, dword [edx]
lea edx, [edx + 4]
add eax, edi
mov dword [ecx - 4], 0
movss dword [ecx - 8], xmm0
sub esi, 1
jne 0x543570
jmp 0x543626
mov edx, dword [esp + 0x14]
mov ecx, eax
xor eax, eax
mov edx, dword [edx]
cmp esi, 4
jb 0x543607
lea eax, [esi - 4]
shr eax, 2
inc eax
mov dword [esp + 0x38], eax
mov esi, eax
shl eax, 2
mov dword [esp + 0x34], eax
nop dword [eax]
mov eax, dword [ecx]
add ecx, edi
mov dword [edx], eax
mov dword [edx + 4], 0
mov eax, dword [ecx]
add ecx, edi
mov dword [edx + 8], eax
mov dword [edx + 0xc], 0
mov eax, dword [ecx]
add ecx, edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 0
mov eax, dword [ecx]
add ecx, edi
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
add edx, 0x20
sub esi, 1
jne 0x5435c0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmp eax, esi
jae 0x543626
sub esi, eax
nop dword [eax]
mov eax, dword [ecx]
lea edx, [edx + 8]
add ecx, edi
mov dword [edx - 8], eax
mov dword [edx - 4], 0
sub esi, 1
jne 0x543610
mov eax, dword [esp + 0x14]
push 1
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov esi, dword [eax]
push dword [esi + 4]
mov ecx, dword [esi]
call fcn.00541480
mov ecx, dword [esi + 0xc]
add esp, 8
mov eax, dword [esi + 8]
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x543696
mov edi, dword [esp + 0x34]
mov edx, dword [eax]
mov esi, dword [eax + 4]
add eax, 8
sub dword [esp + 0x38], 1
mov dword [esp + 0x34], eax
movss xmm0, dword [edi + edx*8]
mov eax, dword [edi + esi*8]
movss xmm1, dword [edi + edx*8 + 4]
mov ecx, dword [edi + esi*8 + 4]
mov dword [edi + edx*8], eax
mov eax, dword [esp + 0x34]
mov dword [edi + edx*8 + 4], ecx
movss dword [edi + esi*8], xmm0
movss dword [edi + esi*8 + 4], xmm1
jne 0x543657
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x54377e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x40]
cmp byte [ebp + 0x10], 0
mov esi, dword [ecx]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x38], eax
je 0x5436f1
nop
movss xmm1, dword [esi + 4]
movss xmm0, dword [esi]
add esi, 8
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
sqrtss xmm0, xmm0
mulss xmm0, dword [ecx + 0x18]
movss dword [eax], xmm0
add eax, edi
sub edx, 1
jne 0x5436c0
jmp 0x54377e
movss xmm1, dword [esi + edx*8 - 4]
movss xmm0, dword [esi + edx*8 - 8]
mulss xmm0, xmm0
mov dword [esp + 0x34], edx
mulss xmm1, xmm1
addss xmm0, xmm1
sqrtss xmm0, xmm0
cvtps2pd xmm2, xmm0
movsd qword [esp + 0x28], xmm2
nop word [eax + eax]
movss xmm1, dword [esi + 4]
movss xmm0, dword [esi]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
sqrtss xmm0, xmm0
cvtps2pd xmm0, xmm0
subsd xmm0, xmm2
maxsd xmm0, xmm3
addsd xmm0, qword [0x5d5df0]
call fcn.005965bc
mulsd xmm0, qword [0x5d5dd8]
add esi, 8
mov eax, dword [esp + 0x38]
movsd xmm2, qword [esp + 0x28]
xorps xmm3, xmm3
cvtsd2ss xmm0, xmm0
movss dword [eax], xmm0
add eax, edi
sub dword [esp + 0x34], 1
mov dword [esp + 0x38], eax
jne 0x543720
mov eax, dword [esp + 0x18]
xorps xmm3, xmm3
mov esi, dword [esp + 0x20]
add eax, 4
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
jne 0x543470
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x24]
mov dword [edi + 0xc], 0
mov dword [eax], ecx
lea ecx, [esp + 0x40]
call fcn.00410c00
push 0x6005cc
lea eax, [esp + 0x44]
push eax
call fcn.005936f7
int3