Function at 0x442a20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x74]
movzx ecx, byte [esp + 0x6c]
movzx esi, byte [esp + 0x68]
imul ecx, esi
mov dword [eax], 0
mov eax, 0x81020409
imul ecx
mov ebx, dword [esp + 0x70]
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x787884]
movzx eax, cx
movzx eax, ax
add eax, eax
add eax, eax
add eax, eax
mov edi, dword [esp + 0x5c]
cmp byte [edi + 0x11], 0
fld qword [eax + edx]
fstp qword [esp + 0x40]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], eax
je 0x442ced
fild dword [edi + 0x1c]
fdiv qword [0x6fb358]
fst qword [esp + 0x50]
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x442aac
fstp st(0)
fld qword [0x6fb350]
jmp 0x442ab7
call sub.MSVCR80.dll__CIlog10
fmul qword [0x6fb348]
shr esi, 7
fstp qword [esp + 0x28]
imul esi, dword [edi + 0x28]
add esi, dword [edi + 0x14]
mov dword [esp + 0x68], esi
je 0x442b10
fild dword [esp + 0x68]
fdiv qword [0x6fb340]
fld qword [0x6f4ad8]
fxch st(1)
call sub.MSVCR80.dll__CIpow
fnstcw word [esp + 0x68]
movzx eax, word [esp + 0x68]
fst qword [esp + 0x48]
fmul qword [0x6fb338]
or eax, 0xc00
mov dword [esp + 0x6c], eax
fldcw word [esp + 0x6c]
fistp qword [esp + 0x38]
mov esi, dword [esp + 0x38]
fldcw word [esp + 0x68]
jmp 0x442b18
fldz
xor esi, esi
fstp qword [esp + 0x48]
movzx eax, byte [esp + 0x64]
shr eax, 7
imul eax, dword [edi + 0x24]
add eax, dword [edi + 0x18]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
fdiv qword [0x6fb340]
fld qword [0x6f4ad8]
fxch st(1)
call sub.MSVCR80.dll__CIpow
fld st(0)
fld qword [0x6fb338]
fnstcw word [esp + 0x68]
movzx eax, word [esp + 0x68]
fmul st(1), st(0)
or eax, 0xc00
fxch st(1)
mov dword [esp + 0x5c], eax
fldcw word [esp + 0x5c]
fistp qword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], ecx
fldcw word [esp + 0x68]
fld qword [esp + 0x28]
fdiv qword [0x6fb330]
fnstcw word [esp + 0x68]
fabs
movzx eax, word [esp + 0x68]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x5c], eax
fmul st(1)
fldcw word [esp + 0x5c]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
lea edx, [eax + esi]
cmp edx, ebx
fldcw word [esp + 0x68]
mov dword [esp + 0x5c], eax
jbe 0x442c51
cmp esi, ebx
mov eax, ebx
jbe 0x442bf3
test eax, eax
fstp st(1)
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x5c], 0
jge 0x442bdf
fadd qword [0x6f0eb8]
fdivrp st(1)
mov dword [esp + 0x20], 0
fdiv qword [esp + 0x48]
fstp qword [esp + 0x50]
jmp 0x442c5f
sub eax, esi
test eax, eax
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
mov dword [esp + 0x5c], eax
jge 0x442c0b
fadd qword [0x6f0eb8]
fdivrp st(1)
fdivrp st(1)
fld1
fsubrp st(1)
fst qword [esp + 0x50]
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x442c38
fstp st(0)
mov dword [esp + 0x20], 0
fld qword [0x6fb350]
fstp qword [esp + 0x28]
jmp 0x442c5f
call sub.MSVCR80.dll__CIlog10
fmul qword [0x6fb348]
mov dword [esp + 0x20], 0
fstp qword [esp + 0x28]
jmp 0x442c5f
mov ecx, ebx
fstp st(1)
sub ecx, eax
fstp st(0)
sub ecx, esi
mov dword [esp + 0x20], ecx
fild dword [edi + 0x20]
fdiv qword [0x6fb340]
fld qword [0x6f4ad8]
fxch st(1)
call sub.MSVCR80.dll__CIpow
fstp qword [esp + 0x48]
fldz
fld qword [esp + 0x40]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x442c94
fstp st(0)
fld qword [0x6fb350]
jmp 0x442c9f
call sub.MSVCR80.dll__CIlog10
fmul qword [0x6fb348]
fadd qword [esp + 0x28]
mov ecx, dword [esp + 0x74]
fnstcw word [esp + 0x68]
fadd qword [0x6fb328]
movzx eax, word [esp + 0x68]
or eax, 0xc00
mov dword [esp + 0x28], eax
fabs
fmul qword [esp + 0x48]
fdiv qword [0x6fb330]
fmul qword [0x6fb338]
fldcw word [esp + 0x28]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
add ebx, eax
mov dword [esp + 0x28], eax
fldcw word [esp + 0x68]
mov dword [ecx], eax
mov dword [esp + 0x10], ebx
movsx ecx, word [edi + 6]
mov dword [esp + 0x68], ecx
movzx edx, word [edi + 4]
fild dword [esp + 0x68]
mov eax, dword [0x787880]
mov esi, dword [eax + edx*4]
fdiv qword [0x6fb320]
fld qword [0x6f4ad8]
fxch st(1)
call sub.MSVCR80.dll__CIpow
mov edx, esi
test edx, edx
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
jge 0x442d2c
fadd qword [0x6f0eb8]
fnstcw word [esp + 0x68]
lea ecx, [esi + esi]
movzx eax, word [esp + 0x68]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub ecx, eax
test ecx, ecx
fldcw word [esp + 0x68]
mov dword [esp + 0x68], ecx
fild dword [esp + 0x68]
jge 0x442d67
fadd qword [0x6f0eb8]
movzx edx, byte [esp + 0x64]
mov eax, dword [0x787880]
mov ecx, dword [eax + edx*4]
test ecx, ecx
fild dword [eax + edx*4]
jge 0x442d81
fadd qword [0x6f0eb8]
mov edx, dword [edi]
fdivp st(1)
mov eax, dword [ebp + 0x10]
shl edx, 4
mov ecx, dword [eax + edx + 8]
add eax, edx
cmp ecx, 0x5622
fst qword [esp + 0x48]
je 0x442dbb
test ecx, ecx
mov dword [esp + 0x64], ecx
fild dword [esp + 0x64]
jge 0x442daf
fadd qword [0x6f0eb8]
fdiv qword [0x6fb338]
fdivp st(1)
fst qword [esp + 0x48]
cmp word [eax + 0xc], 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x68], ecx
je 0x442ddf
push esi
fstp st(0)
push ecx
call fcn.004429e0
fld qword [esp + 0x50]
add esp, 8
mov dword [esp + 0x68], eax
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0xc]
test ebx, ebx
mov dword [esp + 0x64], ebx
fild dword [esp + 0x64]
mov dword [esp + 0x14], ecx
jge 0x442dfb
fadd qword [0x6f0eb8]
fdiv st(1)
fnstcw word [esp + 0x64]
movzx eax, word [esp + 0x64]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ebx, dword [esp + 0x18]
lea eax, [ebx + ebx]
cmp eax, dword [ebp + 0x18]
fldcw word [esp + 0x64]
mov dword [esp + 0x18], ebx
jbe 0x442e55
mov dword [ebp + 0x18], eax
fstp st(0)
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x442e3e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
fld qword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x14], eax
cmp ebx, esi
mov ebp, dword [ebp + 0x14]
mov eax, dword [edi + 0xc]
jbe 0x442f38
test eax, eax
fstp st(0)
jbe 0x442f03
xor ecx, ecx
cmp dword [edi + 8], ecx
jbe 0x442e98
mov edx, dword [esp + 0x68]
sub edx, ebp
mov eax, ebp
mov dword [esp + 0x64], edx
jmp 0x442e86
mov edx, dword [esp + 0x64]
mov dx, word [edx + eax]
mov word [eax], dx
add ecx, 1
add eax, 2
cmp ecx, dword [edi + 8]
jb 0x442e82
mov edx, esi
sub edx, dword [esp + 0x14]
cmp edx, 1
jbe 0x442ec9
mov ecx, dword [esp + 0x68]
lea esi, [ecx + esi*2 - 2]
lea ecx, [edx - 1]
lea eax, [ebp + ebx*2 - 2]
mov dword [esp + 0x64], ecx
mov cx, word [esi]
mov word [eax], cx
sub esi, 2
sub eax, 2
sub dword [esp + 0x64], 1
jne 0x442eb6
mov eax, dword [edi + 8]
mov esi, ebx
mov ecx, eax
sub esi, edx
cmp ecx, esi
jae 0x443016
mov edx, dword [esp + 0x14]
mov edi, edi
mov ebx, dword [esp + 0x68]
mov bx, word [ebx + eax*2]
add eax, 1
cmp eax, edx
mov word [ebp + ecx*2], bx
jb 0x442ef7
mov eax, dword [edi + 8]
add ecx, 1
cmp ecx, esi
jb 0x442ee0
jmp 0x443016
jne 0x443016
mov edx, dword [esp + 0x68]
lea eax, [esi + esi]
push eax
push edx
push ebp
mov dword [esp + 0x70], eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x70]
sub ebx, esi
add ebx, ebx
push ebx
lea ecx, [eax + ebp]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0x18
jmp 0x443016
test eax, eax
jbe 0x442fb6
mov eax, dword [edi + 8]
fstp st(0)
cmp eax, ebx
jbe 0x442f4d
mov eax, ebx
mov dword [esp + 0x64], ebx
jmp 0x442f51
mov dword [esp + 0x64], eax
mov edx, ebx
sub edx, eax
mov eax, esi
sub eax, ecx
cmp eax, edx
mov eax, dword [esp + 0x64]
jae 0x442f67
mov ecx, eax
sub ecx, ebx
add ecx, esi
test eax, eax
mov dword [esp + 0x14], ecx
jbe 0x442f93
mov edx, dword [esp + 0x68]
mov ecx, ebp
sub edx, ebp
mov esi, eax
lea esp, [esp]
mov ax, word [ecx + edx]
mov word [ecx], ax
add ecx, 2
sub esi, 1
jne 0x442f80
mov eax, dword [esp + 0x64]
cmp eax, ebx
jae 0x443016
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
lea ecx, [edx + ecx*2]
mov dx, word [ecx]
mov word [ebp + eax*2], dx
add eax, 1
add ecx, 2
cmp eax, ebx
jb 0x442fa2
jmp 0x443016
jne 0x443014
mov eax, esi
test eax, eax
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
mov dword [esp + 0x18], esi
jge 0x442fd0
fadd qword [0x6f0eb8]
mov edx, dword [esp + 0x68]
fnstcw word [esp + 0x64]
movzx eax, word [esp + 0x64]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x28], eax
lea ecx, [esi + esi]
push ecx
fldcw word [esp + 0x2c]
push edx
push ebp
fistp qword [esp + 0x34]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 0x7c]
fldcw word [esp + 0x70]
mov dword [esp + 0x34], eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x443016
fstp st(0)
mov esi, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
fld1
fld qword [esp + 0x48]
mov ebx, eax
fcom st(1)
sub esp, 8
fnstsw ax
fstp st(1)
test ah, 5
fstp qword [esp]
push esi
jp 0x443052
mov eax, dword [esp + 0x24]
push eax
push ebx
push ebp
call fcn.004427f0
jmp 0x44305e
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebp
call fcn.004428a0
mov eax, dword [esp + 0x4c]
fnstcw word [esp + 0x7c]
mov edx, dword [0x787884]
fld qword [eax + edx]
movzx eax, word [esp + 0x7c]
fmul qword [0x6fb318]
or eax, 0xc00
mov dword [esp + 0x80], eax
add esp, 0x18
cmp byte [edi + 0x11], 0
fldcw word [esp + 0x68]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
fldcw word [esp + 0x64]
je 0x443232
xor esi, esi
cmp dword [esp + 0x6c], esi
jbe 0x443100
xor ebp, ebp
imul eax, eax, 0x64
mov dword [esp + 0x64], eax
movzx edi, word [ebx + esi*2]
movsx eax, di
cdq
xor eax, edx
sub eax, edx
xor edx, edx
movsx ecx, ax
mov eax, ebp
div dword [esp + 0x6c]
imul ecx, eax
mov eax, 0x4f8b588f
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
xor edx, edx
shr ecx, 0x10
test di, di
setge dl
add ebp, dword [esp + 0x64]
add esi, 1
lea edx, [edx + edx - 1]
imul cx, dx
cmp esi, dword [esp + 0x6c]
mov word [ebx + esi*2 - 2], cx
jb 0x4430b4
mov edi, dword [esp + 0x5c]
fld qword [esp + 0x40]
test edi, edi
jbe 0x44314e
mov eax, dword [esp + 0x6c]
xor ebp, ebp
lea esi, [ebx + eax*2]
xor edx, edx
mov eax, ebp
div dword [esp + 0x38]
movsx edx, word [esi]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], edx
fld qword [ecx + eax*8 + 0x20]
fmul st(1)
fild dword [esp + 0x64]
fmulp st(1)
call fcn.00610db0
mov word [esi], ax
add esi, 2
add ebp, 0x3c0
sub edi, 1
jne 0x443115
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x6c]
fld qword [esp + 0x50]
add eax, edi
fmul st(1)
mov edi, dword [esp + 0x20]
test edi, edi
jbe 0x443182
lea esi, [ebx + eax*2]
movsx ecx, word [esi]
mov dword [esp + 0x64], ecx
fild dword [esp + 0x64]
fmul st(1)
call fcn.00610db0
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x443165
mov ebp, dword [esp + 0x28]
fstp st(0)
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x64], 0xffffffff
jbe 0x4432c8
mov edx, dword [esp + 0x70]
mov dword [esp + 0x68], edi
lea esi, [ebx + edx*2]
mov eax, dword [esp + 0x68]
xor edx, edx
div ebp
movsx edx, word [esi]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
fld qword [ecx + eax*8 + 0x20]
fmul st(1)
fild dword [esp + 0x6c]
fmulp st(1)
call fcn.00610db0
movzx ecx, ax
movsx eax, cx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x10
jge 0x4431ea
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
jne 0x4431f6
mov eax, edi
mov dword [esp + 0x64], eax
jmp 0x4431f6
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x64]
add dword [esp + 0x68], 0x3c0
mov word [esi], cx
add edi, 1
add esi, 2
cmp edi, ebp
jb 0x4431a5
cmp eax, 0xffffffff
fstp st(0)
je 0x4432ca
cmp eax, ebp
jae 0x4432ca
mov ecx, dword [esp + 0x74]
pop edi
sub eax, ebp
add dword [ecx], eax
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret 0x1c
mov edi, dword [esp + 0x10]
fld qword [esp + 0x40]
mov eax, 0xcccccccd
mul dword [esp + 0x14]
mov esi, edx
shr esi, 3
mov eax, edi
sub eax, esi
xor ebp, ebp
test esi, esi
mov dword [esp + 0x68], eax
jbe 0x443278
movsx eax, word [ebx + ebp*2]
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
fmul st(1)
call fcn.00610db0
mov word [ebx + ebp*2], ax
add ebp, 1
cmp ebp, esi
jb 0x443256
mov eax, dword [esp + 0x68]
cmp esi, edi
jae 0x4432c8
test eax, eax
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
jge 0x44328e
fadd qword [0x6f0eb8]
mov ecx, edi
sub ecx, esi
test ecx, ecx
mov dword [esp + 0x64], ecx
fild dword [esp + 0x64]
jge 0x4432a4
fadd qword [0x6f0eb8]
fdiv st(1)
movsx edx, word [ebx + esi*2]
mov dword [esp + 0x64], edx
fmul st(2)
fild dword [esp + 0x64]
fmulp st(1)
call fcn.00610db0
mov word [ebx + esi*2], ax
add esi, 1
cmp esi, edi
jb 0x44328e
fstp st(1)
fstp st(0)
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret 0x1c