Function at 0x42ee40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2c], edx
xor edx, edx
mov dword [ebp - 0x34], eax
push esi
push edi
mov ecx, dword [eax + 8]
lea edi, [eax + 0xc]
test ecx, ecx
mov dword [ebp - 0x24], 1
cmovle ecx, edx
xor esi, esi
mov dword [ebp - 0x38], ecx
movsx eax, word [edi]
lea edx, [edi + 2]
mov dword [ebp - 0x30], edx
lea ecx, [esi*4]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x40], esi
imul eax, dword [ecx + edx]
lea edi, [edi + 4]
mov edx, dword [ebp - 0x30]
inc esi
cmp word [edx], 1
mov dword [ebp + ecx - 0x20], eax
jne 0x42ee86
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
movsx esi, word [edi + esi*4 + 0xa]
test eax, eax
js 0x42f22c
movss xmm6, dword [0x5baf30]
movss xmm5, dword [0x5ba728]
movss xmm7, dword [0x5baa80]
nop dword [eax]
lea edx, [eax*4]
test eax, eax
je 0x42eef2
movsx ecx, word [edx + edi + 0xa]
jmp 0x42eef7
mov ecx, 1
movsx eax, word [edi + eax*4 + 0xc]
add eax, 0xfffffffe
mov dword [ebp - 0x3c], ecx
cmp eax, 3
ja case.default.0x42ef0b
jmp dword [eax*4 + 0x42f250]
mov ecx, dword [ebp + edx - 0x24]
cmp esi, 4
jne 0x42f23f
test ecx, ecx
jle case.default.0x42ef0b
mov eax, dword [ebp - 0x2c]
add eax, 0x28
nop dword [eax]
movss xmm2, dword [eax - 0x28]
movss xmm3, dword [eax - 8]
movaps xmm0, xmm2
movss xmm4, dword [eax - 4]
subss xmm0, xmm3
addss xmm2, xmm3
movss dword [eax - 8], xmm0
movss xmm1, dword [eax - 0x24]
movaps xmm0, xmm1
addss xmm1, xmm4
subss xmm0, xmm4
movss dword [eax - 4], xmm0
movss xmm0, dword [eax - 0x20]
movss dword [eax - 0x28], xmm2
movss dword [eax - 0x24], xmm1
movss xmm4, dword [eax + 4]
movaps xmm3, xmm4
addss xmm3, dword [eax]
subss xmm4, dword [eax]
mulss xmm3, xmm5
mulss xmm4, xmm5
subss xmm0, xmm3
movss dword [eax], xmm0
movss xmm0, dword [eax - 0x1c]
subss xmm0, xmm4
movss dword [eax + 4], xmm0
addss xmm4, dword [eax - 0x1c]
addss xmm3, dword [eax - 0x20]
movss xmm2, dword [eax - 0x18]
movaps xmm0, xmm2
movss dword [eax - 0x1c], xmm4
movss dword [eax - 0x20], xmm3
movss xmm3, dword [eax + 0xc]
movss xmm4, dword [eax + 8]
subss xmm0, xmm3
xorps xmm4, xmm6
addss xmm2, xmm3
movss dword [eax + 8], xmm0
movss xmm0, dword [eax - 0x14]
subss xmm0, xmm4
movss dword [eax + 0xc], xmm0
addss xmm4, dword [eax - 0x14]
movss xmm0, dword [eax - 0x10]
movss dword [eax - 0x18], xmm2
movss dword [eax - 0x14], xmm4
movss xmm4, dword [eax + 0x14]
movaps xmm3, xmm4
subss xmm3, dword [eax + 0x10]
addss xmm4, dword [eax + 0x10]
mulss xmm3, xmm5
mulss xmm4, xmm7
subss xmm0, xmm3
movss dword [eax + 0x10], xmm0
movss xmm0, dword [eax - 0xc]
subss xmm0, xmm4
movss dword [eax + 0x14], xmm0
addss xmm3, dword [eax - 0x10]
addss xmm4, dword [eax - 0xc]
movss dword [eax - 0x10], xmm3
movss dword [eax - 0xc], xmm4
add eax, 0x40
sub ecx, 1
jne 0x42ef30
jmp case.default.0x42ef0b
mov edx, dword [ebp + edx - 0x24]
push ecx
mov ecx, dword [ebp - 0x38]
push edx
push esi
shl edx, cl
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0042e750
jmp 0x42f1ff
mov edx, dword [ebp + edx - 0x24]
mov eax, edx
mov ecx, dword [ebp - 0x38]
shl eax, cl
mov ecx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x30]
imul ecx, esi
mov dword [ebp - 0x30], edx
movss xmm0, dword [eax + ecx*8 + 4]
movss dword [ebp - 0x50], xmm0
test edx, edx
jle case.default.0x42ef0b
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x48], edi
lea ecx, [eax*8]
shl eax, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], eax
nop
mov ecx, dword [ebp - 0x34]
mov eax, edi
mov dword [ebp - 0x44], esi
lea edi, [esi + esi]
mov ecx, dword [ecx + 0x30]
mov edx, ecx
movss xmm3, dword [edx]
movss xmm6, dword [edx + 4]
movaps xmm7, xmm3
mulss xmm3, dword [eax + esi*8 + 4]
movaps xmm0, xmm6
add edx, dword [ebp - 0x4c]
mulss xmm0, dword [eax + esi*8 + 4]
mulss xmm6, dword [eax + esi*8]
mulss xmm7, dword [eax + esi*8]
movss xmm5, dword [eax + edi*8]
addss xmm6, xmm3
movss xmm3, dword [ecx]
subss xmm7, xmm0
movaps xmm4, xmm3
movss xmm0, dword [eax + edi*8 + 4]
mulss xmm0, dword [ecx + 4]
mulss xmm3, dword [eax + edi*8 + 4]
mulss xmm4, xmm5
mulss xmm5, dword [ecx + 4]
add ecx, dword [ebp - 0x28]
subss xmm4, xmm0
movss xmm0, dword [eax]
addss xmm5, xmm3
movaps xmm2, xmm4
addss xmm2, xmm7
movaps xmm3, xmm5
subss xmm7, xmm4
addss xmm3, xmm6
subss xmm6, xmm5
movaps xmm1, xmm2
mulss xmm1, dword [0x5ba6ec]
mulss xmm6, dword [ebp - 0x50]
subss xmm0, xmm1
mulss xmm7, dword [ebp - 0x50]
movaps xmm1, xmm3
mulss xmm1, dword [0x5ba6ec]
movss dword [eax + esi*8], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm1
movss dword [eax + esi*8 + 4], xmm0
movaps xmm0, xmm6
addss xmm2, dword [eax]
addss xmm3, dword [eax + 4]
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
addss xmm0, dword [eax + esi*8]
movss dword [eax + edi*8], xmm0
movss xmm0, dword [eax + esi*8 + 4]
subss xmm0, xmm7
movss dword [eax + edi*8 + 4], xmm0
movss xmm0, dword [eax + esi*8]
addss xmm7, dword [eax + esi*8 + 4]
subss xmm0, xmm6
movss dword [eax + esi*8 + 4], xmm7
movss dword [eax + esi*8], xmm0
add eax, 8
sub dword [ebp - 0x44], 1
jne 0x42f0c0
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
lea eax, [ecx*8]
add edi, eax
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x48], edi
jne 0x42f0b0
mov edi, dword [ebp - 0x34]
jmp 0x42f202
mov edx, dword [ebp + edx - 0x24]
push ecx
mov ecx, dword [ebp - 0x38]
push edx
push esi
shl edx, cl
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0042ea30
add esp, 0x10
movss xmm5, dword [0x5ba728]
movss xmm6, dword [0x5baf30]
movss xmm7, dword [0x5baa80]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
sub eax, 1
mov dword [ebp - 0x40], eax
jns 0x42eee0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00457d6e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x4c
mov edx, 0x597c90
mov ecx, str.assertion_failed:_m4
call fcn.004127a0
adc ch, bh
inc edx
add byte [ecx - 0x10], ch
inc edx
add byte [edi - 0x10], cl
inc edx
add dl, ch
int1
inc edx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp