Function at 0xb21c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [str.g.0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, edx
mov edi, dword [ebx + 8]
add edi, edi
add edi, edi
push edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ecx
call fcn.00ba2640
push edi
mov esi, eax
call fcn.00ba2640
add esp, 8
xor edx, edx
mov dword [ebp - 0x38], eax
test edi, edi
jle 0xb21c87
mov eax, dword [ebp + 0x14]
sub eax, esi
mov dword [ebp - 0x18], eax
lea ebx, [ebx]
xor cl, cl
cmp edx, dword [ebp + 0x18]
jg 0xb21c7f
mov eax, dword [ebp - 0x18]
add eax, edx
mov cl, byte [eax + esi]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0xb21c70
mov ecx, dword [ebx + 8]
add ecx, ecx
push edi
add ecx, ecx
push ecx
mov ecx, dword [ebp - 0x38]
push esi
mov edx, esi
call fcn.00b21b60
push esi
call fcn.00ba25e4
push 0x10
call fcn.00ba2640
push 0
mov dword [ebp - 0x24], eax
call fcn.00ba25ef
push eax
call fcn.00ba25b1
call fcn.00ba25c3
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul qword [0xc311b0]
fmul qword [0xc311a8]
fadd qword [0xc311a0]
call fcn.00ba7a70
mov esi, eax
imul esi, esi, 0x3e8
mov dword [ebp - 0x18], esi
add esp, 0xc
mov ecx, ebx
fild dword [ebp - 0x18]
fdiv qword [0xc311d8]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fstp dword [esp]
call fcn.00b21000
mov ebx, eax
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x24]
imul eax, eax, 0x3e8
sub esi, eax
add edx, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
xor esi, esi
mov dword [ebp - 0x20], 4
test ebx, ebx
jle 0xb21d4c
mov ecx, esi
and ecx, 0x1f
mov eax, ebx
test ebx, ebx
jns 0xb21d48
sar eax, 1
or eax, 0x7fffffff
dec ecx
sar eax, cl
jmp 0xb21d80
jns 0xb21d7e
mov eax, 2
mov edx, esi
lea ecx, [eax - 1]
test esi, esi
jle 0xb21d74
lea esp, [esp]
test dl, 1
je 0xb21d68
imul ecx, eax
sar edx, 1
mov dword [ebp - 0x28], edx
je 0xb21d74
imul eax, eax
jmp 0xb21d60
mov eax, ebx
cdq
idiv ecx
mov edx, dword [ebp - 0x18]
jmp 0xb21d80
xor eax, eax
mov cl, byte [ebp - 0x1c]
mov byte [edx - 4], al
mov byte [edx], cl
inc edx
add esi, 8
dec dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
jne 0xb21d31
push 9
call fcn.00ba2640
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x34]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
mov dword [ebp - 0x40], eax
mov eax, 4
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
add esp, 4
mov dword [esi], 0xa
test eax, eax
je 0xb21dd6
push eax
call fcn.00ba25e4
add esp, 4
push 0x10
call fcn.00ba2640
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
add esp, 4
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
cmp edi, 0x10
jl 0xb21dfa
mov edi, 0x10
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x14]
push edi
push edx
push eax
call fcn.00ba68b0
add esp, 0xc
call fcn.00b210f0
call fcn.00b21160
mov eax, dword [ebp + 0xc]
test al, 0xf
je 0xb21e22
shr eax, 4
inc eax
jmp 0xb21e25
shr eax, 4
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], ebx
cmp eax, ebx
jle 0xb21f97
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
fld qword [0xc311d0]
xor edi, edi
fild dword [ebp - 0x2c]
mov dword [ebp - 0x28], edi
fmul qword [0xc311c8]
call fcn.00ba7a70
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
add eax, 0xb
mov dword [ebp - 0x20], eax
test ebx, ebx
jle 0xb21e80
mov ecx, edi
and ecx, 0x1f
mov eax, ebx
test ebx, ebx
jns 0xb21e7c
sar eax, 1
or eax, 0x7fffffff
dec ecx
sar eax, cl
jmp 0xb21eaa
jns 0xb21ea8
mov eax, 2
mov edx, edi
lea ecx, [eax - 1]
test edi, edi
jle 0xb21ea1
test dl, 1
je 0xb21e98
imul ecx, eax
sar edx, 1
je 0xb21ea1
imul eax, eax
jmp 0xb21e90
mov eax, ebx
cdq
idiv ecx
jmp 0xb21eaa
xor eax, eax
fild dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov byte [edx + 4], al
fmul st(1)
call fcn.00ba7a70
mov ecx, eax
mov eax, dword [ebp - 0x48]
test eax, eax
jle 0xb21ed6
and ecx, 0x1f
test eax, eax
jns 0xb21ed2
sar eax, 1
or eax, 0x7fffffff
dec ecx
sar eax, cl
jmp 0xb21eff
jns 0xb21efd
mov edx, 2
lea esi, [edx - 1]
test ecx, ecx
jle 0xb21ef8
test cl, 1
je 0xb21eec
imul esi, edx
sar ecx, 1
je 0xb21ef8
mov ebx, dword [ebp - 0x2c]
imul edx, edx
jmp 0xb21ee4
cdq
idiv esi
jmp 0xb21eff
xor eax, eax
mov ecx, dword [ebp - 0x20]
inc dword [ebp - 0x28]
mov byte [ecx], al
add edi, 8
dec ecx
mov dword [ebp - 0x20], ecx
cmp edi, 0x20
jl 0xb21e65
mov ecx, dword [ebp - 0x34]
fstp st(0)
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00b216c0
mov eax, dword [ebp - 0x30]
dec eax
cmp ebx, eax
jge 0xb21f37
mov esi, 0x10
jmp 0xb21f3f
mov esi, dword [ebp + 0xc]
dec esi
and esi, 0xf
inc esi
push esi
call fcn.00ba2640
add esp, 4
xor ecx, ecx
mov edi, eax
test esi, esi
jle 0xb21f69
lea edx, [ebp - 0x14]
sub edx, edi
mov ebx, dword [ebp - 0x18]
mov bl, byte [ecx + ebx]
xor bl, byte [eax + edx]
inc ecx
mov byte [eax], bl
inc eax
cmp ecx, esi
jl 0xb21f55
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x1c]
push esi
push edi
push ecx
call fcn.00ba68b0
add dword [ebp - 0x1c], esi
push edi
call fcn.00ba25e4
add dword [ebp - 0x18], 0x10
inc ebx
add esp, 0x10
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x30]
jl 0xb21e40
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
push edi
lea eax, [esi + 8]
push esi
push eax
call fcn.00ba2250
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x44]
mov dword [esi], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 0x24]
mov dword [esi + 4], edx
add edi, 8
push ecx
mov dword [eax], edi
call fcn.00ba25e4
push ebx
call fcn.00ba25e4
mov edx, dword [ebp - 0x38]
push edx
call fcn.00ba25e4
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ba2239
mov esp, ebp
pop ebp
ret 0x14