Function at 0x45aab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4831d4]
test eax, eax
jne 0x45ab15
mov eax, 0xbd4d5ee9
xor eax, dword [0x47c650]
mov dword [0x47c670], eax
mov eax, 0x7bf83b35
xor eax, dword [0x47c654]
mov dword [0x47c674], eax
mov eax, 0x59263347
xor eax, dword [0x47c658]
mov dword [0x47c678], eax
mov eax, 0x5d7d018d
xor eax, dword [0x47c65c]
mov dword [0x47c67c], eax
mov eax, 0x1ca5fb9a
xor eax, dword [0x47c660]
mov dword [0x47c680], eax
mov esi, dword [ebp + 8]
mov dword [0x4831d4], 1
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x40
mov edi, esp
sub esp, 0x40
mov ebx, esp
mov ecx, dword [0x47c680]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x47c67c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x47c678]
mov dword [eax + 8], ecx
mov ecx, dword [0x47c674]
mov dword [eax + 4], ecx
mov ecx, dword [0x47c670]
mov dword [ebp - 0x20], eax
mov dword [eax], ecx
cmp edx, 0x40
mov dword [ebp - 0x1c], ebx
jae 0x45ab6d
mov eax, esi
jmp 0x45abe8
shr edx, 6
mov dword [ebp - 0x10], edx
xor ecx, ecx
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x14], ecx
mov ebx, eax
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx + esi]
mov dword [edi + esi], eax
movzx ecx, byte [ebx + esi + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + esi], ecx
movzx eax, byte [ebx + esi + 2]
shl eax, 0x10
or eax, ecx
mov dword [edi + esi], eax
movzx ecx, byte [ebx + esi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [edi + esi], ecx
add esi, 4
cmp esi, 0x40
jne 0x45ab90
push edi
push dword [ebp - 0x20]
call fcn.0045b6e0
add esp, 8
mov ecx, dword [ebp - 0x14]
inc ecx
lea eax, [ebx + esi]
cmp ecx, dword [ebp - 0x10]
jne 0x45ab80
add ebx, esi
mov eax, ebx
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov ecx, edx
and ecx, 0x3f
mov dword [ebp - 0x18], ecx
je 0x45ace0
mov ecx, edx
and ecx, 1
xor esi, esi
cmp dword [ebp - 0x18], 1
je 0x45acc7
mov dword [ebp - 0x24], ecx
sub dword [ebp - 0x18], ecx
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x1c]
nop
nop
mov dword [ebp - 0x14], ecx
movzx edi, byte [eax + esi]
mov eax, dword [ebp - 0x14]
mov ecx, eax
and cl, 0x10
shl edi, cl
mov edx, esi
and edx, 0xfffffffc
xor edi, dword [ebx + edx]
mov dword [ebx + edx], edi
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + esi + 1]
or cl, 8
shl eax, cl
mov ecx, dword [ebp - 0x14]
xor eax, edi
mov dword [ebx + edx], eax
mov eax, dword [ebp - 0x10]
add esi, 2
add ecx, 0x10
cmp dword [ebp - 0x18], esi
jne 0x45ac80
add eax, esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
mov ebx, dword [ebp - 0x1c]
je 0x45ace0
movzx eax, byte [eax]
lea ecx, [esi*8]
shl eax, cl
and esi, 0xfffffffc
xor dword [ebx + esi], eax
mov eax, edx
xor eax, 0x1c
mov ecx, edx
or ecx, 3
and ecx, eax
shl ecx, 3
or cl, 7
mov eax, 1
shl eax, cl
mov ecx, edx
and ecx, 0x3c
mov edi, edx
mov edx, dword [ebx + ecx]
mov esi, edx
and esi, eax
add eax, edx
mov edx, edi
add esi, esi
sub eax, esi
mov dword [ebx + ecx], eax
mov esi, dword [ebp + 0x10]
mov eax, edi
not eax
test al, 0x38
jne 0x45ad36
push ebx
push dword [ebp - 0x20]
call fcn.0045b6e0
mov edx, edi
add esp, 8
xor eax, eax
mov edi, ebx
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [edx*8]
mov dword [ebx + 0x38], eax
shr edx, 0x1d
mov dword [ebx + 0x3c], edx
push ebx
mov edi, dword [ebp - 0x20]
push edi
call fcn.0045b6e0
add esp, 8
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
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret