Function at 0x472974
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebp
push 0x472dd7
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dl, al
mov ecx, dword [edx*4 + 0x4a2ff0]
mov dword [ebp - 0x60], ecx
mov ecx, dword [edx*4 + 0x4a2fdc]
dec ecx
mov dword [ebp - 0x64], ecx
mov eax, dword [edx*4 + 0x4a3004]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x7a]
mov edx, dword [0x4a6cd8]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc]
shr eax, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
call fcn.00405678
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
shr eax, cl
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
add eax, 0x1c
mov ecx, 1
mov edx, dword [0x4722e4]
call fcn.00405854
add esp, 4
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
add eax, 0x2c
mov ecx, 1
mov edx, dword [0x4723a0]
call fcn.00405854
add esp, 4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jge 0x472dad
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x24]
shl eax, cl
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jge 0x472a69
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
call fcn.00405678
cmp eax, dword [ebp - 0x2c]
jg 0x472a81
mov eax, dword [ebp + 0x14]
call fcn.00405680
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7f000000
mov dword [ebp - 0x34], 0x81000000
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, eax
jl 0x472b09
inc edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405678
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x472b01
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
and eax, 0x7fffffff
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x30]
jge 0x472af3
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x34]
jle 0x472b01
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x70]
jne 0x472aa0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jl 0x472d9e
mov ecx, dword [ebp - 0x60]
shr dword [ebp - 0x30], cl
mov ecx, dword [ebp - 0x60]
shr dword [ebp - 0x34], cl
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
call fcn.00405678
cmp eax, dword [ebp - 0x4c]
jge 0x472b57
mov eax, dword [ebp - 0x4c]
add eax, 0x40
push eax
lea eax, [ebp - 0x44]
mov ecx, 1
mov edx, dword [0x472924]
call fcn.00405854
add esp, 4
mov ebx, dword [0x4a68c0]
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
call ebx
cmp byte [ebp + 0xc], 0
jne 0x472c28
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, eax
jl 0x472d02
inc edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405678
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x54], eax
cmp esi, dword [ebp - 0x14]
jge 0x472c17
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax + esi*4]
and ebx, 0x7fffffff
mov eax, dword [ebp - 0x64]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x60]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
add dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add dword [eax + ebx*4 + 4], edx
inc esi
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax + esi*4]
and ebx, 0x7fffffff
mov eax, dword [ebp - 0x64]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x60]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
sub dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
sub dword [eax + ebx*4 + 4], edx
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x472bac
inc dword [ebp - 0x10]
dec dword [ebp - 0x70]
jne 0x472b88
jmp 0x472d02
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub edx, eax
jl 0x472d02
inc edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405678
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
cmp esi, dword [ebp - 0x14]
jge 0x472cf6
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax + esi*4]
inc esi
test ebx, 0x80000000
je 0x472c82
mov dword [ebp - 0x5c], 1
jmp 0x472c89
mov dword [ebp - 0x5c], 0xffffffff
and ebx, 0x7fffffff
cmp dword [ebp - 0x58], 0
jne 0x472cbb
mov eax, dword [ebp - 0x64]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x60]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
add dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add dword [eax + ebx*4 + 4], edx
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x472ced
mov eax, dword [ebp - 0x64]
and eax, ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x60]
shr ebx, cl
sub ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x44]
sub dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
sub dword [eax + ebx*4 + 4], edx
cmp esi, dword [ebp - 0x14]
jl 0x472c6a
inc dword [ebp - 0x10]
dec dword [ebp - 0x70]
jne 0x472c3d
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
and eax, 0xffffff
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
lea eax, [edx + eax*4]
mov ecx, 1
mov edx, dword [0x472370]
call fcn.00405854
add esp, 4
mov eax, dword [ebp - 0x4c]
dec eax
test eax, eax
jl 0x472d77
inc eax
mov dword [ebp - 0x70], eax
xor esi, esi
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + esi*4]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x68]
and edx, 0xff00
shr edx, 8
mov byte [eax + esi], dl
inc esi
dec dword [ebp - 0x70]
jne 0x472d46
lea ecx, [ebp - 0x78]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
call fcn.00467808
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x78]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebp - 0x74]
mov dword [edx + eax*8 + 4], ecx
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jl 0x472a47
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472dde
lea eax, [ebp - 0x48]
mov edx, dword [0x47294c]
call fcn.00405980
lea eax, [ebp - 0x44]
mov edx, dword [0x472924]
call fcn.00405980
ret