Function at 0x451760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebx + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x38]
lea ecx, [eax + edi]
mov dword [ebp + 0x10], ecx
mov dword [esi], ecx
cmp ecx, 0x10
ja 0x4517aa
push edi
push dword [ebp + 0xc]
add eax, 0x28
add eax, ebx
push eax
call fcn.004a4500
add dword [ebx + 0x38], edi
add esp, 0xc
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
jne 0x4517be
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x10
sub esi, eax
add eax, 0x28
push esi
add eax, ebx
push edi
push eax
call fcn.004a4500
mov eax, dword [ebp + 0x10]
add edi, esi
mov esi, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x28]
push esi
mov dword [esi], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0xc], eax
lea eax, [ebx + 0x3c]
push eax
call fcn.0044f400
mov eax, dword [ebx + 0x18]
add esp, 0x14
xor dword [esi], eax
mov eax, dword [ebx + 0x1c]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x20]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x24]
xor dword [esi + 0xc], eax
add esi, 0x10
cmp dword [ebp + 0x10], 0x10
ja 0x45183e
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x34]
jmp 0x4518fb
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [ebx + 0x3c]
push esi
push eax
call fcn.0044f400
mov eax, dword [ebx + 0x28]
add esp, 8
xor dword [esi], eax
add edi, 0x10
mov eax, dword [ebx + 0x2c]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x30]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x34]
xor dword [esi + 0xc], eax
add esi, 0x10
mov eax, dword [ebp + 0x10]
sub eax, 0x10
mov dword [ebp + 0x10], eax
cmp eax, 0x10
jbe 0x4518e6
mov ebx, eax
lea eax, [ebx - 0x11]
shr eax, 4
inc eax
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push esi
push dword [ebp - 4]
mov dword [esi + 0xc], eax
call fcn.0044f400
mov eax, dword [edi - 0x10]
add esp, 8
xor dword [esi], eax
sub ebx, 0x10
mov eax, dword [edi - 0xc]
xor dword [esi + 4], eax
mov eax, dword [edi - 8]
xor dword [esi + 8], eax
mov eax, dword [edi - 4]
add edi, 0x10
xor dword [esi + 0xc], eax
add esi, 0x10
sub dword [ebp + 0x10], 1
jne 0x451898
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [edi - 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi - 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi - 8]
mov dword [ebx + 0x20], eax
mov eax, dword [edi - 4]
mov esi, dword [ebp + 0x10]
push esi
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.004a4500
mov eax, dword [ebx + 0x38]
add esp, 0xc
and eax, 0xf0000000
add eax, esi
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x18]
pop edi
sub dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret