Function at 0x45f0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, edx
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
test edx, edx
jne 0x45f145
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45f309
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov eax, dword [ebp - 0x20]
xor edx, edx
mov edi, dword [ebp - 0x14]
mov dl, byte [ecx + eax]
inc ecx
mov eax, edx
shl eax, 0x11
add eax, edx
add eax, edi
mov edx, eax
shr edx, 2
xor edx, eax
cmp ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
jne 0x45f112
mov ecx, dword [ebp - 0x1c]
mov eax, edx
xor edx, edx
div dword [ecx + 0xc]
shl edx, 2
jmp 0x45f1be
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x28]
cmp edi, 1
je 0x45f2c1
test edi, edi
je 0x45f2b3
lea eax, [edi - 1]
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
mov al, byte [esi]
test al, al
jne 0x45f22a
mov edx, 1
lea esi, [esi]
cmp byte [edx + esi], 0
jne 0x45f222
inc edx
cmp edx, edi
jne 0x45f180
mov ecx, dword [ebp - 0x10]
mov edx, ecx
shl edx, 0x11
lea eax, [ebx + ecx]
mov ebx, ecx
add eax, edx
imul ebx, edi
mov edx, eax
shr edx, 2
xor edx, eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
xor edx, edx
add ebx, edi
div dword [ecx + 0xc]
shl edx, 2
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov eax, dword [edx + eax]
test eax, eax
jne 0x45f1da
jmp 0x45f26f
mov eax, dword [ebx]
test eax, eax
je 0x45f26f
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 8], eax
jne 0x45f1d0
mov edx, dword [ebp - 0x18]
cmp dword [ebx + 0xc], edx
jne 0x45f1d0
cld
mov esi, dword [ebx + 4]
cmp edx, edx
mov edi, dword [ebp - 0x20]
mov ecx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x45f1d0
mov ecx, dword [ebp - 0x24]
cmp dword [ebx + 0x10], ecx
jae 0x45f29d
mov esi, dword [ebp + 8]
test esi, esi
je 0x45f2a7
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
jmp 0x45f276
cmp edi, edx
je 0x45f18f
and eax, 0xff
mov ecx, 1
lea edx, [ebx + eax]
shl eax, 0x11
add edx, eax
mov ebx, edx
shr ebx, 2
xor ebx, edx
xor eax, eax
mov al, byte [ecx + esi]
inc ecx
lea edx, [eax + ebx]
shl eax, 0x11
add edx, eax
mov ebx, edx
shr ebx, 2
xor ebx, edx
cmp ecx, edi
jne 0x45f243
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
inc eax
lea esi, [esi + edx + 1]
mov dword [ebp - 0x10], eax
jmp 0x45f16b
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x45f2a7
push edx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040f080
add esp, 0x10
test eax, eax
je 0x45f2a7
mov ebx, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x10], 0
jmp 0x45f18f
mov ecx, dword [ebp - 0x20]
mov al, byte [ecx]
test al, al
je 0x45f317
xor edx, edx
xor ecx, ecx
mov dl, al
xor ebx, ebx
lea eax, [edx + ecx]
inc ebx
shl edx, 0x11
add eax, edx
mov edx, dword [ebp - 0x20]
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov al, byte [ebx + edx]
xor edx, edx
test al, al
mov dl, al
jne 0x45f2d2
mov eax, ebx
lea edx, [ecx + ebx]
shl eax, 0x11
add eax, edx
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x45f1ab
xor edx, edx
mov dword [ebp - 0x14], 0
jmp 0x45f1be
xor ebx, ebx
mov dword [ebp - 0x14], 0
jmp 0x45f1ab