Function at 0x1622cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
test dl, dl
je 0x1622e1
add esp, 0xfffffff0
call fcn.00013304
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, esi
call fcn.0015d7d0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
mov ebx, eax
sar ebx, 1
jns 0x16230e
adc ebx, 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
sar eax, 1
jns 0x16231d
adc eax, 0
imul ebx, eax
push ebx
lea eax, [esi + 0x3c]
mov ecx, 1
mov edx, dword [0x15c784]
call fcn.000154bc
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
mov ebx, eax
sar ebx, 1
jns 0x162348
adc ebx, 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
sar eax, 1
jns 0x162357
adc eax, 0
imul ebx, eax
push ebx
lea eax, [esi + 0x40]
mov ecx, 1
mov edx, dword [0x15c79c]
call fcn.000154bc
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
mov ebx, eax
sar ebx, 1
jns 0x162382
adc ebx, 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
sar eax, 1
jns 0x162391
adc eax, 0
imul ebx, eax
push ebx
lea eax, [esi + 0x44]
mov ecx, 1
mov edx, dword [0x15c79c]
call fcn.000154bc
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
sar eax, 1
jns 0x1623ba
adc eax, 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
sar eax, 1
jns 0x1623cc
adc eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x30]
sar eax, 1
jns 0x1623de
adc eax, 0
dec eax
test eax, eax
jl 0x1624e4
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
mov edi, eax
sar edi, 1
jns 0x162403
adc edi, 0
imul edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x34]
sar eax, 1
jns 0x162416
adc eax, 0
dec eax
test eax, eax
jl 0x1624d8
inc eax
mov dword [ebp - 0x30], eax
xor ebx, ebx
mov eax, ebx
sub eax, dword [ebp - 0x10]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00031ec8
call fcn.00012af0
lea edx, [ebx + edi]
mov ecx, dword [esi + 0x3c]
mov word [ecx + edx*2], ax
mov eax, ebx
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
add esp, 0xfffffff4
fstp xword [esp]
wait
fild dword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00031ea8
fstp qword [ebp - 0x28]
wait
fld qword [ebp - 0x28]
call fcn.00012a84
fmul dword [0x1625c0]
call fcn.00012af0
lea edx, [ebx + edi]
mov ecx, dword [esi + 0x40]
mov dword [ecx + edx*4], eax
fld qword [ebp - 0x28]
call fcn.00012ac4
fmul dword [0x1625c0]
call fcn.00012af0
lea edx, [ebx + edi]
mov ecx, dword [esi + 0x44]
mov dword [ecx + edx*4], eax
inc ebx
dec dword [ebp - 0x30]
jne 0x162425
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x1623f2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jge 0x162512
mov eax, dword [ebp - 0x10]
add eax, eax
mov ecx, 3
cdq
idiv ecx
push eax
lea eax, [esi + 0x48]
mov ecx, 1
mov edx, dword [0x15c7b4]
call fcn.000154bc
add esp, 4
jmp 0x162536
mov eax, dword [ebp - 0x14]
add eax, eax
mov ecx, 3
cdq
idiv ecx
push eax
lea eax, [esi + 0x48]
mov ecx, 1
mov edx, dword [0x15c7b4]
call fcn.000154bc
add esp, 4
mov eax, dword [esi + 0x48]
call fcn.00015300
mov edx, eax
shl edx, 2
mov eax, dword [esi + 0x48]
call fcn.00017634
xor ebx, ebx
jmp 0x16258f
mov eax, dword [esi + 0x48]
call fcn.00015300
test eax, eax
jns 0x16255e
add eax, 3
sar eax, 2
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
mov eax, dword [esi + 0x48]
call fcn.00015300
test eax, eax
jns 0x16257b
add eax, 3
sar eax, 2
push eax
lea eax, [edi + edi*4]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edx, dword [esi + 0x48]
mov dword [edx + ebx*4], eax
inc ebx
mov eax, dword [esi + 0x48]
call fcn.00015300
cmp ebx, eax
jl 0x16254f
mov eax, esi
cmp byte [ebp - 1], 0
je 0x1625b2
call fcn.0001335c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8