Function at 0x40b950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, 0x447a0000
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0xbc
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
call fcn.0040cdb0
mov dword [ebp - 0x40], eax
mov edx, dword [esi + 0x2c1c]
lea eax, [esi + 0x2400]
mov dword [ebp - 0x84], eax
call fcn.00409df0
test eax, eax
je 0x40be20
lea esi, [esi]
lea edi, [edi]
xor byte [esi + edi*4 + 0x2403], 0x80
inc edi
cmp edi, 0x1ff
jle 0x40b9e0
mov edx, dword [ebp - 0x40]
mov eax, 1
test edx, edx
je 0x40be15
fld dword [0x42be60]
mov eax, 0x3f800000
xor edi, edi
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x20], eax
mov eax, 0x40240000
fdivr dword [esi + 0x2c00]
mov dword [esp + 4], eax
mov dword [esp], 0
fstp qword [esp + 8]
call sub.msvcrt.dll_pow
fstp dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
fld dword [ebp - 0x2c]
fld dword [0x42be64]
fxch st(1)
fst dword [eax + 0x18]
mov eax, 0
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x2c1c]
mov dword [edx + 0x24], eax
mov eax, dword [edx + 0x10]
jmp 0x40ba66
mov edx, dword [ebp - 0x40]
fld dword [edx + 0x18]
fmul dword [esi + edi*4 + 0x400]
fmul st(1)
fstp dword [eax + edi*4]
inc edi
cmp edi, 0x1ff
jle 0x40ba60
fstp st(0)
mov dword [esp], 0
call fcn.00406860
mov dword [esp], 0xa
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.00406ea0
mov dword [ebp - 0x28], eax
test eax, eax
mov ebx, eax
mov dword [ebp - 0x38], 0
je 0x40be4b
mov edx, dword [ebp - 0x38]
mov edi, 1
mov ecx, dword [ebp + edx*4 - 0x28]
mov edx, 0x828
mov eax, dword [edx + ecx]
test eax, eax
je 0x40bae8
imul eax, dword [ebp - 0x3c], 0x828
fld dword [edx + ecx + 0xc]
fld dword [eax + ebx + 0xc]
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x40bae8
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp + eax*4 - 0x28]
inc edi
add edx, 0x828
cmp edi, 9
jle 0x40babf
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
test eax, eax
jle 0x40baae
imul eax, dword [ebp - 0x3c], 0x828
xor edi, edi
mov edx, dword [ebp + 0xc]
fld dword [eax + ebx + 0xc]
fadd st(0)
fstp dword [edx + 4]
mov eax, dword [eax + ebx + 4]
mov dword [edx], eax
lea esi, [esi]
push edi
fild dword [esp]
add esp, 4
fld st(0)
fmul qword [0x42be68]
fxch st(1)
fstp qword [ebp - 0x58]
fmul qword [0x42be78]
fdiv dword [0x42be70]
fst qword [esp]
fstp qword [ebp - 0x98]
call sub.msvcrt.dll_cos
fld qword [ebp - 0x98]
fxch st(1)
fstp dword [ebp - 0x50]
fstp qword [esp]
call sub.msvcrt.dll_sin
fstp dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
fld dword [esi + edi*4 + 0x2400]
fld dword [eax + 0x18]
mov eax, dword [ebp - 0x50]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x48]
fld dword [esi + edi*4 + 0x2800]
fmulp st(1)
fstp dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.004073f0
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
fld qword [0x42be78]
mov eax, dword [edx + 0x24]
mov edx, 1
mov dword [esp + 0xc], eax
mov eax, 1
fmul qword [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, 0
mov dword [esp], eax
fstp dword [esp + 8]
call fcn.00409ac0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
call fcn.004073a0
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
call fcn.004073f0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
fld dword [ebp - 0x48]
fld dword [ebp - 0x44]
fxch st(1)
fstp dword [esi + edi*4 + 0x2400]
fstp dword [esi + edi*4 + 0x2800]
inc edi
cmp edi, 0xff
jle 0x40bb20
mov eax, 1
mov edi, 0xc8
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edi
mov ebx, 0x64
xor edi, edi
mov dword [esp + 0xc], eax
add edx, 8
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
add eax, 0xc
mov dword [esp], eax
mov eax, dword [ebp - 0x84]
call fcn.00406880
mov eax, 0xc8
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 8], eax
mov eax, 0x96
add edx, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [ebp - 0x88], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x84]
call fcn.00406880
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [esi + 0x2c0c], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0x2c10], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x2c14], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x2c18], eax
push edi
fild dword [esp]
add esp, 4
fld st(0)
fmul qword [0x42be68]
fxch st(1)
fstp qword [ebp - 0x78]
fmul qword [0x42be78]
fdiv dword [0x42be70]
fst qword [esp]
fstp qword [ebp - 0x98]
call sub.msvcrt.dll_cos
fld qword [ebp - 0x98]
fxch st(1)
fstp dword [ebp - 0x70]
fstp qword [esp]
call sub.msvcrt.dll_sin
fstp dword [ebp - 0x6c]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x6c]
fld dword [esi + edi*4 + 0x2400]
fld dword [eax + 0x18]
mov eax, dword [ebp - 0x70]
fdiv st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x68]
fld dword [esi + edi*4 + 0x2800]
fdivrp st(1)
fstp dword [ebp - 0x64]
call fcn.004073a0
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
call fcn.004073f0
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
fld qword [0x42be78]
mov eax, dword [edx + 0x24]
mov edx, 1
mov dword [esp + 0xc], eax
mov eax, 1
fmul qword [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, 0
mov dword [esp], eax
fstp dword [esp + 8]
call fcn.00409ac0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
call fcn.004073f0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
fld dword [ebp - 0x68]
fld dword [ebp - 0x64]
fxch st(1)
fstp dword [esi + edi*4 + 0x2400]
fstp dword [esi + edi*4 + 0x2800]
inc edi
cmp edi, 0xff
jle 0x40bcb0
mov eax, esi
xor edi, edi
call fcn.0040a620
mov dword [esp + 0x14], edi
xor eax, eax
mov edx, 1
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x42c80000
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], 1
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a360
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.0040dc30
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call fcn.0040cee0
xor eax, eax
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
xor byte [esi + edi*4 + 0x403], 0x80
inc edi
cmp edi, 0x7ff
jg 0x40b9f1
xor byte [esi + edi*4 + 0x403], 0x80
inc edi
cmp edi, 0x7ff
jle 0x40be20
jmp 0x40b9f1
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0040cee0
add esp, 0xbc
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret